/* ==========================================================================
   札幌国際AI映画祭 — 共通スタイル
   デザインコンセプト：「レッドカーペットと、暗闇の中の種火」
   面積比の目安：暗色70％／赤20％／金10％（金は「線と点」で使う）
   ========================================================================== */

/* ---------- 1. デザイントークン ---------- */
:root {
  --color-base: #0D0909;
  --color-surface: #1A1111;
  --color-surface-2: #231616;
  --color-red: #B1121F;
  --color-red-deep: #6E0B14;
  --color-gold: #C9A24B;
  --color-gold-light: #E8CF8A;
  --color-text: #F5EFE2;
  --color-text-muted: #C3BAAB;

  --line-gold: rgba(201, 162, 75, .45);
  --line-faint: rgba(245, 239, 226, .1);
  --grad-gold: linear-gradient(100deg, #9c7a2f 0%, var(--color-gold) 28%, var(--color-gold-light) 50%, var(--color-gold) 72%, #9c7a2f 100%);
  --grad-carpet: linear-gradient(180deg, var(--color-red) 0%, var(--color-red-deep) 100%);

  /* 見出し・日本語と英数字が混在する箇所：Noto Serif JP（欧文・数字も同書体で、漢字と太さ・高さが揃う） */
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  /* 英語だけの装飾ラベル（Concept／For Creators／Daytime 等）：Cormorant Garamond */
  --font-display: "Cormorant Garamond", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-sans: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --w-content: 1120px;
  --w-narrow: 760px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 72px;
  --section-y: clamp(64px, 8vw, 112px);
  --radius: 2px;
}

/* ---------- 2. フェーズ／販売状態による表示切替（config.js が <html> に属性を付与） ---------- */
html[data-phase="0"] [data-show]:not([data-show~="0"]),
html[data-phase="1"] [data-show]:not([data-show~="1"]),
html[data-phase="2"] [data-show]:not([data-show~="2"]),
html[data-phase="3"] [data-show]:not([data-show~="3"]),
html[data-phase="4"] [data-show]:not([data-show~="4"]) { display: none !important; }
html[data-tickets="off"] [data-sale="on"],
html[data-tickets="on"] [data-sale="off"] { display: none !important; }
/* 応募受付状態（config.js の submissionsOpen）。JS無効時は受付中として表示 */
html[data-submit="off"] [data-submit="on"],
html[data-submit="on"] [data-submit="off"] { display: none !important; }
html:not([data-submit]) [data-submit="off"] { display: none !important; }

/* ---------- 3. ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--color-base);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Cormorant Garamond の既定はオールドスタイル数字（2027 の 2 や 7 が下がる）で日本語と高さが揃わないため、ライニング数字を全体に指定 */
  font-variant-numeric: lining-nums;
}
/* フィルムグレイン（全面にごく薄く） */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--color-gold-light); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-gold-light); outline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-serif); font-weight: 500; line-height: 1.5; letter-spacing: .08em; margin: 0;
  word-break: auto-phrase; text-wrap: balance;
}
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.4em; }
strong { font-weight: 700; color: var(--color-text); }
small, .small { font-size: .82rem; }
.muted { color: var(--color-text-muted); }
.tbd { color: var(--color-gold); font-size: .85em; letter-spacing: .02em; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--color-red); color: var(--color-text); padding: 8px 16px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--w-content) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--w-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }
.section--surface { background: var(--color-surface); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }

/* ---------- 4. 見出し・区切り ---------- */
.sec-head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head__en {
  display: block; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; letter-spacing: .22em;
  color: var(--color-gold); margin-bottom: 10px; text-transform: none;
}
.sec-head__ja { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
/* ルビ：見出し用。金色の小さな読みを上に載せ、行間はルビ分だけ確保する */
ruby { ruby-align: center; }
rt { font-family: var(--font-sans); font-size: .38em; font-weight: 400; letter-spacing: .12em; color: var(--color-gold); line-height: 1; text-transform: none; ruby-align: space-around; }
rp { display: none; }
.sec-head__ja:has(ruby) { line-height: 1.9; padding-top: .35em; }
@media (max-width: 640px) { .sec-head__ja:has(ruby) { line-height: 2; } }
/* 長い見出し（20字超）：PCでは2行に収まるよう一段小さく */
.sec-head__ja--long { font-size: clamp(1.5rem, 3vw, 1.95rem); }
.sec-head__lead { max-width: 660px; margin: 22px auto 0; color: var(--color-text-muted); font-size: 1rem; }
.sec-head--left { text-align: left; }
.sec-head--left .sec-head__lead { margin-left: 0; }

/* 金の細罫＋小さな菱形 */
.divider { display: flex; align-items: center; gap: 18px; max-width: var(--w-content); margin-inline: auto; padding-inline: var(--gutter); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold)); }
.divider::after { background: linear-gradient(270deg, transparent, var(--line-gold)); }
.divider i { width: 7px; height: 7px; background: var(--grad-gold); transform: rotate(45deg); flex: none; }

.h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: 18px; }
.h3--gold { color: var(--color-gold-light); }
.h4 { font-size: 1.08rem; margin-bottom: 10px; letter-spacing: .06em; }
.rule-title { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; margin-bottom: 22px; border-bottom: 1px solid var(--line-gold); }
.rule-title .num { font-family: var(--font-display); font-style: italic; color: var(--color-gold); font-size: 1.3em; }

