/* ============================================================
   松柏祭 案内サイト スタイルシート
   構成: 変数定義 → リセット → 共通パーツ → セクション別 → タブバー
         → モーダル → アニメーション → レスポンシブ
   ============================================================ */

/* ---------- 1. カラー・変数定義( :root で一元管理 ) ---------- */
:root {
  /* ベースカラー */
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-sub: #555555;

  /* アクセント(ターコイズグリーン) */
  --color-accent: #2fbfb2;
  --color-accent-dark: #1f9a90;
  --color-accent-light: #7fd9d1;

  /* パステルカラー(装飾の丸用) */
  --pastel-yellow: #f5e6a8;
  --pastel-pink:   #f6c9d6;
  --pastel-blue:   #ade3ef;
  --pastel-purple: #d9cdf0;
  --pastel-green:  #c8edd1;

  /* Hero背景ストライプ専用カラー(指定画像から抽出した10色を左から順に) */
  --stripe-1: #f9f1d3;
  --stripe-2: #d4d3f9;
  --stripe-3: #f9d3f1;
  --stripe-4: #f9edd3;
  --stripe-5: #f8f9d3;
  --stripe-6: #d3f9d5;
  --stripe-7: #d3f2f9;
  --stripe-8: #e7d3f9;
  --stripe-9: #f9d3ec;
  --stripe-10: #f9d3d3;

  /* Hero用メッシュグラデーション(指定画像の上部パステル〜下部ターコイズを再現) */
  --mesh-pink:    rgba(247, 194, 214, 0.85);
  --mesh-peach:   rgba(250, 224, 186, 0.8);
  --mesh-yellow:  rgba(250, 238, 178, 0.85);
  --mesh-blue:    rgba(184, 226, 240, 0.85);
  --mesh-lilac:   rgba(213, 202, 240, 0.75);
  --mesh-mint:    rgba(196, 236, 220, 0.7);
  --mesh-sheen:   rgba(255, 255, 255, 0.4);

  /* 半透明版(背景の丸用) */
  --pastel-yellow-t: rgba(245, 230, 168, 0.55);
  --pastel-pink-t:   rgba(246, 201, 214, 0.55);
  --pastel-blue-t:   rgba(173, 227, 239, 0.55);
  --pastel-purple-t: rgba(217, 205, 240, 0.55);
  --pastel-green-t:  rgba(200, 237, 209, 0.55);

  /* 影・角丸・余白 */
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 10px 28px rgba(0, 0, 0, 0.14);
  --space-s: 12px;
  --space-m: 24px;
  --space-l: 48px;

  /* タブバーの高さ(コンテンツの下部余白計算に使用) */
  --tabbar-height: 78px;

  /* フォント（--font-m-plus-rounded は next/font が html に注入） */
  --font-heading: var(--font-m-plus-rounded), 'Hiragino Maru Gothic ProN', sans-serif;
  --font-body: var(--font-m-plus-rounded), 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* ---------- 2. リセット ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

/* sticky footer パターン:コンテンツが短くてもフッターが画面最下部に張り付く */
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* main を伸縮させることでフッターを常に下端に押し出す */
.page-content {
  flex: 1 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ---------- 3. 起動時スプラッシュ ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-l) var(--space-m) var(--space-m);
  background: var(--color-bg);
  opacity: 1;
  visibility: visible;
  transition: opacity 1.4s ease, visibility 1.4s ease;
}

.splash__logo {
  animation: none;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-splash-active {
  overflow: hidden;
  height: 100%;
}

/* ---------- 4. 背景の半透明の丸(装飾) ---------- */
.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-decoration .circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}

