/* =========================================================
   EXPLOSION v3 — "3つの星は、ひとつの爆発から。"
   Readability first: Japanese headlines say one thing per screen;
   motion explains (hezo-style) and navigates (ultrasupernew-style).
   ========================================================= */
:root {
  --void: #05070F;
  --navy: #0B1430;
  --navy-2: #131F42;
  --ice: #EEF6FF;
  --text: #D5DEEF;
  --slate: #8A96B3;
  --cyan: #5CE1FF;
  --studio: #5CE1FF;   /* AI STUDIO */
  --academy: #FFC44D;  /* AI ACADEMY */
  --events: #FF5C8A;   /* EVENTS */
  --works: #A98BFF;    /* AI WORKS */
  --line-green: #06C755;
  --ink: #0A1022;
  --hair: rgb(170 200 255 / .14);
  --acc: var(--cyan);

  --f-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --f-en: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gut: clamp(20px, 5vw, 64px);
  --hud-h: 60px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--void); color: var(--text); font-family: var(--f-ja); font-size: 17px; line-height: 1.95; letter-spacing: .03em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--cyan); color: var(--ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.en { font-family: var(--f-en); font-weight: 800; font-stretch: 112%; letter-spacing: .01em; text-transform: uppercase; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.wrap { padding-inline: var(--gut); max-width: 1280px; margin-inline: auto; }

/* page accent per world */
body[data-page="studio"] { --acc: var(--studio); }
body[data-page="academy"] { --acc: var(--academy); }
body[data-page="events"] { --acc: var(--events); }
body[data-page="contact"] { --acc: var(--line-green); }

/* ---------- light canvas (background particles) ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; transition: opacity .8s var(--ease-out); }
body:not([data-page="home"]) #gl { opacity: .22; }
#fx { z-index: 70 !important; }
/* keep text readable over the light */
.scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 0% 100%, rgb(5 7 15 / .85), rgb(5 7 15 / 0) 60%); }

/* ---------- preloader ---------- */
#preloader { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
#preloader .count { position: absolute; left: var(--gut); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); font-family: var(--f-en); font-weight: 800; font-size: clamp(64px, 16vw, 180px); line-height: .85; color: var(--slate); font-variant-numeric: tabular-nums; display: flex; }
#preloader .fuse { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, #2F6BFF, var(--cyan)); transform-origin: 0 50%; transform: scaleX(0); }
html.seen #preloader .count { display: none; }
body.booting main, body.booting .hud, body.booting .foot { visibility: hidden; }