/* ---------- 5. ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: 12px 34px; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .95rem; font-weight: 700; letter-spacing: .12em; line-height: 1.4;
  text-decoration: none; text-align: center; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
/* 赤ボタンも金ボタンと同じ作法：グラデーション塗り＋明るい縁線、ホバーで明るくなり発光する */
.btn--primary { background: linear-gradient(180deg, #B8141F 0%, #8E0E18 100%); border-color: #E2404A; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.btn--primary:hover { background: linear-gradient(180deg, #CC1A27 0%, #A0121C 100%); color: #fff; box-shadow: 0 6px 28px -6px rgba(177, 18, 31, .8); }
.btn--ghost { border-color: var(--color-gold); color: var(--color-gold-light); background: transparent; }
.btn--ghost:hover { background: rgba(201, 162, 75, .12); color: var(--color-text); }
/* 応募CTA：金の塗り＋白文字（創る人向けの導線を購入導線と並べて識別できるようにする） */
/* 白文字のコントラスト（WCAG AA 4.5:1 以上）を確保するため、金は深いブロンズ寄りにし、金の縁で「金色」を示す */
.btn--gold { background: linear-gradient(180deg, #8F6A24 0%, #75551B 100%); border-color: #D9B45E; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.btn--gold:hover { background: linear-gradient(180deg, #9C752A 0%, #815E1F 100%); color: #fff; box-shadow: 0 6px 28px -6px rgba(201, 162, 75, .7); }
.band .btn--gold { border-color: var(--color-gold-light); }
.btn--sm { min-height: 40px; padding: 6px 20px; font-size: .82rem; }
.btn--lg { min-height: 60px; padding: 14px 48px; font-size: 1.02rem; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .ext { font-size: .8em; opacity: .8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row--center { justify-content: center; }
.ext-note { display: block; margin-top: 12px; font-size: .78rem; color: var(--color-text-muted); }
.text-link { font-family: var(--font-serif); font-size: 1.02rem; letter-spacing: .1em; text-decoration: none; border-bottom: 1px solid var(--line-gold); padding-bottom: 3px; }
.text-link::after { content: " →"; }

/* ---------- 6. ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 500; height: var(--header-h);
  display: flex; align-items: center; transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
/* 背景と backdrop-filter は擬似要素に持たせる。ヘッダー自身に filter を掛けると、その中の
   position:fixed なモバイルナビ（.gnav）がヘッダーを包含ブロックにしてしまい、画面全体に広がらなくなる */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: background-color .3s; }
.site-header.is-solid::before, .no-hero .site-header::before { background: rgba(13, 9, 9, .92); backdrop-filter: blur(10px); }
.site-header.is-solid, .no-hero .site-header { border-bottom-color: var(--line-gold); }
/* スマートヘッダー：下スクロールで退避、上スクロールで即再表示（site.js が is-hidden を付け外し） */
.site-header { transition: background-color .3s, border-color .3s, transform .3s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: 24px; width: 100%; padding-inline: var(--gutter); }
/* 並び順：ブランド → ナビ → 主CTA → メニュー開閉。主CTAはナビの外に置き、モバイルでも常に見える */
.gnav { order: 1; }
.gnav__cta { order: 2; display: flex; flex: none; gap: 10px; }
.gnav__cta .btn { white-space: nowrap; }
.nav-toggle { order: 3; }
/* 常時CTAが2本（応募＋チケット）になるため、中間幅ではブランド英字とナビ間隔を詰める */
@media (max-width: 1200px) {
  .site-header .brand__en { display: none; }
  .site-header__inner { gap: 16px; }
  .gnav, .gnav__list { gap: 18px; }
  .gnav__cta .btn { padding: 6px 14px; }
}
/* 961〜1100px：ブランドは紋章のみ（名称は aria-label で保持）、ナビ文字をやや小さく */
@media (max-width: 1100px) and (min-width: 961px) {
  .site-header .brand__text { display: none; }
  .gnav__list a { font-size: 1rem; letter-spacing: .08em; }
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-text); margin-right: auto; }
.brand svg, .brand img { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__ja { font-family: var(--font-serif); font-size: .98rem; letter-spacing: .14em; white-space: nowrap; }
.brand__en { font-family: var(--font-display); font-style: italic; font-size: .68rem; letter-spacing: .12em; color: var(--color-gold); white-space: nowrap; }
.gnav { display: flex; align-items: center; gap: 28px; }
.gnav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.gnav__list a {
  font-family: var(--font-display); font-size: 1.08rem; letter-spacing: .12em; color: var(--color-text); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s;
}
.gnav__list a:hover, .gnav__list a[aria-current="page"] { border-bottom-color: var(--color-gold); color: var(--color-gold-light); }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; font-size: .8rem; letter-spacing: .08em; color: var(--color-text-muted);
  border: 1px solid var(--line-faint); padding: 6px 12px; border-radius: var(--radius); white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: " ▾"; font-size: .8em; }
.lang[open] summary, .lang summary:hover { color: var(--color-text); border-color: var(--line-gold); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; margin: 0; padding: 8px; list-style: none; background: var(--color-surface); border: 1px solid var(--line-gold); }
.lang li > * { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; font-size: .85rem; text-decoration: none; color: var(--color-text); }
.lang li > span { color: var(--color-text-muted); opacity: .7; }
.lang li > span small { font-size: .7rem; }
.lang li > a[aria-current] { color: var(--color-gold-light); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-gold); color: var(--color-text); width: 44px; height: 44px; padding: 0; cursor: pointer; border-radius: var(--radius); }
.nav-toggle span { display: block; width: 20px; height: 1px; background: currentColor; margin: 5px auto; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .js .nav-toggle { display: block; flex: none; }
  .brand__en { display: none; }
  .site-header__inner { gap: 12px; }
  /* モバイルの主CTAは画面下の固定バー（.cta-bar）に置くため、ヘッダー内CTAは出さない */
  .js .gnav__cta { display: none; }
  .js .gnav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; justify-content: flex-start; gap: 32px;
    padding: 48px var(--gutter); background: rgba(13, 9, 9, .98); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  }
  .js .gnav.is-open { visibility: visible; opacity: 1; }
  .js .gnav__list { flex-direction: column; align-items: center; gap: 22px; }
  .js .gnav__list a { font-size: 1.5rem; }
  .js .lang ul { position: static; margin-top: 8px; }
  /* JS無効時：ナビは折り返して常時表示 */
  .no-js .site-header { position: static; height: auto; padding-block: 12px; background: var(--color-base); }
  .no-js .site-header__inner, .no-js .gnav { flex-wrap: wrap; }
}

/* ---------- 7. Hero（トップ） ---------- */
.hero { position: relative; min-height: min(100svh, 960px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 16px) var(--gutter) 120px; }
.hero__media { position: absolute; inset: 0; z-index: -3; background: var(--color-base); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: .9; animation: rise 2.4s ease-out both; --to: .9; }
/* 写真の上に、文字の背面だけ暗くする楕円と、上下を地色へ溶かす帯を重ねる（写真の客席と照明は見せる） */
.hero__shade { position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 58% 52% at 50% 46%, rgba(13, 9, 9, .62) 0%, rgba(13, 9, 9, .38) 55%, rgba(13, 9, 9, 0) 100%),
    linear-gradient(180deg, rgba(13, 9, 9, .78) 0%, rgba(13, 9, 9, .18) 28%, rgba(13, 9, 9, .22) 62%, rgba(13, 9, 9, .96) 100%);
}
/* スポットライトの光芒 */
.hero__beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: .22; }
.hero__beams::before, .hero__beams::after {
  content: ""; position: absolute; top: -14%; width: 38vw; height: 130%;
  background: linear-gradient(180deg, rgba(232, 207, 138, .22), rgba(232, 207, 138, 0) 70%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); filter: blur(28px);
}
.hero__beams::before { left: -4vw; transform: rotate(-16deg); transform-origin: top center; }
.hero__beams::after { right: -4vw; transform: rotate(16deg); transform-origin: top center; }
.hero__embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
/* 文字ブロックの背面に暗い層（中心ほど濃い楕円＋全体を薄く）を敷き、写真の照明・座席と文字が重ならないようにする */
.hero__inner { max-width: 980px; animation: rise 1.6s .3s ease-out both; position: relative; padding: 24px clamp(16px, 4vw, 56px); }
.hero__inner::before {
  content: ""; position: absolute; inset: -8% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(10, 6, 6, .82) 0%, rgba(10, 6, 6, .62) 45%, rgba(10, 6, 6, .25) 75%, rgba(10, 6, 6, 0) 100%);
}
/* 映画祭名＋年：Heroの最上段に大きく。年は金の細字で添える */
.hero__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.2rem, 4.9vw, 3.7rem); letter-spacing: .12em; line-height: 1.2; margin: 0 0 8px; color: var(--color-text); }
.hero__title-year { font-weight: 500; color: var(--color-gold-light); letter-spacing: .06em; }
.hero__edition { font-family: var(--font-display); font-style: italic; letter-spacing: .24em; color: var(--color-gold); font-size: clamp(.85rem, 1.6vw, 1.1rem); margin-bottom: 10px; }
/* 主CTAを 1440×800 のノートPCでもフォールド内に収めるため、縦方向は詰める */
.hero__copy {
  position: relative; padding: clamp(14px, 2vw, 22px) 0; margin: 0 auto 16px;
  font-size: clamp(1.4rem, min(3.6vw, 4.6vh), 2.7rem); font-weight: 500; letter-spacing: .16em; line-height: 1.55; text-indent: .16em;
}
.hero__copy::before, .hero__copy::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: min(560px, 80%); height: 1px; background: var(--grad-gold); }
.hero__copy::before { top: 0; } .hero__copy::after { bottom: 0; }
.hero__copy > span { display: block; }
.hero__copy > span > span { display: inline-block; }
.hero__open { font-family: var(--font-serif); font-size: clamp(1.05rem, 2.2vw, 1.4rem); letter-spacing: .32em; text-indent: .32em; color: var(--color-gold-light); margin-bottom: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 28px; font-family: var(--font-serif); font-size: clamp(1rem, 1.9vw, 1.25rem); letter-spacing: .14em; margin-bottom: 18px; }
.hero__meta b { font-weight: 500; font-size: 1.35em; letter-spacing: .1em; }
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.countdown { display: flex; align-items: baseline; justify-content: center; gap: 6px 18px; flex-wrap: wrap; font-family: var(--font-serif); color: var(--color-text-muted); }
.countdown__label { font-size: .88rem; letter-spacing: .16em; width: 100%; font-family: var(--font-sans); }
.countdown__unit b { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 500; color: var(--color-gold-light); font-variant-numeric: tabular-nums; letter-spacing: .04em; margin-right: 4px; }
.countdown__unit { font-size: .8rem; letter-spacing: .14em; }
/* 1行型：ラベルと数字を同じ行に並べる（応募締切／開幕の2段を揃えるため、ラベルは固定幅で右揃え） */
.countdown--inline { flex-wrap: nowrap; gap: 0 14px; }
.countdown--inline .countdown__label { width: auto; min-width: 7em; text-align: right; font-family: var(--font-serif); font-size: .95rem; letter-spacing: .12em; color: var(--color-gold-light); }
.countdown--inline .countdown__unit b { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.countdown--inline + .countdown--inline { margin-top: -6px; }
/* 下端の赤い帯（カーペット） */
.hero__carpet { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; z-index: -1; background: var(--grad-carpet); border-top: 1px solid var(--color-gold); clip-path: polygon(0 38%, 50% 0, 100% 38%, 100% 100%, 0 100%); }
.hero__carpet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), transparent 30%, transparent 70%, rgba(0,0,0,.55)); }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-style: italic; font-size: .8rem; letter-spacing: .3em; color: var(--color-text); text-decoration: none; opacity: .85; }
@keyframes rise { from { opacity: 0; } to { opacity: var(--to, 1); } }
/* 写真の上の文字は薄い影で立たせる */
.hero__copy, .hero__open, .hero__meta, .hero__edition, .hero__title, .countdown { text-shadow: 0 0 3px rgba(0, 0, 0, .9), 0 2px 6px rgba(0, 0, 0, .85), 0 4px 28px rgba(0, 0, 0, .8); }
/* 写真（プレースホルダー .ph を差し替えたもの） */
.photo { margin: 0; overflow: hidden; border: 1px solid var(--line-gold); background: var(--color-surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 8. 下層ページ Hero ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(64px, 9vw, 112px)) 0 clamp(56px, 8vw, 96px); text-align: center; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line-gold); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(177, 18, 31, .28), transparent 65%), radial-gradient(ellipse 30% 50% at 50% 0%, rgba(232, 207, 138, .12), transparent 70%); }
.page-hero__en { font-family: var(--font-display); font-style: italic; letter-spacing: .3em; color: var(--color-gold); margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: .16em; }
.page-hero__lead { max-width: 680px; margin: 26px auto 0; color: var(--color-text-muted); }
.anchor-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 36px; padding: 0; list-style: none; }
.anchor-nav a { display: block; padding: 6px 18px; border: 1px solid var(--line-gold); font-size: .82rem; letter-spacing: .1em; text-decoration: none; color: var(--color-text); border-radius: 999px; }
.anchor-nav a:hover { background: rgba(201, 162, 75, .12); }

