/* ============ TOKENS ============ */
:root {
  --ink: #06070b;
  --ink-2: #0b0e15;
  --ink-3: #131826;
  --paper: #f1eadb;
  --paper-dim: rgba(241, 234, 219, .64);
  --paper-faint: rgba(241, 234, 219, .14);
  --red: #ff3d2e;
  --accent: var(--red);
  --f-disp: 'Dela Gothic One', 'Zen Kaku Gothic New', sans-serif;
  --f-latin: 'Big Shoulders Display', 'Dela Gothic One', sans-serif;
  --f-body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .1, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
main, .site-footer { overflow-x: clip; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }

/* 画面全体の粒子 */
body::after {
  content: '';
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .07;
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--paper); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.noscript { padding: 2rem var(--gut); }

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--paper-dim);
  text-transform: uppercase;
}
.eyebrow::before { content: '●'; color: var(--red); margin-right: .7em; font-size: 9px; vertical-align: 2px; }

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--ink);
  transition: clip-path 1.1s var(--ease), visibility 0s 1.1s;
  clip-path: circle(150% at 50% 50%);
}
.loader.is-done { clip-path: circle(0% at 50% 50%); visibility: hidden; }
.loader__ring {
  --p: 0;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-content: center; grid-auto-flow: column; align-items: baseline;
  background:
    radial-gradient(closest-side, var(--ink) 86%, transparent 87%),
    conic-gradient(var(--red) calc(var(--p) * 1%), var(--paper-faint) 0);
  font-family: var(--f-latin); font-weight: 900; font-size: 44px; line-height: 1;
}
.loader__ring small { font-size: 18px; margin-left: 2px; }
.loader__label { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--paper-dim); }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: clamp(12px, 3vw, 40px);
  padding: 18px var(--gut);
  mix-blend-mode: difference;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #fff; position: relative;
}
.brand__mark::after {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: #fff; border-right-color: #fff;
  animation: spin 2.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand__text { display: grid; line-height: 1.15; }
.brand__text b { font-family: var(--f-latin); font-weight: 900; font-size: 20px; letter-spacing: .06em; }
.brand__text small { font-size: 10px; letter-spacing: .12em; opacity: .8; }
.gnav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.gnav a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-decoration: none; position: relative; }
.gnav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.gnav a:hover::after { right: 0; }
.motion-toggle {
  border: 1px solid rgba(255, 255, 255, .6); background: transparent; border-radius: 99px;
  font-size: 11px; padding: 5px 12px; cursor: pointer; letter-spacing: .08em;
}
.motion-toggle[aria-pressed='true'] { background: #fff; color: #000; }

/* ============ HERO ============ */
.hero { position: relative; height: 230vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.hero__canvas, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback { display: none; place-items: center; background: var(--ink-2); }
.hero__fallback img { width: min(64vmin, 560px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px rgba(241, 234, 219, .6), 0 0 80px 20px rgba(0, 0, 0, .8); }
.no-webgl .hero__canvas { display: none; }
.no-webgl .hero__fallback { display: grid; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 7, 11, .7), transparent 38%), linear-gradient(0deg, rgba(6, 7, 11, .75), transparent 30%);
}

.hero__now {
  position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%);
  width: min(360px, 40vw); z-index: 3;
}
.hero__count { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .15em; }
.hero__count i { width: 42px; height: 1px; background: var(--paper-dim); }
.hero__count span:first-child { color: var(--accent); font-weight: 500; }
.hero__kicker { margin: 0 0 8px; font-size: 12px; color: var(--paper-dim); letter-spacing: .08em; line-height: 1.6; }
.hero__latin {
  margin: 0; font-family: var(--f-latin); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 5.2vw, 84px); line-height: .9; letter-spacing: .01em;
}
.hero__title { margin: 12px 0 26px; font-family: var(--f-disp); font-size: clamp(15px, 1.35vw, 20px); line-height: 1.5; }
.hero__links { display: flex; gap: 10px; }
.hero__links a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 0 20px; border-radius: 99px; text-decoration: none;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .16em;
  border: 1px solid var(--paper-faint); transition: background .3s, color .3s, border-color .3s;
}
.hero__view:hover { border-color: var(--paper); }
.hero__play { background: var(--accent); color: var(--ink); border-color: var(--accent) !important; font-weight: 500; }
.hero__play:hover { background: var(--paper); }
.hero__now.is-swap .hero__kicker,
.hero__now.is-swap .hero__latin,
.hero__now.is-swap .hero__title { animation: swapOut .45s var(--ease-in) forwards; }
.hero__now.is-in .hero__kicker { animation: swapIn .8s var(--ease) both; }
.hero__now.is-in .hero__latin { animation: swapIn .8s .06s var(--ease) both; }
.hero__now.is-in .hero__title { animation: swapIn .8s .12s var(--ease) both; }
@keyframes swapOut { to { opacity: 0; transform: translateY(-14px); filter: blur(6px); } }
@keyframes swapIn { from { opacity: 0; transform: translateY(22px); filter: blur(8px); } }

