/* =========================================================
   SILENT GRID LP — style.css
   1. Base        … 変数、リセット、body、リンクの基本
   2. Animation   … 動きのスタイル（表示前・表示後・キーフレーム）
   3. Components  … 複数のセクションで使う部品
   4. Blocks      … ヘッダー → 各セクション → フッターの順
   5. Responsive  … PC（768px 以上）とタブレットの調整
   6. SP          … 767px 以下
   7. Reduced motion … 「視差効果を減らす」がオンのとき
   クラス名は BEM（Block__Element--Modifier）。状態は is-*、JS のきっかけは data-* 属性
   !important は使わない
   ========================================================= */


/* =========================================================
   1. Base
   ========================================================= */
:root {
  --c-base: #0B0E14;
  --c-main: #1B2A3F;
  --c-accent: #3FD0DC;
  --c-text: #E6EBF0;
  --c-text-2: #AAB6C4;
  --c-text-3: #7F8B9A;   /* ラベル・注記 */
  --c-dim: #2E3846;      /* STORY の読む前の文字 */
  --c-line: #2A3648;     /* 罫線・英語の大きなタイトル */
  --c-line-strong: #4A5668;
  --c-surface: #131A26;  /* カード・サムネイルの下地 */
  /* 文字サイズの段階（SP では値を小さくする）。セクション内の最小は PC 16px・SP 14px */
  --fs-title: 40px;   /* セクションの見出し */
  --fs-heading: 24px; /* 小見出し・人物名 */
  --fs-lead: 18px;    /* 導入文・STORY の本文 */
  --fs-body: 16px;    /* 本文・ボタン */
  --fs-small: 16px;   /* ラベル・注記・日付 */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-cinema: cubic-bezier(.65, 0, .35, 1);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--c-base); color: var(--c-text); font-family: "Noto Sans JP", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-locked { overflow: hidden; }
h1, h2, h3, p, dl, dd { margin: 0; }
/* 画像を WebP で出し分けるための <picture> は、レイアウト上は無いものとして扱う（img の配置を変えない） */
picture:not([class]) { display: contents; }
a { color: var(--c-text); text-decoration: none; }
a:hover { color: var(--c-text); }
:focus-visible { outline: 2px solid var(--c-text); outline-offset: 4px; }
/* 画面には出さず、読み上げと文書の構造にだけ使う */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 改行の出し分け（br--sp は SP だけ、br--tab はタブレットだけ、br--narrow は 360px 以下だけで効く） */
.br--sp, .br--tab, .br--narrow { display: none; }


/* =========================================================
   2. Animation
   コンセプト「暗転前の、静けさ」：ゆっくり・静かに・奥行き
   動かすのは transform / translate / opacity / clip-path / filter のみ
   ========================================================= */

/* ---- 1. スクロールの進み具合（記憶ログの読み込み） ---- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; background: var(--c-accent); transform-origin: 0 50%; transform: scaleX(0); opacity: .9; }

/* ---- 2. FV：暗転 → シアンの線 → 画像 → コピー ---- */
.intro-line { position: fixed; left: 50%; top: 50%; width: 120px; height: 1px; margin-left: -60px; background: var(--c-accent); z-index: 70; opacity: 0; pointer-events: none; }
.js [data-fva] { opacity: 0; }
.js [data-fva="c1"], .js [data-fva="c2"], .js [data-fva="end"]:not(.header__inner) { transform: translateY(16px); }
[data-fva].is-in { opacity: 1; transform: none; transition: opacity var(--d, .8s) var(--ease-out) var(--dl, 0s), transform var(--d, .8s) var(--ease-out) var(--dl, 0s); }
[data-fv-img] img { transform: scale(1.08); }
[data-fv-img].is-in img { transform: scale(1); transition: transform 8s var(--ease-out) 1.15s; }
[data-fv-img], [data-fv-copy] { will-change: translate, opacity; }
/* 写真は上から下へ、境目をぼかしながら現れる（マスクの位置 --fv-reveal を動かす） */
@property --fv-reveal { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
.js [data-fv-img] { --fv-reveal: -30%; -webkit-mask-image: linear-gradient(180deg, #000 var(--fv-reveal), transparent calc(var(--fv-reveal) + 30%)); mask-image: linear-gradient(180deg, #000 var(--fv-reveal), transparent calc(var(--fv-reveal) + 30%)); }
[data-fv-img].is-in { --fv-reveal: 100%; transition: opacity var(--d, .8s) var(--ease-out) var(--dl, 0s), --fv-reveal var(--d, .8s) var(--ease-cinema) var(--dl, 0s); }


/* ---- 表示（data-reveal） ---- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) var(--dl, 0s), transform .8s var(--ease-out) var(--dl, 0s); }

/* ---- 3. 記憶ログ：記録が途切れる瞬間のちらつき ---- */
@keyframes flicker {
  0% { opacity: 0; } 20% { opacity: 1; } 30% { opacity: .15; } 40% { opacity: 1; } 48% { opacity: .3; } 56%, 100% { opacity: 1; }
}

/* ---- 4–6. パララックス（個別の translate を使い、表示の transform とぶつけない） ---- */
[data-pxbg], [data-pan] { will-change: translate; }

/* ---- 5. インサート：暗くなってから文字 ---- */
[data-ins-dark] { transition: background-color 1.6s var(--ease-out); }
[data-ins].is-in [data-ins-dark] { background-color: rgba(11, 14, 20, .72); }

/* ---- 12. 一文字ずつぼかしから現れる ---- */
.split-text__char { opacity: 0; filter: blur(6px); transition: opacity .6s var(--ease-out), filter .6s var(--ease-out); transition-delay: calc(var(--dl, 0s) + var(--i) * var(--step, .04s)); }
.split-text.is-in .split-text__char { opacity: 1; filter: none; }

/* ---- 13. 英語のセクションタイトル：1文字ずつ浮かび上がる ---- */
.js .section-en__letter { opacity: 0; transform: translateY(40%); }
.section-en.is-in .section-en__letter { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * .05s); }

/* ---- 14. 日本語の見出し：白い帯が伸びて文字を覆い、右へ抜けると文字が現れる ---- */
.js .heading-reveal .heading-reveal__line { color: transparent; }
.heading-reveal.is-in .heading-reveal__line { color: inherit; transition: color 0s linear calc(.55s + var(--j) * .18s); }
.heading-reveal.is-in .heading-reveal__line::after { animation: sg-line 1.1s var(--ease-cinema) calc(var(--j) * .18s) both; }
@keyframes sg-line {
  0% { transform: scaleX(0); transform-origin: left center; }
  50% { transform: scaleX(1); transform-origin: left center; }
  50.1% { transform: scaleX(1); transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}

/* ---- 8. 予告編：スクリーンが近づく + 再生ボタンの輪 ---- */
.js [data-screen] > [data-zoom] { transform: scale(.92); }
[data-screen].is-in > [data-zoom] { transform: scale(1); transition: transform 1.2s var(--ease-out); }
[data-zoom]:hover [data-zoom-img] { transform: scale(1.03); }
[data-play]::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--c-accent); opacity: 0; pointer-events: none; }
.is-in [data-play]::after { animation: sg-ring 1.6s var(--ease-out) 1s 1 both; }
@keyframes sg-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
[data-zoom]:hover [data-play] { background: var(--c-main); transition: background-color .3s; }

/* ---- 9. ハルト：幕が開く ---- */
.js [data-curtain] { clip-path: inset(0 100% 0 0); }
.js [data-curtain] img { transform: scale(1.05); }
[data-curtain].is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease-cinema); }
[data-curtain].is-in img { transform: scale(1); transition: transform 2s var(--ease-out); }