.bg-decoration .c1 { width: 180px; height: 180px; top: 8%;  left: -60px; background: var(--pastel-yellow-t); }
.bg-decoration .c2 { width: 220px; height: 220px; top: 4%;  right: -80px; background: var(--pastel-green-t); }
.bg-decoration .c3 { width: 160px; height: 160px; top: 30%; left: 4%;   background: var(--pastel-blue-t); }
.bg-decoration .c4 { width: 240px; height: 240px; top: 24%; right: -90px; background: var(--pastel-pink-t); }
.bg-decoration .c5 { width: 150px; height: 150px; top: 55%; right: 6%;  background: var(--pastel-purple-t); }
.bg-decoration .c6 { width: 190px; height: 190px; top: 62%; left: -70px; background: var(--pastel-pink-t); }
.bg-decoration .c7 { width: 170px; height: 170px; top: 82%; right: -60px; background: var(--pastel-green-t); }
.bg-decoration .c8 { width: 140px; height: 140px; top: 78%; left: 8%;   background: var(--pastel-yellow-t); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: var(--space-l) var(--space-m) var(--space-m);
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 38%, var(--color-accent-light) 62%, var(--color-accent) 100%),
    linear-gradient(
      90deg,
      var(--stripe-1)  0%,
      var(--stripe-2)  11%,
      var(--stripe-3)  22%,
      var(--stripe-4)  33%,
      var(--stripe-5)  44%,
      var(--stripe-6)  56%,
      var(--stripe-7)  67%,
      var(--stripe-8)  78%,
      var(--stripe-9)  89%,
      var(--stripe-10) 100%
    );
}
.hero__logo {
  width: auto;
  max-width: min(78vw, 680px);
  height: auto;
  margin-top: var(--space-l);
  animation: fadeInDown 1s ease both;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: -6px;
  color: #ffffff;
  margin: var(--space-m) 0;
}

.hero__scroll svg {
  width: 1.6rem;
  height: 1.6rem;
  animation: bounceDown 1.6s ease-in-out infinite;
  opacity: 0.9;
}
.hero__scroll svg:nth-child(2) { animation-delay: 0.15s; }
.hero__scroll svg:nth-child(3) { animation-delay: 0.3s; }

.hero__footer-bar {
  position: relative;
  /* Hero自体の左右パディング分を打ち消し、スクロール中(通常フロー)と
     固定後(position: fixed)で帯の左右インセットが完全に一致するようにする */
  width: calc(100% + var(--space-m) * 2);
  margin-left: calc(-1 * var(--space-m));
  margin-right: calc(-1 * var(--space-m));
  display: flex;
  align-items: center;
  gap: var(--space-s);
  color: #ffffff;
  font-weight: 700;
  padding: var(--space-s) var(--space-m);
}

.hero__footer-bar .badge {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.hero__footer-bar .title {
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

.hero__footer-bar.is-pinned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  margin-left: 0;
  margin-right: 0;
  z-index: 150;
  background: var(--color-accent);
}

/* ----------- 6.5 ハンバーガーメニュー(帯の文字の左横に設置) ----------- */
.hero__menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease,
    transform 0.2s ease;
}

.hero__footer-bar.is-pinned .hero__menu-toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero__menu-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero__menu-toggle:active {
  transform: scale(0.92);
}

.hero__menu-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

.hero__menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 149;
  background: rgba(20, 30, 30, 0.25);
  opacity: 0;
  animation: menuBackdropIn 0.2s ease forwards;
}

@keyframes menuBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero__menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: var(--space-m);
  z-index: 160;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 10px;
  background: #ffffff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
/* Hero内をスクロール中(帯が上部固定される前)はメニューを開けないようにする */
.hero__footer-bar:not(.is-pinned) .hero__menu-panel.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero__footer-bar:not(.is-pinned) ~ .hero__menu-backdrop {
  opacity: 0;
  pointer-events: none;
}

.hero__menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero__menu-panel a {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: var(--radius-s);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.hero__menu-panel a:hover {
  background: var(--pastel-blue-t);
  color: var(--color-accent-dark);
}

.hero__menu-panel a + a {
  margin-top: 2px;
}

/* ----------- 6. カウントダウン ----------- */
.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-l) var(--space-m) var(--space-m);
}

.countdown__label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-m);
}

.countdown__card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: var(--space-m) var(--space-l);
  background: linear-gradient(160deg, #ffffff 0%, var(--pastel-blue-t) 100%);
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-strong);
  animation: countdownGlow 3.2s ease-in-out infinite;
}

.countdown__number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-size: clamp(9rem, 34vw, 15rem);
  font-weight: 900;
  color: var(--color-accent-dark);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 0 rgba(31, 154, 144, 0.15);
}

.countdown__unit {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text);
  align-self: flex-end;
  margin-bottom: 0.5rem;
}
.countdown__label.is-hidden {
  display: none;
}

.countdown__unit.is-hidden {
  display: none;
}