.hero__copy {
  position: absolute; right: calc(var(--gut) + 64px); top: 50%; transform: translateY(-50%);
  margin: 0; z-index: 3; display: flex; flex-direction: row-reverse; gap: 18px; align-items: flex-start;
}
.hero__copy-sub { writing-mode: vertical-rl; font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; color: var(--paper-dim); font-weight: 400; }
.hero__copy-main {
  writing-mode: vertical-rl; font-family: var(--f-disp); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 68px); line-height: 1.12; letter-spacing: .08em;
  display: flex; gap: .1em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.hero__copy-main span:last-child { margin-top: 1.6em; color: var(--red); }

.hero__index {
  position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0; z-index: 4; display: grid; gap: 6px;
}
.hero__index button {
  --prog: 0;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; cursor: pointer; background: transparent; position: relative;
  font-family: var(--f-mono); font-size: 11px; color: var(--paper-dim);
}
.hero__index button::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  background: conic-gradient(var(--paper) calc(var(--prog) * 1turn), transparent 0);
  -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 90%);
  mask: radial-gradient(closest-side, transparent 88%, #000 90%);
}
.hero__index button[aria-current='true'] { color: var(--paper); }
.hero__index button:hover { color: var(--paper); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; margin: 0;
  display: grid; justify-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--paper-dim);
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--paper), transparent); animation: drop 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero__big {
  position: absolute; left: var(--gut); bottom: -.13em; margin: 0; z-index: 2; pointer-events: none;
  display: flex; gap: .18em; font-family: var(--f-latin); font-weight: 900; line-height: 1;
  font-size: clamp(64px, 14vw, 260px); letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(241, 234, 219, .35);
}