/* ---- 11. 矢印：ホバーで右へ抜けて左から戻る ---- */
[data-arw] { display: inline-block; }
a:hover [data-arw], button:hover [data-arw] { transform: translateX(4px); }
@keyframes sg-arw { 0% { transform: translateX(0); opacity: 1; } 40% { transform: translateX(140%); opacity: 0; } 41% { transform: translateX(-140%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }

/* ---- 劇場一覧：下から順に出る ---- */
@keyframes sg-up { to { opacity: 1; transform: none; } }


/* =========================================================
   3. Components
   ========================================================= */

/* ---- page ---- */
.page { position: relative; width: 100%; margin: 0 auto; overflow-x: clip; background: var(--c-base); color: var(--c-text); font-family: 'Noto Sans JP', sans-serif; }

/* ---- section / section-band（紺の帯） ---- */
.section { padding: 160px 80px 0; }
.section-band { margin-top: 160px; padding: 160px 80px; background: var(--c-main); }
.section-band--tight { margin-top: 80px; }

/* ---- section-en（英語の大きなタイトル・飾り） ---- */
.section-en { margin: 0 0 24px; font-family: Inter, sans-serif; font-weight: 600; font-size: clamp(56px, 7.2vw, 112px); line-height: .9; letter-spacing: .04em; color: var(--c-line); white-space: nowrap; pointer-events: none; user-select: none; }
.section-en__letter { display: inline-block; }

/* ---- label（「01 ／ 09」などの小さな英字） ---- */
.label { font-family: Inter, sans-serif; font-size: var(--fs-small); font-weight: 500; letter-spacing: .2em; line-height: 1.5; color: var(--c-text-3); white-space: nowrap; }
.label--light { color: var(--c-text-2); }

/* ---- section-title（見出し） ---- */
.section-title { margin-top: 16px; font-size: var(--fs-title); font-weight: 500; line-height: 1.5; letter-spacing: .06em; color: var(--c-text); }
.heading-reveal__line { position: relative; display: inline-block; }
.heading-reveal__line::after { content: ""; position: absolute; left: -.08em; right: -.08em; top: .08em; bottom: .08em; background: var(--c-text); transform: scaleX(0); transform-origin: left center; pointer-events: none; }

/* ---- button（.sp-bar__btn・.sp-menu__cta も同じ動き）
   ホバーで白（--button-fill）の面が左から流れ込み、文字色が反転。矢印は右へ抜けて左から戻る ---- */
.button, .sp-bar__btn, .sp-menu__cta { position: relative; isolation: isolate; overflow: hidden; transition: color .45s var(--ease-out), border-color .45s var(--ease-out); }
.button::before, .sp-bar__btn::before, .sp-menu__cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--button-fill, var(--c-text)); transform: scaleX(0); transform-origin: right center; transition: transform .55s var(--ease-cinema); }
.button > span[aria-hidden="true"]:last-child, .sp-bar__btn > span[aria-hidden="true"]:last-child, .sp-menu__cta > span[aria-hidden="true"]:last-child { display: inline-block; }
@media (hover: hover) {
  .button:hover::before, .sp-bar__btn:hover::before, .sp-menu__cta:hover::before,
  .button:focus-visible::before, .sp-bar__btn:focus-visible::before, .sp-menu__cta:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
  .button:hover, .sp-bar__btn:hover, .sp-menu__cta:hover,
  .button:focus-visible, .sp-bar__btn:focus-visible, .sp-menu__cta:focus-visible { color: var(--button-ink, var(--c-base)); }
  .button:hover [data-arw], .button:hover > span[aria-hidden="true"]:last-child,
  .sp-bar__btn:hover > span[aria-hidden="true"]:last-child, .sp-menu__cta:hover > span[aria-hidden="true"]:last-child { animation: sg-arw .6s var(--ease-cinema) both; }
}
.button { align-items: center; font-weight: 500; letter-spacing: .08em; white-space: nowrap; }
.button__icon { font-size: 12px; }
.button--header { display: flex; gap: 16px; height: 40px; padding: 0 16px; background: var(--c-accent); color: var(--c-base); }
.button--outline { display: inline-flex; gap: 16px; height: 56px; padding: 0 24px; border: 1px solid var(--c-text); font-size: var(--fs-body); line-height: 1.5; color: var(--c-text); }
.button--primary { display: inline-flex; justify-content: space-between; gap: 48px; height: 56px; padding: 0 32px; background: var(--c-accent); color: var(--c-base); font-size: var(--fs-body); line-height: 1.5; }
.button--outline-wide { margin-top: 48px; display: inline-flex; justify-content: space-between; gap: 48px; white-space: nowrap; height: 56px; padding: 0 24px; border: 1px solid var(--c-line-strong); font-size: var(--fs-body); line-height: 1.5; }
.button--primary-block { margin-top: 24px; display: flex; justify-content: space-between; width: 100%; height: 56px; padding: 0 32px; border: 0; cursor: pointer; font-family: inherit; background: var(--c-accent); color: var(--c-base); font-size: var(--fs-body); line-height: 1.5; }