/* ---------- 9. 画像プレースホルダー ---------- */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 16 / 9; width: 100%; padding: 12px; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(201, 162, 75, .07) 0 1px, transparent 1px 14px),
    radial-gradient(ellipse at 50% 35%, #2c1a1a, #140d0d 75%);
  border: 1px solid var(--line-gold); color: var(--color-text-muted);
  font-size: .74rem; letter-spacing: .08em; line-height: 1.6;
}
.ph::before { content: "IMAGE"; position: absolute; top: 8px; left: 10px; font-family: var(--font-display); font-style: italic; font-size: .7rem; letter-spacing: .2em; color: var(--color-gold); opacity: .8; }
.ph--video::before { content: "VIDEO"; }
.ph--logo::before { content: "LOGO"; }
.ph--map::before { content: "MAP"; }
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--square { aspect-ratio: 1; }
.ph--wide { aspect-ratio: 21 / 9; }
.ph--logo { aspect-ratio: 5 / 2; background: #1d1414; }

/* ---------- 10. コンセプト ---------- */
.concept { text-align: center; }
.concept__lead { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.9vw, 1.9rem); line-height: 1.9; letter-spacing: .12em; margin-bottom: 2em; word-break: auto-phrase; text-wrap: balance; }
.concept p { word-break: auto-phrase; }
.concept .verse { font-family: var(--font-serif); font-size: 1.12rem; line-height: 2.3; letter-spacing: .1em; }
.concept .ask { font-family: var(--font-serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 2.2; letter-spacing: .12em; color: var(--color-gold-light); margin-block: 2em; }
.concept .flame { font-family: var(--font-serif); font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 2.2; }
.concept .flame em { font-style: normal; color: var(--color-red); font-size: 1.5em; text-shadow: 0 0 24px rgba(177, 18, 31, .8); filter: brightness(1.5); }
/* トップの宣言3行：1行目を大きく（「炎」は赤く発光）、2〜3行目は金の細罫で挟んだ詩行として見せる */
.concept__statement { font-family: var(--font-serif); margin: 0; }
.concept__statement > span { display: block; }
.concept__statement-l1 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: .14em; line-height: 1.6; margin-bottom: clamp(24px, 3vw, 36px); }
.concept__statement-l1 em { font-style: normal; color: var(--color-red); font-size: 1.35em; text-shadow: 0 0 28px rgba(177, 18, 31, .85); filter: brightness(1.5); }
.concept__statement-l2 { font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: .1em; line-height: 2.2; color: var(--color-text); }
.concept__statement-l2:last-child { color: var(--color-gold-light); }
.concept__more { margin-top: clamp(36px, 5vw, 56px); }
.prose { font-size: 1rem; }
.prose p { margin-bottom: 1.9em; }
.prose .verse { font-family: var(--font-serif); font-size: 1.1rem; line-height: 2.3; padding-left: 1.4em; border-left: 1px solid var(--line-gold); }
.prose .em { font-family: var(--font-serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 2; color: var(--color-gold-light); letter-spacing: .08em; }
.closing-copy { text-align: center; font-family: var(--font-serif); font-size: clamp(1.3rem, 3vw, 2rem); letter-spacing: .18em; line-height: 2; padding-block: 36px; position: relative; }
.closing-copy::before, .closing-copy::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: min(420px, 70%); height: 1px; background: var(--grad-gold); }
.closing-copy::before { top: 0; } .closing-copy::after { bottom: 0; }
.closing-copy small { display: block; margin-top: 10px; font-size: .6em; color: var(--color-gold-light); letter-spacing: .3em; }