/* ============ BAND ============ */
.band { position: relative; z-index: 5; background: var(--red); color: var(--ink); overflow: hidden; transform: rotate(-2.2deg) scale(1.04); margin: -40px 0 0; padding: 12px 0; }
.band__track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--f-latin); font-weight: 900; font-size: 26px; letter-spacing: .04em; white-space: nowrap; }
.band__track span:nth-child(3n) { font-family: var(--f-disp); font-weight: 400; font-size: 20px; align-self: center; }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ============ WORLD ============ */
.world { position: relative; padding: clamp(120px, 16vw, 220px) var(--gut) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px 5vw; align-items: center; }
.world__head { margin: 0 0 32px; font-family: var(--f-disp); font-weight: 400; font-size: clamp(20px, 3.1vw, 52px); line-height: 1.35; letter-spacing: .02em; }
.world__head .line { display: block; white-space: nowrap; }
.world__text { margin: 0; color: var(--paper-dim); max-width: 36em; }
.world__text b { color: var(--paper); font-weight: 700; }
.world__frames { position: relative; aspect-ratio: 1; }
.orb { position: absolute; margin: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(241, 234, 219, .5), 0 30px 80px rgba(0, 0, 0, .7); }
.orb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transition: transform 1.6s var(--ease); }
.orb.is-in img { transform: scale(1); }
.orb--a { width: 64%; aspect-ratio: 1; left: 0; top: 4%; }
.orb--a img { object-position: 58% 40%; }
.orb--b { width: 40%; aspect-ratio: 1; right: 0; top: 0; }
.orb--b img { object-position: 55% 50%; }
.orb--c { width: 46%; aspect-ratio: 1; right: 6%; bottom: 0; }
.orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 60px 10px rgba(6, 7, 11, .75); }
.world__route {
  grid-column: 1 / -1; list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); position: relative;
}
.world__route::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 4px; background: linear-gradient(90deg, #ffd400, #ff7a1a, #ff4fa3, #1fbf6b, #37e2ff, #ff2a3c); border-radius: 2px; }
.world__route li a { display: grid; gap: 6px; text-decoration: none; padding-top: 32px; position: relative; font-size: 13px; line-height: 1.45; padding-right: 10px; }
.world__route li a::before { content: ''; position: absolute; top: 3px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 4px solid var(--c); transition: transform .3s var(--ease); }
.world__route li a:hover::before { transform: scale(1.35); }
.world__route small { font-family: var(--f-mono); color: var(--c); letter-spacing: .12em; font-size: 11px; }

/* ============ SECTION HEAD ============ */
.sec-head { padding: 0 var(--gut); display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 32px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head__title { margin: 0; font-family: var(--f-latin); font-weight: 900; font-size: clamp(72px, 13vw, 200px); line-height: .82; letter-spacing: -.01em; }
.sec-head__title span { color: var(--red); }
.sec-head__note { margin: 0 0 .6em; color: var(--paper-dim); font-family: var(--f-disp); font-size: clamp(14px, 1.4vw, 19px); }

/* ============ WORKS ============ */
.works { padding: clamp(60px, 8vw, 120px) 0 40px; }
.work {
  --accent: #fff;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 5vw;
  padding: clamp(80px, 10vw, 150px) var(--gut); align-items: center; isolation: isolate;
}
.work + .work { border-top: 1px solid var(--paper-faint); }
.work::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at var(--gx, 70%) 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity 1.2s;
}
.work.is-in::before { opacity: 1; }
.work--flip { direction: rtl; }
.work--flip > * { direction: ltr; }
.work--flip::before { --gx: 30%; }
.work__num {
  position: absolute; top: clamp(20px, 4vw, 60px); right: var(--gut); z-index: -1;
  font-family: var(--f-latin); font-weight: 900; font-size: clamp(140px, 26vw, 420px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(var(--py, 0px));
}
.work--flip .work__num { right: auto; left: var(--gut); }

.work__lens { position: relative; margin: 0; aspect-ratio: 1; width: min(100%, 600px); justify-self: center; }
.work__lens-inner {
  position: absolute; inset: 11%; border-radius: 50%; overflow: hidden; background: var(--ink-3);
  box-shadow: 0 0 0 1px rgba(241, 234, 219, .7), 0 40px 100px rgba(0, 0, 0, .75);
  clip-path: circle(0% at 50% 50%); transition: clip-path 1.4s var(--ease);
}
.work.is-in .work__lens-inner { clip-path: circle(50% at 50% 50%); }
.work__lens-inner video, .work__lens-inner img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transition: transform 2s var(--ease); }
.work.is-in .work__lens-inner video, .work.is-in .work__lens-inner img { transform: scale(1.12); }
/* 動画は下端に字幕・UIが焼き込まれているので上寄りで切り抜く */
.work__lens-inner video { transform-origin: 50% 22%; }
.work.is-in .work__lens-inner video { transform: scale(1.3); }
.work__lens-inner::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 70px 14px rgba(6, 7, 11, .7); pointer-events: none; }
.ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.ring--1 { inset: 4%; border: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent); animation: spin 40s linear infinite; }
.ring--2 {
  inset: 0; background: conic-gradient(from 0deg, var(--accent) 0 8%, transparent 8% 25%, var(--accent) 25% 27%, transparent 27% 60%, var(--accent) 60% 64%, transparent 64%);
  -webkit-mask: radial-gradient(closest-side, transparent 96.5%, #000 97%); mask: radial-gradient(closest-side, transparent 96.5%, #000 97%);
  animation: spin 18s linear infinite reverse;
}
.ring--3 { inset: 8%; border: 1px solid rgba(241, 234, 219, .12); }
.work__lens-tag {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); z-index: 2;
  background: var(--accent); color: var(--ink); font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em;
  padding: 4px 12px; border-radius: 99px; white-space: nowrap;
}