/* 終了48時間前からの時分秒表示、開会式以降の日程テキスト表示用のサイズ調整 */
.countdown__card.is-time .countdown__number,
.countdown__card.is-text .countdown__number {
  max-width: 280px;
  text-shadow: none;
  letter-spacing: 0;
  white-space: normal;
  line-height: 1.35;
  font-weight: 800;
}

.countdown__card.is-time .countdown__number {
  font-size: clamp(1.6rem, 7vw, 2.6rem);
}

.countdown__card.is-text .countdown__number {
  font-size: clamp(1.5rem, 6.5vw, 2.4rem);
}
/* ---------- 7. メニューボタン(タイムテーブル/マップ/展示) ---------- */
.menu-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: var(--space-m) 16px;
  flex-wrap: wrap;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 108px;
  padding: var(--space-s) 2px;
  background: #ffffff;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  color: var(--color-accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.menu-btn__label {
  white-space: nowrap;
}

.menu-btn svg {
  width: 1.4rem;
  height: 1.4rem;
}

.menu-btn:hover {
  background: var(--color-accent);
  color: #ffffff;
}


/* ---------- 7.5 主な日程 ----------- */
.schedule {
  padding: var(--space-l) var(--space-m) var(--space-m);
  text-align: center;
}

.schedule__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-l) var(--space-m);
  margin-top: var(--space-m);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.schedule__day {
  flex: 1 1 160px;
  max-width: 220px;
}

.schedule__date {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text);
}

.schedule__note {
  font-size: 0.68rem;
  color: var(--color-text-sub);
  margin-bottom: var(--space-s);
}

.schedule__list {
  text-align: left;
}

.schedule__list li {
  position: relative;
  padding-left: 1.1em;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.schedule__list li::before {
  content: '・';
  position: absolute;
  left: 0;
}

/* ---------- 8. 全体テーマ / NEWS / SNS タイトルラベル(共通・アニメーションなし) ---------- */
.pill-btn {
  display: inline-block;
  padding: 10px 32px;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-soft);
}

/* ---------- 8.5 全体テーマ セクション(常時表示・モーダル廃止) ---------- */
.theme-section {
  text-align: center;
  padding: var(--space-l) var(--space-m);
}

.theme-section__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  background: var(--pastel-blue-t);
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: var(--space-m);
}

.theme-section__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-m);
}

.theme-section__logo {
  width: auto;
  max-width: min(30vw, 130px);
  height: auto;
  margin: 0 auto var(--space-m);
}

.theme-section__desc {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

@media (min-width: 768px) {
  .theme-section__body {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-l);
    text-align: left;
  }

  .theme-section__logo {
    flex: 0 0 auto;
    width: auto;
    max-width: min(22vw, 220px);
    margin: 0;
  }

  .theme-section__desc {
    margin: 0;
  }
}

/* ---------- 8.6 NEWS セクション ---------- */
.news {
  text-align: center;
  padding: var(--space-l) var(--space-m);
}

.news__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-m);
  margin-top: var(--space-m);
}

.news__item {
  position: relative;
  display: block;
  width: 130px;
  height: 130px;
  border: 2.5px solid var(--color-accent);
  border-radius: var(--radius-s);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.news__item-img {
  object-fit: cover;
}

.news__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #e6e6e6;
}

.news__viewall {
  display: inline-block;
  margin-top: var(--space-m);
  color: var(--color-text-sub);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 8.7 SNS・他 セクション ---------- */
.sns {
  text-align: center;
  padding: var(--space-l) var(--space-m);
}

.sns__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-l) var(--space-m);
  margin-top: var(--space-m);
}

.sns__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 96px;
  color: var(--color-text);
}