/* ---------- 11. 3分岐カード（ハブの本体） ---------- */
.gate { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.gate__card {
  position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 44px) clamp(22px, 2.6vw, 36px) 32px;
  background: var(--color-surface); border: 1px solid var(--line-gold); text-decoration: none; color: var(--color-text);
  transition: transform .35s, border-color .35s, background-color .35s; overflow: hidden;
}
.gate__card::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--grad-carpet); transition: height .35s; z-index: 0; }
.gate__card:hover { transform: translateY(-4px); border-color: var(--color-gold); color: var(--color-text); }
.gate__card:hover::before { height: 100%; opacity: .92; }
.gate__card > * { position: relative; z-index: 1; }
.gate__en { font-family: var(--font-display); font-style: italic; color: var(--color-gold); letter-spacing: .24em; font-size: .95rem; }
.gate__card:hover .gate__en { color: var(--color-gold-light); }
.gate__title { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 6px 0 18px; letter-spacing: .16em; }
.gate__text { font-size: .95rem; color: var(--color-text-muted); flex: 1; margin-bottom: 26px; }
.gate__card:hover .gate__text { color: var(--color-text); }
.gate__list { list-style: none; padding: 0; margin: 0 0 26px; font-size: .86rem; border-top: 1px solid var(--line-faint); }
.gate__list li { padding: 8px 0; border-bottom: 1px solid var(--line-faint); }
.gate__go { font-family: var(--font-serif); letter-spacing: .14em; font-size: 1.02rem; color: var(--color-gold-light); }
.gate__go::after { content: " →"; transition: margin .3s; }
.gate__card:hover .gate__go { color: var(--color-text); }
.gate__card:hover .gate__go::after { margin-left: 8px; }
@media (max-width: 860px) { .gate { grid-template-columns: 1fr; } }