.work__body { min-width: 0; }
.work__kicker { margin: 0 0 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); line-height: 1.6; }
.work__latin { margin: 0; font-family: var(--f-latin); font-weight: 900; font-size: clamp(44px, 6vw, 96px); line-height: .88; text-transform: uppercase; }
.work__title { margin: 14px 0 22px; font-family: var(--f-disp); font-weight: 400; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.4; }
.work__tagline { margin: 0 0 20px; font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; }
.work__quote { margin: 0 0 20px; padding-left: 16px; border-left: 3px solid var(--accent); font-family: var(--f-disp); font-size: 15px; color: var(--paper-dim); }
.work__story { margin: 0 0 28px; color: var(--paper-dim); font-size: 15px; }
.work__story p { margin: 0 0 .9em; }
.work__stations { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; }
.work__stations li { font-size: 12px; padding: 3px 10px 3px 8px; border-radius: 4px; background: var(--paper); color: var(--ink); font-weight: 700; position: relative; }
.work__stations li:not(:last-child)::after { content: '▶'; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); font-size: 8px; color: var(--accent); }
.work__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin: 0 0 28px; background: var(--paper-faint); border: 1px solid var(--paper-faint); }
.work__stats div { background: var(--ink); padding: 16px 16px 14px; }
.work__stats dt { font-family: var(--f-latin); font-weight: 900; font-size: 46px; line-height: 1; color: var(--accent); }
.work__stats dt small { font-family: var(--f-mono); font-weight: 400; font-size: 10px; letter-spacing: .14em; color: var(--paper-dim); margin-left: 6px; }
.work__stats dd { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--paper-dim); }
.work__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 30px; font-size: 12px; color: var(--paper-dim); }
.urgency { display: inline-flex; align-items: center; gap: 8px; }
.urgency i { width: 14px; height: 6px; border-radius: 2px; background: var(--paper-faint); }
.urgency i.on { background: var(--accent); }
.tech { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tech li { border: 1px solid var(--paper-faint); border-radius: 99px; padding: 1px 10px; font-family: var(--f-mono); font-size: 11px; }
.work__cast { display: flex; gap: 8px; margin: 0 0 30px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.work__cast figure { margin: 0; flex: 0 0 auto; width: 76px; text-align: center; }
.work__cast .face { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--ink-3); display: grid; place-items: center; font-size: 30px; border: 1px solid var(--paper-faint); }
.work__cast .face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.work__cast .face img.sprite { object-fit: contain; padding: 6px; }
.work__cast figcaption { font-size: 11px; line-height: 1.4; margin-top: 6px; color: var(--paper-dim); }
.work__actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.btn-play {
  position: relative; display: inline-flex; align-items: center; gap: 16px; min-height: 60px;
  padding: 0 34px 0 30px; border-radius: 99px; text-decoration: none; overflow: hidden;
  background: var(--accent); color: var(--ink); font-family: var(--f-latin); font-weight: 900; font-size: 24px; letter-spacing: .08em;
  transition: transform .3s var(--ease);
}
.btn-play::before { content: ''; position: absolute; inset: 0; background: var(--paper); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn-play > * { position: relative; }
.btn-play:hover::before { transform: none; }
.btn-play:active { transform: scale(.97); }
.btn-play small { font-family: var(--f-body); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.work__cta { font-family: var(--f-disp); font-size: 14px; color: var(--paper-dim); margin: 0; }
details.controls { margin-top: 22px; font-size: 13px; color: var(--paper-dim); }
details.controls summary { cursor: pointer; font-family: var(--f-mono); letter-spacing: .14em; font-size: 12px; color: var(--paper); list-style: none; }
details.controls summary::-webkit-details-marker { display: none; }
details.controls summary::before { content: '+'; display: inline-block; width: 1.2em; color: var(--accent); }
details.controls[open] summary::before { content: '−'; }
details.controls ul { margin: 10px 0 0; padding-left: 1.2em; }

/* ============ CAST ============ */
.cast { padding: clamp(100px, 12vw, 180px) 0 clamp(60px, 8vw, 120px); background: linear-gradient(var(--ink), var(--ink-2) 20%, var(--ink-2) 80%, var(--ink)); }
.cast__label { padding: 0 var(--gut); margin: 0 0 22px; font-family: var(--f-latin); font-weight: 800; font-size: 28px; letter-spacing: .06em; }
.cast__label small { font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--paper-dim); margin-left: 12px; letter-spacing: .04em; }
.aces {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 26vw, 360px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 28px; margin-bottom: 70px;
  scrollbar-width: thin; scrollbar-color: var(--red) transparent; cursor: grab;
}
.aces.is-drag { cursor: grabbing; scroll-snap-type: none; }
.ace { scroll-snap-align: start; position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4.6; background: var(--ink-3); isolation: isolate; }
.ace img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1s var(--ease), filter .6s; filter: saturate(.85); user-select: none; -webkit-user-drag: none; }
.ace:hover img { transform: scale(1.05); filter: saturate(1.05); }
.ace::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(6, 7, 11, .95)); z-index: 1; }
.ace figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.ace__no { font-family: var(--f-latin); font-weight: 900; font-size: 64px; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--paper); position: absolute; top: 14px; left: 16px; z-index: 2; }
.ace__name { font-family: var(--f-disp); font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
.ace__role { font-size: 12px; line-height: 1.6; color: var(--paper-dim); margin: 0 0 10px; }
.ace__pitch { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--red); border-radius: 4px; padding: 2px 8px; }
.commuters { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; padding: 0 var(--gut); }
.commuter { margin: 0; }
.commuter .face { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--ink-3); border: 1px solid var(--paper-faint); display: grid; place-items: center; }
.commuter .face img { width: 100%; height: 100%; object-fit: cover; }
.commuter .face img.sprite { object-fit: contain; padding: 10%; }
.commuter figcaption { font-size: 13px; font-weight: 700; margin-top: 8px; line-height: 1.4; }
.commuter figcaption small { display: block; font-weight: 400; font-size: 11px; color: var(--paper-dim); }