.sns__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sns__item:hover .sns__icon {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.sns__icon--school {
  background: #1f3a8f;
}

.sns__icon--junior {
  background: var(--color-accent-dark);
}

.sns__icon--capioneer {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.sns__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.sns__crest {
  display: block;
  width: 32px;
  height: 29px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.sns__label {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- 9. フッター ---------- */
.site-footer {
  flex-shrink: 0;
  margin: var(--space-l) var(--space-s) 0;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  /* 固定タブバーとフッター文言が重ならないよう十分な下余白を確保 */
  padding: var(--space-l) var(--space-m) calc(var(--tabbar-height) + var(--space-l) + 16px);
  text-align: left;
}

.site-footer .footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-s);
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: var(--space-m);
}

.site-footer .footer-copy {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* ---------- 10. 下部タブバー ---------- */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tabbar-height);
  background: #ffffff;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 6px;
  transform: translateY(0);
  transition:
    opacity 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-bar.is-hidden-on-hero {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.22s ease;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ececec;
  color: #9a9a9a;
  font-size: 0.6rem;
  transition: all 0.25s ease;
}

.tab-item svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: all 0.25s ease;
}

.tab-item span {
  font-size: 0.55rem;
  font-weight: 600;
}

.tab-item--center {
  width: 68px;
  height: 68px;
  background: var(--color-accent);
  color: #ffffff;
  margin-top: -22px;
  box-shadow: 0 6px 14px rgba(47, 191, 178, 0.45);
}

.tab-item--center svg {
  width: 1.5rem;
  height: 1.5rem;
}

.tab-item--center span {
  font-size: 0.58rem;
  color: #ffffff;
}

.tab-item.is-active:not(.tab-item--center) {
  background: var(--pastel-blue-t);
  color: var(--color-accent-dark);
}

.tab-item.is-active:not(.tab-item--center) svg {
  transform: scale(1.2);
  color: var(--color-accent-dark);
}

.tab-item--center.is-active {
  animation: tabPop 0.35s ease;
}

.tab-item:active {
  transform: scale(0.9);
}

/* ---------- 12. 汎用アニメーション ---------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(8px); opacity: 1; }
}

@keyframes tabPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes countdownGlow {
  0%, 100% {
    box-shadow: var(--shadow-strong);
  }
  50% {
    box-shadow: 0 14px 36px rgba(47, 191, 178, 0.28);
  }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 13. レスポンシブ対応(モバイルファースト → タブレット/PC拡張) ---------- */

@media (min-width: 768px) {
  .countdown__number {
    font-size: 11rem;
  }

  .countdown__card {
    padding: var(--space-l) 64px;
  }
  .countdown__card.is-time .countdown__number {
  font-size: 2.8rem;
  }

  .countdown__card.is-text .countdown__number {
    font-size: 2.6rem;
  }

  .menu-btn {
    width: 130px;
    font-size: 0.9rem;
  }

  .menu-btn svg {
    width: 1.8rem;
    height: 1.8rem;
  }

  .tab-bar {
    max-width: 500px;
    left: 50%;
    right: auto;
    width: 100%;
    transform: translateX(-50%) translateY(0);
    border-radius: var(--radius-l);
    bottom: 12px;
    box-shadow: var(--shadow-strong);
  }

  .tab-bar.is-hidden-on-hero {
    transform: translateX(-50%) translateY(calc(100% + 24px));
  }

  /* フローティングタブバー(bottom: 12px)分、フッター下余白を追加 */
  .site-footer {
    padding-bottom: calc(var(--tabbar-height) + var(--space-l) + 28px);
  }
}

@media (min-width: 1024px) {
  .page-content {
    max-width: 900px;
    margin: 0 auto;
  }

  .hero__logo {
    width: auto;
    max-width: 360px;
  }

  .menu-buttons {
    gap: var(--space-l);
  }
}

@media (min-width: 1440px) {
  .hero {
    min-height: 100vh;
  }
}

/* ============================================================
   展示索引ページ(pages/exhibits.html)専用スタイル
   構成:
     14. ページ共通ヘッダー(サブページ用・戻る導線)
     15. 検索・カテゴリー絞り込み
     16. タイルグリッド(60件・写真+タイトル)
     17. 詳細モーダル
   ============================================================ */

/* ---------- 14. ページ共通ヘッダー ---------- */
/* Heroを持たないサブページ用の固定ヘッダー。
   Hero下部の帯(.hero__footer-bar.is-pinned)とデザインを揃え、
   サイト全体で「上部に固定されるターコイズの帯」という一貫性を持たせている。 */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: var(--space-s);
  background: var(--color-accent);
  color: #ffffff;
  padding: var(--space-s) var(--space-m);
}

.page-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.page-header__back:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-header__title {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.page-header__spacer {
  width: 36px;
  flex-shrink: 0;
}

/* 固定ヘッダー分、本文が隠れないようにする（展示索引・準備中ページ共通） */
.exhibits-page,
.subpage {
  padding-top: calc(var(--space-l) + 36px + var(--space-m));
  padding-bottom: calc(var(--tabbar-height) + var(--space-l));
}

.subpage {
  text-align: center;
  padding-left: var(--space-m);
  padding-right: var(--space-m);
}

.subpage__message {
  margin-top: var(--space-m);
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* ---------- 15. 検索・カテゴリー絞り込み ---------- */
.exhibits-search {
  padding: var(--space-m);
  text-align: center;
}

.exhibits-search__box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 18px;
  background: #ffffff;
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  color: var(--color-accent-dark);
}

.exhibits-search__box svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.exhibits-search__box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--color-text);
}

