/* =========================================================
   RCS — style
   ========================================================= */
:root {
  --bg: #0e0a0b;
  --bg-2: #1a1012;
  --wine: #3b0f17;
  --curtain: #9b1626;
  --curtain-dark: #520a13;
  --gold: #f3c56b;
  --gold-soft: #f8deaa;
  --cream: #f4ead8;
  --muted: #b9a99a;
  --line: rgba(243, 197, 107, .25);
  --ticker-w: 44px;
  --dim: 0; /* スクロールで場内が暗くなる量 (0〜1) */

  --f-title: "Shippori Mincho B1", serif;
  --f-body: "Zen Kaku Gothic New", system-ui, sans-serif;
  --f-en: "Bebas Neue", "Zen Kaku Gothic New", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--f-body);
  line-height: 1.8;
  overflow-x: hidden;
  padding-right: var(--ticker-w);
}
body.is-locked { overflow: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
[hidden] { display: none !important; }

/* ---------- フィルムグレイン & 減光 ---------- */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 90;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-1%, 3%); }
  80% { transform: translate(4%, 1%); }
  100% { transform: translate(0, 0); }
}
.dimmer {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 40;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, #000 110%);
  opacity: calc(var(--dim) * .7);
}

/* ---------- オープニング ---------- */
#opening {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: #111;
  overflow: hidden;
}
#opening.is-done { pointer-events: none; background: transparent; }
#opening.is-gone { display: none; }
.curtain {
  position: absolute; top: 0; bottom: 0; width: 51%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 6px, transparent 6px 34px, rgba(255,255,255,.06) 34px 40px, transparent 40px 64px),
    linear-gradient(180deg, var(--curtain) 0%, var(--curtain-dark) 100%);
  transform: translateX(0);
  transition: transform 1.6s cubic-bezier(.7, 0, .2, 1);
}
.curtain-l { left: 0; }
.curtain-r { right: 0; }
#opening.is-done .curtain-l { transform: translateX(-102%); }
#opening.is-done .curtain-r { transform: translateX(102%); }

/* ---------- 右端の電光掲示板 ---------- */
.ticker {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: var(--ticker-w);
  background: #050304;
  border-left: 1px solid var(--line);
  overflow: hidden;
}
.ticker-track {
  display: flex; flex-direction: column;
  writing-mode: vertical-rl;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  font-weight: 900; font-size: 18px; letter-spacing: .15em;
  color: var(--gold);
  text-shadow: 0 0 6px rgba(243,197,107,.8);
  padding: 12px 0;
  line-height: var(--ticker-w);
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateY(-50%); } }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: var(--ticker-w); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(14,10,11,.9), rgba(14,10,11,0));
  transition: background .3s;
}
.site-header.is-scrolled { background: rgba(14,10,11,.82); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo {
  font-family: var(--f-en); font-size: 26px; letter-spacing: .08em;
  text-decoration: none; color: var(--cream);
}
.logo span { color: var(--gold); }
.nav { display: flex; gap: clamp(12px, 2.4vw, 28px); font-size: 14px; font-weight: 700; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--gold); }
.nav-ticket {
  border: 1px solid var(--gold); color: var(--gold);
  padding: 2px 12px; border-radius: 999px;
}

/* ---------- ロビー：劇場の客席からスクリーンへ ---------- */
.lobby {
  position: relative; z-index: 2;
  height: 230vh; /* スクロール量 = スクリーンへ入っていく距離 */
  --p: 0;        /* 0〜1：JS が書き込むスクロール進行度 */
}
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(255,236,190,.10), transparent 70%),
    linear-gradient(180deg, #120a0b 0%, #2a0c13 55%, #0b0607 100%);
  cursor: crosshair;
}
.ceiling {
  position: absolute; inset: 0 0 auto; height: 20%;
  background: radial-gradient(circle, rgba(243,197,107,.9) 0 1.5px, transparent 2.5px) 0 40% / 60px 30px repeat-x;
  opacity: calc(.7 - var(--p));
  filter: drop-shadow(0 0 4px var(--gold));
}
/* 映写機の光 */
.beam-hero {
  position: absolute; left: 50%; bottom: -10%;
  width: 160vw; height: 110%;
  transform: translateX(-50%);
  background: conic-gradient(from -18deg at 50% 100%, transparent 0deg, rgba(255,240,205,.07) 6deg, rgba(255,240,205,.13) 18deg, rgba(255,240,205,.07) 30deg, transparent 36deg);
  transform-origin: 50% 100%;
  opacity: calc(1 - var(--p) * 1.4);
  pointer-events: none;
  mix-blend-mode: screen;
}
.beam-hero i { /* 光の中を漂うほこり */
  position: absolute; left: 50%; bottom: 10%;
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,240,205,.8);
  animation: dust 9s linear infinite;
}
.beam-hero i:nth-child(2) { animation-delay: -1.5s; margin-left: -40px; }
.beam-hero i:nth-child(3) { animation-delay: -3s; margin-left: 30px; }
.beam-hero i:nth-child(4) { animation-delay: -4.5s; margin-left: -70px; }
.beam-hero i:nth-child(5) { animation-delay: -6s; margin-left: 60px; }
.beam-hero i:nth-child(6) { animation-delay: -7.5s; margin-left: 5px; }
@keyframes dust {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translate(-30px, -70vh); opacity: 0; }
}