/* ---- text-link（下線つきの文字リンク） ---- */
.text-link { display: inline-flex; align-items: center; gap: 16px; padding-bottom: 6px; font-size: var(--fs-body); font-weight: 500; letter-spacing: .08em; line-height: 1.5; white-space: nowrap; background-image: linear-gradient(var(--c-text), var(--c-text)), linear-gradient(var(--c-line-strong), var(--c-line-strong)); background-position: left bottom, left bottom; background-size: 0% 1px, 100% 1px; background-repeat: no-repeat; transition: background-size .4s ease-out; }

/* ---- arrow ---- */
.arrow { font-family: Inter, sans-serif; white-space: nowrap; transition: transform .2s ease-out; }

/* ---- play-button ---- */
.play-button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; display: grid; place-items: center; width: 80px; height: 80px; background: var(--c-base); font-size: 20px; color: var(--c-text); padding-left: 4px; }

/* ---- insert（全幅の写真＋言葉） ---- */
.insert { position: relative; height: 900px; margin: 160px 0 0; overflow: hidden; background: var(--c-base); display: grid; place-items: center; }
.insert--end { margin: 80px 0 0; }
.insert__layer { position: absolute; left: 0; right: 0; top: -12%; bottom: -12%; overflow: hidden; }
.insert__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.insert__img--zoom { transform: scale(1.6); transform-origin: 56% 70%; }
.insert__dark { position: absolute; inset: 0; background: rgba(11, 14, 20, .55); pointer-events: none; }
.insert__body { position: relative; z-index: 1; padding: 0 24px; text-align: center; }
.insert__text { font-size: 36px; font-weight: 500; line-height: 1.5; letter-spacing: .08em; color: var(--c-text); white-space: nowrap; }
.insert__cta { margin-top: 40px; }


/* =========================================================
   4. Blocks
   ========================================================= */

/* ---- header ---- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 55; height: 72px; transition: background-color .3s ease-out; }
.header.is-scrolled { background-color: rgba(11, 14, 20, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header__inner { width: 100%; max-width: 1440px; height: 100%; margin: 0 auto; padding: 0 80px; white-space: nowrap; display: flex; align-items: center; justify-content: space-between; }
.header__logo { font-family: Inter, sans-serif; font-size: 16px; font-weight: 500; letter-spacing: .2em; line-height: 1.5; }
.header__nav { display: flex; align-items: center; gap: 40px; font-size: 16px; font-weight: 400; letter-spacing: .06em; line-height: 1.5; }
.header__nav-link { color: var(--c-text-2); white-space: nowrap; transition: color .2s; }
.header__menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.header__menu-line { display: block; width: 24px; height: 1px; background: var(--c-text); transition: transform .3s var(--ease-out); }
.header__menu-btn[aria-expanded="true"] .header__menu-line:first-child { transform: translateY(4.5px) rotate(20deg); }
.header__menu-btn[aria-expanded="true"] .header__menu-line:last-child { transform: translateY(-4.5px) rotate(-20deg); }

/* ---- sp-menu（ハンバーガーで開くメニュー。JS で作る）
   画面の高さに合わせて余白と間隔を縮め、スクロールしなくても最後のボタンまで収まるようにする ---- */