.exhibits-search__box input::placeholder {
  color: #9aa0a0;
}

.exhibits-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  margin: var(--space-m) auto 0;
}

.exhibits-filter__chip {
  padding: 6px 18px;
  border: 1.5px solid var(--color-accent);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.exhibits-filter__chip.is-active {
  background: var(--color-accent);
  color: #ffffff;
}

.exhibits-search__count {
  margin-top: var(--space-s);
  font-size: 0.78rem;
  color: var(--color-text-sub);
}

/* ---------- 16. タイルグリッド ---------- */
.exhibits-grid-section {
  padding: 0 var(--space-m) var(--space-m);
}

.exhibits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-s);
  max-width: 900px;
  margin: 0 auto;
}

.exhibit-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #ffffff;
  border: none;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exhibit-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.exhibit-tile:active {
  transform: scale(0.97);
}

/* 写真プレースホルダー(images[0] 指定時は next/image を表示) */
.exhibit-tile__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #eef7f6, #dcefed);
  color: var(--color-accent);
  overflow: hidden;
}

.exhibit-tile__thumb svg {
  width: 1.6rem;
  height: 1.6rem;
}

.exhibit-tile__thumb.has-image {
  background-color: #eef7f6;
  color: transparent;
}

.exhibit-tile__thumb-img {
  object-fit: cover;
}

.exhibit-tile__thumb-img--logo {
  object-fit: contain;
  padding: 18%;
}

.exhibit-tile__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 14px;
}

.exhibit-tile__category {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.exhibit-tile__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exhibits-empty {
  text-align: center;
  color: var(--color-text-sub);
  font-size: 0.9rem;
  padding: var(--space-l) 0;
}

/* ---------- 17. 詳細モーダル ---------- */
.exhibit-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-m);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.exhibit-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.exhibit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 30, 0.55);
}

.exhibit-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-strong);
  padding: var(--space-l) var(--space-m) var(--space-m);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.exhibit-modal.is-open .exhibit-modal__panel {
  transform: translateY(0);
}

.exhibit-modal__close {
  position: absolute;
  top: var(--space-s);
  right: var(--space-s);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f3f3;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.exhibit-modal__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, #eef7f6, #dcefed);
  color: var(--color-accent);
  margin-bottom: var(--space-m);
}

.exhibit-modal__image svg {
  width: 2.2rem;
  height: 2.2rem;
}

.exhibit-modal__carousel {
  position: relative;
  height: 200px;
  border-radius: var(--radius-m);
  background: #eef7f6;
  margin-bottom: var(--space-m);
  overflow: hidden;
}

.exhibit-modal__carousel-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.exhibit-modal__carousel-img {
  object-fit: cover;
}

.exhibit-modal__carousel-img--logo {
  object-fit: contain;
  padding: 18%;
}

.exhibit-modal__carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.exhibit-modal__carousel-btn--prev {
  left: 8px;
}

.exhibit-modal__carousel-btn--next {
  right: 8px;
}

.exhibit-modal__carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.exhibit-modal__carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.exhibit-modal__carousel-dot.is-active {
  background: #ffffff;
}

.exhibit-modal__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-accent);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: var(--space-s);
}

.exhibit-modal__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 6px;
}

.exhibit-modal__location {
  font-size: 0.82rem;
  color: var(--color-text-sub);
  margin-bottom: var(--space-s);
}

.exhibit-modal__location svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--color-accent);
  margin-right: 4px;
  vertical-align: -0.1em;
  display: inline;
}

.exhibit-modal__desc {
  font-size: 0.88rem;
  color: var(--color-text);
  margin-bottom: var(--space-m);
}

.exhibit-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.exhibit-modal__map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-s);
  transition: background 0.2s ease;
}

.exhibit-modal__map-link:hover {
  background: var(--color-accent-dark);
}

/* ---------- タブレット以上:グリッドをやや大きめに ---------- */
@media (min-width: 768px) {
  .exhibits-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: var(--space-m);
  }
}