/* ---------- 12. 映画祭の構造（一日の流れ） ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: flow; }
.flow__step { position: relative; padding: 0 clamp(16px, 2.4vw, 32px); text-align: center; }
.flow__step + .flow__step { border-left: 1px solid var(--line-faint); }
.flow__num { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 20px; border: 1px solid var(--color-gold); transform: rotate(45deg); background: var(--color-base); position: relative; z-index: 1; }
.section--surface .flow__num { background: var(--color-surface); }
.flow__num span { transform: rotate(-45deg); font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--color-gold-light); }
.flow::before { content: ""; position: absolute; top: 29px; left: 16.66%; right: 16.66%; height: 1px; background: var(--grad-gold); opacity: .7; }
.flow__time { font-family: var(--font-display); font-style: italic; color: var(--color-gold); letter-spacing: .18em; font-size: .92rem; }
.flow__title { font-size: clamp(1.35rem, 2.5vw, 1.8rem); letter-spacing: .14em; margin: 4px 0 6px; }
.flow__sub { font-size: .82rem; color: var(--color-text-muted); letter-spacing: .1em; margin-bottom: 16px; }
.flow__text { font-size: .95rem; color: var(--color-text-muted); text-align: left; }
.flow-loop { margin-top: 44px; text-align: center; font-family: var(--font-serif); color: var(--color-text-muted); letter-spacing: .12em; font-size: .98rem; }
.flow-loop::before { content: ""; display: block; width: min(66.6%, 720px); height: 26px; margin: 0 auto 14px; border: 1px solid var(--line-gold); border-top: 0; border-radius: 0 0 14px 14px; }
.flow-loop b { color: var(--color-gold-light); font-weight: 500; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 44px; }
  .flow::before { display: none; }
  .flow__step + .flow__step { border-left: 0; }
  .flow__text { text-align: center; }
}

/* ---------- 13. 開催概要・定義リスト・表 ---------- */
.spec { margin: 0; border-top: 1px solid var(--line-gold); }
.spec > div { display: grid; grid-template-columns: 180px 1fr; gap: 8px 28px; padding: 20px 4px; border-bottom: 1px solid var(--line-faint); }
.spec dt { font-family: var(--font-serif); color: var(--color-gold-light); letter-spacing: .16em; }
.spec dd { margin: 0; }
@media (max-width: 640px) { .spec > div { grid-template-columns: 1fr; padding: 16px 0; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-gold); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-faint); vertical-align: top; }
thead th { font-family: var(--font-serif); font-weight: 500; letter-spacing: .14em; color: var(--color-gold-light); background: var(--color-surface-2); border-bottom: 1px solid var(--line-gold); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 700; white-space: nowrap; }
td.price { font-family: var(--font-serif); font-size: 1.25rem; white-space: nowrap; color: var(--color-gold-light); }
/* おすすめ券種（単価が最も高く、体験も最も完全な券）を行ごと強調して選択を後押しする */
tbody tr.is-featured > * { background: rgba(177, 18, 31, .16); border-bottom-color: var(--line-gold); }
tbody tr.is-featured th { color: var(--color-gold-light); }

/* ---------- 14. カード類 ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { background: var(--color-surface); border: 1px solid var(--line-faint); padding: clamp(22px, 2.6vw, 32px); }
.section--surface .card { background: var(--color-base); }
.card--gold { border-color: var(--line-gold); }
.card__label { font-family: var(--font-display); font-style: italic; color: var(--color-gold); letter-spacing: .18em; font-size: .88rem; margin-bottom: 6px; }
.card p, .card li { font-size: .95rem; color: var(--color-text-muted); }

/* 審査員・登壇者 */
.person { text-align: center; }
.person .ph { margin-bottom: 16px; filter: saturate(.8); }
.person__role { font-family: var(--font-display); font-style: italic; font-size: .82rem; color: var(--color-gold); letter-spacing: .16em; }
.person__name { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: .12em; margin: 2px 0 4px; }
.person__title { font-size: .82rem; color: var(--color-text-muted); line-height: 1.7; }
.person__bio { font-size: .86rem; color: var(--color-text-muted); margin-top: 10px; text-align: left; }

/* 賞 */
.award { text-align: center; padding: 36px 22px; border: 1px solid var(--line-gold); background: var(--color-surface); position: relative; }
.award svg { width: 64px; height: 64px; margin: 0 auto 12px; }
.award__en { font-family: var(--font-display); font-style: italic; font-size: .85rem; letter-spacing: .22em; color: var(--color-gold); margin-bottom: 6px; }
.award__name { font-family: var(--font-serif); font-size: 1.3rem; letter-spacing: .12em; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.award__sub { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: .16em; color: var(--color-text); margin: -6px 0 14px; }
.award__note { font-size: .88rem; color: var(--color-text-muted); text-align: left; max-width: 34em; margin-inline: auto; }
.award--grand { grid-column: 1 / -1; padding-block: 48px; background: radial-gradient(ellipse at 50% 0, rgba(177, 18, 31, .3), transparent 70%), var(--color-surface); }
.award--grand .award__name { font-size: 2rem; letter-spacing: .18em; }
.award--grand .award__note { text-align: center; font-size: .95rem; max-width: 40em; }
/* 4賞は2列×2行（4列だと本文が細長くなる） */
.grid--4:has(.award) { grid-template-columns: repeat(2, 1fr); }

/* 上映作品カード（サムネイルが主役。UIは額縁に徹する） */
.film { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--line-faint); transition: border-color .3s; }
.film:hover { border-color: var(--color-gold); }
.film .ph { border: 0; border-bottom: 1px solid var(--line-faint); }
.film__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.film__cat { font-family: var(--font-display); font-style: italic; font-size: .8rem; color: var(--color-gold); letter-spacing: .14em; }
.film__title { font-size: 1.15rem; margin: 2px 0 6px; letter-spacing: .08em; }
.film__meta { font-size: .82rem; color: var(--color-text-muted); margin-bottom: 12px; }
.film__more { font-size: .85rem; color: var(--color-text-muted); border-top: 1px solid var(--line-faint); padding-top: 12px; margin-top: auto; }
.js .film__more { display: none; }
.film__open { display: none; margin-top: auto; align-self: flex-start; background: none; border: 0; border-bottom: 1px solid var(--line-gold); padding: 0 0 2px; color: var(--color-gold-light); font-family: var(--font-serif); letter-spacing: .1em; font-size: .95rem; cursor: pointer; }
.js .film__open { display: inline-block; }
.film__open:hover { color: var(--color-text); }

dialog.modal { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--color-gold); background: var(--color-surface); color: var(--color-text); overflow-y: auto; }
dialog.modal::backdrop { background: rgba(5, 3, 3, .85); backdrop-filter: blur(4px); }
.modal__body { padding: clamp(22px, 3vw, 36px); }
.modal__close { position: sticky; top: 0; float: right; z-index: 2; margin: 10px; width: 42px; height: 42px; background: var(--color-base); border: 1px solid var(--line-gold); color: var(--color-text); font-size: 1.2rem; cursor: pointer; }
.modal .film__more { display: block; border: 0; padding: 0; margin-top: 18px; font-size: .92rem; }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-gold); }
.news-item { display: grid; grid-template-columns: 130px 110px 1fr; gap: 6px 22px; padding: 24px 4px; border-bottom: 1px solid var(--line-faint); align-items: baseline; }
.news-item time { font-family: var(--font-serif); letter-spacing: .12em; color: var(--color-gold-light); }
.news-item__cat { font-size: .72rem; letter-spacing: .12em; border: 1px solid var(--line-gold); padding: 1px 10px; text-align: center; color: var(--color-text-muted); justify-self: start; }
.news-item__title { font-family: var(--font-serif); font-size: 1.08rem; letter-spacing: .06em; font-weight: 500; margin: 0; }
.news-item__body { grid-column: 3; font-size: .88rem; color: var(--color-text-muted); margin: 0; }
.news-item__body a { white-space: nowrap; }
@media (max-width: 720px) { .news-item { grid-template-columns: auto 1fr; } .news-item__title, .news-item__body { grid-column: 1 / -1; } }

