/* STUDIO DETAILS AWARDS — 共通トークン
   モノクローム + 赤1色。角丸なし、ヘアライン、明朝とOptima系セリフ。
   派手さは色ではなく「動きと大きさ」で出す。 */

:root {
  --ink: #0d0d0d;
  --ink-raise: #151515;
  --ink-card: #1a1a1a;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.3);
  --text: #edebe7;
  --text-2: #9c9a96;
  --text-3: #6a6864;
  --paper: #f2f0ec;
  --red: #c82323;
  --red-dim: rgba(200, 35, 35, 0.22);
  --red-soft: rgba(200, 35, 35, 0.5);

  --display: Optima, "Optima nova LT Pro", Palatino, "Palatino Linotype", "Hiragino Mincho ProN", serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

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

body { overscroll-behavior: none; }

/* 微細な粒子。均一な黒面を避けて紙のような密度を出す */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.045'/></svg>");
}

/* ── タイポグラフィ ─────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.serif { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; }
.mincho { font-family: var(--mincho); font-weight: 600; }

.num {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── 押せるもの ───────────────────────────── */
.btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 14px 20px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { background: rgba(255, 255, 255, 0.06); }
.btn:active { background: rgba(255, 255, 255, 0.12); }
.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: #d92c2c; border-color: #d92c2c; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
input[type="checkbox"] { accent-color: var(--red); width: 16px; height: 16px; }

/* ── 票で塗り潰される名前（本作の signature） ──
   下地の文字は淡色、その上に赤い面が伸び、面の内側だけ文字が反転する。 */
.fillname { position: relative; display: block; overflow: hidden; }
.fillname__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 0%);
  background: var(--red);
  transition: width 0.7s var(--ease-out);
}
.fillname__base, .fillname__over {
  position: relative;
  display: block;
  white-space: nowrap;
}
.fillname__over {
  position: absolute;
  inset: 0;
  color: var(--paper);
  clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0);
  transition: clip-path 0.7s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.06s !important;
  }
}