/* 展示索引ページでは最初から表示 */
.exhibits-page .fade-in-section {
  opacity: 1;
  transform: none;
}
 
/* ---------- タブレット以上:グリッドをやや大きめに ---------- */
@media (min-width: 768px) {
  .exhibits-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: var(--space-m);
  }
}
 
/* 展示索引ページでは最初から表示 */
.exhibits-page .fade-in-section {
  opacity: 1;
  transform: none;
}
/*-----------timetable-page----------*/

/* ---------- 18. ページ共通 ---------- */
.timetable-page {
  padding-top: calc(var(--space-l) + 36px + var(--space-m));
  padding-bottom: calc(var(--tabbar-height) + var(--space-l));
  padding-left: var(--space-m);
  padding-right: var(--space-m);
}

.timetable-page .fade-in-section {
  opacity: 1;
  transform: none;
}

/* ---------- 19. イントロ文 ---------- */
.timetable-intro {
  max-width: 900px;
  margin: 0 auto var(--space-m);
  text-align: center;
}

.timetable-intro__lead {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* ---------- 20. グリッド本体 ---------- */
.timetable-board {
  max-width: 900px;
  margin: 0 auto;
}

/* 横幅が狭い画面では横スクロールできるようにする(会場が5列あるため) */
.timetable-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  max-width: 100%;
}

.timetable-grid {
  --timetable-slot-height: 10px;

  display: grid;
  min-width: 560px;
  background: var(--color-accent);
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  position: relative;
}

.timetable-grid__corner {
  background: var(--color-accent);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  position: sticky;
  left: 0;
  z-index: 3;
}

.timetable-grid__venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 4px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.timetable-grid__time {
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
  background: var(--color-accent);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.timetable-grid__time--hour:not(.timetable-grid__time--end),
.timetable-grid__time--half {
  grid-row-end: span 6;
  z-index: 4;
}

.timetable-grid__time--hour {
  border-top-color: rgba(255, 255, 255, 0.55);
}

.timetable-grid__time--half {
  border-top-color: rgba(255, 255, 255, 0.38);
}

.timetable-grid__time--quarter {
  z-index: 5;
  background: transparent;
  pointer-events: none;
}

.timetable-grid__time--end {
  align-items: flex-start;
  border-top-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  z-index: 6;
}

.timetable-grid__time-label {
  display: block;
  padding: 5px 0 0;
  font-size: 0.72rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.timetable-grid__time--hour .timetable-grid__time-label {
  font-size: 0.82rem;
}

.timetable-grid__time--end .timetable-grid__time-label {
  padding: 0 0 2px;
}

/* 15分の目盛りは線だけ残し、ラベルは出さない */
.timetable-grid__time--quarter .timetable-grid__time-label {
  display: none;
}

.timetable-grid__column-line {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- 21. イベントカード ---------- */
.timetable-event {
  position: relative;
  margin: 3px 4px;
  padding: 6px 6px 7px;
  background: #ffffff;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 2;
}

.timetable-event:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.timetable-event:active {
  transform: scale(0.97);
}

.timetable-event__title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-accent-dark);
  line-height: 1.3;
}

.timetable-event__time {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-text-sub);
}

/* 中学企画は少し違う色味のタイトルにして高校企画と見分けやすくする */
.timetable-event--junior .timetable-event__title {
  color: #7a5fc7;
}

/* ---------- 22. レスポンシブ調整 ---------- */
@media (min-width: 600px) {
  .timetable-grid {
    min-width: 640px;
  }
}

@media (min-width: 768px) {
  .timetable-grid {
    --timetable-slot-height: 9px;
    min-width: 100%;
  }

  .timetable-grid__venue {
    font-size: 0.8rem;
    padding: 14px 6px;
  }

  .timetable-grid__time-label {
    font-size: 0.78rem;
  }

  .timetable-grid__time--hour .timetable-grid__time-label {
    font-size: 0.92rem;
  }

  .timetable-event__title {
    font-size: 0.85rem;
  }

  .timetable-event__time {
    font-size: 0.7rem;
  }

  .timetable-intro__lead {
    font-size: 0.92rem;
  }
}

@media (min-width: 1024px) {
  .timetable-grid {
    --timetable-slot-height: 11px;
  }
}

/*-----------ticket-page----------*/