.screen-wrap {
  position: absolute; left: 50%; top: 13%;
  width: min(900px, 86vw);
  transform: translateX(-50%) scale(calc(1 + var(--p) * var(--zoom, 2.6)));
  transform-origin: 50% 62%;
  will-change: transform;
}
.marquee-sign {
  position: relative;
  width: fit-content; margin: 0 auto 14px;
  padding: 8px 28px;
  background: linear-gradient(180deg, #1c0d10, #120809);
  border: 2px solid var(--gold); border-radius: 8px;
  box-shadow: 0 0 0 5px #241014, 0 0 0 7px var(--gold), 0 0 40px rgba(243,197,107,.25);
  opacity: calc(1 - var(--p) * 3);
}
.bulbs {
  position: absolute; inset: -5px; border-radius: 10px; pointer-events: none;
  --b: radial-gradient(circle, #fff6d8 0 2.5px, var(--gold) 3px 3.5px, transparent 4px);
  background:
    var(--b) 0 0 / 20px 10px repeat-x,
    var(--b) 0 100% / 20px 10px repeat-x,
    var(--b) 0 0 / 10px 20px repeat-y,
    var(--b) 100% 0 / 10px 20px repeat-y;
  filter: drop-shadow(0 0 4px var(--gold));
  animation: bulbs 1.2s steps(2) infinite;
}
@keyframes bulbs { 50% { background-position: 10px 0, 10px 100%, 0 10px, 100% 10px; } }
.sign-label {
  margin: 0;
  font-family: var(--f-en); font-size: clamp(18px, 2.4vw, 26px); letter-spacing: .4em;
  color: var(--gold); text-shadow: 0 0 12px rgba(243,197,107,.7);
}
.screen {
  position: relative;
  aspect-ratio: 2.1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4% 6%;
  text-align: center;
  color: #2a0c13;
  background:
    radial-gradient(ellipse 70% 80% at 50% 45%, #fff8ea 0%, #f1e2c6 60%, #d9c39f 100%);
  border-radius: 6px;
  box-shadow: 0 0 0 6px #050304, 0 0 80px rgba(255,236,190,.35), 0 0 200px rgba(255,236,190,.15);
  animation: flicker 5s infinite;
}
.screen::after { /* 縦キズ */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 31%, rgba(60,30,20,.12) 31.2%, transparent 31.5%, transparent 72%, rgba(60,30,20,.08) 72.1%, transparent 72.3%);
  animation: scratch .6s steps(3) infinite;
}
@keyframes flicker { 0%, 100% { filter: brightness(1); } 47% { filter: brightness(1); } 48% { filter: brightness(.88); } 49% { filter: brightness(1.04); } 50% { filter: brightness(.95); } }
@keyframes scratch { 33% { transform: translateX(4%); } 66% { transform: translateX(-6%); } }
.tagline {
  font-family: var(--f-title); font-weight: 800;
  font-size: clamp(22px, 5.2vw, 60px);
  letter-spacing: .04em;
}
.tl-line { display: block; opacity: 0; transform: translateY(24px); }
.lobby.is-ended .tl-line { animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.lobby.is-ended .tl-line:nth-child(2) { animation-delay: .25s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.sign-sub { margin: 14px 0 0; color: #6b4a3f; font-size: clamp(10px, 1.4vw, 14px); letter-spacing: .1em; font-weight: 700; }

/* 左右の幕と上の飾り幕 */
.drape {
  position: absolute; top: 0; bottom: 0; width: 13vw; min-width: 60px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.4) 0 5px, transparent 5px 22px, rgba(255,255,255,.07) 22px 26px, transparent 26px 40px),
    linear-gradient(180deg, var(--curtain) 0%, var(--curtain-dark) 100%);
  box-shadow: 0 0 60px rgba(0,0,0,.7);
}
.drape-l { left: 0; border-radius: 0 0 60% 0 / 0 0 8% 0; transform: translateX(calc(var(--p) * -110%)); }
.drape-r { right: 0; border-radius: 0 0 0 60% / 0 0 0 8%; transform: translateX(calc(var(--p) * 110%)); }
.valance {
  position: absolute; left: 0; right: 0; top: 0; height: 9vh;
  background:
    radial-gradient(ellipse 50% 100% at 50% 0, var(--curtain) 0 70%, transparent 71%) 0 0 / 120px 100% repeat-x;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.6));
  transform: translateY(calc(var(--p) * -120%));
}

/* 客席シルエット */
.audience {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%;
  fill: #050304;
  pointer-events: none;
}
.audience-back { height: max(22vh, 13.4vw); bottom: 8vh; fill: #0c0708; transform: translateY(calc(var(--p) * 130%)); }
.audience-front { height: max(20vh, 13.4vw); transform: translateY(calc(var(--p) * 180%)); }

.pop-hint {
  position: absolute; left: 50%; bottom: calc(20vh + 18px);
  transform: translateX(-50%);
  margin: 0; padding: 2px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  color: #1a0f08; background: var(--gold); border-radius: 999px;
  opacity: calc(.95 - var(--p) * 4);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -4px; } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 3vh; z-index: 3;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; font-size: 12px; letter-spacing: .2em; color: var(--cream);
  opacity: calc(1 - var(--p) * 4);
}
.reel {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px),
    conic-gradient(from 0deg, var(--gold) 0 10deg, transparent 10deg 60deg, var(--gold) 60deg 70deg, transparent 70deg 120deg, var(--gold) 120deg 130deg, transparent 130deg 180deg, var(--gold) 180deg 190deg, transparent 190deg 240deg, var(--gold) 240deg 250deg, transparent 250deg 300deg, var(--gold) 300deg 310deg, transparent 310deg);
  animation: spin 3s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* スクリーンに入りきったら暗転 */
.cut {
  position: absolute; inset: 0; background: var(--bg); pointer-events: none;
  opacity: clamp(0, calc((var(--p) - .72) * 3.6), 1);
}

/* ポップコーン */
.popcorn {
  position: fixed; z-index: 70; pointer-events: none;
  width: 16px; height: 14px; margin: -7px 0 0 -8px;
  background: #fff7e2; border-radius: 50%;
  box-shadow: 6px -3px 0 -1px #fff2d0, -5px -4px 0 -1px #fffaf0, 1px -8px 0 -2px #ffeec2, 0 0 0 1px rgba(214,160,60,.35);
  filter: drop-shadow(0 2px 2px rgba(60,20,10,.55));
}
.popcorn.is-butter { background: #ffe6a3; }

/* ---------- 案内係：あん・ちょび ---------- */
.cat-guide {
  position: fixed; left: 12px; bottom: 10px; z-index: 65;
  display: flex; align-items: flex-end;
  pointer-events: none;
}
.cat-btn {
  pointer-events: auto;
  padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateY(0);
  transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.cat-btn img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.cat-btn-an { width: 84px; }
.cat-btn-chobi { width: 62px; margin-left: -4px; }
.cat-btn:hover { transform: translateY(-6px); }
.cat-btn.is-speaking img { animation: wiggle .5s 2; }
@keyframes wiggle { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.cat-bubble {
  position: absolute; left: 50px; bottom: 96px;
  width: max-content; max-width: min(280px, 70vw);
  margin: 0; padding: 10px 14px;
  font-size: 13px; font-weight: 700; line-height: 1.6;
  color: #2b1608; background: var(--cream);
  border-radius: 14px 14px 14px 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(8px) scale(.9); transform-origin: 0 100%;
  transition: opacity .25s, transform .25s cubic-bezier(.3,1.5,.5,1);
}
.cat-bubble b { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 999px; font-size: 11px; color: #fff; background: #1b1718; }
.cat-bubble b.is-chobi { background: #6f757c; }
.cat-guide.is-talking .cat-bubble { opacity: 1; transform: none; }

/* ---------- 猫さがし：あちこちに隠れたあん・ちょび ---------- */
.hc {
  position: absolute; z-index: 3;
  padding: 0; border: 0; background: none; cursor: pointer;
  line-height: 0;
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.hc img { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.hc:hover { transform: translateY(-4px) rotate(-3deg); }
.hc:focus-visible { outline: 2px dashed var(--gold); outline-offset: 4px; }
.hc.is-found::after {
  content: "♥"; position: absolute; left: 50%; top: -6px;
  font-size: 16px; line-height: 1; color: #ff7a8a;
  animation: heart 1s ease-out forwards;
}
@keyframes heart { from { transform: translate(-50%, 0) scale(.5); opacity: 1; } to { transform: translate(-50%, -30px) scale(1.2); opacity: 0; } }
.hc.is-jump img { animation: jump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes jump { 40% { transform: translateY(-14px) scale(1.05, .95); } }

.logo-wrap { position: relative; }
.hc-logo { width: 38px; right: -44px; top: -4px; }
.hc-logo:hover { transform: translateY(-3px); }
.hc-hero { /* 前列の客席にまぎれる */
  width: clamp(70px, 8vw, 100px); left: 30%; bottom: calc(20vh - 34px);
  transform: translateY(calc(var(--p) * 36vh));
}
.hc-hero:hover { transform: translateY(calc(var(--p) * 36vh - 6px)); }
.hc-screen { width: clamp(64px, 8vw, 100px); left: 10%; bottom: calc(100% - 10px); }
.posters-wrap { position: relative; margin-top: 72px; } /* 上に猫が座る余白。説明文に被らせない */
.hc-posters { width: 96px; right: 8%; bottom: calc(100% - 4px); z-index: 0; }
.coming-card.is-secret { overflow: visible; }
.photo-wrap { position: relative; }
.hc-director { width: 84px; right: -40px; bottom: -8px; }
.hc-footer { width: 76px; right: -88px; bottom: 0; }

/* 客席：予約済みの猫席 */
.seat.is-cat { position: relative; background: #3a3132; cursor: pointer; overflow: visible; }
.seat.is-cat img { position: absolute; left: -20%; bottom: 0; width: 140%; }

/* ---------- 予告編 ---------- */
.trailer {
  width: 100vw; height: 100vh; height: 100svh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #000; color: var(--cream);
  overflow: hidden;
}
.trailer::backdrop { background: #000; }
.letterbox { position: absolute; left: 0; right: 0; height: 12vh; background: #000; z-index: 2; box-shadow: 0 0 0 1px #000; }
.letterbox.top { top: 0; }
.letterbox.bottom { bottom: 0; }
.trailer-stage {
  position: absolute; inset: 12vh 0;
  display: grid; place-items: center;
  padding: 0 clamp(20px, 8vw, 120px);
  background: radial-gradient(ellipse at 50% 50%, #1d1012, #000 75%);
}
.t-card {
  grid-area: 1 / 1;
  text-align: center;
  font-family: var(--f-title); font-weight: 800;
  font-size: clamp(18px, 3vw, 32px); line-height: 1.9; letter-spacing: .08em;
  animation: card var(--d, 2.6s) ease-in-out forwards;
}
.t-card.is-small { font-family: var(--f-en); font-weight: 400; letter-spacing: .4em; color: var(--gold); font-size: clamp(16px, 2vw, 22px); }
.t-card.is-title { font-size: clamp(40px, 8vw, 96px); color: var(--gold-soft); text-shadow: 0 0 30px rgba(243,197,107,.4); animation-name: card-title; }
.t-card.is-title small { display: block; font-family: var(--f-en); font-weight: 400; font-size: clamp(14px, 1.6vw, 18px); letter-spacing: .4em; color: var(--muted); }
@keyframes card { 0% { opacity: 0; transform: scale(.98); } 18%, 78% { opacity: 1; } 100% { opacity: 0; transform: scale(1.04); } }
@keyframes card-title { 0% { opacity: 0; transform: scale(1.15); filter: blur(8px); } 30% { opacity: 1; transform: none; filter: none; } 100% { opacity: 1; } }
.trailer-end {
  position: absolute; left: 0; right: 0; bottom: calc(12vh + 28px); z-index: 3;
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  animation: rise .6s both;
}
.btn-ghost {
  font: inherit; font-weight: 700; color: var(--cream);
  background: transparent; border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 18px; cursor: pointer;
}
.trailer-skip {
  position: absolute; top: calc(12vh - 44px); right: 20px; z-index: 3;
  font: inherit; font-size: 13px; color: var(--muted);
  background: none; border: 0; cursor: pointer;
}
.m-trailer {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 13px;
  color: var(--cream); background: rgba(255,255,255,.06);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 14px 4px 6px; margin-bottom: 8px; cursor: pointer;
}
.m-trailer::before {
  content: "▶"; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--curtain); color: #fff; font-size: 10px;
}
.m-trailer:hover { border-color: var(--gold); }

/* ---------- セクション共通 ---------- */
.section {
  position: relative; z-index: 2;
  padding: clamp(44px, 6vw, 72px) clamp(16px, 5vw, 64px);
  max-width: 1240px; margin: 0 auto;
}
.sec-head { margin-bottom: 28px; }
.sec-en {
  margin: 0;
  font-family: var(--f-en); font-size: 20px; letter-spacing: .3em; color: var(--gold);
}
.sec-ja { font-family: var(--f-title); font-size: clamp(30px, 5vw, 48px); }
.sec-lead { color: var(--muted); margin: 8px 0 0; }
.reveal { opacity: 0; translate: 0 32px; transition: opacity .8s, translate .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; translate: none; }

/* フィルムのパーフォレーション */
.film-edge::before, .film-edge::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 18px;
  background: radial-gradient(circle at 50% 50%, transparent 0 4px, transparent 4px) ,
    repeating-linear-gradient(180deg, #000 0 10px, rgba(243,197,107,.12) 10px 22px, #000 22px 30px);
  opacity: .5;
}
.film-edge::before { left: 0; }
.film-edge::after { right: 0; }

/* ---------- フィルター ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  font: inherit; font-weight: 700; font-size: 14px;
  color: var(--cream); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 18px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--gold); color: #1a0f08; border-color: var(--gold); }

/* ---------- ポスター ---------- */
.posters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: clamp(20px, 3vw, 36px);
  perspective: 1000px;
}
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border: 0; padding: 0; cursor: pointer;
  border-radius: 6px; overflow: hidden;
  color: #fff; text-align: left; font: inherit;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s ease-out, box-shadow .3s, opacity .8s, translate .8s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 20px 40px rgba(0,0,0,.55);
}
.poster:hover, .poster:focus-visible { box-shadow: 0 30px 60px rgba(0,0,0,.7), 0 0 0 2px var(--gold); outline: none; }
.poster.is-hidden { display: none; }
.poster::after { /* 光沢 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.28), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.poster:hover::after { opacity: 1; }
.poster-art { position: absolute; inset: 0; }
.poster-art svg { width: 100%; height: 100%; }
.poster-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%);
}
.poster-top {
  position: absolute; top: 14px; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .15em; font-weight: 700;
}
.poster-badge { background: var(--gold); color: #1a0f08; padding: 1px 8px; border-radius: 3px; }
.poster-copy { font-size: 12px; opacity: .85; margin: 0 0 6px; }
.poster-title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; margin: 0; }
.poster-credit {
  margin: 10px 0 0; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.3);
  font-size: 9px; letter-spacing: .12em; opacity: .75;
  font-family: var(--f-en); font-size: 13px;
}
/* ジャンル別の書体 */
.g-sf .poster-title { font-family: var(--f-en); font-size: clamp(34px, 3.6vw, 44px); letter-spacing: .06em; color: #8ef3ff; text-shadow: 0 0 14px rgba(70,220,255,.7); }
.g-drama .poster-title { font-family: var(--f-title); }
.g-doc .poster-title { font-family: var(--f-title); letter-spacing: .2em; }
.g-heart .poster-title { font-family: var(--f-body); font-weight: 900; color: #fff8ec; }
.g-buddy .poster-title { font-family: var(--f-en); font-size: clamp(34px, 3.6vw, 44px); color: #ffd93a; }

/* ---------- 近日公開 ---------- */
.coming { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.coming-card {
  position: relative; overflow: hidden;
  padding: 36px 28px;
  border: 1px dashed var(--line); border-radius: 8px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 12px, transparent 12px 24px);
}
.coming-card h3 { font-family: var(--f-title); font-size: 26px; margin-bottom: 8px; }
.coming-card p { margin: 0; color: var(--muted); }
.coming-card.is-secret h3 { filter: blur(2px); }
.coming-card.has-poster { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: center; }
.coming-thumb { aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; filter: grayscale(.4) brightness(.8); box-shadow: 0 10px 20px rgba(0,0,0,.5); }
.coming-thumb svg { width: 100%; height: 100%; }
.coming-genre { font-size: 12px; color: var(--gold) !important; margin-bottom: 4px !important; }
.stamp {
  position: absolute; top: 18px; right: -8px;
  transform: rotate(8deg);
  border: 3px solid var(--curtain); color: var(--curtain);
  font-weight: 900; padding: 2px 14px; letter-spacing: .2em;
  background: rgba(14,10,11,.6);
}

/* ---------- 監督 ---------- */
.director {
  display: grid; grid-template-columns: minmax(200px, 340px) 1fr;
  gap: clamp(32px, 6vw, 80px); align-items: start;
}
.spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 30% 60% at var(--sx, 25%) 40%, rgba(255,236,190,.14), transparent 70%);
  transition: background .2s;
}
.director-photo {
  position: relative;
  aspect-ratio: 5 / 6;
  color: #2c1c1e;
  background: radial-gradient(circle at 50% 30%, #4a2e31, #1d1213 70%);
  border-radius: 8px;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.director-photo svg { width: 80%; }
.clapper {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--f-en); font-size: 18px; letter-spacing: .1em;
  padding: 2px 10px; color: #fff;
  background: repeating-linear-gradient(135deg, #fff 0 10px, #111 10px 20px) top / 100% 8px no-repeat, #111;
  padding-top: 12px;
}
.director-name { font-family: var(--f-title); font-size: clamp(36px, 5vw, 56px); }
.director-name small { display: block; font-family: var(--f-en); font-size: 20px; letter-spacing: .2em; color: var(--muted); font-weight: 400; }
.director-head { display: flex; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.sns-open {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--gold); cursor: pointer;
  background: rgba(243,197,107,.08); border: 1px solid var(--gold); border-radius: 999px;
  padding: 8px 16px; margin-bottom: 6px; display: inline-flex; gap: 8px; align-items: center;
  transition: background .2s, color .2s;
}
.sns-open:hover { background: var(--gold); color: #1a0f08; }
.sns-open span { transition: transform .2s; }
.sns-open:hover span { transform: translateX(3px); }

/* 個人の発信活動ポップアップ。上辺に隠れ猫が座れるよう overflow は見せる */
.sns-modal {
  width: min(460px, calc(100% - 32px)); overflow: visible;
  padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-2); color: var(--cream);
}
.sns-modal::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.sns-modal[open] { animation: project .5s cubic-bezier(.2,.8,.2,1); }
.sns-title { font-family: var(--f-title); font-size: 24px; margin: 0 0 8px; }
.sns-lead { font-size: 13px; color: var(--muted); margin: 0 0 20px; line-height: 1.7; }
.sns-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sns-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--cream); text-decoration: none; transition: border-color .2s, background .2s;
}
.sns-list a::after { content: "↗"; color: var(--gold); }
.sns-list a:hover { border-color: var(--gold); background: rgba(243,197,107,.08); }
.sns-list b { font-size: 16px; }
.sns-list span { margin-left: auto; font-size: 12px; color: var(--muted); }
.director-text { color: var(--cream); opacity: .9; }
.filmo-title { font-family: var(--f-en); font-size: 22px; letter-spacing: .2em; color: var(--gold); margin-top: 32px; }
.filmo { list-style: none; padding: 0; margin: 12px 0 0; border-left: 2px solid var(--line); }
.filmo li { display: flex; gap: 16px; padding: 8px 0 8px 18px; position: relative; }
.filmo li::before { content: ""; position: absolute; left: -6px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.filmo li:has(.filmo-year:empty)::before { width: 6px; height: 6px; left: -4px; top: 20px; opacity: .6; }
.filmo-year { font-family: var(--f-en); font-size: 20px; color: var(--gold); min-width: 52px; }

/* ---------- チケット売り場 ---------- */
.booth { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.seatmap { background: var(--bg-2); border-radius: 10px; padding: 24px; border: 1px solid var(--line); }
.screen-bar {
  text-align: center; font-family: var(--f-en); letter-spacing: .5em; color: var(--muted);
  border-top: 4px solid var(--cream); border-radius: 50% 50% 0 0 / 14px 14px 0 0;
  padding-top: 6px; margin: 0 8% 24px;
  box-shadow: 0 -10px 30px rgba(244,234,216,.15);
}
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.week-label { margin: 0; white-space: nowrap; font-family: var(--f-en); font-size: clamp(16px, 4.4vw, 22px); letter-spacing: .08em; color: var(--cream); }
.week-btn {
  font: inherit; color: var(--gold); background: none; border: 1px solid var(--line);
  border-radius: 999px; width: 38px; height: 38px; cursor: pointer; transition: background .2s;
}
.week-btn:hover:not(:disabled) { background: rgba(243,197,107,.12); }
.week-btn:disabled { opacity: .25; cursor: default; }
.schedule-wrap { position: relative; }
.schedule {
  display: grid; grid-template-columns: 44px repeat(var(--cols, 5), 1fr); gap: 4px 6px;
  max-height: 460px; overflow-y: auto; padding-right: 4px; min-height: 140px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.sch-corner { position: sticky; top: 0; z-index: 2; background: var(--bg-2); }
.sch-day {
  position: sticky; top: 0; z-index: 2; background: var(--bg-2);
  display: grid; text-align: center; font-size: 11px; color: var(--muted); padding-bottom: 6px; line-height: 1.3;
}
.sch-day b { font-size: 14px; color: var(--cream); }
.sch-day.is-weekend b { color: var(--gold); }
.sch-time { font-family: var(--f-en); font-size: 14px; color: var(--muted); align-self: center; letter-spacing: .05em; }
.sch-time.is-half { opacity: .35; font-size: 12px; }
.schedule .seat { aspect-ratio: auto; height: 22px; }
.schedule .seat[data-iso] { background: var(--curtain); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.schedule .seat[data-iso]:hover { background: #c23a3a; }
.schedule .seat[data-iso].is-selected { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.schedule-msg { grid-column: 1 / -1; margin: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.schedule-msg a { color: var(--gold); }
.schedule-msg.is-over { margin: 12px 0 0; }
.schedule.is-loading .schedule-msg { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.seat {
  aspect-ratio: 1; border: 0; padding: 0; cursor: pointer;
  border-radius: 6px 6px 3px 3px;
  background: var(--curtain-dark);
  transition: transform .15s, background .2s;
}
.seat:hover { transform: translateY(-2px); background: var(--curtain); }
.seat.is-taken { background: #2c2627; opacity: .5; cursor: default; }
.seat.is-taken:hover { transform: none; }
.seat.is-selected { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.screen-bar { position: relative; }
.cat-on-screen { position: absolute !important; right: -4px; top: -40px; width: 56px; height: 40px; background: none !important; }
.cat-on-screen img { width: 100% !important; left: 0 !important; }
.cat-corner { position: absolute !important; left: -6px; top: -14px; width: 50px; height: 40px; background: none !important; z-index: 3; }
.cat-corner img { width: 100% !important; left: 0 !important; }
.seat-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.seat-note strong { color: var(--gold); }
.tz-note { font-size: 12px; margin-left: 4px; }
.btn-ticket:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.proto-note.is-error { color: #ff9b8a; }
.proto-note a { color: var(--gold); }

.ticket-form { display: grid; gap: 16px; }
.ticket-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.ticket-form input, .ticket-form select, .ticket-form textarea {
  font: inherit; font-weight: 400; color: var(--cream);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px;
}
.ticket-form :focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.btn-ticket {
  font: inherit; font-weight: 900; font-size: 16px; letter-spacing: .1em;
  color: #1a0f08; background: var(--gold); border: 0; border-radius: 6px;
  padding: 14px; cursor: pointer;
  transition: transform .15s, box-shadow .2s;
}
.btn-ticket:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(243,197,107,.35); }
.proto-note { margin: 0; font-size: 12px; color: var(--muted); }

.issued { grid-column: 1 / -1; display: grid; place-items: center; gap: 20px; }
.ticket {
  display: flex; width: min(560px, 100%);
  color: #2b1608; animation: print 1s cubic-bezier(.2,.8,.2,1) both;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.5));
}
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-20px); } to { clip-path: inset(0); transform: none; } }
.ticket-main {
  flex: 1; padding: 22px 26px;
  background: var(--gold-soft);
  border-radius: 10px 0 0 10px;
  -webkit-mask: radial-gradient(circle at 100% 50%, transparent 12px, #000 12.5px);
          mask: radial-gradient(circle at 100% 50%, transparent 12px, #000 12.5px);
}
.t-cinema { margin: 0; font-family: var(--f-en); letter-spacing: .3em; color: var(--curtain); }
.t-film { margin: 4px 0 12px; font-family: var(--f-title); font-size: 24px; font-weight: 800; }
.ticket dl { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; font-size: 13px; }
.ticket dt { font-size: 10px; opacity: .7; }
.ticket dd { margin: 0; font-weight: 700; }
.ticket-stub {
  width: 110px; display: grid; place-items: center;
  background: var(--gold); border-radius: 0 10px 10px 0;
  border-left: 2px dashed rgba(43,22,8,.5);
  font-family: var(--f-en); font-size: 26px; text-align: center; line-height: 1;
  transform-origin: 0 100%;
}
.ticket.is-torn .ticket-stub { animation: tear 1s .9s cubic-bezier(.5,0,.7,.4) forwards; }
@keyframes tear { 30% { transform: rotate(6deg); } to { transform: translate(60px, 260px) rotate(40deg); opacity: 0; } }
.issued-msg { text-align: center; margin: 0; font-weight: 700; }

/* ---------- フッター（クレジット） ---------- */
.site-footer {
  position: relative; z-index: 2;
  padding: clamp(48px, 6vw, 72px) 16px 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg), #000);
  border-top: 1px solid var(--line);
}
.c-head { font-family: var(--f-en); font-size: clamp(28px, 4vw, 40px); letter-spacing: .3em; color: var(--gold); margin: 0 0 40px; }
.credits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; max-width: 420px; margin: 0 auto; }
.credits dt { text-align: right; color: var(--muted); font-size: 13px; }
.credits dd { margin: 0; text-align: left; }
.c-links { list-style: none; padding: 0; margin: 48px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; }
.c-links a { font-family: var(--f-en); font-size: 22px; letter-spacing: .1em; text-decoration: none; }
.c-links a:hover { color: var(--gold); }
.c-mail { margin: 14px 0 0; font-size: 12px; letter-spacing: .04em; color: var(--muted, rgba(255,255,255,.6)); }
.c-mail a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.c-mail a:hover { color: var(--gold); }
.c-end-wrap { position: relative; width: fit-content; margin: 64px auto 8px; }
.c-end { font-family: var(--f-title); font-size: 40px; margin: 0; }
.c-copy { color: var(--muted); font-size: 12px; margin: 0; }
.c-found { margin: 20px 0 0; font-size: 13px; color: var(--gold); }

/* ---------- 作品詳細モーダル ---------- */
.film-modal {
  width: min(980px, calc(100% - 32px));
  max-height: calc(100svh - 48px);
  padding: 0; border: 0; border-radius: 12px;
  background: var(--bg-2); color: var(--cream);
  overflow: hidden;
}
.film-modal::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(4px); }
.film-modal[open] { animation: project .6s cubic-bezier(.2,.8,.2,1); }
@keyframes project {
  from { opacity: 0; transform: scale(.9); filter: brightness(3) blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.beam {
  position: absolute; inset: 0; pointer-events: none;
  background: conic-gradient(from 160deg at 50% -20%, transparent 0deg, rgba(255,240,200,.08) 15deg, rgba(255,240,200,.12) 20deg, rgba(255,240,200,.08) 25deg, transparent 40deg);
}
.modal-close {
  position: absolute; top: 10px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(0,0,0,.5); color: var(--cream);
  font-size: 22px; cursor: pointer;
}
.modal-inner {
  position: relative;
  display: grid; grid-template-columns: 300px 1fr;
  max-height: calc(100svh - 48px); overflow-y: auto;
}
.m-poster { position: relative; aspect-ratio: 2 / 3; align-self: start; position: sticky; top: 0; }
.m-poster .poster-art svg { width: 100%; height: 100%; }
.m-body { padding: 36px clamp(20px, 4vw, 44px) 40px; }
.m-tag { color: var(--gold); font-weight: 700; margin: 0 0 6px; }
.m-title { font-family: var(--f-title); font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.m-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.m-meta span { font-size: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 2px 10px; }
.m-h { font-family: var(--f-en); letter-spacing: .25em; font-size: 18px; color: var(--gold); margin: 28px 0 8px; font-weight: 400; }
.m-story { font-family: var(--f-title); font-size: 17px; line-height: 2.1; }
.m-story p { margin: 0 0 1em; }
.m-cast { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.m-cast dt { color: var(--muted); font-size: 13px; }
.m-cast dd { margin: 0; }
.m-points { counter-reset: p; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.m-points li { counter-increment: p; display: flex; gap: 12px; }
.m-points li::before { content: counter(p, decimal-leading-zero); font-family: var(--f-en); color: var(--gold); font-size: 22px; line-height: 1.3; }
.m-review { color: var(--muted); font-size: 14px; }
.m-price {
  margin-top: 28px; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px dashed var(--gold); border-radius: 8px;
}
.m-price strong { font-size: 20px; }
.m-price .btn-ticket { padding: 10px 20px; font-size: 14px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .director, .booth { grid-template-columns: 1fr; }
  .director-photo { max-width: 300px; }
  .modal-inner { grid-template-columns: 1fr; }
  .m-poster { position: relative; max-height: 46svh; aspect-ratio: auto; height: 46svh; }
}
@media (max-width: 640px) {
  :root { --ticker-w: 0px; }
  .ticker {
    top: auto; left: 0; width: auto; height: 30px;
    border-left: 0; border-top: 1px solid var(--line);
  }
  .ticker-track { flex-direction: row; writing-mode: horizontal-tb; animation-name: ticker-x; width: max-content; }
  .ticker-track span { font-size: 13px; line-height: 30px; padding: 0 8px; }
  body { padding-bottom: 30px; }
  .screen { aspect-ratio: 4 / 3; padding: 6% 5%; }
  .tagline { font-size: 6.6vw; }
  .sign-sub { font-size: 10px; letter-spacing: .02em; }
  .poster-credit { font-size: 10px; letter-spacing: .04em; }
  .screen-wrap { top: 18%; --zoom: 3.4; }
  .cat-guide { bottom: 30px; left: 6px; }
  .cat-btn-an { width: 60px; }
  .cat-btn-chobi { width: 44px; }
  .cat-bubble { left: 30px; bottom: 70px; font-size: 12px; }
  .hc-director { right: 0; }
  .hc-footer { right: -70px; width: 60px; }
  .nav { gap: 9px; font-size: 12px; }
  .logo { font-size: 18px; }
  .hc-logo { width: 30px; right: auto; left: 52px; top: -4px; }
  .film-edge::before, .film-edge::after { display: none; }
  .posters { grid-template-columns: 1fr 1fr; gap: 14px; }
  .poster-body { padding: 12px; }
  .poster-top { top: 10px; left: 10px; right: 10px; font-size: 9px; }
  .poster-copy { display: none; }
  .schedule { grid-template-columns: 38px repeat(var(--cols, 5), 1fr); gap: 4px; }
  .seatmap { padding: 16px; }
}
@keyframes ticker-x { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .lobby { height: auto; }
  .stage { position: relative; }
}

/* 作品詳細：制作例・リンク */
.m-works { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.m-works li { position: relative; padding-left: 18px; }
.m-works li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }
.m-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.m-links a { border: 1px solid var(--gold); color: var(--gold); padding: 6px 14px; border-radius: 999px; font-size: 13px; text-decoration: none; }
.m-links a:hover { background: var(--gold); color: #111; }

/* =========================================================
   ポートフォリオ構成：実績・サービス・発信活動
   ========================================================= */
.poster[class*=" w-"] .poster-title { font-family: var(--f-body); font-weight: 900; font-size: clamp(18px, 1.9vw, 22px); }
.poster.w-personal { color: #2b1608; }
.poster.w-personal .poster-body { background: linear-gradient(180deg, transparent 55%, rgba(243,234,216,.95) 100%); }
.poster.w-ai .poster-title { color: #c9f8ff; }
.poster.g-doc .poster-title, .poster.g-heart .poster-title { font-family: var(--f-body); font-weight: 900; font-size: clamp(18px, 1.9vw, 22px); letter-spacing: 0; }
.poster .poster-copy { margin: 6px 0 0; }
.posters-sm { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); margin-bottom: 32px; max-width: 520px; }

#service { scroll-margin-top: 70px; }
.services { display: grid; gap: 28px; }
.service-card {
  display: grid; grid-template-columns: 220px 1fr; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
}
.service-art { position: relative; min-height: 100%; }
.service-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.service-body { padding: clamp(22px, 3vw, 36px); }
.service-kicker { margin: 0; font-family: var(--f-en); letter-spacing: .25em; color: var(--gold); }
.service-name { font-family: var(--f-title); font-size: clamp(24px, 3vw, 32px); margin: 2px 0 6px; }
.service-lead { margin: 0 0 18px; color: var(--muted); }
.service-dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px 18px; margin: 0; font-size: 15px; }
.service-dl dt { font-weight: 700; color: var(--gold-soft); font-size: 13px; padding-top: 2px; }
.service-dl dd { margin: 0; }
.service-dl ul { margin: 0; padding-left: 1.1em; }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.service-actions .btn-ticket { padding: 12px 22px; font-size: 15px; }
.btn-ghost {
  font: inherit; font-weight: 700; font-size: 14px; color: var(--cream);
  background: none; border: 1px solid var(--line); border-radius: 6px; padding: 12px 20px; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.link-btn { font: inherit; color: var(--gold); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.flow-title { font-family: var(--f-title); font-size: 24px; margin: 40px 0 16px; }
.flow {
  list-style: none; padding: 0; margin: 0 0 28px; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
/* 左から右へ：矢羽根形のステップをつなげ、右へ行くほど金色が濃くなる */
.flow li {
  counter-increment: step; position: relative;
  padding: 20px 34px 20px 40px; min-height: 150px;
  display: grid; gap: 6px; align-content: start;
  background: linear-gradient(90deg, rgba(243,197,107,var(--a0)), rgba(243,197,107,var(--a1)));
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%);
  margin-left: -10px;
}
.flow li:nth-child(1) { --a0: .06; --a1: .12; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); margin-left: 0; padding-left: 20px; border-radius: 8px 0 0 8px; }
.flow li:nth-child(2) { --a0: .12; --a1: .2; }
.flow li:nth-child(3) { --a0: .2; --a1: .3; }
.flow li:nth-child(4) { --a0: .3; --a1: .42; }
.flow li::before { content: counter(step); font-family: var(--f-en); color: var(--gold); font-size: 30px; line-height: 1; }
.flow li:last-child::before { color: var(--cream); }
.flow b { font-size: 16px; }
.flow span { font-size: 13px; color: var(--cream); opacity: .75; line-height: 1.6; }
.btn-inline { display: inline-block; text-decoration: none; padding: 14px 28px; }

.m-text { margin: 0; line-height: 1.9; }
.m-h { font-family: var(--f-body); letter-spacing: .1em; font-size: 15px; font-weight: 700; }
.m-price span { font-size: 14px; color: var(--muted); }
.m-price span strong { color: var(--cream); font-size: 16px; }

@media (max-width: 860px) {
  .flow li { padding-right: 28px; }
  .service-card { grid-template-columns: 1fr; }
  .service-art { height: 140px; }
}
@media (max-width: 640px) {
  /* スマホは横にスワイプして流れを追う */
  .flow {
    grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; scrollbar-width: none;
  }
  .flow::-webkit-scrollbar { display: none; }
  .flow li { scroll-snap-align: start; min-height: 140px; }
  .service-dl { grid-template-columns: 1fr; gap: 4px; }
  .service-dl dd { margin-bottom: 10px; }
  .posters-sm { grid-template-columns: 1fr 1fr; }
}

/* 実績：大分類・小分類 */
.work-groups { display: grid; gap: 20px; }
.work-group[hidden] { display: none; }
.work-group-title {
  font-family: var(--f-title); font-size: clamp(24px, 3vw, 32px);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 12px; margin: 0 0 24px; border-bottom: 1px solid var(--line);
}
.work-group-title { cursor: pointer; list-style: none; align-items: center; margin: 0; padding: 14px 4px; }
.work-group-title::-webkit-details-marker { display: none; }
.work-group-title h3 { font: inherit; margin: 0; }
.work-group-title small { font-family: var(--f-body, inherit); font-size: 13px; color: var(--muted); }
.work-group-title::after {
  content: ""; margin-left: auto; width: 10px; height: 10px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s;
}
.work-group[open] > .work-group-title::after { transform: rotate(-135deg) translateY(-3px); }
.work-group-title:hover h3 { color: var(--gold); }
.work-group[open] > .work-group-title { margin-bottom: 24px; }
.work-group > .work-sub:last-child { margin-bottom: 24px; }
.work-group-title span { font-family: var(--f-en); font-size: 16px; letter-spacing: .3em; color: var(--gold); order: -1; }
.work-sub + .work-sub { margin-top: 36px; }
.work-sub-title {
  font-size: 15px; font-weight: 700; color: var(--gold-soft); margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.work-sub-title::before { content: ""; width: 18px; height: 2px; background: var(--gold); }
.work-sub .posters { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }

.ticket-stub span { writing-mode: vertical-rl; font-family: var(--f-title); font-size: 22px; letter-spacing: .3em; }

.logo, .nav a { white-space: nowrap; }
@media (max-width: 640px) {
  .site-header { padding: 12px 12px; }
  .nav { gap: 8px; font-size: 11.5px; }
  .nav-ticket { padding: 4px 10px; }
}


/* ロゴ：RCS（オープニング映像の書体に合わせる） */
.logo { display: grid; line-height: 1; letter-spacing: 0; font-family: "Outfit", var(--f-en); }
.logo b { font-size: 28px; font-weight: 800; letter-spacing: .06em; }
.logo small { font-size: 8px; font-weight: 400; letter-spacing: .32em; margin-top: 4px; opacity: .8; }
.c-head { font-family: "Outfit", var(--f-en); font-weight: 800; letter-spacing: .08em; }
.t-cinema { font-family: "Outfit", var(--f-en); font-size: 11px; }
@media (max-width: 640px) {
  .logo b { font-size: 22px; }
  .logo small { font-size: 6px; letter-spacing: .24em; }
}

/* スクリーンに映すオープニング映像 */
.screen { overflow: visible; }
.screen-movie {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 6px; z-index: 1;
  transition: opacity 1s;
}
/* スクリーンは映像と同じ16:9に。コピーは映像の裏に隠す（高さを押し広げない） */
.screen { aspect-ratio: 16 / 9; }
.screen-copy { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: 0; }
.screen::after { z-index: 2; }
.screen-replay {
  position: absolute; left: 50%; top: 12px; translate: -50% 0; z-index: 3;
  font: inherit; font-size: 11px; font-weight: 700; color: #6b4a3f;
  background: none; border: 1px solid rgba(107,74,63,.4); border-radius: 999px;
  padding: 3px 12px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .6s .8s;
}
.lobby.is-ended .screen-replay { opacity: 1; pointer-events: auto; }
.screen-replay:hover { color: #2a0c13; border-color: #2a0c13; }
.hc-screen { z-index: 4; }

.filmo-link { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.filmo-link::after { content: " ▶"; font-size: .75em; color: var(--gold); }
.filmo-link:hover { color: var(--gold); }
.director-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.director-photo .clapper { z-index: 1; }
.text-link { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.text-link:hover { color: var(--gold); }
.w-realestate .poster-title { color: #fff; }

/* 隠れ猫の配置パターン（2〜5）。1 は上の既定位置。左右反転は img の scale で */
.hc.is-flip img, [data-cats="3"] :is(.hc-logo, .hc-hero) img, [data-cats="4"] .hc-posters img,
[data-cats="5"] :is(.hc-screen, .hc-posters) img, [data-cats="2"] :is(.hc-director, .hc-footer) img { scale: -1 1; }

[data-cats="2"] .hc-screen { left: auto; right: 8%; }
[data-cats="2"] .hc-hero { left: 62%; }
[data-cats="2"] .hc-posters { right: 24%; }
[data-cats="2"] .hc-director { right: auto; left: -24px; }
[data-cats="2"] .hc-footer { right: auto; left: -88px; }

[data-cats="3"] .hc-screen { left: 42%; }
[data-cats="3"] .hc-hero { left: 76%; }
[data-cats="3"] .hc-posters { right: 18%; }
[data-cats="3"] .hc-director { right: 24px; bottom: auto; top: -48px; }
[data-cats="3"] .hc-footer { right: auto; left: calc(50% - 38px); bottom: calc(100% - 4px); }

[data-cats="4"] .hc-screen { left: 70%; }
[data-cats="4"] .hc-hero { left: 66%; }
[data-cats="4"] .hc-director { bottom: auto; top: 40%; right: -30px; }

[data-cats="5"] .hc-screen { left: 24%; }
[data-cats="5"] .hc-hero { left: 18%; }
[data-cats="5"] .hc-posters { right: 28%; }
[data-cats="5"] .hc-director { right: auto; left: -24px; }
[data-cats="5"] .hc-footer { right: auto; left: -88px; }

@media (max-width: 640px) {
  [data-cats] .hc-director { right: 0; }
  [data-cats="2"] .hc-director, [data-cats="5"] .hc-director { right: auto; left: 0; }
  [data-cats="3"] .hc-director { right: 12px; }
  [data-cats="2"] .hc-footer, [data-cats="5"] .hc-footer { left: -70px; }
  [data-cats="1"] .hc-hero { left: 6%; } /* 中央の「クリックでポップコーン」を避ける */
}

/* 実績カード：背景色＋線画アイコンで統一。文字は下にまとめる */
.poster.w-card { color: #fff; }
.poster.w-card .poster-body { background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.55) 100%); }
.poster.w-card .poster-title { color: #fff8ec; font-family: var(--f-body); font-weight: 900; font-size: clamp(17px, 1.8vw, 21px); letter-spacing: 0; }
.poster.w-card .poster-copy { color: var(--gold); opacity: .85; }

/* 実績：一覧はシンプルなアイコンのタイル。押すと詳細でイラストが出る */
.work-tile {
  --tint: #1b3524;
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; text-align: left; font: inherit; color: var(--cream); cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, background .2s, opacity .8s, translate .8s cubic-bezier(.2,.7,.2,1);
}
.work-tile.c-creative { --tint: #401619; }
.work-tile.c-efficiency { --tint: #132a46; }
.work-tile.c-other { --tint: #3a2810; }
.work-tile:hover, .work-tile:focus-visible { border-color: var(--gold); background: rgba(243,197,107,.06); outline: none; }
.work-tile-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); color: var(--gold);
}
.work-tile-icon svg { width: 26px; height: 26px; }
.work-tile-text { display: grid; gap: 4px; min-width: 0; }
.work-tile-title { font-weight: 700; font-size: 15px; line-height: 1.4; }
.work-tile-tools { font-size: 12px; color: var(--muted); }
.work-tile-more { margin-left: auto; color: var(--gold); font-size: 18px; transition: transform .2s; }
.work-tile:hover .work-tile-more { transform: rotate(90deg); }

.m-poster { overflow: hidden; }
.m-illust { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-iconart { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold); }
.m-iconart svg { width: 42%; height: auto; }
.m-sticker { width: 100%; height: 100%; display: grid; place-items: center; background: #f6efe0; }
.m-sticker img { width: 72%; max-width: 300px; height: auto; }
