/*
 * style.css — 五島市LP3
 * 仕様: docs/2026-07-11-lp3-spec.md 「デザインシステム」節
 * 明るい紙ベース全編。暗転はしない(終盤の夕陽CTAのみ暖色に転じる)。
 */

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, dt, figure { margin: 0; }

/* ---------- デザイントークン ---------- */
:root {
  --bg: #f7f9f8;
  --card: #ffffff;
  --ink: #16343a;
  --accent: #0e8c7d;
  /* --accent は紙背景(#f7f9f8)/カード背景(#ffffff)いずれとも
     コントラスト比 4.5:1 未満(WCAG AA 通常文字基準を未達)。
     罫線・大きい数字・背景など「非文字」用途に限定し、
     小さい/通常文字の色にはこちらを使う(4.5:1以上を確保)。 */
  --accent-text: #0a6d5f;
  --tsubaki: #c93f45;
  --line: #dde5e2;
  --weak: #5f7470;

  --font-head: "Shippori Mincho B1", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --font-mono: "Space Mono", monospace;

  --radius-s: 4px;
  --radius-m: 8px;
  --section-gap: 120px;
  --header-h: 64px;
  --timeline-h: 28px;
}

html {
  /* scroll-behavior: smooth は使わない。ScrollTrigger.refresh() が初期化時に
     行うスクロール位置の保存・復元がスムーススクロールとして再生され、
     ロード直後にページが一瞬「巻き戻る」既知の相性問題があるため。
     アンカーのスムース移動は JS 側の scrollIntoView({behavior:'smooth'}) で行う。 */
  /* 横スクロール抑止はここ(html)のみで行う。body にも overflow-x:hidden を
     付けると overflow-y が双方とも auto に格上げされ、body が独立した
     (実際には決してスクロールしない)二重スクロールコンテナ化し、
     Safari で position:sticky の全ピン演出が壊れる既知のWebKitバグ条件に一致する。 */
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  padding-bottom: var(--timeline-h);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  text-transform: uppercase;
}

.section {
  padding: var(--section-gap) 0;
}

/* 章表紙用: 上64px・下は詰める(表紙直後のコンテンツ/映像との間延び防止) */
.section--tight {
  padding: 64px 0 32px;
}
.section--flush {
  padding-top: 0;
}

/* ---------- 改行制御 ----------
   説明文は「文の切れ目」でだけ折り返す。広い画面では <br class="br-pc">、
   狭い画面では自然折返しに任せる(逆が .br-sp)。 */
.br-pc { display: none; }
.br-sp { display: inline; }
@media (min-width: 900px) {
  .br-pc { display: inline; }
  .br-sp { display: none; }
}

/* ---------- ブロック見出し(小ラベル+和文タイトル) ---------- */
.block-head {
  margin: 0 0 18px;
}
.block-head .eyebrow {
  margin-bottom: 6px;
}
.block-title {
  font-size: clamp(20px, 3vw, 28px);
  font-family: var(--font-head);
  line-height: 1.4;
}
.gallery .block-head,
.voices-wrap .block-head { margin-bottom: 8px; }

/* ---------- フィルム・パーフォレーション区切り ---------- */
.perf-divider {
  height: 12px;
  width: 100%;
  background-image: radial-gradient(circle, rgba(22,52,58,0.08) 2.5px, transparent 2.6px);
  background-size: 24px 12px;
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- オープニング(上映前の暗転・1回きり) ----------
   明暗転換は「要所のみ」ルールの要所にあたる。リロード復元時・static時は出さない。 */
#opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: #f4f7f6;
}
.opening-mark {
  display: grid;
  justify-items: center;
  gap: 16px;
}
.opening-kanji {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 68px);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  line-height: 1.2;
  opacity: 0;
}
.opening-line {
  display: block;
  width: 0;
  height: 1px;
  background: #35b3a2;
}
.opening-en {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: rgba(244, 247, 246, 0.5);
  opacity: 0;
}
body.is-static #opening,
html:not(.has-js) #opening { display: none; }
@media (prefers-reduced-motion: reduce) {
  #opening { display: none; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(247, 249, 248, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header__logo {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-m);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--tsubaki);
  color: #fff;
  box-shadow: 0 4px 14px rgba(201, 63, 69, 0.28);
}
.btn--primary:hover { background: #b53039; }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); }

.site-header__cta {
  padding: 8px 16px;
  font-size: 13px;
}

/* ---------- 画面下端フィルムタイムライン ---------- */
.film-timeline {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--timeline-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.timeline__track {
  position: relative;
  flex: 1;
  height: 3px;
  margin: 0 16px;
  background: rgba(22, 52, 58, 0.12);
  border-radius: 2px;
}

.timeline__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
}

.timeline__tick {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 9px;
  background: rgba(22, 52, 58, 0.35);
  transform: translateX(-1px);
}

.timeline__tick::after {
  content: attr(data-label);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--weak);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.timeline__track:hover .timeline__tick::after { opacity: 1; }

/* ---------- スクラブ共通 ---------- */
.scrub-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.now-loading {
  position: absolute;
  left: 20px;
  top: 84px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  transition: opacity 0.4s ease;
}
.now-loading.is-done { opacity: 0; }
body.is-static .now-loading,
html:not(.has-js) .now-loading { display: none; }

/* ---------- HERO ---------- */
.scrub-section--hero {
  position: relative;
  height: 420vh;
}

.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #cfdedd; /* 画像ロード前のフォールバック。暗転させない(明るい紙寄りの淡色) */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6vw;
  pointer-events: none;
}