/* ============ OPENING ============ */
.opening { padding: clamp(80px, 10vw, 150px) 0; }
.screen { position: relative; margin: 0 var(--gut); border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--paper-faint), 0 50px 120px rgba(0, 0, 0, .8); }
.screen video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.screen__play {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  border: 0; cursor: pointer; background: radial-gradient(circle, rgba(6, 7, 11, .2), rgba(6, 7, 11, .7));
  font-family: var(--f-disp); font-size: clamp(16px, 2vw, 22px);
}
.screen__play span { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--red); color: var(--ink); font-size: 28px; padding-left: 6px; transition: transform .4s var(--ease); box-shadow: 0 0 0 12px rgba(255, 61, 46, .2); }
.screen__play:hover span { transform: scale(1.1); }
.screen__play small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--paper-dim); }
.screen.is-playing .screen__play { display: none; }

/* ============ GAME OVER ============ */
.gameover { position: relative; height: 320vh; }
.gameover__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.gameover__canvas, .gameover__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.gameover__fallback { display: none; }
.gameover__fallback img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.no-webgl .gameover__canvas { display: none; }
.no-webgl .gameover__fallback { display: block; }
.gameover__hud { position: absolute; left: var(--gut); top: 96px; z-index: 3; width: min(280px, 60vw); }
.gameover__meter { margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; font-family: var(--f-latin); font-weight: 900; }
.gameover__meter span { font-family: var(--f-disp); font-weight: 400; font-size: 14px; }
.gameover__meter b { font-size: 56px; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.gameover__bar { height: 10px; border-radius: 5px; background: rgba(241, 234, 219, .15); overflow: hidden; }
.gameover__bar i { display: block; height: 100%; width: 78%; background: linear-gradient(90deg, #ffd400, var(--red)); }
.gameover__stage.is-limit .gameover__bar i { animation: blink .25s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.gameover__word {
  position: absolute; left: 50%; top: 50%; margin: 0; z-index: 3; text-align: center; pointer-events: none;
  transform: translate(-50%, -50%) scale(.92); opacity: 0; filter: blur(10px);
  font-family: var(--f-disp); font-size: clamp(44px, 9vw, 130px); line-height: 1.1;
  text-shadow: 0 6px 50px rgba(0, 0, 0, .8);
  transition: opacity .5s, transform .7s var(--ease), filter .5s;
}
.gameover__word.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
/* オチ（お尻の茶色い跡）は画面左下にあるので、文字は右側に置いて隠さない */
.gameover__word--end { font-family: var(--f-latin); font-weight: 900; font-size: clamp(90px, 16vw, 260px); line-height: .82; color: var(--red); top: 14%; bottom: auto; left: auto; right: var(--gut); transform: translate(0, 0) scale(.96); text-align: right; transform-origin: right top; }
.gameover__word--end.is-on { transform: translate(0, 0) scale(1); }
.gameover__caption {
  position: absolute; right: var(--gut); bottom: 10%; z-index: 3; margin: 0; display: grid; gap: 12px; justify-items: end; text-align: right;
  font-family: var(--f-disp); font-size: clamp(16px, 1.8vw, 22px);
  opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease);
}
.gameover__caption.is-on { opacity: 1; transform: none; }
.gameover__caption a { font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; padding: 10px 20px; border: 1px solid var(--paper); border-radius: 99px; text-decoration: none; }
.gameover__caption a:hover { background: var(--paper); color: var(--ink); }

/* ============ PLAY ============ */
.play { padding: clamp(110px, 14vw, 200px) var(--gut) clamp(80px, 10vw, 140px); }
.play__title { margin: 0 0 clamp(40px, 6vw, 80px); font-family: var(--f-disp); font-weight: 400; font-size: clamp(38px, 7vw, 110px); line-height: 1.12; display: grid; }
.play__title span:last-child { color: var(--red); }
.play__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--paper-faint); border: 1px solid var(--paper-faint); }
.pcard { --accent: #fff; position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 24px 22px 22px; background: var(--ink); text-decoration: none; overflow: hidden; min-height: 280px; isolation: isolate; }
.pcard__img { position: absolute; inset: 0; z-index: -1; opacity: .18; transition: opacity .5s, transform 1s var(--ease); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent, var(--ink) 85%); }
.pcard:hover .pcard__img { opacity: .5; transform: scale(1.06); }
.pcard__no { font-family: var(--f-latin); font-weight: 900; font-size: 22px; color: var(--accent); }
.pcard__title { margin: 0; font-family: var(--f-disp); font-weight: 400; font-size: 20px; line-height: 1.4; align-self: end; }
.pcard__go { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--paper-dim); }
.pcard__go b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 18px; transition: transform .4s var(--ease); }
.pcard:hover .pcard__go b { transform: rotate(45deg); }