/* パートナーロゴ */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.logos--lg { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .logos { grid-template-columns: repeat(3, 1fr); } .logos--lg { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.tier { font-family: var(--font-display); font-style: italic; text-align: center; color: var(--color-gold); letter-spacing: .24em; margin: 40px 0 16px; font-size: .95rem; }

/* 数字 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-gold); }
.stat { padding: 32px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-faint); }
.stat b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--color-gold-light); letter-spacing: .04em; line-height: 1.3; }
.stat span { font-size: .8rem; color: var(--color-text-muted); letter-spacing: .1em; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line-faint); } }

/* タイムテーブル */
.timetable { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-gold); }
.timetable li { display: grid; grid-template-columns: 150px 1fr; gap: 6px 28px; padding: 22px 4px; border-bottom: 1px solid var(--line-faint); position: relative; }
.timetable time { font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: .08em; color: var(--color-gold-light); }
.timetable h4 { font-size: 1.1rem; margin-bottom: 4px; }
.timetable p { font-size: .86rem; color: var(--color-text-muted); margin: 0; }
.timetable .pillar { display: inline-block; font-size: .7rem; letter-spacing: .12em; padding: 0 10px; margin-left: 10px; border: 1px solid var(--line-gold); color: var(--color-gold-light); font-family: var(--font-sans); vertical-align: middle; }
.timetable li.is-now { background: linear-gradient(90deg, rgba(177, 18, 31, .28), transparent); }
.timetable li.is-now::before { content: "NOW"; position: absolute; right: 8px; top: 22px; font-size: .7rem; letter-spacing: .2em; color: var(--color-text); background: var(--color-red); padding: 0 10px; }
@media (max-width: 600px) { .timetable li { grid-template-columns: 1fr; } }

/* ---------- 15. 強調帯（赤）・CTAパネル ---------- */
.band { position: relative; background: var(--grad-carpet); border-block: 1px solid var(--color-gold); padding-block: clamp(48px, 7vw, 84px); text-align: center; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 120% at 50% 0, rgba(232, 207, 138, .16), transparent 70%); pointer-events: none; }
.band > * { position: relative; }
.band__title { font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: .16em; color: var(--color-gold-light); margin-bottom: 14px; }
.band__text { max-width: 620px; margin: 0 auto 28px; color: var(--color-text); font-size: .95rem; }
/* 赤帯の上では赤ボタンが沈むので暗色地＋金の縁にし、ホバーで少し明るく・金に発光 */
.band .btn--primary { background: linear-gradient(180deg, #2A1A1A 0%, #140C0C 100%); border-color: var(--color-gold); }
.band .btn--primary:hover { background: linear-gradient(180deg, #3A2424 0%, #1E1212 100%); border-color: var(--color-gold-light); box-shadow: 0 6px 28px -6px rgba(201, 162, 75, .7); }
.band .btn--ghost { border-color: var(--color-text); color: var(--color-text); }
.band .ext-note { color: var(--color-text); opacity: .85; }

.cta-panel { border: 1px solid var(--line-gold); padding: clamp(28px, 4vw, 52px); text-align: center; background: radial-gradient(ellipse 70% 100% at 50% 0, rgba(177, 18, 31, .22), transparent 70%), var(--color-surface); }
.cta-panel .h3 { margin-bottom: 10px; }
.cta-panel p { color: var(--color-text-muted); font-size: .92rem; max-width: 600px; margin-inline: auto; }
.cta-panel .btn-row { margin-top: 24px; }
.next-cta { margin-top: 48px; text-align: center; }

.fv-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-gold); margin: 40px auto 32px; max-width: 880px; background: rgba(13, 9, 9, .6); }
.fv-facts > div { padding: 22px 14px; }
.fv-facts > div + div { border-left: 1px solid var(--line-faint); }
.fv-facts dt { font-size: .74rem; letter-spacing: .2em; color: var(--color-gold); margin-bottom: 4px; }
.fv-facts dd { margin: 0; font-family: var(--font-serif); font-size: clamp(1rem, 1.9vw, 1.25rem); letter-spacing: .04em; line-height: 1.5; }
@media (max-width: 640px) { .fv-facts { grid-template-columns: 1fr; } .fv-facts > div + div { border-left: 0; border-top: 1px solid var(--line-faint); } }

.notice { border-left: 2px solid var(--color-gold); background: var(--color-surface); padding: 18px 22px; font-size: .88rem; color: var(--color-text-muted); margin-block: 28px; }
.section--surface .notice { background: var(--color-base); }
.notice--red { border-left-color: var(--color-red); }
.notice strong { color: var(--color-gold-light); }

/* 規約・法務の条文 */
.articles { counter-reset: art; }
.article { padding: 30px 0; border-bottom: 1px solid var(--line-faint); }
.article:first-child { border-top: 1px solid var(--line-gold); }
.article h3, .article h4 { font-size: 1.15rem; margin-bottom: 14px; color: var(--color-gold-light); }
.article p, .article li { font-size: .92rem; color: var(--color-text-muted); }
.article li { margin-bottom: .5em; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line-faint); }
.faq details:first-of-type { border-top: 1px solid var(--line-gold); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 4px; position: relative; font-family: var(--font-serif); font-size: 1.06rem; letter-spacing: .06em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; font-style: italic; color: var(--color-gold); margin-right: 12px; }
.faq summary::after { content: "+"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--color-gold); font-size: 1.4rem; font-family: var(--font-sans); font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 4px 26px 2.2em; font-size: .92rem; color: var(--color-text-muted); }
/* 応募条件：番号付きチェックリスト */
.req { counter-reset: rq; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-gold); }
.req li { counter-increment: rq; position: relative; padding: 16px 4px 16px 56px; border-bottom: 1px solid var(--line-faint); font-size: .95rem; }
.req li::before { content: counter(rq, decimal-leading-zero); position: absolute; left: 4px; top: 18px; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--color-gold); letter-spacing: .05em; }
.spec-line { font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: .04em; margin: 0; color: var(--color-text); }
.spec-line b { font-weight: 500; color: var(--color-gold); font-size: .8em; letter-spacing: .14em; margin-right: .5em; }
.steps { counter-reset: st; list-style: none; padding: 0; }
.steps li { counter-increment: st; position: relative; padding: 0 0 18px 48px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-gold); font-family: var(--font-serif); color: var(--color-gold-light); }