.hero__intro,
.hero__mid,
.hero__final {
  position: absolute;
  left: 6vw;
  right: 6vw;
  color: #fff;
  /* 近距離のくっきり影+広がるソフト影の二層(明るい空撮フレーム上での可読性) */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* introはページ先頭のメインコピー(参加費無料オファー)。
   ScrollTrigger の onUpdate は初回スクロールまで発火しないため初期値は 1。 */
.hero__intro { bottom: 14%; opacity: 1; }
.hero__mid { top: 42%; opacity: 0; }
.hero__final { bottom: 14%; opacity: 0; }

.hero__scroll-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: var(--font-mono);
  margin-top: 24px;
}
.hero__scroll-hint svg { width: 14px; height: 14px; }

.hero__mid p {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  margin: 0.15em 0;
}

.hero__kicker {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.hero__intro h2,
.hero__final h2 {
  font-family: var(--font-head);
  color: #fff;
  font-size: clamp(29px, 5.2vw, 54px);
  font-weight: 700;
  line-height: 1.4;
}
/* 「参加費無料」の強調はサイズアップで(下線・装飾バッジは作らない方針) */
.hero__intro h2 em {
  font-style: normal;
  font-size: 1.2em;
}

.hero__final p.sub {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
}

.hero__pitch {
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 700;
}
.hero__pitch strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35em;
}

/* 紙色への受け渡し(暗転しない) */
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22vh;
  background: linear-gradient(to bottom, rgba(247, 249, 248, 0), var(--bg));
  /* hero__overlay(z-index:2)より下に置く: canvas とのみ合成させ、
     hero__final(特に hero__meta 行)を紙色グラデーションで覆わないようにする */
  z-index: 1;
  pointer-events: none;
}

/* static/フォールバック時: オーバーレイを通常フローの読める縦積みへ。
   「JS実行中(GSAPロード待ち)」はこの見た目にしない(ロード後のジャンプ防止)。
   ゲートは html:not(.has-js)=スクリプト無効 と body.is-static=明示フォールバック のみ。 */
body.is-static .hero__intro,
body.is-static .hero__mid,
body.is-static .hero__final,
html:not(.has-js) .hero__intro,
html:not(.has-js) .hero__mid,
html:not(.has-js) .hero__final {
  opacity: 1 !important;
  transform: none !important;
}
body.is-static .hero__overlay,
html:not(.has-js) .hero__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  padding: 24px 6vw 56px;
  background: linear-gradient(to top, rgba(13,31,34,0.72), rgba(13,31,34,0));
}
body.is-static .hero__intro,
body.is-static .hero__mid,
html:not(.has-js) .hero__intro,
html:not(.has-js) .hero__mid { position: static; }
body.is-static .hero__final,
html:not(.has-js) .hero__final { position: static; }

/* ---------- CHAPTER 表紙 ---------- */
.chapter-cover {
  padding: 40px 0 56px;
  text-align: left;
}
.chapter-cover__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent-text);
  display: block;
  margin-bottom: 14px;
}
.chapter-cover h2 {
  font-size: clamp(26px, 4vw, 38px);
}
.chapter-cover .lead {
  margin-top: 16px;
  max-width: 860px; /* br-pc の文単位改行を優先し、途中折返しを起こしにくく */
  color: var(--weak);
  font-size: 15px;
}