/* ============ FOOTER ============ */
.site-footer { padding: 60px var(--gut) 110px; border-top: 1px solid var(--paper-faint); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--paper-dim); overflow: hidden; }
.site-footer__big { margin: 0 0 20px; font-family: var(--f-latin); font-weight: 900; font-size: clamp(80px, 22vw, 360px); line-height: .8; letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1px rgba(241, 234, 219, .3); }
.site-footer p { margin: 0 0 8px; color: var(--paper); }
.site-footer small { letter-spacing: .04em; font-family: var(--f-body); }

/* ============ GAUGE ============ */
.gauge {
  position: fixed; right: var(--gut); bottom: 18px; z-index: 70;
  display: grid; grid-template-columns: auto 120px auto; grid-template-rows: auto auto; align-items: center; gap: 4px 10px;
  padding: 10px 14px; border-radius: 12px; background: rgba(6, 7, 11, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--paper-faint); font-size: 11px;
  transition: border-color .3s;
}
.gauge__label { font-family: var(--f-disp); font-size: 11px; }
.gauge__bar { height: 6px; border-radius: 3px; background: var(--paper-faint); overflow: hidden; }
.gauge__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1fbf6b, #ffd400 50%, var(--red)); background-size: 120px 100%; }
.gauge__pct { font-family: var(--f-latin); font-weight: 900; font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge__state { grid-column: 1 / -1; font-size: 11px; color: var(--paper-dim); }
.gauge.is-danger { border-color: var(--red); animation: shake .35s infinite; }
.gauge.is-danger .gauge__state { color: var(--red); }
@keyframes shake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1px, 1px); } 75% { transform: translate(1px, -1px); } }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.split .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(8deg); filter: blur(6px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s; transition-delay: calc(var(--i) * 28ms); }
.is-in .split .ch, .split.is-in .ch { opacity: 1; transform: none; filter: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .gnav { display: none; }
  .hero__now { top: auto; bottom: 112px; transform: none; width: auto; right: var(--gut); }
  .hero__copy { top: 92px; transform: none; right: var(--gut); }
  .hero__copy-main { font-size: clamp(26px, 7vw, 44px); }
  .hero__copy-sub { display: none; }
  /* 縦書きコピーと重ならないよう、番号は左下の横一列へ */
  .hero__index { top: auto; bottom: 62px; right: auto; left: calc(var(--gut) - 4px); transform: none; gap: 0; grid-auto-flow: column; }
  .hero__index button { width: 38px; height: 38px; }
  .hero__big { font-size: clamp(64px, 21vw, 180px); }
  .world { grid-template-columns: 1fr; }
  .world__head { font-size: min(6.2vw, 44px); }
  .world__frames { max-width: 520px; width: 100%; justify-self: center; }
  .world__route { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .world__route::before { display: none; }
  .work, .work--flip { grid-template-columns: minmax(0, 1fr); direction: ltr; }
  .work__num { font-size: 34vw; top: 16px; }
  .work__lens { width: min(100%, 460px); }
  .play__grid { grid-template-columns: repeat(2, 1fr); }
  .sec-head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand__text small { display: none; }
  .hero__latin { font-size: 42px; }
  .hero__links a { padding: 0 16px; }
  .hero__index { bottom: 70px; }
  .hero__now { bottom: 116px; }
  .hero__scroll { display: none; }
  .world__route { grid-template-columns: repeat(2, 1fr); }
  .play__grid { grid-template-columns: 1fr; }
  .pcard { min-height: 200px; }
  .gauge { left: var(--gut); right: var(--gut); grid-template-columns: auto 1fr auto; }
  .gauge__state { display: none; }
  .gameover__word--end { top: 150px; font-size: 20vw; }
  .gameover__caption { bottom: 7%; }
  .btn-play { font-size: 20px; min-height: 56px; }
}

/* ============ 演出の軽減 ============ */
.reduced *, .reduced *::before, .reduced *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
.reduced body::after { display: none; }
.reduced .reveal, .reduced .split .ch { opacity: 1; transform: none; filter: none; }
.reduced .work__lens-inner { clip-path: circle(50% at 50% 50%); }
.reduced .hero, .reduced .gameover { height: auto; }
.reduced .hero__stage, .reduced .gameover__stage { position: relative; }
.reduced .gameover__word { display: none; }
.reduced .gameover__word--end, .reduced .gameover__caption { display: grid; opacity: 1; filter: none; }
.reduced .loader { display: none; }
