/* ==========================================================
   イメージ準拠: 白地 / グレーの細い文字 / トープのロゴ / 薄いグレーのサイ
   ========================================================== */
:root {
  --white: #fff;
  --text: #737373;       /* キャッチ・イントロ・補足テキスト */
  --text-deep: #5e5e5e;  /* © など */
  --taupe: #947d6b;      /* ロゴの色 */
  --panel: #333;         /* 写真未設定時のパネル色 */
  --gap: 4px;            /* スライドの写真の隙間 */
  --font: "Kosugi", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;

  /* 内容の基準幅(ロゴとビリングを同じ幅に) */
  --body-w: clamp(280px, 50vw, 760px);
  /* ヒーロー下の余白。サイの下辺をビリングの下辺に揃えるために共用 */
  --body-pb: clamp(40px, 6vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font); line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }

/* 上段: 写真3枚を全幅で横並び */
.hero__strip { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--panel); }
.hero__strip > div { aspect-ratio: 3 / 2; overflow: hidden; background: var(--panel); }
.hero__strip img { width: 100%; height: 100%; object-fit: cover; }

.hero__body {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: clamp(20px, 3vw, 44px) 20px var(--body-pb);
}
.hero__catch {
  margin: 0 0 clamp(14px, 2vw, 28px);
  font-size: clamp(.72rem, .5rem + .55vw, 1.05rem); letter-spacing: .12em; line-height: 1.8;
  text-wrap: balance; word-break: auto-phrase;
}
.hero__title { margin: 0 0 clamp(24px, 4vw, 56px); width: var(--body-w); line-height: 0; }
.hero__title img { width: 100%; height: auto; }
.hero__billing { width: var(--body-w); line-height: 0; }
.hero__billing img { width: 100%; height: auto; }

/* サイ: 右端で見切れさせ、下辺はビリングの下辺(= body下余白の上端)に揃える */
.hero__rhino {
  position: absolute; z-index: 0; pointer-events: none;
  right: -6vw; bottom: var(--body-pb);
  width: clamp(140px, 22vw, 400px); height: auto;
}

/* 入場アニメーション */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero__strip { animation: fadeIn 1.2s ease both; }
.hero__catch { animation: fadeUp 1s .3s ease both; }
.hero__title { animation: fadeUp 1s .5s ease both; }
.hero__billing { animation: fadeUp 1s .75s ease both; }
.hero__rhino { animation: fadeIn 1.6s 1s ease both; }

/* ---------- Intro ---------- */
.intro { padding: clamp(32px, 6vw, 88px) 20px clamp(40px, 6vw, 80px); text-align: center; }
.intro__text p {
  margin: 0; text-wrap: balance; word-break: auto-phrase; line-break: strict;
  font-size: clamp(.82rem, .62rem + .5vw, 1.1rem); letter-spacing: .08em; line-height: 2.2;
}

/* ---------- Slider (場面写真・自動スライド) ---------- */
.slider { --visible: 5; overflow: hidden; width: 100%; }
.slider__track {
  display: flex; gap: var(--gap);
  transition: transform .9s cubic-bezier(.45, 0, .2, 1);
}
.slider__track.is-jump { transition: none; }
.slider__track li {
  flex: 0 0 calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
  aspect-ratio: 16 / 9; background: var(--panel); position: relative; overflow: hidden;
}
.slider__track img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Placeholder ---------- */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px), var(--panel);
  color: #a8a8a8; font-size: .75rem; letter-spacing: .2em;
}