.ticket-page {
  padding-top: calc(var(--space-l) + 36px + var(--space-m));
  padding-bottom: calc(var(--tabbar-height) + var(--space-l));
  padding-left: var(--space-m);
  padding-right: var(--space-m);
  max-width: 560px;
  margin: 0 auto;
}

.ticket-page.fade-in-section,
.ticket-page .fade-in-section {
  opacity: 1;
  transform: none;
}

.ticket-lead {
  color: var(--color-text-sub);
  line-height: 1.7;
  font-size: 0.92rem;
  margin-bottom: var(--space-m);
}

.ticket-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.ticket-alert {
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: #fff4f4;
  color: #9a2f2f;
  font-size: 0.88rem;
  line-height: 1.6;
}

.ticket-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.ticket-field__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-sub);
}

.ticket-select,
.ticket-input {
  width: 100%;
  appearance: none;
  border: none;
  border-radius: var(--radius-s);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
  font: inherit;
  color: var(--color-text);
}

.ticket-select {
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-sub) 50%),
    linear-gradient(135deg, var(--color-text-sub) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.ticket-input {
  letter-spacing: 0.18em;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.ticket-slot {
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ticket-slot__label,
.ticket-group__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-sub);
}

.ticket-slot__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.ticket-slot__time {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ticket-slot__remain {
  color: var(--color-text-sub);
  font-size: 0.95rem;
}

.ticket-slot__note {
  margin-top: 10px;
  color: var(--color-text-sub);
  font-size: 0.86rem;
  line-height: 1.6;
}

.ticket-feedback {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  line-height: 1.5;
}

.ticket-feedback--success {
  background: #e5f8f4;
  color: #14685f;
}

.ticket-feedback--error {
  background: #fff4f4;
  color: #9a2f2f;
}

.ticket-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ticket-mode,
.ticket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: var(--radius-s);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ticket-mode {
  padding: 12px;
  background: #ffffff;
  color: var(--color-text-sub);
  box-shadow: var(--shadow-soft);
}

.ticket-mode.is-active {
  background: var(--color-accent);
  color: #ffffff;
}

.ticket-mode svg,
.ticket-btn svg,
.ticket-chip__remove svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.ticket-scanner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: #111111;
  aspect-ratio: 3 / 4;
  max-height: 420px;
}

.ticket-scanner__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-scanner__video.is-mirrored {
  transform: scaleX(-1);
}

.ticket-scanner__flip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  cursor: pointer;
}

.ticket-scanner__flip:hover {
  background: rgba(0, 0, 0, 0.7);
}

.ticket-scanner__flip svg {
  width: 22px;
  height: 22px;
}

.ticket-scanner__status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #ffffff;
  text-align: center;
  font-size: 0.9rem;
}

.ticket-scanner__frame {
  pointer-events: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(70%, 16rem);
  height: min(46%, 16rem);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-m);
}

.ticket-scanner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius-m);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: var(--color-text-sub);
  text-align: center;
  line-height: 1.6;
}

.ticket-manual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-btn {
  padding: 14px 16px;
  background: var(--color-accent);
  color: #ffffff;
}

.ticket-btn:hover:not(:disabled) {
  background: var(--color-accent-dark);
}

.ticket-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ticket-btn--secondary {
  background: #ffffff;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.ticket-btn--ghost {
  background: #f3f3f3;
  color: var(--color-text);
}

.ticket-group {
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ticket-group__hint,
.ticket-group__empty {
  margin-top: 6px;
  color: var(--color-text-sub);
  font-size: 0.86rem;
  line-height: 1.6;
}

.ticket-group__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  list-style: none;
}

.ticket-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 12px;
  border-radius: 999px;
  background: #f3f3f3;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.ticket-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-sub);
  cursor: pointer;
}

.ticket-group__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.ticket-reserved {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-m);
  padding-top: var(--space-s);
}

.ticket-reserved__check {
  width: 96px;
  height: 96px;
}