/* ---------- 行程タイムライン ----------
   静的な罫線(--line)の上を、スクロール進捗で --accent の線が
   点から点へ伸びていく(.itinerary__progress は JS が height% を駆動)。 */
.itinerary {
  position: relative;
  margin-top: 40px;
  padding-left: 8px;
}
/* 点(12px・中心x=8px)と線(2px・中心x=8px)を同一軸にそろえる */
.itinerary::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 40px;
  width: 2px;
  background: var(--line);
}
.itinerary__progress {
  position: absolute;
  left: 7px;
  top: 8px;
  width: 2px;
  height: 0;
  max-height: calc(100% - 48px);
  background: var(--accent);
  z-index: 1;
}
.itinerary__day {
  position: relative;
  padding: 0 0 48px 36px;
}
.itinerary__day::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  z-index: 2;
}
.itinerary__day h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.itinerary__day .itinerary__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-text);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}
.itinerary__steps {
  margin-top: 14px;
  display: grid;
  gap: 16px;
}
.itinerary__step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
}
.itinerary__step svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--accent-text);
}

/* ---------- 行程と開催概要の2カラム ---------- */
.tour-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px 56px;
  align-items: start;
}
.overview-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin-top: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 26px;
}
.overview-panel__title {
  font-size: 18px;
  margin-bottom: 18px;
}
.ov-list { display: grid; gap: 0; }
.ov-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.ov-row:first-child { border-top: none; padding-top: 0; }
.ov-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  margin-bottom: 4px;
}
.ov-row dd {
  font-size: 14px;
  line-height: 1.7;
}
.ov-row dd small {
  font-size: 12px;
  color: var(--weak);
}
.ov-strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--tsubaki);
}

/* ---------- ギャラリー(グリッド・大きい写真) ---------- */
.gallery { margin-top: 72px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.gallery-grid .ph--l { grid-column: span 3; height: 320px; }
.gallery-grid .ph--s { grid-column: span 2; height: 230px; }

/* 写真共通: ふわっとズームイン(一回きり)+ホバーでゆっくり寄る */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--line);
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ph:hover img { transform: scale(1.05); }
body.js-anim .ph.reveal img { transform: scale(1.1); }
body.js-anim .ph.reveal.is-in img { transform: scale(1); }
body.js-anim .ph.reveal.is-in:hover img { transform: scale(1.05); }

.caption-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--weak);
}

/* ---------- 参加企業の声(ダミー) ---------- */
.voices-wrap { margin-top: 64px; }
.voices {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.voice-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.voice-card__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--tsubaki);
  border: 1px solid var(--tsubaki);
  border-radius: 999px;
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 14px;
}
.voice-card p.quote {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 16px;
  flex: 1;
}
.voice-card__person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  flex: none;
}
.voice-card__meta {
  font-size: 12px;
  color: var(--weak);
}


/* ---------- STORY: スクラブ帯セクション ----------
   帯(シネマスコープ)は紙背景の中に浮かぶ。100vhを暗色で塗らない(明暗フリッカー禁止)。 */
.scrub-band-section {
  position: relative;
}
.scrub-band-section .scrub-sticky {
  height: 100vh;
  background: var(--bg);
  display: flex;
  /* 帯は上寄せ: 中央寄せだと章表紙と帯の間に約半画面の空白が生まれ
     「表紙の下が間延びして見える」ため(CH2の余白統一) */
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--header-h) + 20px);
}
.scrub-band-section--200 { height: 200vh; }

.band-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 568;
  max-height: 76vh;
  overflow: hidden;
  background: #dfe9e7; /* フレーム未ロード時も紙に近い明色 */
}
.band-frame .scrub-canvas {
  position: absolute;
  inset: 0;
}

/* aspect-ratio 非対応ブラウザ用フォールバック: .band-frame の子要素は
   全て position:absolute で in-flow な子が無いため、aspect-ratio が
   解釈されない環境では height:auto が 0 に解決され帯シーンが消える。
   明示的な高さで救済する(641px以上のみが対象。640px以下は
   @media 側で height:44vh が別途指定される)。 */
@supports not (aspect-ratio: 1 / 1) {
  .band-frame { height: 50vh; }
}

.band-title {
  position: absolute;
  left: 4%;
  bottom: 10%;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 16px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.band-title h3 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.4vw, 34px);
  color: #fff;
}

.story-text {
  padding: 64px 0;
}