/* ---------- Trailer ---------- */
.trailer-sec { padding: clamp(56px, 9vw, 120px) 20px clamp(40px, 6vw, 72px); }
.label { margin: 0 0 20px; text-align: center; font-weight: 400; font-size: .75rem; letter-spacing: .4em; color: var(--text); }
.trailer {
  position: relative; width: min(100%, 880px); margin: 0 auto;
  aspect-ratio: 16 / 9; background: #000; overflow: hidden;
}
.trailer iframe, .modal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Modal ---------- */
.modal { width: min(960px, 94vw); padding: 0; border: 0; background: #000; overflow: visible; color: #fff; margin: auto; }
.modal::backdrop { background: rgba(255, 255, 255, .88); }
.modal__video { position: relative; aspect-ratio: 16 / 9; }
.modal__close {
  position: absolute; top: -44px; right: 0; width: 40px; height: 40px;
  background: none; border: 0; color: var(--text-deep); font-size: 2rem; line-height: 1; cursor: pointer;
}
.modal__close:hover { color: var(--taupe); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 8px 20px 36px; }
.footer__copy { margin: 0; font-size: .7rem; letter-spacing: .06em; color: var(--text-deep); }

/* ---------- 劇場情報へのリンク(トップページ) ---------- */
.theaters-link { padding: 0 20px clamp(40px, 6vw, 72px); text-align: center; }
.theaters-link a {
  display: inline-block; color: var(--text); text-decoration: none;
  font-size: .95rem; letter-spacing: .24em; padding: 10px 0 10px .24em;
  border-bottom: 1px solid var(--taupe); transition: color .3s, border-color .3s;
}
.theaters-link a:hover { color: var(--taupe); }

/* ---------- 劇場情報ボタン(右上・スクロールに追従) ---------- */
.fab-theaters {
  position: fixed; z-index: 50;
  top: clamp(12px, 2vw, 28px); right: clamp(12px, 2vw, 28px);
  width: clamp(72px, 6.6vw, 96px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: rgba(255, 255, 255, .94); color: var(--text-deep); text-decoration: none;
  border: 1px solid var(--taupe);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .16);
  font-size: clamp(.85rem, .74rem + .35vw, 1.05rem); letter-spacing: .04em; line-height: 1.2;
  /* Kosugiは太さが1種類のため、太字指定でブラウザの擬似ボールドをかける */
  font-weight: 700; color: var(--text-deep); white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s;
  animation: fadeIn 1s 1.2s ease both;
}
.fab-theaters:hover, .fab-theaters:focus-visible { background: var(--taupe); color: #fff; }
.fab-theaters:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }

/* ---------- 劇場情報ページ ---------- */
/* ページを画面の高さいっぱいにして、コピーライトを最下部に置く */
.page-theaters { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.page-theaters .theaters { flex: 1 0 auto; display: flex; flex-direction: column; }
.page-theaters .footer { flex-shrink: 0; padding-top: 0; }
/* 一覧エリアが余白を埋める。劇場が未定のメッセージは、上の文と「トップページへ戻る」の中間に来る */
#theaterList { flex: 1 0 auto; display: flex; flex-direction: column; }

.theaters {
  width: min(640px, calc(100% - 40px)); margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
}
.theaters__logo { display: block; width: clamp(160px, 22vw, 260px); margin: 0 auto clamp(28px, 4vw, 44px); line-height: 0; }
.theaters__logo img { width: 100%; height: auto; }
.theaters__title {
  margin: 0; text-align: center; font-weight: 400; color: var(--text);
  font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); letter-spacing: .4em; padding-left: .4em;
}
.theaters__lead {
  margin: 20px auto 0; text-align: center; letter-spacing: .08em; line-height: 2;
  font-size: clamp(.8rem, .7rem + .3vw, .95rem);
}
.theaters__region { margin-top: clamp(40px, 6vw, 64px); }
.theaters__region h2 {
  margin: 0 0 8px; text-align: center; font-weight: 400; color: var(--taupe);
  font-size: .95rem; letter-spacing: .3em; padding-left: .3em;
}
.theater {
  display: grid; grid-template-columns: 6em minmax(0, 1fr) auto; gap: 4px 28px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid #e3e3e3; letter-spacing: .06em; line-height: 1.8;
}
.theaters__region .theater:last-child { border-bottom: 1px solid #e3e3e3; }
.theater p { margin: 0; }
.theater__pref { letter-spacing: .14em; font-size: .85rem; }
.theater__name { font-size: 1rem; color: var(--text-deep); }
.theater__name a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--taupe); }
.theater__name a:hover { color: var(--taupe); }
.theater__when { font-size: .88rem; text-align: right; }
.theater__note { grid-column: 2 / -1; font-size: .82rem; }
.theaters__empty { margin: auto 0; padding: 24px 0; text-align: center; letter-spacing: .1em; line-height: 2.2; }
/* 「トップへ戻る」の上の余白は、劇場が並んだときだけ、最後の地域の下に付ける
   (未定メッセージを、上の文と「戻る」の真ん中に置くため) */
.theaters__region:last-of-type { margin-bottom: clamp(32px, 5vw, 56px); }
.theaters__back { margin: 0; text-align: center; }
.theaters__back a {
  color: var(--text); text-decoration: none; font-size: .75rem; letter-spacing: .3em;
  border-bottom: 1px solid #cfcfcf; padding-bottom: 4px;
}
.theaters__back a:hover { color: var(--taupe); border-color: var(--taupe); }

@media (max-width: 640px) {
  .theater { grid-template-columns: 4.5em minmax(0, 1fr); gap: 2px 16px; }
  .theater__when, .theater__note { grid-column: 2; text-align: left; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__strip, .hero__catch, .hero__title, .hero__billing, .hero__rhino { animation: none; }
  /* 自動スライドの代わりに、手動の横スクロールにする */
  .slider { overflow-x: auto; }
  .slider__track { transition: none; width: max-content; }
  .slider__track li { flex: 0 0 calc(100vw / var(--visible)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) { .slider { --visible: 4; } }
@media (max-width: 760px) {
  .slider { --visible: 2; }
  /* スマホは写真3枚を縦長に切り出して並べる */
  .hero__strip > div { aspect-ratio: 3 / 4; }
  .hero__title, .hero__billing { width: min(86vw, 420px); }
  /* サイはビリングの下に回して、文字と重ならないようにする */
  .hero__rhino {
    /* PC用の bottom 指定が残ると、相対配置で上に持ち上がってビリングに被るため、必ず解除する */
    position: relative; right: auto; top: auto; bottom: auto; align-self: flex-end;
    width: 34vw; margin: clamp(24px, 7vw, 36px) -6vw -8px 0;
  }
  .modal__close { top: -40px; }
}