.sp-menu { position: fixed; inset: 0; z-index: 50; background: var(--c-base); display: flex; flex-direction: column;
  padding: calc(56px + clamp(16px, 5vh, 48px)) 24px calc(clamp(24px, 6vh, 48px) + env(safe-area-inset-bottom));
  padding: calc(56px + clamp(16px, 5dvh, 48px)) 24px calc(clamp(24px, 6dvh, 48px) + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility 0s linear .4s; }
.sp-menu.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease-out); }
.sp-menu__link { display: block; flex-shrink: 0; padding: clamp(8px, 1.8vh, 16px) 0; padding: clamp(8px, 1.8dvh, 16px) 0; border-bottom: 1px solid var(--c-line); font-size: 18px; letter-spacing: .06em; color: var(--c-text); opacity: 0; transform: translateY(12px); }
.sp-menu.is-open .sp-menu__link { opacity: 1; transform: none; }
.sp-menu.is-open .sp-menu__link:not(.sp-menu__cta) { transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.sp-menu__en { display: block; margin-top: 2px; font-family: Inter, sans-serif; font-size: 14px; letter-spacing: .2em; color: var(--c-text-3); }
/* 高さの低い画面では、英字を日本語の右に並べて1行にする */
@media (max-height: 700px) {
  .sp-menu__link:not(.sp-menu__cta) { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .sp-menu__en { margin-top: 0; }
}
.sp-menu__cta { margin-top: clamp(16px, 4vh, 32px); margin-top: clamp(16px, 4dvh, 32px); display: flex; align-items: center; justify-content: space-between; height: 56px; min-height: 56px; padding: 0 24px; border: 0; background: var(--c-accent); color: var(--c-base); font-weight: 500; }

/* ---- sp-bar（SP の固定 CTA バー。JS で作る） ---- */
.sp-bar { display: none; }
.sp-bar__btn--trailer { --button-fill: var(--c-accent); }

/* ---- fv ---- */
.fv { position: relative; height: 900px; min-height: 720px; overflow: hidden; background: var(--c-base); }
.fv__frame { position: absolute; inset: 0; overflow: hidden; }
.fv__visual { position: absolute; inset: 0; }
.fv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.fv__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11, 14, 20, .9) 0%, rgba(11, 14, 20, .6) 30%, rgba(11, 14, 20, 0) 55%), linear-gradient(0deg, rgba(11, 14, 20, .92) 0%, rgba(11, 14, 20, .6) 30%, rgba(11, 14, 20, 0) 60%); }
.fv__shade-sp { display: none; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11, 14, 20, .85) 0%, rgba(11, 14, 20, 0) 45%); }
.fv__copy { position: absolute; left: 80px; bottom: 184px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.fv__catch { font-size: 40px; font-weight: 500; line-height: 1.5; letter-spacing: .08em; color: var(--c-text); }
.fv__title { margin-top: 32px; font-family: Inter, sans-serif; font-size: 88px; font-weight: 600; line-height: 1; letter-spacing: .12em; color: var(--c-text); }
.fv__bar { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 2; padding: 0 80px; display: flex; align-items: center; justify-content: space-between; }
.fv__date { font-family: Inter, sans-serif; font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: .04em; color: var(--c-text); }
.fv__ctas { display: flex; align-items: center; gap: 48px; white-space: nowrap; }

/* ---- story ---- */
/* 記憶ログ：画面いっぱいの場面。スクロールのあいだ画面が止まり（sticky）、JS が時刻・日数・線の長さを変える */
.story__memory { position: relative; height: 240vh; margin: 64px calc(50% - 50vw) 0; }
.story__memory-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 24px 0; overflow: hidden; text-align: center; font-family: Inter, sans-serif; }
.story__memory-label { position: absolute; top: 112px; left: var(--gut, 24px); font-size: var(--fs-small); font-weight: 500; letter-spacing: .3em; color: var(--c-text-3); white-space: nowrap; }
.story__memory-date { font-size: clamp(16px, 1.6vw, 22px); font-weight: 500; letter-spacing: .3em; color: var(--c-text-2); }
.story__memory-time { margin-top: 8px; font-size: clamp(72px, 16vw, 240px); font-weight: 600; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--c-text); transition: color .4s var(--ease-out); }
.story__memory-gap { margin-top: 32px; display: flex; align-items: baseline; gap: 24px; font-size: clamp(16px, 1.6vw, 22px); font-weight: 500; letter-spacing: .3em; opacity: 0; transition: opacity .4s var(--ease-out); }
.story__memory-nodata { color: var(--c-text-3); }
.story__memory-days { color: var(--c-accent); font-variant-numeric: tabular-nums; }
.story__memory-bar { position: absolute; left: var(--gut, 24px); right: var(--gut, 24px); bottom: 88px; height: 1px; background: var(--c-line); }
.story__memory-rec { position: absolute; top: 0; left: 0; width: 0; height: 1px; background: var(--c-text); }
.story__memory-rec--end { left: 80%; background: var(--c-accent); }
.story__memory-void { position: absolute; top: -6px; left: 20%; width: 0; height: 13px; background: repeating-linear-gradient(90deg, var(--c-line-strong) 0 1px, transparent 1px 8px); }
.story__memory-ticks { position: absolute; left: 0; right: 0; top: 20px; display: flex; justify-content: space-between; font-size: var(--fs-small); letter-spacing: .2em; color: var(--c-text-3); }
.story__memory.is-glitch .story__memory-time { animation: flicker .5s steps(1, end) infinite; }
.story__memory.is-lost .story__memory-time { color: var(--c-dim); }
.story__memory.is-back .story__memory-time { color: var(--c-accent); }
.story__memory.is-lost .story__memory-gap, .story__memory.is-back .story__memory-gap { opacity: 1; }
.story__lead { margin-top: 80px; text-align: center; font-size: 22px; font-weight: 400; line-height: 1.9; letter-spacing: .06em; color: var(--c-text); }
/* 中央の文章 + 左右の写真 */
.story__scroll { position: relative; margin-top: 120px; padding: 120px 0 240px; }
.story__eyebrow, .story__heading, .story__paragraph { position: relative; z-index: 1; max-width: 560px; margin-left: auto; margin-right: auto; }
.story__eyebrow { font-size: var(--fs-body); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); text-align: center; }
.story__heading { display: block; text-align: center; }
.story__paragraph { margin-top: 200px; font-size: var(--fs-lead); line-height: 2.2; letter-spacing: .06em; color: var(--c-text); }
.story__heading + .story__paragraph { margin-top: 120px; }
.story__char { color: var(--c-dim); transition: color .35s var(--ease-out); }
.story__char.is-on { color: var(--c-text); }
/* 写真：大きい写真（--large）と小さい写真（--small）の2層。
   スクロールすると大きい層は速く、小さい層は遅れて動き、すれ違いながら重なる（translate は JS が入れる） */
.story__photo { position: relative; z-index: 0; margin: 0; overflow: hidden; background: var(--c-base); box-shadow: 0 16px 32px -8px rgba(0, 0, 0, .55); will-change: translate; }
.story__photo--small { z-index: 1; }
.story__photo-img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.9); }
.story__photo--1, .story__photo--3, .story__photo--5 { aspect-ratio: 16/9; }
.story__photo--2 { aspect-ratio: 16/9; }
.story__photo--4, .story__photo--6 { aspect-ratio: 4/5; }
.story__photo--7 { aspect-ratio: 4/3; }

/* ---- world ---- */
.world__grid { margin-top: 80px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.world__term-title { margin-top: 16px; font-size: var(--fs-heading); font-weight: 500; line-height: 1.6; letter-spacing: .04em; color: var(--c-text); }
.world__term-text { margin-top: 16px; max-width: 360px; font-size: var(--fs-body); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); text-wrap: pretty; }
.world__panorama { margin: 160px -80px 0; position: relative; aspect-ratio: 3/1; overflow: hidden; background: var(--c-surface); }
.world__panorama-inner { position: absolute; inset: 0; transition: transform .6s ease-out; }
.world__panorama-pic { position: absolute; top: 0; bottom: 0; left: 0; width: 108%; display: block; }
.world__panorama-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }

/* ---- trailer ---- */
.trailer__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.trailer__head-main { grid-column: 1 / span 6; }
.trailer__head-side { grid-column: 8 / span 5; }
.trailer__intro { font-size: var(--fs-lead); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); text-wrap: pretty; }
.trailer__screen { margin-top: 160px; }
.trailer__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--c-surface); }
.trailer__thumb-inner { position: absolute; inset: 0; transition: transform .6s ease-out; }
.trailer__thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.trailer__actions { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.trailer__play-row { display: flex; align-items: center; gap: 48px; }
.trailer__play-icon { font-size: 16px; transition: transform .2s ease-out; }
.trailer__duration { font-size: var(--fs-small); line-height: 1.8; letter-spacing: .02em; color: var(--c-text-2); white-space: nowrap; }
.trailer__more { display: inline-flex; align-items: center; gap: 16px; padding: 0 0 6px; border: 0; color: var(--c-text-2); font-family: 'Noto Sans JP', sans-serif; font-size: var(--fs-body); font-weight: 400; letter-spacing: .04em; line-height: 1.5; cursor: pointer; background-color: transparent; background-image: linear-gradient(var(--c-text), var(--c-text)), linear-gradient(var(--c-line-strong), var(--c-line-strong)); background-position: left bottom, left bottom; background-size: 0% 1px, 100% 1px; background-repeat: no-repeat; transition: background-size .4s ease-out, color .2s; }
.text-link:hover, .trailer__more:hover { background-size: 100% 1px, 100% 1px; }
.trailer__more:hover { color: var(--c-text); }
.trailer__more-icon { font-family: Inter, sans-serif; }

/* ---- extras（特報・新映像。JS で作る） ---- */
.extras { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-cinema); }
.extras.is-open { grid-template-rows: 1fr; }
.extras__inner { overflow: hidden; }
.extras__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 48px; }
.extras__figure { margin: 0; }
.extras__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-surface); }
.extras__thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.extras__item:hover .extras__thumb-img { transform: scale(1.03); }
.extras__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; background: var(--c-base); color: var(--c-text); font-size: 16px; padding-left: 3px; }
.extras__caption { margin-top: 16px; font-size: var(--fs-body); line-height: 1.6; letter-spacing: .04em; color: var(--c-text); }
.extras__duration { display: block; margin-top: 4px; font-family: Inter, sans-serif; font-size: var(--fs-small); letter-spacing: .1em; color: var(--c-text-3); }