/* ---------- HUD ---------- */
.hud { position: fixed; z-index: 60; inset: 0 0 auto 0; height: calc(var(--hud-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gut) 0; display: flex; align-items: center; gap: 18px; background: linear-gradient(180deg, rgb(5 7 15 / .9), rgb(5 7 15 / 0)); transition: transform .35s var(--ease-out); }
.hud.is-hidden { transform: translateY(-110%); }
.mark { display: flex; align-items: center; gap: 10px; font-family: var(--f-en); font-weight: 800; font-stretch: 112%; font-size: 16px; color: #fff; }
.mark i { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px var(--cyan), 0 0 30px 8px rgb(92 225 255 / .35); }
.hud .sp { flex: 1; }
.hud nav { display: none; gap: 4px; }
.hud nav a { font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 8px; color: var(--slate); transition: color .2s; }
.hud nav a:hover, .hud nav a[aria-current] { color: #fff; }
.hud nav a[aria-current]::after { content: ""; display: block; height: 2px; margin-top: 2px; background: var(--acc); border-radius: 2px; }
@media (min-width: 1100px) { .hud nav { display: flex; } .menu-btn { display: none !important; } }
.line-pill { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; background: var(--line-green); color: #fff; font-weight: 700; font-size: 14px; }
.line-pill svg, .btn svg { width: 20px; height: 20px; flex: none; }
@media (min-width: 768px) { .line-pill { display: inline-flex; } }
.menu-btn { height: 42px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.menu-btn .bars { width: 24px; height: 10px; position: relative; }
.menu-btn .bars i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-io), top .3s var(--ease-io); }
.menu-btn .bars i:first-child { top: 0; } .menu-btn .bars i:last-child { top: 8px; }
body.menu-open .menu-btn .bars i:first-child { top: 4px; transform: rotate(45deg); }
body.menu-open .menu-btn .bars i:last-child { top: 4px; transform: rotate(-45deg); }

/* ---------- menu ---------- */
#menu { position: fixed; inset: 0; z-index: 55; background: var(--navy); visibility: hidden; clip-path: circle(0 at 95% 30px); display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: calc(var(--hud-h) + 20px) var(--gut) calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
#menu.open { visibility: visible; }
.m-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.m-item b { font-family: var(--f-en); font-weight: 800; font-stretch: 112%; font-size: clamp(28px, 7vw, 56px); line-height: 1.05; color: #fff; }
.m-item small { grid-column: 1; font-size: 14px; color: var(--slate); line-height: 1.5; }
.m-item .dot { grid-row: 1 / span 2; grid-column: 2; width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--cyan)); box-shadow: 0 0 16px var(--c, var(--cyan)); }
.m-item[aria-current] b { color: var(--c, var(--cyan)); }

/* ---------- buttons ---------- */
.btn { --h: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 28px; border-radius: 14px; font-weight: 700; font-size: 16px; letter-spacing: .04em; transition: transform .12s, filter .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 10px 30px -10px rgb(6 199 85 / .7); }
.btn-line:hover { filter: brightness(1.08); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px rgb(238 246 255 / .35); color: #fff; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--acc); color: var(--acc); }
.link { font-weight: 700; color: #fff; border-bottom: 2px solid var(--acc); padding-bottom: 2px; }
.link:hover { color: var(--acc); }

/* ---------- layout ---------- */
main { position: relative; z-index: 2; }
.page { position: relative; }
.page[hidden] { display: none; }
.sec { padding-block: clamp(88px, 12vw, 160px); position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--acc); font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.h1 { font-size: clamp(30px, 6.4vw, 84px); font-weight: 900; line-height: 1.25; letter-spacing: .02em; color: #fff; font-feature-settings: "palt"; text-wrap: balance; }
.h2 { font-size: clamp(30px, 4.6vw, 60px); font-weight: 900; line-height: 1.3; letter-spacing: .02em; color: #fff; font-feature-settings: "palt"; text-wrap: balance; }
.h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.5; color: #fff; }
.lead { font-size: clamp(17px, 1.2vw + 12px, 21px); line-height: 2; color: var(--text); max-width: 32em; }
.muted { color: var(--slate); }
.note { font-size: 13px; color: var(--slate); margin-top: 14px; }
.grid2 { display: grid; gap: 40px; }
@media (min-width: 960px) { .grid2 { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }

/* reveal: visible by default, JS adds motion */
html.js .rv { opacity: 0; transform: translateY(22px); }
html.js .rv.in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }

/* =============== HOME: hero =============== */
.hero { min-height: 100svh; display: grid; align-content: end; padding: calc(var(--hud-h) + 40px) var(--gut) clamp(40px, 8vh, 88px); position: relative; }
.hero .who { font-size: clamp(20px, 2.2vw, 30px); font-weight: 700; color: #fff; }
.roles { position: relative; height: 1.3em; overflow: hidden; font-size: clamp(26px, 7vw, 104px); font-weight: 900; line-height: 1.3; color: #fff; margin: 4px 0 10px; font-feature-settings: "palt"; }
.roles span { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(110%); }
.roles span.on { transform: none; transition: transform .8s var(--ease-out); }
.roles span.off { transform: translateY(-110%); transition: transform .8s var(--ease-out); }
.roles span b { color: var(--c); font-weight: 900; }
.hero .punch { font-size: clamp(20px, 2.4vw, 32px); font-weight: 700; color: #fff; margin-bottom: 26px; }
.hero .punch em { font-style: normal; background: linear-gradient(90deg, var(--studio), var(--academy), var(--events)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.role-dots { display: flex; gap: 8px; margin-top: 22px; }
.role-dots i { width: 28px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .2); overflow: hidden; position: relative; }
.role-dots i.on::after { content: ""; position: absolute; inset: 0; background: var(--c); transform-origin: left; animation: dotfill 2.6s linear forwards; }
@keyframes dotfill { from { transform: scaleX(0); } }

/* =============== HOME: universe (ultrasupernew-style fly-through) =============== */
.universe { position: relative; height: 620svh; }
.universe .stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.universe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.u-label { position: absolute; left: 0; top: 0; transform: translate(-50%, 28px); text-align: center; white-space: nowrap; opacity: 0; transition: opacity .4s; pointer-events: none; }
.u-label.show { opacity: 1; pointer-events: auto; }
.u-label b { display: block; font-family: var(--f-en); font-weight: 800; font-stretch: 112%; font-size: clamp(16px, 1.6vw, 22px); color: #fff; letter-spacing: .04em; }
.u-label small { display: block; font-size: 13px; color: var(--text); line-height: 1.5; }
.u-label::before { content: ""; position: absolute; left: 50%; top: -34px; width: 64px; height: 64px; translate: -50% 0; border-radius: 50%; }
.u-intro, .u-panel, .u-outro { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility 0s .5s; transform: translateY(18px); }
.u-intro.show, .u-panel.show, .u-outro.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.u-intro { top: calc(var(--hud-h) + 24px); text-align: center; }
.u-outro { bottom: clamp(24px, 6vh, 64px); text-align: center; }
.u-outro .h2 { font-size: clamp(26px, 3.6vw, 48px); }
.u-panel { bottom: clamp(28px, 6vh, 64px); padding: 24px; border-radius: 20px; background: rgb(8 12 28 / .82); box-shadow: inset 0 0 0 1px var(--hair); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.u-panel .eyebrow { color: var(--c); }
.u-panel .h2 { font-size: clamp(26px, 3.4vw, 44px); }
.u-panel p { margin-top: 10px; }
.u-panel ul { list-style: none; padding: 0; margin: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.u-panel li { font-size: 14px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); color: #fff; }
.u-panel .link { border-color: var(--c); }
@media (min-width: 960px) {
  .u-panel { left: auto; right: var(--gut); width: min(520px, 42vw); top: 50%; bottom: auto; transform: translateY(-40%); }
  .u-panel.show { transform: translateY(-50%); }
}
.u-progress { position: absolute; right: 18px; top: 50%; translate: 0 -50%; display: grid; gap: 10px; z-index: 3; }
.u-progress i { width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / .2); transition: background .3s, transform .3s; }
.u-progress i.on { background: var(--c, #fff); transform: scale(1.4); box-shadow: 0 0 10px var(--c, #fff); }
@media (max-width: 959px) { .u-progress { display: none; } }

/* reduced motion / no-JS fallback: plain list */
.universe.static { height: auto; }
.universe.static .stage { position: relative; height: auto; overflow: visible; padding: 100px var(--gut); }
.universe.static canvas, .universe.static .u-label, .universe.static .u-progress { display: none; }
.universe.static .u-intro, .universe.static .u-panel, .universe.static .u-outro { position: static; opacity: 1; visibility: visible; transform: none; margin-bottom: 20px; width: auto; }

/* =============== explainer animations (hezo-style) =============== */
.explain { position: relative; border-radius: 24px; padding: clamp(20px, 3vw, 36px); background: linear-gradient(160deg, rgb(19 31 66 / .8), rgb(8 12 28 / .8)); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.explain .cap { font-size: 13px; color: var(--slate); margin-bottom: 16px; display: flex; justify-content: space-between; gap: 12px; }
.explain .conclusion { margin-top: 22px; font-size: clamp(20px, 2vw, 26px); font-weight: 900; color: #fff; }
.explain .conclusion em { font-style: normal; color: var(--acc); }

/* studio: photo → storyboard → film */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 20px); align-items: end; position: relative; }
.steps3 > div { min-width: 0; }
.steps3 .card.film { width: auto; }
.steps3 .card { position: relative; aspect-ratio: 9/14; border-radius: 14px; overflow: hidden; background: var(--navy-2); box-shadow: 0 0 0 1px var(--hair); }
.steps3 .card img { width: 100%; height: 100%; object-fit: cover; }
.steps3 .card.photo img { filter: saturate(.8); }
.steps3 .card.film .play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; translate: -50% -50%; border-radius: 50%; background: rgb(5 7 15 / .6); display: grid; place-items: center; }
.steps3 .card.film .bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .25); overflow: hidden; }
.steps3 .card.film .bar i { display: block; height: 100%; width: 0; background: var(--studio); }
.steps3 .tag { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: #fff; text-align: center; }
.steps3 .tag small { display: block; font-weight: 400; color: var(--slate); font-size: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; }
.facts span { font-size: 15px; color: var(--text); }
.facts b { font-family: var(--f-en); font-size: 28px; font-weight: 800; color: #fff; margin-right: 4px; font-variant-numeric: tabular-nums; }

/* academy: tasks shrink */
.tasks { display: grid; gap: 14px; }
.task { display: grid; grid-template-columns: 8.5em 1fr 4em; gap: 12px; align-items: center; font-size: 15px; }
.task .t { color: #fff; font-weight: 700; }
.task .track { height: 14px; border-radius: 8px; background: rgb(255 255 255 / .06); overflow: hidden; }
.task .track i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, #8A96B3, #B8C2DA); transition: width 1.2s var(--ease-io), background .6s; }
.explain.on .task .track i { width: var(--w2); background: linear-gradient(90deg, #FFB020, var(--academy)); }
.task .m { font-family: var(--f-en); font-weight: 800; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.ai-switch { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 700; color: #fff; }
.ai-switch .sw { width: 50px; height: 28px; border-radius: 999px; background: rgb(255 255 255 / .15); position: relative; transition: background .3s; }
.ai-switch .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-io); }
.explain.on .ai-switch .sw { background: var(--academy); }
.explain.on .ai-switch .sw::after { transform: translateX(22px); }

/* events: plan → promote → day → after, people gather */
.flow4 { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.flow4 svg { position: absolute; left: 12%; right: 12%; top: 22px; width: 76%; height: 4px; overflow: visible; }
.flow4 svg line { stroke: var(--events); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.flow4 .node { position: relative; z-index: 1; text-align: center; }
.flow4 .node i { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; background: var(--navy-2); box-shadow: inset 0 0 0 2px var(--hair); font-style: normal; font-family: var(--f-en); font-weight: 800; color: #fff; transition: background .3s, box-shadow .3s; }
.flow4 .node.lit i { background: var(--events); box-shadow: 0 0 20px rgb(255 92 138 / .6); color: #fff; }
.flow4 .node b { display: block; color: #fff; font-size: 15px; }
.flow4 .node small { display: block; font-size: 12px; color: var(--slate); line-height: 1.5; }
.venue { position: relative; height: 150px; border-radius: 16px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.venue canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.venue .count { position: absolute; right: 14px; top: 10px; font-family: var(--f-en); font-weight: 800; font-size: 34px; color: #fff; font-variant-numeric: tabular-nums; }
.venue .count small { font-family: var(--f-ja); font-size: 13px; font-weight: 700; color: var(--slate); margin-left: 4px; }

/* chat (LINE) */
.chat { max-width: 420px; border-radius: 26px; padding: 18px; background: #7494C0; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.chat .top { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.chat .top i { width: 30px; height: 30px; border-radius: 50%; background: var(--void); display: grid; place-items: center; }
.chat .top i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px var(--cyan); }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.6; margin: 8px 0; color: #111; background: #fff; }
.bubble.me { margin-left: auto; background: #8DE055; }
html.js .chat .bubble { opacity: 0; transform: translateY(10px) scale(.96); }
html.js .chat .bubble.in { opacity: 1; transform: none; transition: opacity .4s, transform .5s var(--ease-out); }

/* =============== sub pages =============== */
.page-hero { min-height: 86svh; display: grid; align-content: end; padding: calc(var(--hud-h) + 40px) var(--gut) clamp(40px, 8vh, 88px); max-width: 1280px; margin-inline: auto; }
.page-hero .name { font-family: var(--f-en); font-weight: 800; font-stretch: 112%; color: var(--acc); font-size: clamp(18px, 2vw, 24px); letter-spacing: .08em; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.page-hero .name::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 18px var(--acc); }
.page-hero .h1 { margin-bottom: 20px; }
.for { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 760px) { .for { grid-template-columns: repeat(3, 1fr); } }
.for div { padding: 18px 20px; border-radius: 16px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--hair); }
.for b { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.for span { font-size: 14px; color: var(--text); line-height: 1.7; }

.menu-list { display: grid; gap: 0; }
.menu-list .row { display: grid; gap: 6px 32px; padding: 24px 0; border-top: 1px solid var(--hair); }
@media (min-width: 860px) { .menu-list .row { grid-template-columns: 16em 1fr auto; align-items: baseline; } }
.menu-list .row:last-child { border-bottom: 1px solid var(--hair); }
.menu-list h3 { font-size: 20px; color: #fff; font-weight: 700; }
.menu-list p { font-size: 15px; }
.menu-list .price { font-family: var(--f-en); font-weight: 800; font-size: 24px; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-list .price small { display: block; font-family: var(--f-ja); font-size: 12px; font-weight: 400; color: var(--slate); text-align: right; }

.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gut) 24px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.film { flex: none; width: min(60vw, 260px); scroll-snap-align: start; }
.film .f { aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: var(--navy-2); position: relative; }
.film .f img { width: 100%; height: 100%; object-fit: cover; }
.film .badge { position: absolute; left: 8px; top: 8px; background: rgb(5 7 15 / .7); padding: 3px 7px; border-radius: 5px; color: var(--studio); font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; }
.film h3 { font-size: 15px; color: #fff; margin-top: 10px; line-height: 1.5; }
.film p { font-size: 12px; color: var(--slate); }
.film.wide { width: min(86vw, 500px); }
.film.wide .f { aspect-ratio: 16/9; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 20px; border-radius: 16px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--hair); counter-increment: s; }
.steps li::before { content: "STEP " counter(s); display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--acc); margin-bottom: 6px; }
.steps b { display: block; color: #fff; font-size: 17px; }
.steps span { font-size: 14px; line-height: 1.7; }

.feature { display: grid; gap: 24px; padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: radial-gradient(120% 120% at 100% 0%, rgb(255 92 138 / .18), transparent 60%), rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--hair); }
@media (min-width: 900px) { .feature { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.feature .badge { display: inline-block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; padding: 4px 10px; border-radius: 6px; background: var(--events); color: #fff; margin-bottom: 12px; }
.court { aspect-ratio: 20/11; border-radius: 12px; background: #1E3A5F; position: relative; overflow: hidden; box-shadow: inset 0 0 0 3px rgb(255 255 255 / .8); }
.court::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; translate: -50% 0; background: rgb(255 255 255 / .9); }
.court::after { content: ""; position: absolute; top: 0; bottom: 0; left: 35%; right: 35%; border-left: 3px solid rgb(255 255 255 / .8); border-right: 3px solid rgb(255 255 255 / .8); background: rgb(255 92 138 / .12); }
.court .ball { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #E8FF5C; box-shadow: 0 0 12px #E8FF5C; left: 10%; top: 50%; z-index: 2; }
.court .kitchen { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; font-size: 11px; color: #fff; font-weight: 700; z-index: 2; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; color: var(--text); transition: .2s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--acc); color: #fff; }
.chip[aria-pressed="true"] { background: var(--acc); color: var(--ink); box-shadow: none; font-weight: 700; }
.draft { font-size: 14px; line-height: 1.8; padding: 16px 18px; border-radius: 14px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--hair); white-space: pre-wrap; max-width: 36em; color: var(--text); }

/* about */
.roles-list { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 860px) { .roles-list { grid-template-columns: repeat(3, 1fr); } }
.roles-list div { padding: 22px; border-radius: 18px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--hair); border-top: 3px solid var(--c); }
.roles-list b { display: block; color: #fff; font-size: 19px; margin-bottom: 6px; }
.co { display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; margin-top: 28px; font-size: 15px; }
.co dt { color: var(--slate); }
.co dd { margin: 0; color: #fff; }

/* synergy */
.syn { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .syn { grid-template-columns: 1fr 1fr; gap: 64px; } }
.syn svg { width: 100%; max-width: 460px; height: auto; justify-self: center; overflow: visible; }
.syn .loop { fill: none; stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.syn .loop.in { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-io); }
.syn text { font-family: var(--f-ja); font-size: 15px; font-weight: 700; fill: #fff; }
.syn .en-t { font-family: var(--f-en); font-size: 13px; font-weight: 800; letter-spacing: .08em; }

/* CTA / contact */
.cta { text-align: left; }
.cta .row { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .cta .row { grid-template-columns: 1fr auto; } }
.mailrow { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 18px; font-size: 15px; }
.mailrow code { font-family: var(--f-mono); font-size: 14px; user-select: all; color: #fff; }

/* next */
.next { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 40px var(--gut); border-top: 1px solid var(--hair); max-width: 1280px; margin-inline: auto; }
.next b { display: block; font-family: var(--f-en); font-weight: 800; font-stretch: 112%; font-size: clamp(26px, 4vw, 48px); color: #fff; transition: color .2s; }
.next small { color: var(--slate); font-size: 14px; }
.next:hover b { color: var(--c, var(--acc)); }
.next .arrow { font-size: 32px; color: var(--c, var(--acc)); }

.foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 28px var(--gut) calc(100px + env(safe-area-inset-bottom, 0px)); color: var(--slate); font-size: 13px; border-top: 1px solid var(--hair); }
@media (min-width: 768px) { .foot { padding-bottom: 28px; } }
.foot .sp { flex: 1; }

.line-fab { position: fixed; z-index: 58; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); height: 56px; padding: 0 20px 0 16px; border-radius: 16px; display: flex; align-items: center; gap: 8px; background: var(--line-green); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px -6px rgb(6 199 85 / .6); transition: transform .4s var(--ease-out), opacity .3s; }
.line-fab svg { width: 22px; height: 22px; }
body[data-page="contact"] .line-fab, body.menu-open .line-fab, body.booting .line-fab { transform: translateY(150%); opacity: 0; pointer-events: none; }
@media (min-width: 768px) { .line-fab { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  html.js .rv, html.js .chat .bubble { opacity: 1 !important; transform: none !important; }
}
body.in-universe #gl { opacity: 0; }

h1[tabindex="-1"]:focus { outline: none; }
@media (max-width: 767px) { .h1 { font-size: 8.2vw; } }

/* ---------- photos (AI-generated imagery) ---------- */
.page-hero:has(+ .wrap > .visual) { min-height: 74svh; }
.visual { position: relative; margin: 0; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; background: var(--navy-2); box-shadow: 0 0 0 1px var(--hair), 0 40px 80px -40px rgb(0 0 0 / .9); }
@media (min-width: 760px) { .visual { aspect-ratio: 21/9; } }
.visual img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(5 7 15 / .55)), radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--acc, #fff) 22%, transparent), transparent 60%); mix-blend-mode: normal; pointer-events: none; }
.visual figcaption, .pc-img figcaption { position: absolute; z-index: 1; right: 12px; bottom: 10px; font-size: 11px; color: rgb(255 255 255 / .75); }
html.js .visual.rv { opacity: 1; transform: none; clip-path: inset(8% 5% 8% 5% round 28px); }
html.js .visual.rv img { transform: scale(1.22); }
html.js .visual.rv.in { clip-path: inset(0 round 20px); transition: clip-path 1.3s var(--ease-out); }
html.js .visual.rv.in img { transform: scale(1.06); transition: transform 1.8s var(--ease-out); }
@supports (animation-timeline: view()) {
  .visual img { animation: vis-pan linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes vis-pan { from { object-position: 50% 20%; } to { object-position: 50% 80%; } }
}

/* universe panels */
.u-img { margin: -8px -8px 14px; border-radius: 14px; overflow: hidden; aspect-ratio: 16/7; max-height: 17svh; width: calc(100% + 16px); }
.u-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.u-panel.show .u-img img { transform: scale(1); }
@media (min-width: 960px) { .u-img { max-height: none; aspect-ratio: 16/8; } }
@media (max-height: 640px) and (max-width: 959px) { .u-img { display: none; } }

/* photo + chat overlay */
.photo-chat { position: relative; }
.pc-img { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 0 0 1px var(--hair); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-chat .chat { position: relative; margin: -72px 12px 0 auto; width: min(86%, 380px); z-index: 1; }
#chat-contact { margin-top: -120px; }
@media (min-width: 960px) { .photo-chat .chat { margin-right: -24px; } }
.photo-chat .pc-img:has(img[width="1440"]) { aspect-ratio: 4/5; max-height: 560px; }

/* samples gallery */
.samples { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: clamp(8px, 1.4vw, 16px); margin-top: 32px; }
@media (min-width: 900px) { .samples { grid-template-columns: repeat(4, 1fr); } }
.smp { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; background: var(--navy-2); box-shadow: 0 0 0 1px var(--hair); isolation: isolate; }
.smp.w { grid-column: span 2; aspect-ratio: auto; min-height: 100%; }
@media (max-width: 899px) { .smp.w { aspect-ratio: 16/9; } }
.smp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.smp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(5 7 15 / .8)); z-index: 0; pointer-events: none; }
.smp figcaption { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.smp figcaption b { color: #fff; font-size: clamp(13px, 1.3vw, 16px); }
.smp figcaption span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: var(--studio); padding: 2px 6px; border-radius: 4px; background: rgb(5 7 15 / .6); }
@media (hover: hover) { .smp:hover img { transform: scale(1.07); } }
.smp-cta { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(18px, 3vw, 36px); text-decoration: none; background: radial-gradient(120% 140% at 0% 0%, rgb(92 225 255 / .28), transparent 60%), var(--navy); }
.smp-cta::after { display: none; }
.smp-cta b { font-size: clamp(20px, 2.4vw, 32px); line-height: 1.35; color: #fff; }
.smp-cta span { color: var(--line-green); font-weight: 700; }
@media (max-width: 899px) { .smp-cta { aspect-ratio: auto !important; min-height: 160px; } }

/* menu rows with photos */
.menu-list.pics .row { grid-template-columns: 96px 1fr; grid-template-areas: "th h" "th p" "th price"; align-items: start; }
.menu-list.pics .th { grid-area: th; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.menu-list.pics .th img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.menu-list.pics h3 { grid-area: h; } .menu-list.pics p { grid-area: p; } .menu-list.pics .price { grid-area: price; }
@media (min-width: 860px) {
  .menu-list.pics .row { grid-template-columns: 200px 14em 1fr auto; grid-template-areas: "th h p price"; align-items: center; }
  .menu-list.pics .th { aspect-ratio: 4/3; }
}
@media (hover: hover) { .menu-list.pics .row:hover .th img { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  html.js .visual.rv { clip-path: none; }
  .visual img, html.js .visual.rv img, .u-img img, .smp img { transform: none !important; animation: none !important; }
}

/* PR video (studio page visual) */
.visual.pr { aspect-ratio: 16/9; }
.visual.pr video { width: 100%; height: 100%; object-fit: cover; display: block; }
.visual.pr::after { background: linear-gradient(180deg, transparent 50%, rgb(5 7 15 / .75)); }
.pr-cap { position: absolute; z-index: 1; left: clamp(14px, 3vw, 32px); bottom: clamp(14px, 3vw, 28px); right: 180px; display: grid; gap: 4px; }
.pr-cap b { color: var(--studio); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; }
.pr-cap span { color: #fff; font-size: clamp(13px, 1.5vw, 17px); font-weight: 700; }
.pr-sound { position: absolute; z-index: 2; right: clamp(12px, 3vw, 28px); bottom: clamp(12px, 3vw, 26px); display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--void); font: 700 14px/1 var(--f-ja); cursor: pointer; transition: transform .2s var(--ease-out); }
.pr-sound:hover { transform: scale(1.04); }
.pr-sound .w { opacity: .25; } .pr-sound[aria-pressed="true"] .w { opacity: 1; }
@media (max-width: 600px) { .pr-cap { right: 16px; bottom: 64px; } .pr-cap span { display: none; } }

/* formats */
.formats { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 700px) { .formats { grid-template-columns: 1fr 1fr; max-width: 820px; } }
.fmt { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--hair); background: rgb(255 255 255 / .03); }
.fmt b { color: #fff; font-size: 18px; white-space: nowrap; } .fmt b small { display: block; font-family: var(--f-mono); color: var(--studio); font-size: 11px; font-weight: 400; letter-spacing: .1em; }
.fmt span { font-size: 13px; line-height: 1.6; }
.ar { display: inline-block; border: 2px solid var(--studio); border-radius: 4px; flex: none; }
.ar.v { width: 18px; height: 32px; } .ar.h { width: 36px; height: 20px; }

/* works by format */
.works-sec { padding-top: clamp(40px, 6vw, 64px); }
.wk-head { display: flex; align-items: center; gap: 12px; margin: 40px 0 16px; }
.wk-head:first-child { margin-top: 0; }
.wk-head h3 { color: #fff; font-size: 20px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wk-head h3 small { font-size: 13px; font-weight: 400; color: var(--slate); }
.wk { display: grid; gap: clamp(10px, 1.4vw, 16px); }
.wk-h { grid-template-columns: repeat(3, 1fr); }
.wk-v { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 899px) {
  .wk { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut) 8px; }
  .wk::-webkit-scrollbar { display: none; }
  .wk .wt { flex: none; scroll-snap-align: start; }
  .wk-h .wt { width: 80vw; } .wk-v .wt { width: 46vw; }
}
.wt { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--navy-2); box-shadow: 0 0 0 1px var(--hair); isolation: isolate; }
.wk-h .wt { aspect-ratio: 16/9; } .wk-v .wt { aspect-ratio: 9/16; }
.wt img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.wt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgb(5 7 15 / .82)); pointer-events: none; }
.wt figcaption { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.wt figcaption b { color: #fff; font-size: clamp(13px, 1.2vw, 15px); }
.wt figcaption span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: var(--studio); padding: 2px 6px; border-radius: 4px; background: rgb(5 7 15 / .6); }
@media (hover: hover) { .wt:hover img { transform: scale(1.06); } }

/* studio explainer: idea -> script -> film (no photos needed) */
.steps3 .card.idea, .steps3 .card.script { display: flex; flex-direction: column; gap: 8px; padding: 12px; font-size: clamp(9px, 1.15vw, 13px); line-height: 1.5; }
.card.idea { background: #7494C0; }
.card.idea .ph-top { color: #fff; font-weight: 700; font-size: .9em; opacity: .85; margin-bottom: 4px; }
.card.idea .bub { max-width: 92%; padding: 7px 10px; border-radius: 12px; background: #fff; color: var(--ink); }
.card.idea .bub.me { align-self: flex-end; background: #8DE055; }
.card.script { background: #F3EEE3; color: #2A2620; font-family: var(--f-ja); }
.card.script .sc { font-family: var(--f-mono); font-size: .82em; letter-spacing: .04em; color: #8A6A3A; border-top: 1px dashed #C9B89A; padding-top: 6px; }
.card.script .sc:first-child { border-top: 0; padding-top: 0; }
.card.script .ln { font-weight: 700; }
.card.script .cam { font-size: .86em; color: #6A6458; }
.ex-note { font-size: 13px; margin-top: 10px; }
@media (max-width: 600px) { .steps3 .card.idea, .steps3 .card.script { padding: 8px; gap: 5px; font-size: 9px; } .card.script .cam { display: none; } }

/* headline that must not break mid-phrase */
.grid2 > div:has(> .fit-h) { container-type: inline-size; }
.fit-h { font-size: clamp(28px, 10.4cqi, 72px); }
.nw { white-space: nowrap; }
.card.plans .pl { display: block; padding: 6px 8px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #E2D8C4; color: #6A6458; font-size: .9em; }
.card.plans .pl i { font-style: normal; font-family: var(--f-mono); font-weight: 700; color: #8A6A3A; margin-right: 6px; }
.card.plans .pl b { display: block; color: #2A2620; }
.card.plans .pl.on { background: #FFF6D8; box-shadow: 0 0 0 2px var(--academy); }
.card.plans .pl em { display: inline-block; margin-top: 3px; font-style: normal; font-weight: 700; font-size: .85em; color: #fff; background: #E8506F; padding: 1px 6px; border-radius: 999px; }
@media (max-width: 600px) { .card.plans .pl { padding: 4px 5px; } .card.plans .pl:not(.on) b { display: none; } }
@media (min-width: 601px) { .steps3 .card.idea, .steps3 .card.script { justify-content: center; gap: 12px; font-size: clamp(11px, 1.25vw, 15px); padding: 16px; } }
@media (max-width: 600px) { .card.idea .ph-top { display: none; } }

/* home hero: full-bleed slides that follow the rotating line */
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--void); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(0deg, rgb(5 7 15 / .96) 0%, rgb(5 7 15 / .72) 34%, rgb(5 7 15 / .18) 70%, rgb(5 7 15 / .55) 100%),
  linear-gradient(90deg, rgb(5 7 15 / .55), transparent 60%); }
.hb { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s var(--ease-io); }
.hb.on { opacity: 1; }
.hb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hb.on img { transform: scale(1); transition: transform 7s linear; }
.hb figcaption { position: absolute; z-index: 2; right: var(--gut); bottom: clamp(16px, 3vh, 28px); font-size: 11px; color: rgb(255 255 255 / .7); opacity: 0; transition: opacity .6s .4s; }
.hb.on figcaption { opacity: 1; }
@media (max-width: 767px) { .hb figcaption { top: calc(var(--hud-h) + 12px); bottom: auto; } }
@media (prefers-reduced-motion: reduce) { .hb img, .hb.on img { transform: none; transition: none; } }
.hb picture { display: contents; }
@media (max-width: 767px) { .roles { font-size: 9vw; } }
.hero .punch em { white-space: nowrap; }

/* =========================================================
   v4 HOME — "EXPLOSION THEATER" + AI DIRECTOR
   ========================================================= */
:root { --f-min: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif; }

/* film-leader preloader */
#preloader { background: #0B0B0C; display: grid; place-items: center; }
#preloader .leader { position: relative; width: min(56vmin, 360px); aspect-ratio: 1; display: grid; place-items: center; }
#preloader .leader::before, #preloader .leader::after { content: ""; position: absolute; background: rgb(255 255 255 / .35); }
#preloader .leader::before { left: -30%; right: -30%; top: 50%; height: 1px; }
#preloader .leader::after { top: -30%; bottom: -30%; left: 50%; width: 1px; }
#preloader .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(255 255 255 / .55); }
#preloader .ring.r2 { inset: 12%; border-width: 1px; }
#preloader .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgb(255 255 255 / .22) var(--a, 0deg), transparent 0); }
#preloader b { position: relative; font-family: var(--f-en); font-weight: 900; font-size: min(30vmin, 200px); color: #EDEDED; line-height: 1; }
#preloader::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); mix-blend-mode: overlay; animation: grain .4s steps(2) infinite; }
html.seen #preloader .leader { display: none; }

/* theater */
.theater { position: relative; min-height: 100svh; display: grid; align-content: end; padding: calc(var(--hud-h) + 40px) var(--gut) clamp(56px, 10vh, 110px); overflow: hidden; background: #000; isolation: isolate; }
.th-screen { position: absolute; inset: 0; z-index: -1; }
.th-screen video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: saturate(1.05) contrast(1.05); }
.th-grade { position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / .92), rgb(0 0 0 / .35) 46%, rgb(0 0 0 / .25) 70%, rgb(0 0 0 / .6)), radial-gradient(120% 90% at 50% 50%, transparent 40%, rgb(0 0 0 / .7)); }
.grain { position: absolute; inset: -50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' 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: .14; mix-blend-mode: overlay; animation: grain .5s steps(3) infinite; pointer-events: none; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }
.bars i { position: absolute; left: 0; right: 0; height: 50%; background: #000; z-index: 3; transition: height 1.6s var(--ease-io); }
.bars i:first-child { top: 0; } .bars i:last-child { bottom: 0; }
.theater.open .bars i { height: clamp(18px, 7vh, 64px); }
.th-hud { position: absolute; z-index: 4; top: calc(var(--hud-h) + 6px); left: var(--gut); right: var(--gut); display: flex; gap: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: rgb(255 255 255 / .7); opacity: 0; transition: opacity .8s 1.2s; }
.theater.open .th-hud { opacity: 1; }
.th-hud .rec { color: #FF4D5E; animation: blink 1.2s steps(2) infinite; }
.th-hud .th-fmt { margin-left: auto; }
@keyframes blink { 50% { opacity: .2; } }
@media (max-width: 600px) { .th-hud .th-fmt { display: none; } }
.th-copy { position: relative; z-index: 2; max-width: 1280px; }
.presents { font-family: var(--f-mono); letter-spacing: .5em; font-size: clamp(11px, 1.1vw, 14px); color: rgb(255 255 255 / .75); margin-bottom: 18px; }
.th-title { font-family: var(--f-min); font-weight: 800; color: #fff; font-size: clamp(40px, 8.2vw, 132px); line-height: 1.12; letter-spacing: .02em; display: grid; }
.th-title .ln { display: block; white-space: nowrap; text-shadow: 0 6px 40px rgb(0 0 0 / .6); }
.th-title .ln::first-letter { color: var(--c); }
.th-sub { margin: 20px 0 28px; color: rgb(255 255 255 / .85); font-size: clamp(13px, 1.4vw, 17px); letter-spacing: .06em; }
.th-sub span { color: rgb(255 255 255 / .55); }
.btn-play { background: #fff; color: #000; box-shadow: 0 0 0 0 rgb(255 255 255 / .5); animation: pulse 2.4s infinite; }
.btn-play .tri, .btn-go .tri { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-right: 4px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / .45); } 70% { box-shadow: 0 0 0 18px rgb(255 255 255 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0); } }
.th-sound { position: absolute; z-index: 4; right: var(--gut); bottom: calc(clamp(18px, 7vh, 64px) + 14px); display: flex; align-items: flex-end; gap: 3px; height: 30px; padding: 0 12px; border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; background: rgb(0 0 0 / .35); color: #fff; cursor: pointer; font: 500 11px/30px var(--f-mono); letter-spacing: .12em; }
.th-sound i { width: 2px; height: 6px; margin-bottom: 11px; background: #fff; }
.th-sound[aria-pressed="true"] i { animation: eq .8s ease-in-out infinite alternate; }
.th-sound i:nth-child(2) { animation-delay: .2s !important; } .th-sound i:nth-child(3) { animation-delay: .4s !important; } .th-sound i:nth-child(4) { animation-delay: .1s !important; }
.th-sound span { margin-left: 8px; }
@keyframes eq { to { height: 14px; margin-bottom: 8px; } }
.th-cap { position: absolute; z-index: 4; left: var(--gut); bottom: calc(clamp(18px, 7vh, 64px) + 18px); font-size: 11px; color: rgb(255 255 255 / .55); }
@media (max-width: 767px) { .th-cap { display: none; } .th-title { font-size: 11.4vw; } }
/* staged reveal after the bars open */
html.js .theater .th-copy > * { opacity: 0; transform: translateY(26px); }
html.js .theater.open .th-copy > * { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
html.js .theater.open .th-copy > :nth-child(1) { transition-delay: .9s; }
html.js .theater.open .th-copy > :nth-child(2) { transition-delay: 1.15s; }
html.js .theater.open .th-copy > :nth-child(3) { transition-delay: 1.5s; }
html.js .theater.open .th-copy > :nth-child(4) { transition-delay: 1.7s; }
body.home-theater #gl { opacity: 0; }

/* AI DIRECTOR */
.director { position: relative; padding-block: clamp(90px, 12vw, 160px); background: radial-gradient(80% 60% at 80% 0%, rgb(92 225 255 / .08), transparent 60%), #05070F; }
.dir-grid { display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 980px) { .dir-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; } }
.dir-q { color: #fff; font-weight: 700; font-size: 17px; margin: 24px 0 12px; display: flex; gap: 10px; align-items: baseline; }
.dir-q:first-child { margin-top: 0; }
.dir-q b { font-family: var(--f-mono); color: var(--studio); font-size: 12px; letter-spacing: .1em; }
.dir-pick .chips { margin-top: 0; }
.chip[aria-checked="true"] { background: #fff; color: var(--void); box-shadow: none; }
.btn-go { margin-top: 28px; background: var(--studio); color: var(--void); width: 100%; max-width: 360px; justify-content: center; }
.btn-go:disabled { opacity: .35; cursor: not-allowed; }
.dir-stage { position: relative; min-height: 460px; border-radius: 22px; background: #0A0E1C; box-shadow: inset 0 0 0 1px var(--hair), 0 40px 80px -40px #000; padding: clamp(18px, 2.4vw, 28px); overflow: hidden; display: grid; align-content: start; gap: 16px; }
.ds-idle { display: grid; place-items: center; text-align: center; min-height: 400px; color: var(--slate); gap: 18px; }
.clap { width: 72px; height: 56px; border-radius: 6px; background: repeating-linear-gradient(135deg, #fff 0 10px, #111 10px 20px) top / 100% 16px no-repeat, #1B2238; box-shadow: inset 0 0 0 1px var(--hair); }
.ds-log { font-family: var(--f-mono); font-size: 12.5px; line-height: 1.9; color: #9FE9FF; }
.ds-log p::before { content: "> "; color: var(--slate); }
.ds-log p.ok { color: #8DE055; }
.ds-plans { display: grid; gap: 10px; }
@media (min-width: 640px) { .ds-plans { grid-template-columns: repeat(3, 1fr); } }
.plan { padding: 14px; border-radius: 14px; background: #121A30; box-shadow: inset 0 0 0 1px var(--hair); opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease-out), box-shadow .3s, background .3s; }
.plan.in { opacity: 1; transform: none; }
.plan i { font-style: normal; font-family: var(--f-mono); color: var(--slate); font-size: 11px; letter-spacing: .1em; }
.plan b { display: block; color: #fff; font-family: var(--f-min); font-size: 17px; line-height: 1.45; margin-top: 4px; }
.plan.pick { background: #1A2547; box-shadow: inset 0 0 0 2px var(--studio); }
.plan.pick i::after { content: "  ← これでいく"; color: var(--studio); }
.ds-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cut { position: relative; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: #E9E4D8; }
.cut img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(2.2) brightness(1.25); mix-blend-mode: multiply; opacity: 0; transition: opacity .6s, filter 1.2s .6s, mix-blend-mode 0s 1.2s; }
.cut.in img { opacity: .85; }
.cut.color img { filter: none; mix-blend-mode: normal; opacity: 1; }
.cut span { position: absolute; left: 6px; top: 4px; font-family: var(--f-mono); font-size: 10px; color: #333; background: rgb(255 255 255 / .8); padding: 0 4px; border-radius: 3px; }
.ds-screen .scr { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--hair), 0 0 80px -10px rgb(92 225 255 / .25); }
.ds-screen .scr::before, .ds-screen .scr::after { content: ""; position: absolute; left: 0; right: 0; height: 9%; background: #000; z-index: 2; }
.ds-screen .scr::before { top: 0; } .ds-screen .scr::after { bottom: 0; }
.scr-media, .scr-media img, .scr-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scr-media img { animation: kb 9s linear both; }
@keyframes kb { from { transform: scale(1.18) translate(2%, 1%); } to { transform: scale(1.02); } }
.telop { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14%; text-align: center; font-family: var(--f-min); font-weight: 800; color: #fff; font-size: clamp(16px, 2.4vw, 30px); text-shadow: 0 2px 18px rgb(0 0 0 / .9); letter-spacing: .06em; padding: 0 12px; }
.scr-tag { position: absolute; z-index: 3; top: 12%; left: 14px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: #fff; background: #E8506F; padding: 2px 6px; border-radius: 3px; }
.ds-end .ds-end-t { color: #fff; font-weight: 700; font-size: 18px; }
.ds-end .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* chapters */
.chapter { position: relative; }
.ch-no { font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--c, #fff); }
.ch-title { font-family: var(--f-en); font-weight: 900; font-stretch: 115%; color: #fff; font-size: clamp(44px, 9vw, 150px); line-height: .92; letter-spacing: -.01em; margin-top: 10px; }
.ch-title small { display: block; font-family: var(--f-min); font-weight: 700; font-stretch: normal; font-size: clamp(16px, 2vw, 26px); letter-spacing: .04em; color: rgb(255 255 255 / .85); margin-top: 14px; line-height: 1.5; }
.strip-ch { height: 420svh; }
.strip-ch .sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding-block: calc(var(--hud-h) + 16px) 26px; }
.film-track { display: flex; align-items: center; gap: 0; padding-left: var(--gut); will-change: transform; }
.fr { position: relative; flex: none; margin: 0; padding: 22px 6px; background: #0D0D0F; height: min(58svh, 520px); display: flex; flex-direction: column; }
.fr::before, .fr::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: radial-gradient(circle at 50% 50%, #2A2A2E 0 3px, transparent 3.5px) 0 0 / 18px 12px repeat-x; }
.fr::before { top: 5px; } .fr::after { bottom: 5px; }
.fr img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 2px; filter: saturate(.9); transition: filter .4s; }
.fr.h { aspect-ratio: 16/10.6; } .fr.v { aspect-ratio: 9/14.4; }
.fr figcaption { position: absolute; left: 14px; bottom: 30px; font-size: 12px; font-weight: 700; color: #fff; background: rgb(0 0 0 / .55); padding: 3px 8px; border-radius: 4px; }
.fr.end { aspect-ratio: 9/14.4; justify-content: center; align-items: center; gap: 8px; text-decoration: none; background: var(--studio); color: var(--void); padding: 22px 24px; }
.fr.end b { font-family: var(--f-en); font-weight: 900; font-size: 28px; } .fr.end span { font-weight: 700; }
.fr.end::before, .fr.end::after { display: none; }
.ch-progress { height: 2px; margin: 0 var(--gut); background: rgb(255 255 255 / .12); }
.ch-progress i { display: block; height: 100%; width: 100%; background: var(--c); transform-origin: left; transform: scaleX(var(--p, 0)); }
.strip-ch.static { height: auto; } .strip-ch.static .sticky { position: static; height: auto; } .strip-ch.static .film-track { overflow-x: auto; }
.split-ch { padding-block: clamp(80px, 11vw, 150px); }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.15fr 1fr; gap: 64px; } .split-ch.rev .sp-img { order: 2; } }
.sp-img { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; box-shadow: 0 0 0 1px var(--hair); }
.sp-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-img figcaption { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: rgb(255 255 255 / .7); }
.sp-txt .lead { margin-top: 18px; }

/* end credits */
.credits { position: relative; min-height: 180svh; text-align: center; overflow: hidden; background: #000; }
.roll { position: sticky; top: 0; height: 100svh; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.roll p { position: relative; color: #fff; font-family: var(--f-min); font-size: clamp(18px, 2.2vw, 26px); margin-bottom: 44px; transform: translateY(calc(100svh - var(--cp, 0) * 160svh)); }
.roll small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; color: var(--slate); margin-bottom: 6px; }
.credits-end { position: relative; padding-block: 10svh 16svh; }
.credits-end .h2 { font-family: var(--f-min); font-size: clamp(34px, 6vw, 84px); line-height: 1.25; }

@media (prefers-reduced-motion: reduce) {
  .grain, #preloader::after { animation: none; }
  html.js .theater .th-copy > * { opacity: 1; transform: none; }
  .bars i { height: clamp(18px, 7vh, 64px); transition: none; }
  .scr-media img { animation: none; }
  .roll p { transform: none; }
}
#chat-first { white-space: pre-line; }
.strip-ch .sticky { grid-template-columns: minmax(0, 1fr); }
.strip-ch .film-track { width: max-content; }
.dir-stage [hidden] { display: none !important; }
body[data-page="home"] #gl { opacity: 0; }
.strip-ch .ch-head { width: 100%; }
/* end credits (compact) */
.credits { min-height: 0; text-align: left; padding-block: clamp(80px, 12vw, 150px); background: radial-gradient(70% 60% at 85% 50%, rgb(6 199 85 / .10), transparent 60%), #000; }
.credits-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .credits-grid { grid-template-columns: 1fr 1.25fr; gap: 80px; } }
.credits .roll { position: static; height: auto; overflow: visible; -webkit-mask: none; mask: none; display: grid; gap: 18px; margin: 0; }
.credits .roll div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; align-items: baseline; border-bottom: 1px solid rgb(255 255 255 / .08); padding-bottom: 12px; }
.credits .roll dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .25em; color: var(--slate); }
.credits .roll dd { margin: 0; color: #fff; font-family: var(--f-min); font-size: clamp(16px, 1.6vw, 20px); }
.credits-end { padding: 0; }
.credits-end .h2 { font-family: var(--f-min); font-size: clamp(34px, 5.4vw, 76px); line-height: 1.25; }
@media (max-width: 600px) { .credits .roll div { grid-template-columns: 1fr; gap: 2px; } }
@media (min-width: 960px) { .credits-grid { grid-template-columns: 1fr 1fr; } }
.credits-end .h2 { font-size: clamp(30px, 4.3vw, 62px); }
@media (max-width: 600px) { .credits-end .h2 { font-size: 8.4vw; } }

/* =========================================================
   v5 HOME — SHOWREEL (scroll-scrubbed WebGL transitions)
   ========================================================= */
.reel { position: relative; height: 520svh; background: #000; }
.reel-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
#reel-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.reel-media { position: absolute; inset: 0; z-index: -1; }
.reel-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.reel.no-gl .reel-media { z-index: 0; }
.reel.no-gl .reel-media > * { transition: opacity .8s; }
.reel.no-gl .reel-media > .on { opacity: 1; }
.reel-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgb(0 0 0 / .85), rgb(0 0 0 / .1) 45%, transparent 70%, rgb(0 0 0 / .45)), linear-gradient(90deg, rgb(0 0 0 / .55), transparent 55%); }
.reel .grain, .reel .bars, .reel .th-hud { z-index: 4; }
.reel .bars i { height: 50%; }
.reel.open .bars i { height: clamp(14px, 5.5vh, 52px); }
.reel.open .th-hud { opacity: 1; }
.reel .th-hud { top: calc(var(--hud-h) + 4px); }

.r-intro, .scene { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: calc(clamp(14px, 5.5vh, 52px) + clamp(70px, 12vh, 120px)); max-width: 1100px; pointer-events: none; }
.r-intro { opacity: var(--o, 1); transform: translateY(calc((1 - var(--o, 1)) * -40px)); }
.r-big { font-family: var(--f-min); font-weight: 800; color: #fff; font-size: clamp(36px, 7vw, 116px); line-height: 1.12; letter-spacing: .01em; text-shadow: 0 8px 50px rgb(0 0 0 / .7); }
.r-big em { font-style: normal; background: linear-gradient(90deg, var(--studio), var(--academy) 50%, var(--events)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.r-sub { margin-top: 18px; color: rgb(255 255 255 / .8); font-size: clamp(12px, 1.3vw, 16px); letter-spacing: .06em; }
.r-scroll { margin-top: 30px; display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; color: rgb(255 255 255 / .7); }
.r-scroll i { width: 1px; height: 44px; background: linear-gradient(#fff, transparent); animation: drip 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
html.js .reel:not(.open) .r-intro > * { opacity: 0; transform: translateY(24px); }
.reel.open .r-intro > * { transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.reel.open .r-intro > :nth-child(1) { transition-delay: .8s; } .reel.open .r-intro > :nth-child(2) { transition-delay: 1s; } .reel.open .r-intro > :nth-child(3) { transition-delay: 1.3s; } .reel.open .r-intro > :nth-child(4) { transition-delay: 1.6s; }

.scene { opacity: 0; visibility: hidden; }
.scene.on { opacity: 1; visibility: visible; pointer-events: auto; }
.scene .sc-no { font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--c); }
.sc-title { display: grid; gap: 4px; margin-top: 8px; }
.sc-title .en { font-family: var(--f-en); font-weight: 900; font-stretch: 118%; font-size: clamp(54px, 12.5vw, 220px); line-height: .86; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / .9); }
.sc-title .ja { font-family: var(--f-min); font-weight: 800; color: #fff; font-size: clamp(24px, 3.6vw, 52px); line-height: 1.25; text-shadow: 0 6px 30px rgb(0 0 0 / .7); }
.sc-desc { max-width: 34em; margin-top: 14px; color: rgb(255 255 255 / .85); font-size: clamp(13px, 1.3vw, 16px); line-height: 1.8; }
.sc-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 20px; border-radius: 999px; background: var(--c); color: #05070F; font-weight: 800; text-decoration: none; font-size: 15px; }
.sc-link span { transition: transform .3s var(--ease-out); } .sc-link:hover span { transform: translateX(5px); }
.sc-cap { position: fixed; right: var(--gut); bottom: calc(clamp(14px, 5.5vh, 52px) + 12px); font-size: 11px; color: rgb(255 255 255 / .55); }
/* per-character entrance for scene titles */
.scene .ch { display: inline-block; transform: translateY(110%) rotate(6deg); opacity: 0; }
.scene.on .ch { transform: none; opacity: 1; transition: transform .9s var(--ease-out), opacity .6s; transition-delay: calc(var(--k) * 28ms); }
.scene .sc-desc, .scene .sc-link, .scene .sc-no { opacity: 0; transform: translateY(14px); }
.scene.on .sc-desc, .scene.on .sc-link, .scene.on .sc-no { opacity: 1; transform: none; transition: opacity .7s .35s, transform .9s .35s var(--ease-out); }
.scene .sc-title .en, .scene .sc-title .ja { overflow: hidden; }

.reel-nav { position: absolute; z-index: 5; right: var(--gut); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.reel-nav button { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; text-align: left; background: none; border: 0; color: rgb(255 255 255 / .5); font: 700 12px/1.3 var(--f-en); letter-spacing: .12em; cursor: pointer; padding: 4px 0; width: 150px; }
.reel-nav b { font-family: var(--f-mono); font-weight: 500; }
.reel-nav i { grid-column: 1 / -1; height: 2px; margin-top: 6px; background: rgb(255 255 255 / .18); position: relative; overflow: hidden; }
.reel-nav i::after { content: ""; position: absolute; inset: 0; background: var(--c); transform-origin: left; transform: scaleX(var(--f, 0)); }
.reel-nav button.on { color: #fff; }
@media (max-width: 899px) {
  .reel-nav { top: auto; bottom: calc(clamp(14px, 5.5vh, 52px) + 14px); left: var(--gut); right: var(--gut); transform: none; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .reel-nav button { width: auto; font-size: 10px; }
  .r-intro, .scene { bottom: calc(clamp(14px, 5.5vh, 52px) + 64px); }
  .sc-cap { display: none; }
  .sc-title .en { -webkit-text-stroke-width: 1px; }
}
.reel.static { height: auto; } .reel.static .reel-stage { position: relative; height: 100svh; }

/* service index with cursor-following preview */
.svc { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.svc-list { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid rgb(255 255 255 / .12); }
.svc-list li { border-bottom: 1px solid rgb(255 255 255 / .12); }
.svc-list a { position: relative; z-index: 2; display: grid; grid-template-columns: 3em 1fr auto 2em; align-items: center; gap: 18px; padding: clamp(20px, 3vw, 34px) 0; text-decoration: none; color: #fff; }
.svc-list .no { font-family: var(--f-mono); color: var(--c); font-size: 13px; }
.svc-list .nm { font-family: var(--f-en); font-weight: 900; font-stretch: 115%; font-size: clamp(34px, 7vw, 110px); line-height: .95; letter-spacing: -.01em; transition: transform .6s var(--ease-out), color .3s; }
.svc-list .jp { text-align: right; font-weight: 700; font-size: clamp(13px, 1.4vw, 17px); }
.svc-list .jp small { display: block; font-weight: 400; color: var(--slate); font-size: 12px; margin-top: 4px; }
.svc-list .ar { font-size: 24px; transition: transform .4s var(--ease-out); }
.svc-list a:hover .nm { color: var(--c); transform: translateX(14px); }
.svc-list a:hover .ar { transform: translateX(6px) rotate(-45deg); }
@media (max-width: 767px) { .svc-list a { grid-template-columns: 2.2em 1fr 1.4em; } .svc-list .jp { grid-column: 2; grid-row: 2; text-align: left; } .svc-list .ar { grid-row: 1; grid-column: 3; } }
.svc-float { position: fixed; z-index: 1; left: 0; top: 0; width: 340px; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .3s, transform .5s var(--ease-out); box-shadow: 0 30px 60px -20px #000; }
.svc-float.on { opacity: 1; }
.svc-float img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .svc-float { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .scene .ch, .scene .sc-desc, .scene .sc-link, .scene .sc-no { transform: none !important; opacity: 1 !important; transition: none !important; }
  .reel .bars i { height: clamp(14px, 5.5vh, 52px); }
}
.sc-cap { position: absolute; right: 0; bottom: calc(-1 * clamp(70px, 12vh, 120px) + 10px); }
.svc-float { position: absolute; }
@media (max-width: 767px) { .r-big { font-size: 8.4vw; } }
@media (max-width: 767px) {
  .reel-stage::after { background: linear-gradient(0deg, rgb(0 0 0 / .94) 0%, rgb(0 0 0 / .82) 42%, rgb(0 0 0 / .2) 72%, rgb(0 0 0 / .5) 100%); }
  .sc-title .en { font-size: 12.4vw; white-space: nowrap; }
}
/* studio: short drama player */
.df-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .df-grid { grid-template-columns: minmax(0, 360px) 1fr; gap: 72px; } }
.df-phone { justify-self: center; width: min(78vw, 360px); aspect-ratio: 9/16; border-radius: 36px; padding: 10px; background: #0C0C0E; box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 50px 100px -30px rgb(232 80 111 / .35); }
.df-phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #000; display: block; }
.df-tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.df-tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); color: #fff; }
.visual.vid video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* schedule */
.sched { display: grid; gap: 14px; margin-top: 30px; }
.sd { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 22px clamp(18px, 2.4vw, 30px); border-radius: 20px; background: rgb(255 255 255 / .035); box-shadow: inset 0 0 0 1px var(--hair); border-left: 4px solid var(--c); }
.sd-date { text-align: center; min-width: 5.2em; }
.sd-date b { display: block; font-family: var(--f-en); font-weight: 900; font-size: clamp(30px, 3.6vw, 46px); color: #fff; line-height: 1; letter-spacing: -.01em; }
.sd-date span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .25em; color: var(--c); }
.sd-cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--c); }
.sd h3 { color: #fff; font-size: clamp(18px, 2vw, 24px); margin-top: 4px; }
.sd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 14px; color: var(--text); }
.sd-note { margin-top: 6px; font-size: 13px; color: var(--slate); }
.sched-empty { color: var(--slate); }
@media (max-width: 700px) { .sd { grid-template-columns: auto 1fr; } .sd-btn { grid-column: 1 / -1; justify-content: center; } }
.sd-meta i { font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .15em; color: var(--slate); margin-right: 8px; }
.sp-img.pk { position: relative; }
.pk-badge { position: absolute; left: 14px; top: 14px; background: var(--events); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.instructor .sp-img { aspect-ratio: 3/2; }
.sp-name { margin-top: 22px; display: grid; gap: 2px; }
.sp-name b { color: #fff; font-size: 20px; } .sp-name span { color: var(--slate); font-size: 13px; }

/* =================== AI WORKS =================== */
body[data-page="works"] { --acc: var(--works); }
.reel { height: 660svh; }
.aio-chat { max-width: 760px; margin: 22px auto 0; display: grid; gap: 14px; }
.aio-chat .q { justify-self: end; max-width: 85%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: #2B3550; color: #fff; font-weight: 700; }
.aio-chat .a { position: relative; padding: 18px 20px; border-radius: 18px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--hair); min-height: 190px; }
.a-head { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--works); margin-bottom: 10px; }
.spark { width: 14px; height: 14px; background: conic-gradient(from 45deg, var(--works), var(--studio), var(--works)); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.a-before, .a-after { color: var(--text); line-height: 1.85; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.a-before ul { margin: 6px 0 8px 1.2em; color: var(--slate); }
.a-before .miss { color: #FF8FA6; font-weight: 700; }
.a-after { position: absolute; inset: 52px 20px 18px; opacity: 0; transform: translateY(10px); }
.a-after mark { background: linear-gradient(transparent 55%, rgb(169 139 255 / .55) 55%); color: #fff; font-weight: 800; padding: 0 2px; }
.a-after .src { margin-top: 10px; font-size: 12px; color: var(--slate); } .a-after .src span { font-family: var(--f-mono); color: var(--works); margin-right: 8px; letter-spacing: .1em; }
#ex-works.on .a-before { opacity: 0; transform: translateY(-10px); }
#ex-works.on .a-after { opacity: 1; transform: none; }
#ex-works .aio-switch { cursor: pointer; }
#ex-works.on .aio-switch .sw::after { transform: translateX(22px); background: var(--works); }
#ex-works .conclusion em { color: var(--works); }
html.js #ex-works .conclusion { opacity: .25; transition: opacity .8s; } html.js #ex-works.on .conclusion { opacity: 1; }
.diag { display: grid; gap: 28px; padding: clamp(24px, 4vw, 48px); border-radius: 26px; background: radial-gradient(90% 120% at 100% 0%, rgb(169 139 255 / .18), transparent 60%), rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px rgb(169 139 255 / .35); }
@media (min-width: 960px) { .diag { grid-template-columns: 1.1fr 1fr; align-items: center; } .diag-cta { grid-column: 1 / -1; } }
.diag-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.diag-list li { display: grid; grid-template-columns: 2.4em 1fr; gap: 8px; color: #fff; font-weight: 700; line-height: 1.6; }
.diag-list b { font-family: var(--f-mono); color: var(--works); font-weight: 500; }
#ex-works.on .aio-switch .sw { background: rgb(169 139 255 / .4); } #ex-works.on .aio-switch .sw::after { background: #fff; }
@media (max-width: 899px) {
  .reel-nav { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .reel-nav button { font-size: 9px; letter-spacing: .06em; column-gap: 4px; }
  .reel-nav button:not(.on) { color: rgb(255 255 255 / .45); }
}
@media (max-width: 420px) { .reel-nav button { grid-template-columns: 1fr; } .reel-nav button b { display: none; } }
.app-vis { margin-top: 36px; aspect-ratio: 21/9; }

/* ---------- contact form ---------- */
.to-form { margin-top: 22px; font-size: 15px; font-weight: 700; color: #fff; border-bottom: 1px solid var(--hair); padding-bottom: 3px; }
.to-form:hover { color: var(--acc); border-color: var(--acc); }
.ct-form-sec { border-top: 1px solid var(--hair); display: grid; gap: 40px; }
@media (min-width: 960px) { .ct-form-sec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 72px; align-items: start; } .ct-form-head { position: sticky; top: calc(var(--hud-h) + 40px); } }
.ct-form-head .muted { margin-top: 18px; max-width: 26em; color: var(--text); }
/* solid card: nothing from the animated background shows through */
.ct-form, .ct-done { position: relative; z-index: 3; background: #0F1A3A; border-radius: 24px; box-shadow: 0 0 0 1px rgb(170 200 255 / .22), 0 30px 80px -30px rgb(0 0 0 / .8); }
.ct-form { display: grid; gap: 26px; min-width: 0; padding: clamp(22px, 4vw, 44px); }
.f-row2 { display: grid; gap: 26px; }
@media (min-width: 640px) { .f-row2 { grid-template-columns: 1fr 1fr; } }
.f { display: grid; gap: 10px; min-width: 0; border: 0; margin: 0; padding: 0; }
.f-l { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #fff; padding: 0; }
.f-l em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 9px; border-radius: 999px; }
.f-l .req { background: #FF5C8A; color: #fff; }
.f-l .opt { background: rgb(255 255 255 / .12); color: #C9D3EA; }
.ct-form input:not([type="checkbox"]), .ct-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: #0A1022; background: #fff;
  border: 2px solid #fff; border-radius: 12px; padding: 13px 16px; line-height: 1.6;
  transition: border-color .2s, box-shadow .2s; }
.ct-form textarea { resize: vertical; min-height: 170px; }
.ct-form ::placeholder { color: #8791A8; font-size: 14px; }
.ct-form input:focus, .ct-form textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px rgb(6 199 85 / .25); }
.ct-form [aria-invalid="true"] { border-color: #FF5C8A !important; box-shadow: 0 0 0 4px rgb(255 92 138 / .2); }
.cks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.ck { position: relative; cursor: pointer; }
.ck input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ck span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: #1C2A55; box-shadow: inset 0 0 0 1px rgb(170 200 255 / .25); font-size: 14px; color: #fff; transition: .2s; }
.ck:hover span { box-shadow: inset 0 0 0 1.5px var(--acc); }
.ck input:checked + span { background: var(--acc); color: #fff; box-shadow: none; font-weight: 700; }
.ck input:checked + span::before { content: "✓"; margin-right: 6px; }
.ck input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.8; color: #fff; cursor: pointer; padding: 16px; border-radius: 12px; background: rgb(255 255 255 / .06); }
.agree input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--line-green); }
.agree.bad { box-shadow: inset 0 0 0 1.5px #FF5C8A; }
.agree.bad span { color: #FF8FAE; }
.f-send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn-acc { background: #fff; color: var(--ink); min-width: 220px; box-shadow: 0 10px 30px -14px rgb(238 246 255 / .6); }
.btn-acc:hover { filter: brightness(.94); }
.btn-acc[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 639px) { .btn-acc { width: 100%; } }
.f-status { font-size: 15px; color: #C9D3EA; }
.f-status.bad { color: #FF8FAE; font-weight: 700; }
.ct-done { padding: 48px 32px; }
.ct-done .en { color: var(--acc); font-size: 13px; letter-spacing: .14em; }
.ct-done h3 { font-size: clamp(26px, 3vw, 36px); color: #fff; margin: 8px 0 12px; }
.ct-done .muted { color: var(--text); }
.ct-done[hidden], .ct-form[hidden] { display: none; }
/* AIO example tabs */
.aio-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.aio-tabs button { min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--text); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--hair); transition: .2s; }
.aio-tabs button:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--works); }
.aio-tabs button.on { background: var(--works); color: var(--ink); font-weight: 700; box-shadow: none; }
.aio-chat.swap .q, .aio-chat.swap .a { animation: aioIn .5s var(--ease-out) both; }
.aio-chat.swap .a { animation-delay: .08s; }
@keyframes aioIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .aio-chat.swap .q, .aio-chat.swap .a { animation: none; } }
@media (max-width: 639px) { .aio-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .aio-tabs button { padding: 0 6px; font-size: 13px; } }