/* ---------- 強調スタットタイル ---------- */
.stat-tiles {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.stat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  color: var(--accent-text);
}
.stat-num small {
  font-size: 0.45em;
  font-weight: 700;
  margin-left: 2px;
}
.stat-label {
  font-size: 12px;
  color: var(--weak);
  line-height: 1.6;
}
.stat-note {
  font-size: 12px;
  color: var(--weak);
  line-height: 1.6;
  margin-top: 2px;
}

.story-intro {
  max-width: 860px;
  margin-top: 4px;
}

.story-lead {
  margin-top: 28px;
  max-width: 860px;
}
.story-photos {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.story-photos .ph { height: 280px; }
.story-photos--single {
  grid-template-columns: 1fr;
  max-width: 760px;
}
.story-photos--single .ph--wide { height: 320px; }

.number-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.number-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px 14px;
  text-align: center;
}
.number-card__icon {
  width: 26px;
  height: 26px;
  display: block;
  margin: 0 auto 6px;
  color: var(--accent-text);
}
.number-card .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--accent-text);
}
.number-card .label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--weak);
}

/* ---------- SUPPORT(補助金カード) ---------- */
.subsidy-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.subsidy-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px 24px 22px;
}
.gov-badge {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.subsidy-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.subsidy-card .key-line {
  font-size: 15px;
  color: var(--ink);
  margin: 4px 0 10px;
}
.key-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  color: var(--tsubaki);
  padding: 0 3px;
}
.subsidy-card .desc {
  font-size: 14px;
  color: var(--ink);
}
.subsidy-card .subsidy-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--weak);
}
.subsidy-footnote {
  margin-top: 20px;
  font-size: 12px;
  color: var(--weak);
}
.support-closing {
  margin-top: 40px;
  font-size: 16px;
}
.support-closing strong { color: var(--tsubaki); }
.support-closing a {
  color: var(--accent-text);
  text-decoration: underline;
}

/* ---------- CTA ----------
   ピンをやめてコンパクトな1画面に(長い静止画スクロールは離脱の原因)。
   カードは最初から見えていて、リビールでふわっと出るだけ。 */
.cta-section {
  position: relative;
  overflow: hidden;
  background: #cfe0dd;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 13vh 24px calc(var(--timeline-h) + 13vh);
}

.cta-card {
  position: relative;
  z-index: 2;
  width: min(560px, 88vw);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-m);
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(22, 52, 58, 0.18);
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(22px, 3vw, 28px);
}
.cta-sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--weak);
}
.cta-steps {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-steps .btn { width: 100%; }

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 48px 0 72px;
  font-size: 13px;
  color: var(--weak);
}
/* フッターは倉吉LP方式:
   2カラム・各カラム中央揃え(小ラベル→明朝の組織名→担当→アイコン付き連絡先)、
   その下に中央揃えの※注記。 */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
  text-align: center;
}
.footer-block__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.footer-block__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-block__person {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  margin-top: 8px;
}
.footer-line svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--accent-text);
}
.footer-block a { text-decoration: underline; }

.footer-notes {
  margin-top: 44px;
  text-align: center;
  display: grid;
  gap: 6px;
}
.footer-notes p {
  font-size: 12px;
  color: var(--weak);
}

/* ---------- スクロールリビール(GSAP成功時のみ body.js-anim が付く) ---------- */
body.js-anim .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.js-anim .reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  body.js-anim .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- ユーティリティ ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- レスポンシブ(375px) ---------- */
@media (max-width: 640px) {
  :root { --section-gap: 72px; }
  .voices { grid-template-columns: 1fr; }
  .story-photos { grid-template-columns: 1fr; }
  .number-cards { grid-template-columns: 1fr 1fr; }
  .subsidy-grid { grid-template-columns: 1fr; }

  .tour-layout { grid-template-columns: 1fr; }
  .overview-panel { position: static; margin-top: 8px; }
  .footer-cols { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .ph--l,
  .gallery-grid .ph--s { grid-column: auto; height: 220px; }
  .story-photos .ph { height: 220px; }


  /* モバイル: 帯は44vhに(2.7:1のままだと細すぎるため、canvas側のcover描画で中央クロップ) */
  .band-frame {
    aspect-ratio: auto;
    height: 44vh;
    max-height: none;
  }

  .hero__intro { bottom: 12%; }


  .cta-card { padding: 24px 18px; }

  .site-header__logo { font-size: 12px; }
  .site-header__cta { padding: 7px 10px; font-size: 11px; }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn { scroll-behavior: auto; }
  .cta-card { transition: none; }
}