/* ---- character ---- */
.character__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.character__head-main { grid-column: 1 / span 7; }
.character__intro { grid-column: 8 / span 5; font-size: var(--fs-lead); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); text-wrap: pretty; }
.character__hero { margin-top: 80px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.character__hero-media { grid-column: 1 / span 6; position: relative; height: 640px; overflow: hidden; background: var(--c-surface); }
.character__hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.character__hero-body { grid-column: 8 / span 5; }
.character__hero-name { font-size: var(--fs-title); font-weight: 500; line-height: 1.5; letter-spacing: .06em; color: var(--c-text); white-space: nowrap; }
.character__hero-actor { margin-top: 16px; font-family: Inter, sans-serif; font-size: var(--fs-small); font-weight: 500; letter-spacing: .2em; line-height: 1.5; color: var(--c-text-2); white-space: nowrap; }
.character__hero-text { margin-top: 48px; max-width: 440px; font-size: var(--fs-lead); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); text-wrap: pretty; }
.character__hero-text + .character__hero-text { margin-top: 16px; }
.character__list { margin-top: 80px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.character__list::-webkit-scrollbar { display: none; }
.character__card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--c-surface); }
.character__card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: filter .5s var(--ease-out), transform .8s var(--ease-out); }
.character__card:hover .character__card-img { filter: saturate(1.15) contrast(1.05) brightness(1.06); transform: scale(1.02); }
.character__card-name { margin-top: 24px; font-size: var(--fs-heading); font-weight: 500; line-height: 1.6; letter-spacing: .04em; color: var(--c-text); white-space: nowrap; }
.character__card-actor { margin-top: 8px; font-family: Inter, sans-serif; font-size: var(--fs-small); font-weight: 500; letter-spacing: .2em; line-height: 1.5; color: var(--c-text-2); white-space: nowrap; }
.character__card-body { margin-top: 8px; transition: opacity .3s ease-out, transform .3s ease-out; }
.character__card-text { font-size: var(--fs-body); line-height: 1.8; letter-spacing: .04em; color: var(--c-text-2); text-wrap: pretty; }

/* ---- cinema ---- */
.cinema__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.cinema__main { grid-column: 8 / span 5; grid-row: 1; }
.cinema__text { margin-top: 48px; font-size: var(--fs-lead); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); text-wrap: pretty; }
.cinema__media { grid-column: 1 / span 6; grid-row: 1; }
.cinema__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--c-surface); }
.cinema__thumb-inner { position: absolute; inset: 0; transition: transform .6s ease-out; }
.cinema__thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }

/* ---- staff ---- */
.staff__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.staff__main { grid-column: 1 / span 5; }
.staff__text { margin-top: 48px; font-size: var(--fs-lead); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); text-wrap: pretty; }
.staff__credits { margin-top: 48px; display: flex; flex-wrap: wrap; column-gap: 1.5em; font-size: var(--fs-body); line-height: 2; letter-spacing: .04em; color: var(--c-text); }
.staff__credit { white-space: nowrap; }
.staff__side { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.staff__photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--c-surface); }
.staff__photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.staff__comment { display: flex; flex-direction: column; justify-content: center; padding: 32px; background: var(--c-surface); }
.staff__comment-title { font-size: var(--fs-heading); font-weight: 500; line-height: 1.6; letter-spacing: .04em; color: var(--c-text); white-space: nowrap; }
.staff__comment-text { margin-top: 16px; font-size: var(--fs-body); line-height: 1.9; letter-spacing: .04em; color: var(--c-text); text-wrap: pretty; }
.staff__comment-name { margin-top: 16px; font-size: var(--fs-small); line-height: 1.8; letter-spacing: .04em; color: var(--c-text-2); }

/* ---- special ---- */
.special__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.special__head-main { grid-column: 1 / span 7; }
.special__intro { grid-column: 8 / span 5; font-size: var(--fs-lead); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); text-wrap: pretty; }
.special__grid { margin-top: 80px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.special__card { display: flex; flex-direction: column; gap: 24px; }
.special__card-media { position: relative; aspect-ratio: 3/1; overflow: hidden; background: var(--c-surface); }
.special__card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.special__card-body { display: flex; flex-direction: column; }
.special__card-title { margin-top: 16px; font-family: Inter, sans-serif; font-size: var(--fs-heading); font-weight: 500; line-height: 1.6; letter-spacing: .2em; color: var(--c-text); }
.special__card-sub { margin-top: 8px; font-size: var(--fs-small); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); }
.special__card-text { margin-top: 16px; font-size: var(--fs-body); line-height: 1.8; letter-spacing: .02em; color: var(--c-text-2); }

