/* 珍ゲーWeb v0.7 — 共通スタイル
   ワイヤーフレーム（Figma「珍ゲー」/ 珍ゲーWeb セクション）に合わせた叩き台。
   演出は「軽く作れる範囲で、しっかり効かせる」方針。ただし画面ぜんたいを覆う演出は使わない。 */

:root {
  --bg:      #f1f1f1;
  --paper:   #ffffff;
  --ink:     #111111;
  --yellow:  #ffc600;
  --dark:    #2b2b2b;
  --muted:   #666666;
  --tile:    #d9d9d9;

  --font-pixel: "DotGothic16", "MS Gothic", "Osaka-Mono", monospace;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

/* display を持つ要素に hidden を付けても効くように */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-pixel);
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---- ヘッダー ---- */
.site-header { background: var(--paper); border-bottom: 1px solid rgba(0,0,0,.08); }
.site-header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  height: 56px; font-size: clamp(13px, 1.6vw, 17px);
}
.site-header a { text-decoration: none; }
.site-header a:hover { text-decoration: underline; }
.site-header .wrap.right { justify-content: flex-end; }

/* ---- ピクセルおばけ ---- */
.chara {
  height: auto;
  display: block;
  shape-rendering: crispEdges;
  image-rendering: pixelated;
  overflow: visible;
}
/* ワイヤーフレームの実寸（おばけ1 = 64.4×41 / おばけ2 = 56.7×63 / おばけ3 = 51×58）の比で置く */
.charas { display: flex; align-items: flex-end; gap: clamp(8px, 1.4vw, 18px); --u: clamp(.82px, .09vw, 1.4px); }
.charas .ob1 { width: calc(var(--u) * 64.4); }
.charas .ob2 { width: calc(var(--u) * 56.7); }
.charas .ob3 { width: calc(var(--u) * 51); }
.charas--sm { --u: clamp(.42px, .05vw, .8px); gap: clamp(4px, .7vw, 10px); }

/* ファミコンらしい上下の跳ね。形は変えない（ワイヤーフレームは1コマしかないため） */
.chara.piko { animation: piko-bob .46s steps(1) infinite; }
@keyframes piko-bob { 0%, 49.9% { transform: translateY(0); } 50%, 100% { transform: translateY(-6%); } }

/* ---- 選択肢（▶ がカーソル） ---- */
.choices { display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 18px); align-items: flex-start; }
.choice {
  display: inline-flex; align-items: center; gap: .55em;
  text-decoration: none;
  font-size: clamp(18px, 2.6vw, 30px);
  padding: 2px 4px;
  transform-origin: left center;
  transition: transform .12s steps(2);
  cursor: pointer;
}
.choice::before { content: "▶"; visibility: hidden; }
.choice.sel { transform: scale(1.1); animation: slow-blink 1.15s ease-in-out infinite; }
.choice.sel::before { visibility: visible; }
.choice.confirming { animation: fast-blink .1s steps(1) infinite; }

@keyframes slow-blink { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes fast-blink { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: .12; } }

.blink-slow { animation: slow-blink 1.15s ease-in-out infinite; }

/* ---- セクションの帯 ---- */
.band { padding: clamp(40px, 7vw, 88px) 0; }
.band--paper  { background: var(--paper); }
.band--bg     { background: var(--bg); }
.band--yellow { background: var(--yellow); }
.band h2 { margin: 0 0 clamp(20px, 3vw, 36px); font-size: clamp(20px, 2.6vw, 30px); font-weight: normal; }

/* ---- 黒バナー（白文字）。イベント名と人の名前で共通に使う ----
   画像の下辺をまたぐように置く。画像の中に収めると帯が窮屈に見え、
   完全に外へ出すと画像との結びつきが切れる */
.badge {
  position: absolute; left: 0; bottom: 0;
  transform: translateY(42%);
  background: var(--ink); color: #fff;
  padding: .38em .8em;
  line-height: 1.35;
  font-size: clamp(11px, 1.4vw, 17px);
  white-space: nowrap;
}

/* ---- X（旧Twitter）へのリンク。人員紹介と、コラムの署名で共通に使う ---- */
.member-x { display: inline-flex; align-items: center; gap: .5em; font-size: clamp(11px, 1.3vw, 16px); }
.member-x .x-mark { width: clamp(16px, 2vw, 24px); height: auto; flex: none; }
.member-x span { text-decoration: underline; text-underline-offset: .25em; }
a.member-x:hover span { text-decoration-thickness: 2px; }

/* ---- フッター ---- */
.site-footer { background: var(--dark); color: #fff; padding: 40px 0; font-size: 13px; }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px 28px; flex-wrap: wrap;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-by { margin: 0; margin-right: auto; color: #b9b9b9; }
.foot-by a { color: var(--yellow); text-decoration: underline; text-underline-offset: .25em; }
.foot-by a:hover { text-decoration-thickness: 2px; }
.site-footer--slim { padding: 18px 0; }

/* ---- KV ---- */
.kv { display: flex; align-items: center; padding: clamp(16px, 3vw, 48px) 0; }
.kv-grid {
  width: 100%;
  display: grid; grid-template-columns: 1fr minmax(0, 40%);
  gap: clamp(16px, 3vw, 48px); align-items: start;
}
.logo { margin: 0; line-height: .95; font-weight: normal; }
.logo .main { display: block; color: var(--yellow); font-size: clamp(44px, 9.5vw, 116px); letter-spacing: .02em; }
.logo .sub  { display: block; color: var(--yellow); font-size: clamp(19px, 3.8vw, 46px); letter-spacing: .04em; margin-top: .18em; }
.news {
  background: var(--yellow);
  min-height: clamp(110px, 18vw, 230px);
  padding: clamp(12px, 1.6vw, 22px);
  font-size: clamp(15px, 1.8vw, 22px);
  display: flex; flex-direction: column;
}
.news-item { margin: 0; font-size: clamp(13px, 1.5vw, 19px); line-height: 1.7; }
.news-more {
  margin-top: auto; align-self: flex-end;
  font-size: clamp(12px, 1.4vw, 17px);
  text-decoration: underline; text-underline-offset: .25em;
}
.news-more:hover { text-decoration-thickness: 2px; }
.kv-bottom {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(16px, 3vw, 40px); align-items: end;
  margin-top: clamp(20px, 4vw, 56px);
}
/* 2択を持たないKV（/read/）。おばけだけが右下に残る */
.kv-bottom--charas { grid-template-columns: 1fr; justify-items: end; }

@media (max-width: 760px), (max-height: 620px) {
  .kv-grid { grid-template-columns: 1fr; }
  .news { min-height: 72px; }
  .kv-bottom { margin-top: clamp(12px, 3vw, 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .chara.piko, .choice.sel, .blink-slow, .choice.confirming { animation: none; }
}