/* ---------- 16. ニュースレター ---------- */
.newsletter { text-align: center; }
.nl-form { max-width: 640px; margin: 0 auto; }
.nl-form fieldset { border: 0; margin: 0 0 26px; padding: 0; }
.nl-form legend { font-size: .85rem; color: var(--color-text-muted); margin: 0 auto 14px; letter-spacing: .1em; }
.seg { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 10px 26px; border: 1px solid var(--line-gold); font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: .2em; transition: background-color .2s, border-color .2s; }
.seg input:checked + span { background: var(--color-red); border-color: var(--color-gold); }
.seg input:focus-visible + span { outline: 2px solid var(--color-gold-light); outline-offset: 3px; }

/* ---------- 17. フッター ---------- */
.site-footer { position: relative; border-top: 1px solid var(--color-gold); background: #080505; padding: 64px 0 28px; font-size: .88rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-carpet); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .8rem; color: var(--color-text-muted); margin-top: 16px; }
.footer-col h2 { font-family: var(--font-display); font-style: italic; font-size: .95rem; letter-spacing: .2em; color: var(--color-gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--color-text); text-decoration: none; }
.footer-col a:hover { color: var(--color-gold-light); text-decoration: underline; }
.copyright { border-top: 1px solid var(--line-faint); padding-top: 22px; text-align: center; font-size: .74rem; color: var(--color-text-muted); letter-spacing: .1em; }

/* ---------- 18. 言語バナー・フェーズプレビュー（Cookie同意バナーは廃止：解析にCookie・ストレージを使わないため） ---------- */
.lang-banner[hidden] { display: none; }
.lang-banner { position: relative; z-index: 600; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 8px var(--gutter); background: var(--color-surface-2); border-bottom: 1px solid var(--line-gold); font-size: .82rem; }
.lang-banner button { background: none; border: 0; color: var(--color-text-muted); cursor: pointer; font-size: 1rem; }
.phase-preview { position: fixed; left: 12px; bottom: 12px; z-index: 850; background: #000; border: 1px dashed var(--color-gold); padding: 8px 12px; font-size: .72rem; letter-spacing: .06em; font-family: ui-monospace, monospace; color: var(--color-text-muted); }
.phase-preview a { margin-left: 6px; padding: 1px 7px; border: 1px solid var(--line-faint); text-decoration: none; color: var(--color-text); }
.phase-preview a[aria-current] { background: var(--color-red); border-color: var(--color-gold); }

/* ---------- 19. スクロール時のフェードイン（控えめ） ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 20. モーション低減 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__embers { display: none; }
}

@media print {
  .site-header, .site-footer, .phase-preview, .hero__media, .hero__embers { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 21. 補足 ---------- */
a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.lang-banner { position: fixed; top: var(--header-h); left: 0; right: 0; }
.award img { margin: 0 auto 12px; }
.ph { white-space: pre-line; }
.sec-head__lead, .page-hero__lead, .band__text, .cta-panel p { word-break: auto-phrase; text-wrap: balance; }
/* 文節ブロック：中央揃えの見出し・詩行が文節の途中で折れないようにする（auto-phrase 非対応の iOS Safari 対策） */
.nb { display: inline-block; }
/* PC専用の改行。モバイルでは無効化し、.nb の文節単位で自然に折り返す */
@media (max-width: 640px) { .br-pc { display: none; } }

/* ---------- 22. モバイル最適化（640px以下） ----------
   方針：主CTAを最初の画面と親指の届く位置に／中央揃えは短い見出しに限定し本文は左揃え／字間を詰めて1行に収める */
@media (max-width: 640px) {
  body { line-height: 1.85; letter-spacing: .02em; }
  h1, h2, h3, h4 { letter-spacing: .06em; }

  /* Hero：CTAをフォールド内に収める */
  .hero { min-height: min(100svh, 900px); padding: calc(var(--header-h) + 12px) var(--gutter) 108px; }
  .hero__inner { width: 100%; }
  /* タイトル（映画祭名＋年）を主役に、キャッチコピーは一段小さく：サイズ比 約1.5:1 を保つ */
  .hero__title { font-size: clamp(1.9rem, 8.6vw, 2.5rem); letter-spacing: .08em; line-height: 1.25; }
  .hero__title-year { font-size: .92em; }
  .hero__edition { font-size: .68rem; letter-spacing: .12em; margin-bottom: 12px; }
  .hero__copy { font-size: clamp(1.15rem, 5.6vw, 1.55rem); letter-spacing: .06em; text-indent: .06em; line-height: 1.7; padding: 14px 0; margin-bottom: 14px; }
  .hero__open { font-size: 1rem; letter-spacing: .2em; text-indent: .2em; margin-bottom: 12px; }
  .hero__meta { font-size: .95rem; gap: 2px 16px; margin-bottom: 18px; letter-spacing: .08em; }
  .hero__meta b { font-size: 1.25em; }
  .hero__cta { gap: 14px; width: 100%; }
  .countdown { gap: 4px 12px; }
  .countdown__label { font-size: .78rem; }
  .countdown__unit b { font-size: 1.5rem; }
  .countdown--inline { gap: 0 8px; }
  .countdown--inline .countdown__label { min-width: 6em; font-size: .82rem; letter-spacing: .06em; }
  .countdown--inline .countdown__unit { font-size: .72rem; letter-spacing: .06em; }
  .countdown--inline .countdown__unit b { font-size: 1.25rem; margin-right: 2px; }
  .hero__carpet { height: 72px; }
  .hero__scroll { bottom: 16px; }
  /* 縦画面では写真の中央（バルコニーと照明）が残るように */
  .hero__media img, .hero__media video { object-position: 50% 40%; }
  .hero__shade {
    background:
      radial-gradient(ellipse 80% 48% at 50% 48%, rgba(13, 9, 9, .66) 0%, rgba(13, 9, 9, .42) 60%, rgba(13, 9, 9, .1) 100%),
      linear-gradient(180deg, rgba(13, 9, 9, .82) 0%, rgba(13, 9, 9, .3) 22%, rgba(13, 9, 9, .3) 64%, rgba(13, 9, 9, .97) 100%);
  }
  .hero__inner { padding: 16px 8px; }
  .hero__inner::before { inset: -4% -10%; }

  /* 下層ページのファーストビュー：余白と要約パネルを圧縮して主CTAを上へ */
  .page-hero { padding: calc(var(--header-h) + 36px) 0 40px; }
  .page-hero__en { font-size: .8rem; letter-spacing: .22em; margin-bottom: 10px; }
  .page-hero h1 { font-size: clamp(1.6rem, 7.2vw, 2.2rem); letter-spacing: .08em; }
  .page-hero__lead { margin-top: 16px; font-size: .92rem; }
  .fv-facts { margin: 24px auto 22px; }
  .fv-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; text-align: left; }
  .fv-facts dt { margin: 0; flex: none; font-size: .68rem; }
  .fv-facts dd { font-size: 1rem; text-align: right; }
  .anchor-nav { margin-top: 24px; gap: 8px; }
  .anchor-nav a { padding: 9px 16px; }

  /* ボタン：縦に積んで画面幅いっぱいに（親指で押しやすく、優先順位が上下で明確） */
  .btn-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-row .btn { width: 100%; }
  .btn--lg { min-height: 54px; padding: 12px 24px; font-size: .95rem; letter-spacing: .1em; }
  .ext-note { margin-top: 10px; font-size: .74rem; }

  /* 見出し・本文：中央揃えは短い見出しだけ。長い本文は左揃えで行頭を揃える */
  .sec-head { margin-bottom: 36px; }
  .sec-head__en { font-size: .95rem; letter-spacing: .18em; }
  .sec-head__ja { font-size: clamp(1.45rem, 6.4vw, 1.8rem); }
  .sec-head__lead { margin-top: 16px; font-size: .92rem; letter-spacing: .02em; }
  .page-hero__lead, .band__text, .cta-panel p { letter-spacing: .02em; }
  .concept > p:not(.concept__lead):not(.verse):not(.ask):not(.flame):not(.concept__statement):not(.concept__more) { text-align: left; word-break: normal; }
  .concept__statement-l1 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); letter-spacing: .1em; }
  .concept__statement-l2 { font-size: 1rem; letter-spacing: .06em; line-height: 2.1; }
  .concept__lead { font-size: clamp(1.15rem, 5.4vw, 1.5rem); letter-spacing: .06em; line-height: 1.8; }
  .concept .verse { font-size: 1rem; letter-spacing: .04em; line-height: 2.1; }
  .concept .ask { font-size: 1.1rem; letter-spacing: .06em; line-height: 2; }
  .concept .flame { font-size: 1.05rem; letter-spacing: .04em; line-height: 2; }
  .closing-copy { font-size: 1.25rem; letter-spacing: .1em; }
  .band__title { font-size: 1.4rem; letter-spacing: .1em; }
  .band__text { margin-bottom: 22px; }
  .notice { text-align: left; }
  .flow__title { font-size: 1.4rem; }
  .gate__title { font-size: 1.5rem; letter-spacing: .1em; }

  /* 表：券種・部門の表はカード型にして横スクロールをなくす（td の data-label をラベルに使う） */
  .table-wrap:has(.table--cards) { border: 0; }
  .table--cards { min-width: 0; border: 1px solid var(--line-gold); }
  .table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--cards tbody tr { display: block; padding: 16px 18px; border-bottom: 1px solid var(--line-faint); }
  .table--cards tbody tr:last-child { border-bottom: 0; }
  .table--cards tbody tr.is-featured { background: rgba(177, 18, 31, .16); box-shadow: inset 3px 0 0 var(--color-gold); }
  .table--cards tbody tr.is-featured > * { background: none; }
  .table--cards tbody th, .table--cards tbody td { display: block; padding: 0; border: 0; white-space: normal; }
  .table--cards tbody th { font-family: var(--font-serif); font-weight: 500; font-size: 1.08rem; letter-spacing: .08em; color: var(--color-gold-light); }
  .table--cards td.price { font-size: 1.45rem; margin: 2px 0 4px; }
  .table--cards td[data-label] { font-size: .86rem; color: var(--color-text-muted); margin-top: 4px; }
  .table--cards td[data-label]::before { content: attr(data-label) "：" ; color: var(--color-gold); font-size: .74rem; letter-spacing: .1em; }
  /* 横スクロールが残る表には、その旨を示す */
  .table-wrap--scroll::before { content: "← 横にスクロールできます →"; display: block; padding: 6px 12px; font-size: .72rem; letter-spacing: .1em; color: var(--color-text-muted); text-align: center; border-bottom: 1px solid var(--line-faint); }

  /* 上映作品カード・賞カードは1列（作品名や賞名が1文字ずつ折れるのを防ぐ） */
  .grid--4:has(.film), .grid--3:has(.film), .grid:has(.award) { grid-template-columns: 1fr; }
  .film__title { letter-spacing: .04em; }
  /* ＜仮＞注記は長いものがあるので折り返しを許可（はみ出し防止） */
  .tbd { white-space: normal; display: inline-block; }

}
/* ---------- 23. モバイル固定CTAバー（画面下・親指の届く位置・常時表示） ----------
   各HTMLの末尾に置く。応募と購入の両方を常に押せるようにする */
.cta-bar { display: none; }
@media (max-width: 960px) {
  .cta-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 450; /* ナビ展開時はヘッダー(500)の下に隠れる */
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(13, 9, 9, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line-gold);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, .45);
  }
  .cta-bar__inner { display: flex; gap: 8px; max-width: 560px; margin-inline: auto; }
  .cta-bar__inner > .btn, .cta-bar .btn-row .btn { flex: 1; width: auto; min-height: 50px; padding: 10px 10px; font-size: .88rem; letter-spacing: .06em; white-space: nowrap; }
  .cta-bar .btn .ext { display: none; }
  .cta-bar .btn-row { flex: 1; flex-direction: row; gap: 8px; }
  /* バーの分だけ本文とフッターの下端を空ける */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .phase-preview { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .cta-bar { display: none !important; } }