/* ---- news ---- */
.news__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.news__head-main { grid-column: 1 / span 6; }
.news__intro { grid-column: 8 / span 5; font-size: var(--fs-lead); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); text-wrap: pretty; }
.news__list { margin: 80px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.news__item { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; row-gap: 0; padding: 24px 32px; background: var(--c-surface); font-size: var(--fs-body); line-height: 2; letter-spacing: .04em; transition: background-color .2s ease-out; }
.news__item:hover { background-color: var(--c-main); }
.news__date { grid-column: span 2; font-family: Inter, sans-serif; letter-spacing: .1em; color: var(--c-text-2); }
.news__cat { grid-column: span 2; color: var(--c-text-2); }
.news__title { grid-column: span 7; color: var(--c-text); }
.news__arrow { grid-column: span 1; justify-self: end; font-family: Inter, sans-serif; transition: transform .2s ease-out; }
.news__links { margin-top: 48px; display: flex; justify-content: flex-end; gap: 48px; }

/* ---- theater（背景の写真は画面に固定し、文字がその上を流れる。フッターまで同じ写真が続く） ---- */
.theater { position: relative; isolation: isolate; clip-path: inset(0); }
.theater__bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; }
.theater__bg::after { content: ""; position: absolute; inset: 0; background: rgba(11, 14, 20, .8); }
.theater__bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 47% 60%; filter: saturate(.8); }
.theater__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.theater__main { grid-column: 1 / span 6; }
.theater__text { margin-top: 48px; max-width: 520px; font-size: var(--fs-lead); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); text-wrap: pretty; }
.theater__info { grid-column: 8 / span 5; align-self: end; }
.theater__date { font-family: Inter, sans-serif; font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: .04em; color: var(--c-text); }
.theater__date-text { margin-top: 16px; font-size: var(--fs-body); font-weight: 500; line-height: 1.5; letter-spacing: .06em; color: var(--c-text); }
.theater__spec { margin-top: 48px; border-top: 1px solid var(--c-line); }
.theater__spec-row { display: grid; grid-template-columns: 160px 1fr; padding: 16px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-body); line-height: 2; letter-spacing: .04em; }
.theater__spec-term { color: var(--c-text); }
.theater__spec-desc { color: var(--c-text-2); }
.theater__search { margin-top: 80px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 48px; background: var(--c-base); }
.theater__search-main { grid-column: 1 / span 5; }
.theater__search-label { display: block; font-size: var(--fs-heading); font-weight: 500; line-height: 1.6; letter-spacing: .04em; color: var(--c-text); }
.theater__select-wrap { margin-top: 24px; position: relative; }
.theater__select { width: 100%; height: 56px; padding: 0 56px 0 16px; appearance: none; -webkit-appearance: none; background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: 0; color: var(--c-text); font-family: 'Noto Sans JP', sans-serif; font-size: 16px; letter-spacing: .04em; cursor: pointer; }
.theater__select-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: Inter, sans-serif; color: var(--c-text-2); pointer-events: none; }
.theater__note { margin-top: 24px; font-size: var(--fs-small); line-height: 1.8; letter-spacing: .02em; color: var(--c-text-3); }
.theater__search-side { grid-column: 7 / span 6; padding-left: 48px; }
.theater__search-title { margin-top: 24px; font-size: var(--fs-heading); font-weight: 500; line-height: 1.6; letter-spacing: .04em; color: var(--c-text); }
.theater__search-text { margin-top: 16px; font-size: var(--fs-body); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); text-wrap: pretty; }
.theater__list { margin: 24px 0 0; padding: 0; list-style: none; }
.theater__list-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-body); letter-spacing: .04em; color: var(--c-text); opacity: 0; transform: translateY(8px); animation: sg-up .5s var(--ease-out) forwards; }
.theater__list-link { flex: none; font-size: var(--fs-small); color: var(--c-accent); letter-spacing: .06em; white-space: nowrap; }
.theater__list-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- footer（THEATER と同じ固定背景が続く。黒の重ねは画面に対して一定） ---- */
.footer { position: relative; isolation: isolate; clip-path: inset(0); padding: 80px 80px 48px; background: transparent; border-top: 1px solid rgba(170, 182, 196, .16); }
.footer__bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; }
.footer__bg::after { content: ""; position: absolute; inset: 0; background: rgba(11, 14, 20, .86); }
.footer__bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 47% 60%; filter: saturate(.8); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.footer__main { grid-column: 1 / span 6; }
.footer__logo { font-family: Inter, sans-serif; font-size: 16px; font-weight: 500; letter-spacing: .2em; line-height: 1.5; }
.footer__text { margin-top: 24px; font-size: var(--fs-body); line-height: 2; letter-spacing: .04em; color: var(--c-text-2); }
.footer__links { grid-column: 8 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.footer__nav { margin-top: 80px; display: flex; flex-wrap: wrap; gap: 16px 40px; font-family: Inter, sans-serif; font-size: 16px; font-weight: 500; letter-spacing: .2em; line-height: 1.5; }
.footer__nav-link { white-space: nowrap; transition: color .2s; }
.footer__meta { margin-top: 48px; font-size: var(--fs-small); line-height: 1.8; letter-spacing: .02em; color: var(--c-text-2); }
.footer__note { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--c-line); font-size: var(--fs-small); line-height: 1.8; letter-spacing: .02em; color: var(--c-text-3); }
.footer__meta-link { color: inherit; white-space: nowrap; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: right bottom; padding-bottom: 2px; transition: background-size .4s var(--ease-cinema), color .3s; }
.footer__meta-link:hover { color: var(--c-text); background-size: 100% 1px; background-position: left bottom; }


/* =========================================================
   5. Responsive（PC・タブレット）
   ========================================================= */
/* スムーズスクロールは、最初の操作のあとから（読み込み中にブラウザがスクロール位置を戻す動きまで滑らかになるのを防ぐ） */
@media (prefers-reduced-motion: no-preference) { html.is-interacted { scroll-behavior: smooth; } }