.ticket-reserved__check-circle {
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-miterlimit: 10;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: ticketCheckCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.ticket-reserved__check-mark {
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: ticketCheckMark 0.35s 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.ticket-reserved__title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ticket-reserved__details {
  width: 100%;
  padding: 20px 18px;
  border-radius: var(--radius-m);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ticket-reserved__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.ticket-reserved__slot-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-sub);
}

.ticket-reserved__time {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.ticket-reserved__numbers {
  margin-top: 12px;
  color: var(--color-text-sub);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ticket-reserved__hint {
  color: var(--color-text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

@keyframes ticketCheckCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ticketCheckMark {
  to {
    stroke-dashoffset: 0;
  }
}

/*-----------news-page----------*/

.news-page {
  max-width: 640px;
  margin: 0 auto;
}

.news-page__lead {
  color: var(--color-text-sub);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: var(--space-m);
  text-align: left;
}

.news-page__lead a {
  color: var(--color-accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.news-card {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: 12px;
  background: #ffffff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.news-card__thumb {
  position: relative;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: #e6e6e6;
}

.news-card__thumb-img {
  object-fit: cover;
}

.news-card__thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #e6e6e6;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.news-card__date {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.news-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

.news-card__excerpt {
  font-size: 0.78rem;
  color: var(--color-text-sub);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page .fade-in-section,
.news-page.fade-in-section {
  opacity: 1;
  transform: none;
}
/*-----------map-page----------*/

/* ---------- 23. ページ共通 ---------- */
.map-page {
  padding-top: calc(var(--space-l) + 36px + var(--space-m));
  padding-bottom: calc(var(--tabbar-height) + var(--space-l));
}

.map-page .fade-in-section {
  opacity: 1;
  transform: none;
}

.map-intro {
  max-width: 900px;
  margin: 0 auto var(--space-m);
  padding: 0 var(--space-m);
  text-align: center;
}

.map-intro__lead {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* ---------- 24. マップ本体(横スクロール) ---------- */
.map-board {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

/* page-content の左右余白を打ち消して全幅までスクロール領域を広げる */
.map-scroll-container {
  width: calc(100% + var(--space-m) * 2);
  margin-left: calc(-1 * var(--space-m));
  margin-right: calc(-1 * var(--space-m));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--space-m) var(--space-s);
}

.map-canvas {
  position: relative;
  width: 100%;
  /* min-widthはコンポーネント側で指定(MAP_CANVAS_MIN_WIDTH) */
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

.map-board__hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-sub);
  padding: 0 var(--space-m);
}

/* ---------- 25. マーカー ---------- */
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

button.map-marker {
  cursor: pointer;
}

.map-marker__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2.5px solid #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, background 0.15s ease;
}

.map-marker--exhibit:hover .map-marker__dot,
.map-marker--exhibit:focus-visible .map-marker__dot {
  transform: scale(1.2);
}

.map-marker--exhibit:active .map-marker__dot {
  transform: scale(0.92);
}

.map-marker__dot--label {
  background: #ffffff;
  border-color: var(--color-accent);
}

.map-marker__label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(31, 154, 144, 0.92);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  max-width: 34vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-marker__label--muted {
  color: var(--color-accent-dark);
  background: rgba(255, 255, 255, 0.9);
}

.map-marker--label {
  z-index: 1;
}

/* spot指定で該当マーカーへ移動した際の一時的な強調表示 */
.map-marker.is-highlight {
  z-index: 5;
}

.map-marker.is-highlight .map-marker__dot {
  animation: mapMarkerPulse 1.3s ease-out 2;
}

.map-marker.is-highlight .map-marker__label {
  background: var(--color-accent-dark);
  font-size: 0.68rem;
}

@keyframes mapMarkerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 191, 178, 0.65);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(47, 191, 178, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 191, 178, 0);
  }
}

/* ---------- 26. マーカーが複数展示を持つ場合の一覧(モーダル内) ---------- */
.map-modal__list-lead {
  font-size: 0.82rem;
  color: var(--color-text-sub);
  margin-bottom: var(--space-s);
}

.map-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-modal__list-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
  background: #f1f7f6;
  border-radius: var(--radius-s);
  text-align: left;
  transition: background 0.2s ease;
}

.map-modal__list-item:hover {
  background: var(--pastel-blue-t, #e3f2f0);
}

.map-modal__list-item-category {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.map-modal__list-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}

.map-modal__back {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-s);
}

/* ---------- 27. レスポンシブ調整 ---------- */
@media (min-width: 768px) {
  .map-marker__label {
    font-size: 0.7rem;
    max-width: none;
  }

  .map-marker.is-highlight .map-marker__label {
    font-size: 0.76rem;
  }
}

@media (min-width: 1024px) {
  .map-scroll-container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 0 var(--space-s);
  }
}