/* ---- 768px 以上：背景・写真は横幅いっぱい、文字と要素は中央の 1280px に収める ---- */
@media (min-width: 768px) {
  :root { --gut: max(80px, calc((100% - 1280px) / 2)); }
  .section, .section-band, .footer { padding-left: var(--gut); padding-right: var(--gut); }
  .header__inner { max-width: none; padding-left: var(--gut); padding-right: var(--gut); }
  .fv__copy { left: var(--gut); }
  .fv__bar { padding-left: var(--gut); padding-right: var(--gut); }
  .world__panorama { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .fv, .insert { height: 100vh; min-height: 720px; max-height: 1200px; }
  /* 2つ目のインサートは元の切り抜き（scale 1.6）を、パララックス用に縦長にした枠に合わせて補正 */
  [data-pxbg] .insert__img--zoom { transform: scale(1.32); transform-origin: 56% 64%; }
}

/* ---- 768px 以上：監督の写真はコメントと同じ高さで、自分の列の幅に収める（4:5 のままだと横に広がってコメントにかぶる） ---- */
@media (min-width: 768px) {
  .staff__photo { aspect-ratio: auto; min-height: 320px; }
}

/* ---- 768px 以上：予告編のサムネイルは画面の端から端まで、映画のスクリーンと同じ 2.39:1 ---- */
@media (min-width: 768px) {
  .trailer__screen { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .trailer__thumb { aspect-ratio: 2.39 / 1; }
}

/* ---- 768px 以上：SPECIAL の見出しは中央にそろえ、ほかのセクションと組み方を変える ---- */
@media (min-width: 768px) {
  .special__head { display: block; text-align: center; }
  .special__intro { max-width: 600px; margin: 32px auto 0; word-break: auto-phrase; text-wrap: balance; }
}

/* ---- 1100px 以上：メニューは使わない ---- */
@media (min-width: 1100px) { .sp-menu { display: none; } }

/* ---- 1200px 以上：ストーリーの写真を画面の端から端まで使って大きく ---- */
@media (min-width: 1200px) {
  /* 中央の文章（560px）の左右を写真の場所にする。--side は片側の幅 */
  .story__scroll { --side: calc(50vw - 320px); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-bottom: 160px; }
  /* 写真は小さめにして、層どうしがすれ違う余白を残す（広い画面でも大きくなりすぎないよう上限あり） */
  .story__photo { position: absolute; margin: 0; }
  .story__photo--large { width: min(calc(var(--side) * .7), 400px); }
  .story__photo--small { width: min(calc(var(--side) * .42), 240px); }
  .story__photo--large.story__photo--left { left: 4vw; }
  .story__photo--small.story__photo--left { left: calc(4vw + min(calc(var(--side) * .7), 400px) * .6); }
  .story__photo--large.story__photo--right { right: 4vw; }
  .story__photo--small.story__photo--right { right: calc(4vw + min(calc(var(--side) * .7), 400px) * .6); }
  .story__photo--1 { top: 0%; }
  .story__photo--2 { top: 12%; }
  .story__photo--3 { top: 18%; }
  .story__photo--4 { top: 31%; }
  .story__photo--5 { top: 44%; }
  .story__photo--6 { top: 56%; }
  .story__photo--7 { top: 68%; }
}
/* ---- 768〜1199px：登場人物の6人は3人ずつ2段 ---- */
@media (min-width: 768px) and (max-width: 1199px) {
  .character__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
}
/* ---- 1200px 以上：6人を1列に並べるので、名前は少し小さく ---- */
@media (min-width: 1200px) {
  .character__card-name { font-size: 20px; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .character__card-name { font-size: 18px; }
  .character__card-actor { letter-spacing: .1em; }
}

/* ---- 1200px 以上：NEWS は左に見出し、右に一覧を並べる ---- */
@media (min-width: 1200px) {
  .news { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .news__head { grid-column: 1 / span 4; display: block; }
  .news__intro { margin-top: 32px; word-break: auto-phrase; text-wrap: balance; }
  .news__list { grid-column: 6 / span 7; grid-row: 1; margin-top: 0; }
  .news__links { grid-column: 6 / span 7; }
  .news__item { grid-template-columns: 72px 96px minmax(0, 1fr) 24px; }
  .news__date, .news__cat, .news__title, .news__arrow { grid-column: auto; }
}

/* ---- 1199px 以下：ストーリーの写真は文章の間に並べる。登場人物の6人は3人ずつ2段 ---- */
@media (max-width: 1199px) {
  .story__scroll { min-height: 0; padding: 80px 0 120px; }
  .story__eyebrow, .story__heading, .story__paragraph { max-width: 640px; }
  .story__paragraph { margin-top: 64px; }
  /* 写真は文章の間に、大きい写真に小さい写真が重なる組で並べる */
  .story__photo--large { width: 64%; margin-top: 64px; }
  .story__photo--small { width: 36%; margin-top: -14%; }
  .story__photo--large.story__photo--right { margin-left: auto; }
  .story__photo--small.story__photo--left { margin-left: 52%; }
  .story__photo--small.story__photo--right { margin-left: 8%; }
}

/* ---- タブレット（768〜1099px）：ナビはメニューにまとめ、スタッフは縦に並べる ---- */
@media (min-width: 768px) and (max-width: 1099px) {
  .br--tab { display: inline; }
  .header__nav { display: none; }
  .header__menu-btn { display: flex; margin-left: 24px; }
  .header__inner { justify-content: flex-start; }
  .header__inner > .header__logo { margin-right: auto; }
  .sp-menu { padding: 120px max(40px, calc((100% - 640px) / 2)) 40px; }
  .staff__main, .staff__side { grid-column: 1 / -1; }
  .staff__side { margin-top: 48px; }
}

/* ---- 1024〜1199px：CINEMA は写真と文章を半分ずつ ---- */
@media (min-width: 1024px) and (max-width: 1199px) {
  .cinema__main { grid-column: 7 / span 6; }
  .cinema__media { grid-column: 1 / span 6; }
}

/* ---- 768〜1023px：左右の余白は 40px。劇場検索は縦に並べる ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --gut: 40px; }
  .cinema__main, .cinema__media { grid-column: 1 / -1; grid-row: auto; }
  .cinema__media { margin-top: 48px; }
  .character__hero-name { font-size: 32px; }
  .theater__search-main, .theater__search-side { grid-column: 1 / -1; }
  .theater__search-side { padding-left: 0; margin-top: 48px; }
  .footer__nav { flex-wrap: wrap; gap: 16px 32px; }
  .footer__main, .footer__links { grid-column: 1 / -1; }
  .footer__links { margin-top: 40px; }
}


/* =========================================================
   6. SP（767px 以下）
   ========================================================= */
@media (max-width: 767px) {
  :root { --fs-title: 26px; --fs-heading: 19px; --fs-lead: 16px; --fs-body: 15px; --fs-small: 14px; }
  html { scroll-padding-top: 56px; }
  .br--sp { display: inline; }

  /* 余白：左右 24px、セクションどうしの間は最大 80px */
  .section { padding: 80px 24px 0; }
  .section-band { margin-top: 80px; padding: 80px 24px; }
  .section-band--tight { margin-top: 40px; }
  .insert { margin-top: 80px; height: 650px; }
  .world__panorama { margin: 80px -24px 0; aspect-ratio: 16/9; }

  /* 12カラムのグリッドは1列に */
  .world__grid, .trailer__head, .character__head, .character__hero, .cinema__grid, .staff__grid, .staff__side, .special__head, .special__grid, .news__head, .news__item, .theater__grid, .theater__search, .footer__grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  :is(.world__grid, .trailer__head, .character__head, .character__hero, .cinema__grid, .staff__grid, .staff__side, .special__head, .special__grid, .news__head, .news__item, .theater__grid, .theater__search, .footer__grid) > * { grid-column: auto; }

  /* 文字 */
  .section-en { font-size: 48px; margin-bottom: 16px; }
  .trailer__intro, .character__intro, .character__hero-text, .cinema__text, .staff__text, .special__intro, .news__intro, .theater__text { line-height: 1.9; }
  /* 見出しは文節で折り返し、1〜2文字だけ次の行に落ちないようにする（対応ブラウザ） */
  .section-title, .fv__catch, .insert__text, .story__lead, .world__term-title, .theater__search-title { word-break: auto-phrase; text-wrap: balance; }

  /* header / メニュー / 固定 CTA バー */
  .header { height: 56px; min-width: 0; }
  .header__inner { padding: 0 24px; }
  .header__nav { display: none; }
  .header__menu-btn { display: flex; }
  .sp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(27, 42, 63, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translateY(100%); transition: transform .4s var(--ease-out); }
  .sp-bar.is-shown { transform: none; }
  .sp-bar__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 12px; font-size: 16px; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
  .sp-bar__btn--theater { flex: 1.5; }
  .sp-bar__btn--trailer { border: 1px solid var(--c-line-strong); color: var(--c-text); }
  .sp-bar__btn--theater { background: var(--c-accent); color: var(--c-base); }

  /* fv */
  .fv { height: 812px; }
  .fv__frame { top: 0; height: 100%; }
  .fv__shade-sp { display: block; }
  .fv__copy { top: 80px; bottom: auto; left: 24px; right: 24px; }
  .fv__title { order: -1; font-size: 48px; margin: 0 0 24px; }
  .fv__catch { font-size: 26px; }
  .fv__bar { top: auto; bottom: 32px; height: auto; padding: 0 24px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .fv__bar > * { align-self: stretch; }
  .fv__bar > p { align-self: flex-start; }
  .fv__ctas { flex-direction: column; align-items: stretch; width: 100%; gap: 16px; }
  .fv__ctas > a { width: 100%; justify-content: center; white-space: nowrap; }
  .fv__date, .theater__date { font-size: 36px; }

  /* story */
  .story__scroll { margin-top: 80px; padding: 0; }
  .story__paragraph { line-height: 2.1; }
  .story__heading + .story__paragraph { margin-top: 64px; }
  .story__photo--large { width: 84%; margin-top: 56px; }
  .story__photo--small { width: 46%; margin-top: -14%; }
  .story__photo--small.story__photo--left { margin-left: 54%; }
  .story__photo--small.story__photo--right { margin-left: 0; }

  /* 記憶ログ：ラベルは小さく、線と日付は固定 CTA バーより上に */
  .story__memory { height: 220vh; }
  .story__memory-label { top: 88px; letter-spacing: .2em; }
  .story__memory-bar { bottom: 128px; }
  .story__memory-ticks { letter-spacing: .04em; }

  /* insert */
  .insert__text { font-size: 22px; white-space: normal; }
  .story__lead { font-size: 17px; }
  .insert__img--zoom { transform: none; }

  /* trailer / extras */
  .trailer__screen { margin: 48px -24px 0; }
  .trailer__actions, .trailer__play-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .extras__grid { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }

  /* character：横スクロール。止まる位置はカードが左端に張り付かないよう 24px 内側 */
  .character__hero-media { height: auto; aspect-ratio: 4/5; }
  .character__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; gap: 16px; margin: 80px -24px 0; padding: 0 24px 8px; scrollbar-width: none; }
  .character__list > * { flex: 0 0 72%; scroll-snap-align: start; }
  .character__list::after { content: ""; flex: 0 0 8px; }

  /* staff：写真とコメントはすき間なくつなげる */
  .staff__side { row-gap: 0; }

  /* cinema */
  .cinema__main, .cinema__media { grid-row: auto; }
  .button--outline-wide { width: 100%; gap: 16px; height: auto; min-height: 56px; padding: 12px 16px; letter-spacing: .02em; white-space: normal; text-align: left; }

  /* special / news */
  .special__card-media { aspect-ratio: 16/9; }
  .news__arrow { display: none; }
  .news__links, .footer__nav { flex-wrap: wrap; gap: 16px 32px; }

  /* theater */
  .theater__search { padding: 24px; }
  .theater__search-side { padding: 0; }

  /* footer（下に固定 CTA バーの分をあける） */
  .footer { padding: 64px 24px 112px; }
}
@media (max-width: 360px) { .br--narrow { display: inline; } }


/* =========================================================
   7. Reduced motion：フェードだけ残す
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  [data-fv-img] img, [data-fv-img].is-in img, .js [data-curtain] img { transform: none; transition: none; }
  /* 記憶ログは画面を止めず、最後の状態（記録が戻ったところ）を見せる */
  .js [data-fv-img] { -webkit-mask-image: none; mask-image: none; }
  .story__memory { height: auto; }
  .story__memory-stage { position: relative; height: auto; min-height: 100vh; }
  .story__memory.is-glitch .story__memory-time { animation: none; }
  .js [data-reveal] { transform: none; }
  .js [data-curtain] { clip-path: none; }
  .js [data-screen] > [data-zoom] { transform: none; }
  .is-in [data-play]::after { animation: none; opacity: 0; }
  .js .section-en__letter { opacity: 1; transform: none; }
  .js .heading-reveal .heading-reveal__line { color: inherit; }
  .heading-reveal.is-in .heading-reveal__line::after { animation: none; }
  .button::before, .sp-bar__btn::before, .sp-menu__cta::before { transition: none; }
  .button:hover [data-arw], .button:hover > span[aria-hidden="true"]:last-child,
  .sp-bar__btn:hover > span[aria-hidden="true"]:last-child, .sp-menu__cta:hover > span[aria-hidden="true"]:last-child { animation: none; }
}
