/* ================================================================
   ニプロハチ公ドーム TOPページ — モダンリニューアル版
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #2E5FA8;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #eff6ff;
  /* 爽やかさを出すグリーン系（青と組み合わせて使う） */
  --color-green: #2EA86B;
  --color-green-dark: #1F8A55;
  --color-green-light: #5AC78C;
  /* アクセントは暖色 → 爽やかなグリーンへ */
  --color-accent: #2EA86B;
  --color-accent-light: #E3F7EC;
  /* 青→緑のブランドグラデーション（CTA / ヒーロー等で利用）。
     爽やかさを出すため明るめのスカイブルー→フレッシュグリーンに。
     白文字の視認性はボタン側の text-shadow で補強。 */
  --gradient-brand: linear-gradient(135deg, #2C82D6 0%, #25AE74 100%);
  --gradient-brand-hover: linear-gradient(135deg, #2773BE 0%, #1F9B66 100%);
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-muted: #94a3b8;
  --color-bg: #F7FAFC;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-danger: #ef4444;
  --color-footer-bg: #0f172a;
  --font-main: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* 全ページでフォントをゴシック (--font-main) に統一。
   一部ページ/要素がブラウザ既定(明朝系)になるのを防ぐ。 */
html { font-family: var(--font-main); }
body, button, input, select, textarea, optgroup,
h1, h2, h3, h4, h5, h6,
p, a, span, li, dt, dd, th, td, caption, blockquote, figcaption, label, small, strong, em, b {
  font-family: var(--font-main);
}
/* WP 投稿/固定ページ本文に貼り付けられたインライン明朝指定も上書き */
.entry-content, .entry-content *,
.article-card, .article-card *,
.event-article-lead, .event-article-lead *,
.event-article-body, .event-article-body * {
  font-family: var(--font-main) !important;
}

body.menu-open { overflow: hidden; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

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

/* ── Section共通 ── */
.section {
  padding: 64px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 12px;
  padding-bottom: 12px;
  letter-spacing: 0.02em;
}
/* 青→緑グラデーションの下線（爽やかなブランドアクセント） */
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-brand);
  /* 画面に入ると左→右に伸びるアニメーション */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-title.is-inview::after {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .section-title::after { transform: none; transition: none; }
}

.section-title-icon {
  width: 28px;
  height: 28px;
  fill: var(--color-primary);
  flex-shrink: 0;
}


.section-desc {
  color: var(--color-text-light);
  font-size: 1rem;
  margin: 0 0 36px;
}

/* ── セクション背景: 奇数 #F7FAFC / 偶数 #F8F9F6 で交互。
   全ページの <main> 直下 <section> を対象。
   .sponsor-ticker-section など特定セクションは下位ルールで上書き。 */
main > section,
main .section {
  background: #F7FAFC;
}
main > section:nth-of-type(even),
main .section:nth-of-type(even) {
  background: #F8F9F6;
}
/* /calendar/ (イベント情報) と /summary/ (施設概要) のみ、
   偶数セクションを #DCECF8 (薄水色) に差替えて視覚識別する。 */
body.page-calendar main > section:nth-of-type(even),
body.page-calendar main .section:nth-of-type(even),
body.page-summary main > section:nth-of-type(even),
body.page-summary main .section:nth-of-type(even) {
  background: #DCECF8;
}
body.page-calendar .section--alt,
body.page-summary .section--alt {
  background: #DCECF8;
}
/* 旧 .section--alt は alternation で実現するため使用しないが、
   既存マークアップ互換のため定義は残す。 */
.section--alt {
  background: #F8F9F6;
}

/* ── Header ──
 * 常に最上部に固定。
 * iOS Safari で position:fixed + backdrop-filter を併用すると、
 * スクロール中に fixed 要素が半透明に見えたり、ドキュメント中ほどに
 * 描画される既知のバグがある (SP で「ヘッダーが崩れる」原因)。
 * 背景は solid #25316c のため backdrop-filter は視覚効果として
 * 不要なので削除。
 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  /* 薄い水色〜ミントの透過グラデーション。さらに薄く。
     background-position を動かして「水の揺らぎ」のようにゆっくり変化させる。 */
  background: linear-gradient(120deg,
    rgba(221, 245, 255, 0.50) 0%,
    rgba(227, 247, 236, 0.50) 30%,
    rgba(198, 234, 255, 0.50) 55%,
    rgba(224, 247, 236, 0.50) 80%,
    rgba(221, 245, 255, 0.50) 100%);
  background-size: 300% 300%;
  animation: headerWaterShimmer 18s ease-in-out infinite;
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(46, 168, 107, 0.14);
  height: var(--header-height);
}
/* 水の揺らぎ: グラデーションの位置をゆっくり往復させる */
@keyframes headerWaterShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* モーション控えめ設定の利用者にはアニメを止める */
@media (prefers-reduced-motion: reduce) {
  .site-header { animation: none; }
}

.header-inner {
  margin: 0 auto;
  padding: 0 85px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: auto;
}

.brand-row img {
  height: 28px;
  width: auto;
}

/* ── Desktop Nav ── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: #17365D;
  font-size: 0.875rem !important;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.header-nav a:hover {
  background: rgba(23, 54, 93, 0.08);
  color: #0f2444;
}

.header-nav .nav-organizer-btn {
  background: #69A56B;
  border: 1.5px solid #69A56B;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  padding: 6px 16px;
  font-size: 0.875rem !important;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-nav .nav-organizer-btn:hover {
  background: #83c285;
  border-color: #83c285;
  color: #fff;
  box-shadow: 0 4px 12px rgba(105, 165, 107, 0.35);
}

.header-nav .nav-organizer-btn::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  flex-shrink: 0;
}

.header-nav .nav-organizer-btn .nav-icon {
  fill: #fff;
}

/* 「イベント主催の方へ」は PC ヘッダーで 2 行表示。
   ".nav-organizer-line" を block にして縦並びにする。 */
.header-nav .nav-organizer-btn .nav-organizer-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
.header-nav .nav-organizer-btn .nav-organizer-line {
  display: block;
}

.header-nav .nav-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Google 翻訳適用時はナビ項目が横に伸びてヘッダーから右端がはみ出すため、
   padding と font-size を圧縮 + 余白詰めて収める。
   それでも収まらないケースに備えて nav-icon は隠す。 */
html.translated-ltr .header-nav,
html.translated-rtl .header-nav {
  gap: 4px;
}
html.translated-ltr .header-nav a,
html.translated-rtl .header-nav a {
  padding: 6px 8px;
  font-size: 0.8125rem !important;
  gap: 4px;
}
html.translated-ltr .header-nav .nav-organizer-btn,
html.translated-rtl .header-nav .nav-organizer-btn {
  padding: 4px 10px;
  font-size: 0.8125rem !important;
}
@media screen and (max-width: 1440px) {
  html.translated-ltr .header-nav .nav-icon,
  html.translated-rtl .header-nav .nav-icon {
    display: none;
  }
}

/* ── Language 右上コンパクトボタン ── */
.lang-float {
  position: relative;
  flex-shrink: 0;
  margin-left: 4px;
}

.lang-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(23, 54, 93, 0.08);
  border: 1px solid rgba(23, 54, 93, 0.2);
  color: #17365D;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.lang-float-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.lang-float-btn:hover {
  background: rgba(23, 54, 93, 0.15);
  border-color: rgba(23, 54, 93, 0.4);
  color: #0f2444;
}

.lang-float-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
  min-width: 180px;
  padding: 6px;
  z-index: 1300;
  animation: langDropIn 0.2s ease;
}

@keyframes langDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-float-dropdown.open {
  display: block;
}

.lang-float-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--color-text) !important;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.lang-float-dropdown a:hover {
  background: var(--color-primary-light) !important;
  color: var(--color-primary) !important;
}

/* ── サイト検索（虫眼鏡ボタン） ── */
.site-search {
  position: relative;
  flex-shrink: 0;
}

.site-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(23, 54, 93, 0.08);
  border: 1px solid rgba(23, 54, 93, 0.3);
  color: #17365D;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.site-search-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.site-search-btn:hover {
  background: rgba(23, 54, 93, 0.15);
  border-color: #17365D;
  color: #0f2444;
}

/* 検索バー（展開時） */
.site-search-bar {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
  padding: 8px;
  z-index: 1300;
  animation: langDropIn 0.2s ease;
}

.site-search-bar.open {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* SP の menu-search-* と同じクリーンなトーンに揃える。
   フォーム自体は白背景の角丸ピル、内側にインプットと検索アイコンボタン。
   旧来の青枠 / 青塗りつぶしボタンを廃止。 */
.site-search-form {
  display: flex;
  align-items: center;
  width: 260px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.site-search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: var(--color-text);
}

.site-search-input::placeholder {
  color: #999;
}

.site-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.site-search-submit svg {
  width: 20px;
  height: 20px;
  fill: #94a3b8;
}

.site-search-submit:hover svg {
  fill: var(--color-text-light);
}

/* ── Font size scaling (Universal Design) ──
 * 2 段階運用: 標準 / 大（1.125倍 = 18px 相当）。
 * 設計原則:
 *   - html のルート font-size をスケールするだけで、配下の rem 指定要素が一括で拡大
 *   - 旧 html.fs-* / html.font-size-* クラスは JS 側で除去（後方互換）
 *   - px 指定は可能な限り rem に変換済（このファイル内）
 */
html { font-size: 100%; }                       /* = 16px (ブラウザ既定) */
html.font-size-large { font-size: 112.5%; }     /* = 18px 相当 (1.125 倍) */
/* 旧クラス互換（JS が古い場合の保険） */
html.fs-large { font-size: 112.5%; }

/* ── Font size widget ── */
.fs-widget {
  display: flex;
  align-items: center;
  gap: 3px;
}

.fs-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #17365D;
  margin-right: 2px;
  white-space: nowrap;
}

.fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border: 1px solid rgba(23, 54, 93, 0.3);
  border-radius: 4px;
  background: rgba(23, 54, 93, 0.06);
  color: #17365D;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
  /* 日本語 2 文字 (標準) がボタン幅で改行されて縦書きにならないように */
  white-space: nowrap;
}

/* ボタン自体のサイズはスケーリング対象外 */
.fs-btn--small  { font-size: 0.625rem !important; }
.fs-btn--medium { font-size: 0.8125rem !important; }
.fs-btn--large  { font-size: 1rem !important; }

.fs-btn--active {
  background: #17365D;
  color: #ffffff;
  border-color: #17365D;
}

.fs-btn:hover:not(.fs-btn--active) {
  background: rgba(23, 54, 93, 0.15);
}

/* メニュー内文字サイズはデスクトップでは非表示 */
.fs-menu-section { display: none; }

/* ── Holiday banner (休館日) ── */
.closed-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #101729;
  color: #ffffff;
  font-size: 0.875rem !important;
  font-weight: 300;
  padding: 6px 16px;
  text-align: center;
  letter-spacing: 0.05em;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 1190;
}

.closed-banner:not([hidden]) {
  display: flex;
}

/* When banner is shown, body class adjusts padding */
body.has-closed-banner .site-wrap {
  padding-top: calc(var(--header-height) + 32px);
}

.closed-banner-icon {
  font-size: 1.125rem;
}

/* ── Mobile Menu Toggle ── */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: #17365D;
}

.menu-toggle:hover {
  background: transparent;
  border-color: transparent;
}

.menu-toggle:active {
  transform: none;
}

/* シンプルな3本線アイコン */
.menu-toggle-arch {
  width: 26px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.arch-line {
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: center;
}

.menu-toggle-text {
  display: none;
}

/* Menu open: 中央の線が消える */
.menu-open .menu-toggle {
  background: transparent;
  border-color: transparent;
}
.menu-open .arch-line--2 {
  opacity: 0;
  transform: scaleX(0);
}

.menu-backdrop {
  display: none;
}

/* ── Mobile Side Nav ── */
.side-nav {
  display: none;
}

/* ── Spacer for fixed header ──
   既定で全ページに header 高さぶんの上余白を付け、固定ヘッダーとの重なりを防ぐ。
   ヒーロー / page-hero / TOP スライドショーを持つページだけ、ヒーロー自身が
   header 下に潜り込むデザインのため padding を 0 に「減算」する。
   この向きにすることで :has() 非対応ブラウザでもルール失敗時は
   「余白過多（＝重ならない安全側）」に倒れ、子ページの崩れを防ぐ。 */
.site-wrap {
  padding-top: var(--header-height);
}
/* TOP スライドショーのみ余白を打ち消す（ヒーロー画像をヘッダー裏まで敷く）。
   子ページの page-hero は固定ヘッダーと重ならないよう、site-wrap の余白を
   そのまま活かして「ヘッダー帯の下」に配置する（打ち消さない）。 */
.site-wrap:has(.hero-slideshow) {
  padding-top: 0;
}
/* TOP (front-page): スライドショーをヘッダー高さぶん下げ、ヘッダー帯と画像を
   重ねない (上にヘッダー帯 / その下にスライドショー)。上の打ち消しより後に置いて優先。 */
body.home .site-wrap {
  padding-top: var(--header-height);
}

/* ── Hero Slideshow ── */
.hero-slideshow {
  position: relative;
  width: 100%;
  /* PC は 2400:792 (約 3:1) の細長い帯。PC でスクロール可能なことを
     一目で示すため、ファーストビュー内で下のセクションを覗かせる狙い。 */
  aspect-ratio: 2400 / 792;
  max-height: 600px;
  overflow: hidden;
  background: #0a1220;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* 白フラッシュ演出に合わせた、落ち着いたクロスフェード（参考: irep）。 */
  transition: opacity 1.2s ease-in-out;
}

.hero-slideshow .slide.active { opacity: 1; }

.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: kenburns 14s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-0.5%, -0.5%); }
}

.hero-slideshow .slide:nth-child(2) img { animation-delay: -7s; }
.hero-slideshow .slide:nth-child(3) img { animation-delay: -3.5s; }

/* アーチフレーム */
.hero-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-base {
  stroke: rgba(255,255,255,0.12);
  stroke-width: 1;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: archDraw 1.5s ease 0.8s forwards;
}

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

/* ── 固定タイトル（title.png） ──
   背景スライドは kenburns/フェードで動くが、このタイトルは固定して常にくっきり見せる。
   .slide の外側に配置しているためアニメーションは一切かからない。
   サイズは「高さ基準」にしてヒーローの aspect-ratio→max-height 切替をまたいでも
   ネイティブ解像度(837×414)付近を保ち、ボケにくくする。
   ※先行実装のため PC のみ表示。スマホは別途対応予定。 */
.hero-title-fixed {
  position: absolute;
  left: 3%;
  top: 48%;
  transform: translateY(-50%);
  height: 62%;
  width: auto;
  max-width: 50%;
  z-index: 4;          /* slide(0-1) / hero-frame(2) / slide-overlay(3) より前面 */
  pointer-events: none;
  animation: none;     /* 背景アニメに釣られない（明示） */
}
@media (max-width: 768px) {
  /* スマホは先行実装の対象外。誤表示を防ぐため非表示にしておく。 */
  .hero-title-fixed { display: none; }
}

/* オーバーレイ
   画像内にキャッチコピーが焼き込まれる運用に変更したため、
   視覚的には完全に非表示にして暗いグラデーションも削除。
   h1 と本文はソース上に残し SEO / スクリーンリーダー向けに維持。 */
.slide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  /* 暗くするグラデーションは廃止 */
  background: none;
}

/* タイトル・サブテキストは visually-hidden で隠す */
.slide-title,
.slide-sub {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* スクロールヒント: ファーストビュー右下のクリッカブルな ↓ ボタン。
   - 画像内キャッチコピーと干渉しないよう右下に配置
   - クリックで予約状況セクションへスムーズスクロール
   - スクロール開始後は .is-faded クラスで自動フェードアウト（JS で付与） */
.hero-scroll-hint {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: #ffffff;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  animation: hero-hint-bounce 1.8s ease-in-out infinite;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  opacity: 1;
}
.hero-scroll-hint:hover {
  color: #fff;
  transform: translateY(-2px);
}
.hero-scroll-hint:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}
.hero-scroll-hint.is-faded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hero-scroll-hint__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-scroll-hint__arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}

@keyframes hero-hint-bounce {
  0%, 100% { transform: translateY(0);  opacity: 0.92; }
  50%      { transform: translateY(6px); opacity: 1;    }
}

@media screen and (max-width: 768px) {
  .hero-scroll-hint {
    right: 14px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint { animation: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ドットナビ → バー型 */
.slide-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.slide-dots .dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: all 0.4s ease;
}

.slide-dots .dot.active {
  width: 40px;
  background: #ffffff;
}

.slide-dots .dot:hover { background: rgba(255,255,255,0.7); }

/* ── お知らせセクション ── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.news-item:last-child { border-bottom: none; }
/* ホバー時は薄く白い膜 (イベント/ギャラリーのカードと同様の控えめなハイライト) */
.news-item:hover { background: #f6f8fb; }

.news-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
  min-width: 90px;
}

.news-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 70px;
  text-align: center;
}

.news-tag--event { background: #fff3e0; color: #e65100; }       /* オレンジ系 */
.news-tag--info { background: #e3f2fd; color: #1565c0; }        /* 青系 */
.news-tag--important { background: #fce4ec; color: #c62828; }    /* 赤系 */
.news-tag--closed { background: #cacaca; color: #616161; }      /* グレー系 */

.news-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  flex: 1;
}

/* 文字色は変えず、白い膜のみ (カードのホバー方針と統一) */

/* SP（768px以下）: お知らせ各項目を 日付・タグ／タイトル の2段組に */
@media screen and (max-width: 768px) {
  .news-item {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .news-link {
    flex-basis: 100%;
  }
}

.news-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.news-more::after { content: '→'; }

/* ── イベントセクション ── */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* タブレット（1024px以下）: イベントカードは4つまで表示 */
@media screen and (max-width: 1024px) {
  .event-grid .event-card:nth-child(n+5) {
    display: none;
  }
}

/* SP（768px以下）: イベントカードは3つまで表示 */
@media screen and (max-width: 768px) {
  .event-grid .event-card:nth-child(n+4) {
    display: none;
  }
}

/* ── イベントカード アニメーション ── */
@keyframes eventPopIn {
  0%   { opacity: 0; transform: translateY(30px) scale(0.95); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.02); }
  80%  { transform: translateY(2px) scale(0.995); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes eventShimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}
@keyframes eventPulseDate {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.event-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(30px);
  text-decoration: none;
  color: inherit;
}
/* PC: ホバー時に画像へ白い薄膜 */
.event-card-film {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .event-card:hover .event-card-film { opacity: 1; }
  .event-card:hover .event-card-img { transform: scale(1.05); }
}
.event-card.animate-in {
  animation: eventPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
/* hover: shadow / 浮かし / 画像拡大 / 白い薄膜 すべて無し。
   ボタン (.event-card-btn) の hover だけ効かせる方針。 */

/* 画像 + コーナーバッジ */
.event-card-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.event-card-img--placeholder {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-card-img--placeholder svg {
  width: 48px; height: 48px; fill: #1565c0; opacity: 0.5;
}

/* 左上のコーナーリボンバッジ (カテゴリ色を index で 3 種ローテーション) */
.event-card-badge {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 5px 18px 6px 14px;
  border-bottom-right-radius: 14px;
  letter-spacing: 0.02em;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}
.event-card-badge--0 { background: #1d4ed8; } /* blue */
.event-card-badge--1 { background: #15803d; } /* green */
.event-card-badge--2 { background: #1d4ed8; } /* blue */

/* 本体 */
.event-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1; /* ボタンを下に押し下げる */
}

/* 日付（左）とカテゴリ（右）を同じ行に配置 */
.event-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
/* 1行に収まる時: 日付=左 / タグ=右(space-between)。
   収まらない時: タグが日付の下へ折り返し、各行が左寄せになる
   （margin-left:auto は折り返し行でも右寄せにしてしまうため使わない）。 */
.event-card-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text, #1e293b);
}
.event-card-date svg {
  width: 18px;
  height: 18px;
  fill: #2563eb;
  flex-shrink: 0;
}

/* タグ pills: 3 色ローテーション */
.event-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ev-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  background: #eeeeee;
  color: #616161;
}
/* カテゴリ別カラー: 大会=青 / レクリエーション(taiken)=緑 / キッズ=黄 / エンタメ(shien)=紫 / その他=グレー */
.ev-tag--taikai { background: #e3f2fd; color: #1565c0; }
.ev-tag--taiken { background: #e8f5e9; color: #2e7d32; }
/* キッズはピンク系（背景: 淡いピンク / 文字: 落ち着いたロゼピンク） */
.ev-tag--kids { background: #FFE4EC; color: #C2348C; }
.ev-tag--shien { background: #ede7f6; color: #4527a0; }
/* イベントは旧キッズと同じ淡い黄系を適用 */
.ev-tag--event { background: #fff8e1; color: #f9a825; }
.ev-tag--other { background: #eeeeee; color: #616161; }

.event-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 4px 0 0;
  color: var(--color-text, #1e293b);
  line-height: 1.5;
}

.event-card-divider {
  border: 0;
  border-top: 1px dashed #d1d5db;
  margin: 0;
}

.event-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-light, #64748b);
  line-height: 1.7;
  margin: 0;
}

/* 詳しく見る ボタン (カード下部に固定) */
.event-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 12px 18px;
  background: #fff;
  color: #1d4ed8;
  border: 1.5px solid #1d4ed8;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.event-card-btn::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 12px;
}
.event-card-btn:hover {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.event-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-card-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-card-link::after { content: '→'; }

.event-card-status {
  font-size: 1rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.event-card-status--open { background: var(--color-primary-light); color: var(--color-primary); }
.event-card-status--closed { background: #f3f3f3; color: #999; }

/* ── 施設の魅力セクション ── */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.facility-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.facility-card:hover img { transform: scale(1.06); }

.facility-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.3s ease;
}

.facility-card:hover .facility-card-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(26,107,74,0.8) 100%);
}

.facility-card-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.facility-card-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
}

/* ── ドームについて ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ドームについて: 834px 以下で 1 カラム (スマホ向けレイアウト) に切替。
   既存の 1240px 帯では PC レイアウトを維持。 */
@media screen and (max-width: 834px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-light);
  margin: 0 0 16px;
}

.about-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.spec-item {
  padding: 10px 12px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  text-align: center;
}

.spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.spec-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-top: 2px;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ── 本日・明日の予約状況 ── */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  /* 各カードは中身の量に応じた高さにする（予約数が少ない側を無理に伸ばさない）。
     SP の単カラム表示と同じく、ボックスの大きさ＝予約の数だけ可変。 */
  align-items: start;
}

.status-day-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.status-day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #fff;
  font-weight: 700;
}

.status-day-header--today {
  background: #378055;
}

.status-day-header--tomorrow {
  background: #365898;
}

.status-day-label {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  font-size: 0.8125rem;
}

.status-day-date {
  font-size: 1.125rem;
}

.status-day-body {
  padding: 16px 20px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* TOP 本日・明日の予約状況: 休館日のグレーバー（角は直角・本体パディング内に四角く収める） */
.status-closed-bar {
  background: #d8d8d8;
  color: #1a1a1a;
  padding: 10px 12px;            /* 予約ブロック(.rmv-venue)と同じ余白に揃える */
  text-align: center;
  border-radius: 0;
}
.status-closed-bar__label {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.status-closed-bar__reason {
  display: block;
  margin-top: 6px;
  font-size: 0.9375rem;
  color: #444;
}

.status-category {
  margin-bottom: 12px;
}

/* ── 予約タイル統一スタイル (rmv-venue) ── /reservation/ の月別カレンダー
   日別パネルと同じ見た目を TOP「本日・明日の予約状況」でも使う ── */
.rmv-venue {
  background: #f8fafc;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.rmv-venue--arena { background: #eff5fb; }
.rmv-venue--room  { background: #fff8ee; }
.rmv-venue:last-of-type { margin-bottom: 0; }
.rmv-venue__badge {
  display: inline-block;
  padding: 3px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.rmv-venue__badge--arena { background: #1565c0; }
.rmv-venue__badge--room  { background: #c8763e; }
.rmv-venue--closed { background: #f1f1f1; }
.rmv-venue__badge--closed { background: #8a8a8a; }
.rmv-venue__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.875rem;
}
.rmv-subroom + .rmv-subroom {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e7d5bc;
}
.rmv-subroom__label {
  color: #c8763e;
  font-weight: 700;
  font-size: 0.8125rem;
  margin-bottom: 2px;
}
.rmv-venue__item + .rmv-venue__item {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 6px;
  margin-top: 2px;
}
.rmv-venue__time {
  color: var(--color-text, #1e293b);
  font-weight: 700;
  white-space: nowrap;
  min-width: 110px;
}
/* 時間の文字色を会場別に: アリーナ(青系) / 諸室(茶系) — はっきり区別 (TOP・予約ページ共通) */
.rmv-venue--arena .rmv-venue__time { color: #1565C0; }
.rmv-venue--room  .rmv-venue__time { color: #DD6B20; }
.rmv-venue__title {
  flex: 1;
  color: var(--color-text, #1e293b);
}
.rmv-venue__org {
  flex-basis: 100%;
  width: 100%;
  font-size: 0.8125rem;
  color: var(--color-text-light, #64748b);
  margin-top: 2px;
}
/* SP でも 時間 → タイトル は横一列を維持（折り返しは flex-wrap で許容）。
   .rmv-venue__org のみ flex-basis:100% で次行へ送る。 */

.status-category:last-child {
  margin-bottom: 0;
}

.status-category-title {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 14px;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}

.status-category-title--arena {
  background: #1565c0;
}

.status-category-title--room {
  background: #c8963e;
}

.status-category-title--closed {
  background: #8a8a8a;
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.status-list li {
  border-bottom: 1px solid var(--color-border);
}

.status-list li:last-child {
  border-bottom: none;
}

/* 場所バッジ［全諸室］［多目的室1］等の幅を揃える (旧スタイル: 残置) */
.status-event__room {
  display: inline-block;
  min-width: 7.2em;
  text-align: center;
  color: #c8763e;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-right: 6px;
}

/* 会場グループ タイル (TOP 本日・明日の予約状況) */
/* 休館日タイル: TOP 本日明日の予約状況の最上段。
   アリーナ/諸室と同じ構造 (badge ヘッダ + タイル本体) で背景はグレー系 */
.status-closed-tile {
  background: #f1f1f1;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.status-closed-tile .status-item {
  padding: 6px 0;
  border-bottom: 1px solid #d8d8d8;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.status-closed-tile .status-item:last-of-type { border-bottom: 0; }
.status-closed-tile .status-event {
  color: #4a4a4a;
  font-weight: 600;
}

.status-arena-tile,
.status-room-tile {
  padding: 10px 14px;
  margin-bottom: 8px;
}
.status-arena-tile { background: #eff5fb; }
.status-room-tile  { background: #fff8ee; }
.status-room-tile__label {
  color: #c8763e;
  font-weight: 700;
  font-size: 0.8125rem;
  margin-bottom: 4px;
}
.status-arena-tile .status-item,
.status-room-tile .status-item {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.status-arena-tile .status-item { border-bottom-color: #c5d8ea; }
.status-room-tile  .status-item { border-bottom-color: #e7d5bc; }
.status-arena-tile .status-item:last-of-type,
.status-room-tile  .status-item:last-of-type { border-bottom: 0; }
.status-arena-tile .status-time,
.status-room-tile .status-time {
  font-weight: 700;
  min-width: 110px;
}
.status-event__org {
  color: var(--color-text-light);
  font-size: 0.8125rem;
  margin-left: 4px;
}
/* 全行が --more でタイルに表示行が無い場合は隠す */
.status-room-tile:not(:has(.status-item:not(.status-item--more))) {
  display: none;
}
.status-category.is-expanded .status-room-tile {
  display: block;
}

/* 「もっと見る」アコーディオン (枠内で展開) */
.status-item--more { display: none; }
.status-category.is-expanded .status-item--more { display: flex; }

/* TOP 本日・明日の予約状況: 会場 (アリーナ/諸室) 単位の「＋もっと見る（あと◯件）」 */
.rmv-venue:not(.is-expanded) .rmv-venue__item--more { display: none; }
/* 表示行が 1 つも残らない subroom ブロックは畳む */
.rmv-venue:not(.is-expanded) .rmv-subroom:not(:has(.rmv-venue__item:not(.rmv-venue__item--more))) { display: none; }
.status-more-toggle {
  display: inline-block;
  background: none;
  border: 0;
  padding: 6px 0;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-light, #64748b);
  cursor: pointer;
  font-family: inherit;
}
.status-more-toggle:hover {
  text-decoration: underline;
  color: var(--color-text, #1e293b);
}
.status-more-toggle__close { display: none; }
.status-category.is-expanded .status-more-toggle__open { display: none; }
.status-category.is-expanded .status-more-toggle__close { display: inline; }
.rmv-venue.is-expanded .status-more-toggle__open { display: none; }
.rmv-venue.is-expanded .status-more-toggle__close { display: inline; }

/* 予約 1 件を丸ごとリンク化。<li> 内側の <a> に flex レイアウトを持たせ、
   ホバー/フォーカスで視覚フィードバックを返す。 */
.status-list li a.status-link {
  display: flex;
  gap: 10px;
  padding: 8px 6px;
  margin: 0 -6px;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.5;
  color: inherit;
  text-decoration: none;
  transition: background var(--transition);
  /* タップ領域 44px 以上を確保 */
  min-height: 44px;
  align-items: center;
}

.status-list li a.status-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.status-list li a.status-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  background: rgba(0, 0, 0, 0.04);
}

/* リンクではない静的バリアント (div) */
.status-list li .status-link--static {
  display: flex;
  gap: 10px;
  padding: 8px 6px;
  margin: 0 -6px;
  font-size: 1rem;
  line-height: 1.5;
  color: inherit;
  min-height: 44px;
  align-items: center;
}

.status-time {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.status-event {
  color: var(--color-text-light);
}

/* SP（768px以下）: 時間の下に内容を表示 */
@media screen and (max-width: 768px) {
  .status-list li a.status-link {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}

/* ── 注意ボックス ── */
.notice-box {
  margin-top: 20px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.7;
}
.notice-box-icon {
  display: none;
}
.notice-box-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
}
.notice-box-content span { color: #677489; font-weight: 400; }
.notice-box-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 0.875rem;
  color: #3761e2;
  text-decoration: none;
}
.notice-box-tel:hover { text-decoration: underline; }

/* 月別ボタングリッド */
.status-month-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.status-month-btn {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  padding: 14px 8px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.25s ease;
}

.status-month-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.15);
  color: var(--color-text);
}

.status-month-num {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
}

.status-month-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.status-month-btn:hover .status-month-label {
  color: var(--color-primary);
}

/* ── SNS埋め込み ── */
.sns-embed-grid {
  display: grid;
  /* 枠の横幅は他セクション（アクセス/ギャラリー等）と合わせて全幅 2 カラム。
     Facebook(最大500px)とX画像はカード内で中央寄せにして崩れを防ぐ。 */
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sns-embed-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 16px 20px;
  overflow: hidden;
  min-width: 0;
}

.sns-embed-card iframe {
  display: block;
  width: 100%;
  max-width: 500px;   /* Facebook ページプラグインの最大幅。中央寄せは align-items で */
}

.sns-embed-heading {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;   /* 見出しの左端を下の埋め込み（中央寄せ500px）と揃える */
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--color-text);
}

/* X 表示エリア（タイムライン or 仮画像） */
.sns-x-timeline { display: none; }   /* 投稿が読み込めたら JS が block にする */
.sns-x-figure {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.sns-x-figure img {
  display: block;
  width: 100%;
  height: 400px;            /* Facebook の iframe(400) と高さを統一 */
  object-fit: cover;
}
.sns-x-figure__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 64px;  /* 重ねたフォローボタン分の余白を確保 */
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

/* X フォローボタン（投稿が無くても X 導線を常時表示） */
.sns-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 9px 18px;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9999px;
  transition: opacity 0.15s ease;
}
.sns-follow-btn:hover { opacity: 0.85; color: #fff; }
/* 画像内に重ねるフォローボタン（カード高さを増やさず Facebook と上下を揃える） */
.sns-follow-btn--overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin-top: 0;
}

/* SNS カードを上下そろえる（PC: タイトル行＋メディアの上端・高さを統一）。
   枠は全幅、埋め込み（FB iframe / X 本体）は最大500pxで中央寄せ。 */
.sns-embed-grid { align-items: stretch; }
.sns-embed-card {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 子（見出し・埋め込み）を中央寄せ */
}
.sns-embed-card .sns-x-body {
  flex: 1 1 auto;
  width: 100%;
  max-width: 500px;      /* X 側も Facebook と同じ最大幅に統一 */
}

/* ── ギャラリーセクション背景（TOP） ── */
.section--gallery-top {
  background: #F7FAFC;
}

/* ── アクセスセクション背景（TOP） ──
 * .section--alt はイベント等他セクションと共有のため、
 * #access の id で個別に上書き。
 */
.section#access {
  background: #F7FAFC;
}

/* ── SNSセクション背景 ── */
.section--sns {
  background: #F7FAFC;
}

/* ── お知らせカードセクション背景 ── */
/* /calendar/(.section--info-cards) と /summary/(.section--survey) の背景。
   偶数sectionの共通CSS(詳細度が高い)を確実に上書きするため !important を付与。 */
.section--info-cards,
main > section.section--info-cards,
main .section.section--info-cards {
  background: #DCECF8 !important;
}
.section--survey,
main > section.section--survey,
main .section.section--survey {
  background: #DCECF8 !important;
}

/* ── お知らせカード3列 ── */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  background: #fff;
  transition: opacity var(--transition);
  position: relative;
}
.info-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.5);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.info-card:hover::after {
  opacity: 1;
}
.info-card:hover {
  color: var(--color-text);
}
.info-card--green { border-left: 4px solid #2e7d32; }
.info-card--blue  { border-left: 4px solid #1565c0; }
.info-card--gold  { border-left: 4px solid #a67828; }
.info-card-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card-icon svg { width: 28px; height: 28px; }
.info-card-text h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: var(--color-text); }
.info-card-text p  { margin: 0; font-size: 0.875rem; color: var(--color-text-light); }
@media screen and (max-width: 1069px) {
  .info-cards-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ── スポンサーティッカー ── */
.sponsor-ticker-section {
  padding: 32px 0 0;
  background: #DCECF8 !important; /* alternation 対象外 */
}

.sponsor-ticker-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin: 0;
  text-align: center;
}

.sponsor-ticker {
  overflow: hidden;
  position: relative;
  padding: 32px 0;
}

.sponsor-ticker::before,
.sponsor-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 1;
  pointer-events: none;
}

.sponsor-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}

.sponsor-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

.sponsor-ticker-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 60s linear infinite;
  width: max-content;
}

.sponsor-ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  flex-shrink: 0;
  padding: 6px 12px;
}

.ticker-item a,
.ticker-item .ticker-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 120px;
  height: 48px;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

/* hover 時のスケール/影は文字の上下動きとして見えるため無効化 (内山さん指示) */
.ticker-item a:hover {
  filter: brightness(1.08);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── 予約状況バナーセクション ── */
.reservation-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius);
  color: #fff;
}

.reservation-banner-text {
  flex: 1;
}

.reservation-banner-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.reservation-banner-text p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

.reservation-banner .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: #fff;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
}

.reservation-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: var(--color-primary);
}

/* ── アクセスセクション ── */
.access-grid {
  display: grid;
  /* 画像は最小380pxを確保し、縮む分は文字側(右カラム)で吸収する */
  grid-template-columns: minmax(380px, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}
/* Google Maps: 外部リンクと分かる小さめのアウトラインボタン */
.access-map-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid #1565c0;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1565c0;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease;
}
.access-map-link:hover { background: #f0f6ff; }
.access-map-link svg { width: 13px; height: 13px; }
@media (max-width: 1054px) {
  .access-map-link { display: flex; width: -moz-fit-content; width: fit-content; margin-top: 8px; }
}

.access-slideshow {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  /* PC: 右の情報枠の高さに合わせて伸縮 (固定アスペクト比は使わない) */
  min-height: 320px;
  border: 1px solid var(--color-border);
  background: #F7FAFC;
}
.access-slides { position: relative; width: 100%; height: 100%; }
.access-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.access-slide.active { opacity: 1; z-index: 1; }
.access-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.access-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  color: #555;
  font-weight: 600;
}
.access-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff;
  padding: 32px 20px 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.access-slide-caption strong {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}
.access-slide-caption span {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.5;
}
.access-slide-prev,
.access-slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  color: #fff;
  background: transparent;
  outline: none;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55);
  transition: text-shadow 0.2s, transform 0.2s;
}
.access-slide-prev { left: 8px; }
.access-slide-next { right: 8px; }
.access-slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.access-slide-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.access-slide-dots .dot.active { background: #fff;
}

/* SP（768px以下）: スライドキャプションの左右パディングを 16px に */
@media screen and (max-width: 768px) {
  .access-slide-caption {
    padding: 32px 16px 32px;
  }
}

.access-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* 白枠なし。区切り線のみで各項目を分ける。
     画像と高さを揃えるため中央寄せに配置 */
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .access-info {
    margin: 0;
    justify-content: flex-start;
  }
}

.access-info-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-areas:
    "icon  label"
    "value value";
  column-gap: 10px;
  row-gap: 8px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.access-info-item:last-child { border-bottom: 0; }
.access-info-item > div:not(.access-info-icon) {
  display: contents;
}
.access-info-label { grid-area: label; }
.access-info-value { grid-area: value; }

/* アイコンは丸で囲む (青丸 + 白アイコン)。文字サイズに合わせた小さめの円 */
.access-info-icon {
  grid-area: icon;
  align-self: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1565c0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.access-info-icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.access-info-label {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.access-info-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.access-info-value a {
  color: #1565c0;
  font-weight: 600;
}


/* ── ボタン共通 ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.28);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--gradient-brand-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 168, 107, 0.32);
}

.btn-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 320px;
  max-width: 420px;
  padding: 16px 48px; /* 右側 chevron 用に右 padding を多めに確保 */
  /* 通常のブランドグラデより少し明るめ（白文字＋影で可読性は維持） */
  background: linear-gradient(135deg, #3A93E0 0%, #2FBE82 100%);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(44, 130, 214, 0.28);
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.btn-outline:hover {
  background: var(--gradient-brand);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(46, 168, 107, 0.38);
}

/* 右端 chevron は absolute で固定、テキストは中央配置を維持 */
.btn-outline::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid currentColor;
  border-top: 2.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

/* SP: ボタンを画面幅にフィットさせる */
@media (max-width: 480px) {
  .btn-outline {
    min-width: 0;
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
  }
}
/* ── お問い合わせ共通フッターセクション（organizer-modern の contact-box を参考） ── */
.contact-footer {
  background: #e5f2fc;
  padding: 40px 24px;
  width: 100%;
  text-align: center;
}
.contact-footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* 見出し: 左右に横線がついた装飾見出し */
.contact-footer-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 14px;
}
.contact-footer-heading::before,
.contact-footer-heading::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: #0d47a1;
}
.contact-footer-heading span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d47a1;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.contact-footer-org {
  font-size: 1rem;
  color: #333;
  margin: 0 0 12px;
  line-height: 1.7;
}

/* TEL ラベル + 番号（横並び） */
.contact-footer-tel-wrap {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 0 0 8px;
  flex-wrap: wrap;
}
.contact-footer-tel-label {
  font-size: 1rem;
  font-weight: 700;
  color: #0d47a1;
  letter-spacing: 0.06em;
}
.contact-footer-tel {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0d47a1;
  text-decoration: none;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.contact-footer-tel:hover {
  text-decoration: underline;
  color: #0d47a1;
}

.contact-footer-sub {
  font-size: 1rem;
  color: #333;
  margin: 0 0 24px;
  line-height: 1.7;
}
.contact-footer-sub a {
  color: #333;
  text-decoration: none;
}
.contact-footer-sub a:hover { text-decoration: underline; }

/* 開館時間 / 休館日 の2カラム（枠なし、テキスト整列のみ） */
.contact-footer-info-grid {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: start;
  column-gap: 48px;
  row-gap: 8px;
  max-width: 900px;
  margin: 0 auto 20px;
}
.contact-footer-info-box {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
}
.contact-footer-info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: start;
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
}
.contact-footer-info-row strong {
  font-weight: 800;
  color: #0d47a1;
  white-space: nowrap;
}

.contact-footer-note {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.7;
}

/* 注意事項（organizer ページ用、＊で始まる規約文） */
@media (max-width: 768px) {
  .contact-footer { padding: 28px 16px; }
  .contact-footer-heading::before,
  .contact-footer-heading::after { max-width: 80px; }
  .contact-footer-heading span { font-size: 1.125rem; }
  .contact-footer-tel { font-size: 1.25rem; }
  .contact-footer-tel-wrap { gap: 8px; }
  .contact-footer-org,
  .contact-footer-sub { font-size: 0.875rem; }
  .contact-footer-info-grid {
    display: block;
    max-width: max-content;
    margin: 0 auto 16px;
  }
  .contact-footer-info-box + .contact-footer-info-box {
    margin-top: 14px;
  }
  .contact-footer-info-row { font-size: 0.875rem; }
}

@media (max-width: 399px) {
  .contact-footer-sub-sep { display: none; }
  .contact-footer-sub-fax,
  .contact-footer-sub-email { display: block; }
  .contact-footer-sub {
    text-align: left;
    max-width: max-content;
    margin-left: auto;
    margin-right: auto;
  }
  .contact-footer-note { text-align: left; }
}

/* ── Footer（樹海ドーム下に溜まる「水」をイメージした水面表現） ── */
.site-footer-main {
  position: relative;
  overflow: hidden;
  /* 深い水底ネイビー → 明るいアクア の青系グラデ。ゆっくり横に流れて
     水の揺らぎを表現。文字は白系＋影で視認性を確保。
     全体を少し明るめの水色トーンに。白文字が読めるよう影は維持。 */
  background: linear-gradient(120deg,
    #0a3a5c 0%,
    #136f9b 32%,
    #28b2cf 52%,
    #136f9b 72%,
    #0a3a5c 100%);
  background-size: 300% 300%;
  animation: footerWaterFlow 13s ease-in-out infinite;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(3, 24, 40, 0.55);
  padding: 64px 24px 32px;
}
/* 水中の光のゆらめき（コースティクス）。やわらかい光だまりが漂い、
   斜めの光のスイープがゆっくり横切る。波形は使わず光の揺らぎで水を表現。 */
.site-footer-main::before,
.site-footer-main::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* 光だまり（複数の放射グラデが漂う）。screen 合成で水面の輝きに。 */
.site-footer-main::before {
  background:
    radial-gradient(38% 55% at 18% 28%, rgba(255,255,255,0.12), transparent 60%),
    radial-gradient(34% 50% at 68% 62%, rgba(180,235,250,0.16), transparent 62%),
    radial-gradient(30% 45% at 44% 88%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(28% 42% at 88% 22%, rgba(150,220,245,0.12), transparent 60%);
  background-size: 200% 200%;
  mix-blend-mode: screen;
  animation: footerCaustics 11s ease-in-out infinite alternate;
}
/* 斜めの光のスイープ（ゆっくり横切る一筋の光） */
.site-footer-main::after {
  background: linear-gradient(115deg,
    transparent 34%,
    rgba(255,255,255,0.20) 47%,
    rgba(210,245,255,0.08) 55%,
    transparent 68%);
  background-size: 260% 100%;
  mix-blend-mode: screen;
  animation: footerSheen 7s linear infinite;
}
/* フッター内のコンテンツは光の層より前面に */
.site-footer-main > .footer-inner,
.site-footer-main > .footer-hours,
.site-footer-main > .footer-bottom { position: relative; z-index: 1; }


/* 水が流れるアニメーション（グラデーション位置の往復） */
@keyframes footerWaterFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* 光だまりが漂う（複数レイヤの位置をゆらす） */
@keyframes footerCaustics {
  0%   { background-position: 0% 0%, 100% 50%, 30% 100%, 80% 0%; }
  50%  { background-position: 30% 40%, 70% 20%, 50% 70%, 60% 30%; }
  100% { background-position: 100% 100%, 0% 80%, 80% 20%, 20% 60%; }
}
/* 斜めの光が左→右へゆっくり横切る */
@keyframes footerSheen {
  from { background-position: 160% 0; }
  to   { background-position: -60% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer-main,
  .site-footer-main::before,
  .site-footer-main::after { animation: none; }
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #ffffff;
  margin: 12px 0 0;
}

.footer-brand p.footer-brand-name {
  margin: 0;
}

.footer-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding: 0;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}
/* 線を使わず、半透明の小さな丸ドットでやさしく区切り（かわいい方向） */
.footer-heading::before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links-list a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.92);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.footer-social a:hover {
  background: rgba(255,255,255,0.28);
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 16px rgba(3, 24, 40, 0.28);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* フッター下部の開館時間情報。区切り線は使わず、すりガラス風のやわらかな
   丸カードでふんわり区切る（線少なめ・かわいい方向）。 */
.footer-hours {
  max-width: calc(var(--max-width) - 8px);
  margin: 36px auto 0;
  padding: 22px 28px;
  background: rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  backdrop-filter: blur(8px) saturate(115%);
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(3, 24, 40, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.footer-hours-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-hours-row {
  display: flex;
  gap: 12px;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.footer-hours-row > strong {
  color: #fff;
  flex: 0 0 auto;
  min-width: 56px;
}
.footer-hours-note {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.92);
}
@media (max-width: 768px) {
  .footer-hours-inner {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: left;
  }
}
/* 599px 以下: 受付時間・開館時間を1行に、休館日を別行に */
@media (max-width: 599px) {
  .footer-hours-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px 24px;
  }
  .footer-hours-row--closed { flex-basis: 100%; }
}

/* 区切り線は撤去。余白だけでふんわり区切り、中央寄せでやさしい印象に。 */
.footer-bottom {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 18px;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.95);
}

.site-version {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.site-credit {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}


/* ── メニュー内サイト検索 ── */
.menu-search-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.menu-search-section h3 .menu-icon {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
}

.menu-search-section hr {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.menu-search-form {
  display: flex;
  align-items: center;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.menu-search-input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
  min-width: 0;
}

.menu-search-input::placeholder {
  color: #999;
}

.menu-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-search-submit svg {
  width: 22px;
  height: 22px;
  fill: #94a3b8;
}

.menu-search-submit:hover svg {
  fill: var(--color-text-light);
}

/* ── Language Section (メニュー内) ── */
.lang-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lang-section h3 .menu-icon {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
}

.lang-section hr {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: all 0.25s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.lang-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21,101,192,0.12);
}

/* 言語ボタン 5個目（日本語）は 1 列目に左揃え（他ボタンと同じ幅で残す） */
.lang-grid .lang-btn:nth-child(5):last-child {
  grid-column: 1;
  justify-self: stretch;
}

/* ── Related Links (メニュー内) ── */
.related-links-block h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-light);
}

.related-links-block hr {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.banner-links,
.external-links {
  display: grid;
  gap: 6px;
}

.banner-links a,
.external-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  transition: background var(--transition);
}

.banner-links a:hover,
.external-links a:hover { background: var(--color-primary-light); }

/* テキストの外部リンク一覧（メニュー内） */
.external-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.external-links-list a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background var(--transition);
}

.external-links-list a:hover {
  background: var(--color-primary-light);
}

.external-links-list a::after {
  content: "\2197";
  margin-left: auto;
  color: var(--color-text-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.office-note {
  margin-top: 12px;
  padding: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  text-align: center;
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  border: none;
  /* 青→緑のブランドグラデーション */
  background: var(--gradient-brand);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(46, 95, 168, 0.32), 0 2px 6px rgba(46, 168, 107, 0.18);
  z-index: 1102;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.2s ease;
}

.back-to-top-icon {
  width: 22px;
  height: 16px;
  display: block;
}

.back-to-top-text {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gradient-brand-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(46, 168, 107, 0.4), 0 4px 10px rgba(46, 95, 168, 0.22);
  color: #fff;
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
  transition: transform 0.1s ease;
}

/* ───────── スマホ用 固定タブバー ─────────
   PC では非表示。≤768px で最下部に固定表示。
   back-to-top と衝突しないよう、モバイル時はボタンをバー上へ押し上げる。 */
.mobile-tabbar { display: none; }
@media (max-width: 768px) {
  .mobile-tabbar {
    --tabbar-h: 58px;
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid var(--color-border, #e2e8f0);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1101;
  }
  .mobile-tabbar__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--color-text-light, #64748b);
    transition: color 0.18s ease, background 0.18s ease;
  }
  .mobile-tabbar__item:not(:last-child) {
    border-right: 1px solid var(--color-border, #eef2f7);
  }
  .mobile-tabbar__icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary, #1d4ed8);
  }
  .mobile-tabbar__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .mobile-tabbar__item:active {
    background: var(--color-primary-light, #eff6ff);
    color: var(--color-primary, #1d4ed8);
  }
  /* メニュー ボタン（<button> のリセット） */
  .mobile-tabbar__item--menu {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-right: 1px solid var(--color-border, #eef2f7);
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
  }
  /* アイコン切替: 通常はハンバーガー、メニュー展開中は × を表示 */
  .mobile-tabbar__icon--close { display: none; }
  body.menu-open .mobile-tabbar__icon--burger { display: none; }
  body.menu-open .mobile-tabbar__icon--close { display: block; }
  /* 展開中はメニューボタンをブランド色で強調 */
  body.menu-open .mobile-tabbar__item--menu {
    color: var(--color-primary, #1d4ed8);
    background: var(--color-primary-light, #eff6ff);
  }
  /* 展開中はタブバーをドロワー(1195)・背景(1194)より前面へ。
     これでメニューボタン(×)を押して閉じられる。 */
  body.menu-open .mobile-tabbar {
    z-index: 1196;
  }
  /* ドロワー下端がタブバーに隠れないよう余白を確保 */
  body.menu-open .side-nav {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 20px);
  }
  /* back-to-top をバーの上へ押し上げ（衝突回避） */
  .back-to-top {
    bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 14px);
  }
  /* フッター下端がバーに隠れないよう余白を確保 */
  .site-footer-main {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Noscript ── */
.noscript-box {
  margin: 20px;
  padding: 16px;
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: #7f1d1d;
}

.noscript-box p { margin: 0 0 8px; }

/* ── Hide Google Translate bar ── */
.goog-te-banner-frame,
.skiptranslate,
#google_translate_element {
  display: none !important;
}

body { top: 0 !important; }

/* ── Quick Links（ヒーロー下） ── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  border-right: 1px solid var(--color-border);
  transition: background var(--transition), color var(--transition);
}

.quick-link:last-child { border-right: none; }
.quick-link:hover { background: var(--color-primary-light); color: var(--color-primary); }

.quick-link svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
  flex-shrink: 0;
}

/* ================================================================
   TABLET: max-width 1240px
   ================================================================ */
@media screen and (max-width: 1240px) {
  :root {
    --header-height: 64px;
  }

  .header-nav { display: none; }

  /* タブレット幅以下では検索・言語ボタンを非表示（メニューボタンと重なるため） */
  .site-search { display: none; }
  .lang-float { display: none; }

  /* スマホではヘッダーの文字サイズを非表示（メニュー内に設置） */
  .fs-widget--header { display: none !important; }

  /* メニュー内の文字サイズセクション（グリッド直下） */
  /* hr は上段、h3 と fs-widget--menu は横並び（label 左 / buttons 右） */
  .fs-menu-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 12px;
    margin-top: 10px;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .fs-menu-section hr {
    flex-basis: 100%;
    margin: 16px 0;
    border: 0;
    border-top: 1px solid var(--color-border);
  }

  .fs-menu-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .fs-menu-section h3 .menu-icon {
    width: 16px;
    height: 16px;
    fill: var(--color-primary);
  }

  /* メニュー内の文字サイズボタンは PC ヘッダー (.fs-btn) と同じデザインに統一 */
  .fs-widget--menu {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .fs-widget--menu .fs-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 4px;
    border-color: rgba(23, 54, 93, 0.3);
    background: rgba(23, 54, 93, 0.06);
    color: #17365D;
  }

  .fs-widget--menu .fs-btn--active {
    background: #17365D;
    color: #fff;
    border-color: #17365D;
  }

  /* タブレット幅（769-1240px）: ロゴを中央、ハンバーガー右 */
  .header-inner {
    justify-content: center;
    position: relative;
  }

  .brand-row {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-shrink: 0;
  }

  .menu-toggle {
    position: absolute;
    right: 10px;
    flex-shrink: 0;
    display: inline-flex;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1194;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .menu-open .menu-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .side-nav {
    display: block;
    position: fixed;
    right: 0;
    top: var(--header-height);
    bottom: 0;
    width: min(360px, 85vw);
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* z-index: 1195 で .closed-banner (1190) より上、.site-header (1200) より下に。
       これでハンバーガーメニューが「本日は休館日です」バナーの上に重なる。 */
    z-index: 1195;
    background: #F7FAFC;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    padding: 20px;
  }

  /* メニュー見出しは非表示（aria-label で代替） */
  .side-nav > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .menu-open .side-nav { transform: translateX(0); }

  .menu-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .menu-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
    min-height: 64px;
    padding: 12px 8px;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    transition: background var(--transition);
  }

  .menu-link:hover { background: var(--color-primary-light); }

  /* 「イベント主催の方へ」は別ボタンとして区別（淡い青で控えめに） */
  .menu-link--organizer {
    position: relative;
    margin: 12px 4px 6px;
    padding: 12px 36px 12px 14px;
    min-height: 56px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(46, 95, 168, 0.30);
    border-radius: 12px;
    font-weight: 700;
    box-shadow: none;
    transition: background var(--transition), border-color var(--transition);
  }
  .menu-link--organizer:hover,
  .menu-link--organizer:active {
    background: #e2edfb;
    border-color: rgba(46, 95, 168, 0.5);
  }
  .menu-link--organizer .menu-icon { fill: var(--color-primary); }
  /* 押せるボタンと分かるよう右端に控えめな矢印 */
  .menu-link--organizer::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(46, 95, 168, 0.6);
    border-right: 2px solid rgba(46, 95, 168, 0.6);
    transform: translateY(-50%) rotate(45deg);
  }

  .menu-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    fill: #3f3d83;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .menu-link span { flex: 1; min-width: 0; }

  .menu-group-heading {
    margin: 14px 0 4px;
    padding: 6px 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #666;
    border-bottom: 1px solid var(--color-border);
  }

  .menu-group-heading:first-of-type {
    margin-top: 0;
  }

  .quick-links { grid-template-columns: repeat(2, 1fr); }

  .facility-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  .section { padding: 48px 20px; }
}

/* ================================================================
   MOBILE: max-width 768px
   ================================================================ */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  /* アクセスエリアは 768px で 1 カラムに切り替え */
  .access-grid { grid-template-columns: 1fr; }
  /* align-self:start で stretch を解除しないと、中身(絶対配置スライド)に
     引っ張られてスライドショーの高さが 0 に潰れ写真が表示されない。 */
  .access-slideshow { aspect-ratio: 16 / 9; min-height: 0; align-self: start; }

  /* SP（768px以下）: ロゴ左 / ハンバーガー右 の space-between */
  .header-inner {
    padding: 0 12px;
    gap: 8px;
    justify-content: space-between;
    position: static;
  }

  .brand-row {
    position: static;
    transform: none;
    flex-shrink: 0;
  }

  .menu-toggle {
    position: static;
    right: auto;
    flex-shrink: 0;
  }

  .brand-row img {
    height: 22px;
  }

  /* スマホではメニュー内にLanguageがあるのでヘッダーの翻訳ボタンを非表示 */
  .lang-float { display: none; }

  /* スマホではヘッダーの検索ボタン・文字サイズを非表示（メニュー内に設置） */
  .site-search { display: none; }
  .fs-widget--header { display: none !important; }

  .hero-slideshow {
    /* スマホは正方形でファーストビューに収める */
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr);
    border-bottom: none;
  }

  .quick-link {
    padding: 14px 12px;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .section { padding: 40px 16px; }
  .section-title { font-size: 1.25rem; }

  .news-item {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 14px 16px;
  }

  .news-date { min-width: auto; }

  .event-grid { grid-template-columns: 1fr; }

  /* スマホではイベントカードを4つまで表示 */
  .event-card--pc-only { display: none; }

  .facility-grid { grid-template-columns: 1fr; }

  .facility-card { aspect-ratio: 16 / 9; }

  .about-specs { grid-template-columns: 1fr 1fr; gap: 12px; }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-day-date {
    font-size: 1rem;
  }

  .status-month-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .status-month-num { font-size: 1.25rem; }
  .status-month-btn { padding: 12px 6px; }

  .sns-embed-grid {
    grid-template-columns: 1fr;
  }
  /* SP: 横幅が狭いと縦長(細長)に見えるため、X・Facebook とも 16:9 に揃える。
     カードは1カラムなので互いの高さを厳密に合わせる必要はない。 */
  .sns-x-figure img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .sns-x-figure__cap { padding: 12px 12px 52px; }
  .sns-embed-card iframe {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .reservation-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }

  .site-footer-main { padding: 32px 16px 20px; }

  /* フッター: ブランド部は全幅、リンク3列は2列グリッド */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .footer-inner > .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .footer-heading { margin-bottom: 10px; }

  .footer-links-list { gap: 6px; }

  .footer-links-list a { font-size: 0.875rem; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .back-to-top {
    /* 固定タブバー(58px)の上へ押し上げて衝突回避 */
    bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 14px);
    right: 12px;
    width: 56px;
    height: 56px;
  }
  .back-to-top-icon { width: 20px; height: 14px; }
  .back-to-top-text { font-size: 0.8125rem; }

  .side-nav {
    top: var(--header-height);
  }

  .lang-grid { gap: 6px; }
}

/* ════════════════════════════════════════
   ギャラリー（gallery-modern.html）
   ════════════════════════════════════════ */
.gallery-section {
  padding: 56px 24px;
  background: var(--color-bg);
}
.gallery-section .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.gallery-intro {
  text-align: left;
  color: #1a1a1a;
  font-size: 1rem;
  margin: 0 0 12px;
  line-height: 1.8;
}
.gallery-notice {
  text-align: left;
  color: #1a1a1a;
  font-size: 1rem;
  margin: 0 0 28px;
  line-height: 1.8;
}
.gallery-notice__warn { color: #d32f2f; }
.gallery-notice a {
  color: #0000ee;
  text-decoration: underline;
}
.gallery-notice a:visited { color: #551a8b; }

/* カテゴリタブ */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.gallery-tab {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--color-border, #e2e8f0);
  background: #fff;
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition, 0.2s ease);
  font-family: inherit;
}
.gallery-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.gallery-tab--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.gallery-tab--active:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* 敷き詰め(Flickr風)ジャスティファイド: フレックスで各行を幅いっぱいに伸長。
   各アイテムは縦横比 --ar をサーバ側から受け取り、行高 --row-h を基準に幅を決める。
   フィルタ(display:none)・リサイズに自動追従するため JS 不要。 */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  --row-h: 260px;
}
/* 最終行が不自然に伸びないよう、余白を吸収するセンチネル(疑似要素) */
.gallery-grid::after {
  content: '';
  flex-grow: 999;
}
@media (max-width: 1024px) {
  .gallery-grid { --row-h: 220px; }
}
@media (max-width: 768px) {
  .gallery-section { padding: 40px 16px; }
  .gallery-grid { --row-h: 180px; gap: 8px; }
  .gallery-tab { font-size: 0.875rem; padding: 6px 14px; }
}
@media (max-width: 399px) {
  .gallery-grid { --row-h: 150px; gap: 6px; }
}

/* アイテム: 行高で高さ固定、縦横比に応じて幅が伸縮 */
.gl-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f5f9;
  height: var(--row-h);
  flex: var(--ar, 1.3333) 1 calc(var(--ar, 1.3333) * var(--row-h));
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.gl-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
/* hover: 画像をゆっくりズーム */
.gl-item:hover img { transform: scale(1.06); }

/* 左上のカテゴリバッジ (白背景 pill + カテゴリ色テキスト) */
.gl-item-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 2;
}
.gl-item-badge--facility { color: #1d4ed8; }   /* blue */
.gl-item-badge--event    { color: #2563eb; }   /* blue (イベント・大会) */
.gl-item-badge--sports   { color: #047857; }   /* green */
.gl-item-badge--other    { color: #6b7280; }   /* gray */

/* キャプション: 通常時は隠し、ホバーで下からスライドイン */
.gl-item-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  text-align: left;
  pointer-events: none;
  letter-spacing: 0.02em;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gl-item:hover .gl-item-caption,
.gl-item:focus-visible .gl-item-caption {
  opacity: 1;
  transform: translateY(0);
}
/* 季節フィルタ（カテゴリの2段目）。カテゴリより小さめのチップで。 */
.gallery-seasons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -12px 0 24px;
  font-size: 0.8125rem;
}
.gallery-seasons-label {
  color: var(--color-text-light, #64748b);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-right: 6px;
}
.gallery-season {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--color-border, #e2e8f0);
  background: #fff;
  color: var(--color-text-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.gallery-season:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.gallery-season--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* 種類フィルタ（写真/動画）— 季節行と同じ見た目の二次フィルタ */
.gallery-media {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -12px 0 24px;
  font-size: 0.8125rem;
}
.gallery-media-label {
  color: var(--color-text-light, #64748b);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-right: 6px;
}
.gallery-mediatype {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--color-border, #e2e8f0);
  background: #fff;
  color: var(--color-text-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.gallery-mediatype:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.gallery-mediatype--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
/* アクティブ時はホバーでも白を維持（:hover の方が --active より詳細度が高く、
   通年(all_year)/写真/動画 で文字が青に戻ってしまうのを防ぐ）。 */
.gallery-season--active:hover,
.gallery-mediatype--active:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.gallery-season[data-season="spring"]                 { color: #c2348c; border-color: #fbcfe8; }
.gallery-season[data-season="spring"]:hover           { color: #c2348c; border-color: #c2348c; }
.gallery-season--active[data-season="spring"],
.gallery-season--active[data-season="spring"]:hover   { background: #c2348c; border-color: #c2348c; color: #fff; }
.gallery-season[data-season="summer"]                 { color: #0284c7; border-color: #bae6fd; }
.gallery-season[data-season="summer"]:hover           { color: #0284c7; border-color: #0284c7; }
.gallery-season--active[data-season="summer"],
.gallery-season--active[data-season="summer"]:hover   { background: #0284c7; border-color: #0284c7; color: #fff; }
.gallery-season[data-season="autumn"]                 { color: #c2410c; border-color: #fed7aa; }
.gallery-season[data-season="autumn"]:hover           { color: #c2410c; border-color: #c2410c; }
.gallery-season--active[data-season="autumn"],
.gallery-season--active[data-season="autumn"]:hover   { background: #c2410c; border-color: #c2410c; color: #fff; }
.gallery-season[data-season="winter"]                 { color: #475569; border-color: #cbd5e1; }
.gallery-season[data-season="winter"]:hover           { color: #475569; border-color: #475569; }
.gallery-season--active[data-season="winter"],
.gallery-season--active[data-season="winter"]:hover   { background: #475569; border-color: #475569; color: #fff; }

/* GLightbox: 説明文と撮影者の小さな枠を画像の下に整列 */
.glightbox-container .gslide-description {
  position: relative;
  text-align: left;
  padding-right: 14px;
}
.glightbox-container .gslide-desc { line-height: 1.6; }
.glightbox-container .gl-desc-text {
  display: block;
  font-size: 0.9375rem;
  color: #fff;
}
/* 付帯設備モーダル内の Google Maps リンク */
.glightbox-container .gl-map-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #7cc0ff;
  text-decoration: underline;
}
.glightbox-container .gl-map-link:hover { color: #a9d6ff; }

/* /summary/ 付帯設備モーダル限定（<html class="room-lb">）。
   GLightbox はギャラリーと共有のため room-lb スコープで分離。
   ・SP: GLightbox は説明を画像下に出す → 暗いキャプション帯 + 白文字
   ・PC: GLightbox は白いサイドパネルを出す → 白枠のまま黒文字 */
@media (max-width: 768px) {
  html.room-lb .glightbox-container .gslide-description {
    text-align: left;
    background: rgba(0, 0, 0, 0.6);
    padding: 14px 18px;
    border-radius: 10px;
    margin-top: 12px;
    max-width: 720px;
  }
  html.room-lb .glightbox-container .gslide-title {
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 6px;
  }
  html.room-lb .glightbox-container .gslide-desc,
  html.room-lb .glightbox-container .gl-desc-text { color: #fff; }
  html.room-lb .glightbox-container .gl-map-link { color: #9ed0ff; }
}
@media (min-width: 769px) {
  /* 白パネルは GLightbox 既定のまま。文字だけ黒系にして可読化 */
  html.room-lb .glightbox-container .gslide-title {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 6px;
  }
  html.room-lb .glightbox-container .gslide-desc,
  html.room-lb .glightbox-container .gl-desc-text { color: #1a1a1a; }
  html.room-lb .glightbox-container .gl-map-link { color: #1565c0; }
}
.glightbox-container .gl-credit-tag {
  position: absolute;
  right: 8px;
  bottom: 6px;
  display: inline-block;
  font-size: 0.6875rem;
  line-height: 1;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
/* 撮影者クレジットの「Created by」前置き（やや控えめに） */
.glightbox-container .gl-credit-by {
  font-weight: 400;
  opacity: 0.8;
  margin-right: 3px;
}

/* 画像のダウンロード抑止: ドラッグ/長押し/選択を無効化。
   完全防止はできない（スクショ等は可能）が、一般操作での保存を抑止する。 */
.gl-item,
.gl-item img,
.glightbox-container img,
.gslide-image img {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none; /* iOS の長押しメニューを抑止 */
}

/* カテゴリラベル (小さい pill) */
.gl-item-cat {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.92);
  color: #1d4ed8;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
/* カテゴリ別カラー: 写真上のバッジと絞り込みタブで配色を揃える
   ── スポーツ=青 / イベント・大会=緑 / その他=グレー / 施設=ブランド青 */
.gl-item-cat--sports   { background: #e3f2fd; color: #1565c0; }
.gl-item-cat--event    { background: #e8f5e9; color: #2e7d32; }
.gl-item-cat--other    { background: #eeeeee; color: #616161; }
.gl-item-cat--facility { background: #eff6ff; color: #1d4ed8; }

.gallery-tab[data-category="sports"]                { color: #1565c0; border-color: #bfdbfe; }
.gallery-tab[data-category="sports"]:hover          { color: #1565c0; border-color: #1565c0; }
.gallery-tab--active[data-category="sports"],
.gallery-tab--active[data-category="sports"]:hover  { background: #1565c0; border-color: #1565c0; color: #fff; }

.gallery-tab[data-category="event"]                { color: #2e7d32; border-color: #c7e9c9; }
.gallery-tab[data-category="event"]:hover          { color: #2e7d32; border-color: #2e7d32; }
.gallery-tab--active[data-category="event"],
.gallery-tab--active[data-category="event"]:hover  { background: #2e7d32; border-color: #2e7d32; color: #fff; }

.gallery-tab[data-category="other"]                { color: #616161; border-color: #d4d4d4; }
.gallery-tab[data-category="other"]:hover          { color: #616161; border-color: #616161; }
.gallery-tab--active[data-category="other"],
.gallery-tab--active[data-category="other"]:hover  { background: #616161; border-color: #616161; color: #fff; }
.gl-item-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}
@media (max-width: 768px) {
  .gl-item-title { font-size: 0.8125rem; }
  .gl-item-caption { padding: 28px 12px 11px; }
}
/* モーション抑制: ズーム・スライドを無効化し常時表示 */
@media (prefers-reduced-motion: reduce) {
  .gl-item img { transition: none; }
  .gl-item:hover img { transform: none; }
  .gl-item-caption {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ─ ページネーション (参考画像準拠) ─ */
.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.gp-page,
.gp-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 50%;
  color: var(--color-primary, #1d4ed8);
  text-decoration: none;
  transition: background 0.15s ease;
}
.gp-next {
  border-radius: 6px;
  gap: 4px;
}
.gp-page:hover,
.gp-next:hover { background: rgba(29, 78, 216, 0.08); }
.gp-page.is-current {
  background: var(--color-primary, #1d4ed8);
  color: #fff;
}
.gp-page.is-current:hover { background: var(--color-primary, #1d4ed8); }
.gp-ellipsis {
  color: var(--color-text-light, #64748b);
  padding: 0 4px;
  letter-spacing: 0.1em;
}

/* 動画プレイマーク */
.gl-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* 再生時のプレーヤーボタンに合わせ、円形ではなく角丸の長方形(YouTube風)にする */
  width: 72px;
  height: 50px;
  border-radius: 14px;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gl-play-badge svg { width: 26px; height: 26px; fill: #fff; margin-left: 2px; display: block; }

/* 360度動画バッジ（右上）。360度動画であることを示す pill。 */
.gl-badge-360 {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
  line-height: 1;
}
.gl-badge-360::before {
  content: '';
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: no-repeat center / contain;
          mask: no-repeat center / contain;
  /* くるりと回る矢印（360度を示すアイコン） */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6V3L8 7l4 4V8c2.76 0 5 2.24 5 5 0 .85-.21 1.65-.6 2.35l1.46 1.46A6.96 6.96 0 0 0 19 13c0-3.87-3.13-7-7-7zm0 12c-2.76 0-5-2.24-5-5 0-.85.21-1.65.6-2.35L6.14 9.19A6.96 6.96 0 0 0 5 13c0 3.87 3.13 7 7 7v3l4-4-4-4v3z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6V3L8 7l4 4V8c2.76 0 5 2.24 5 5 0 .85-.21 1.65-.6 2.35l1.46 1.46A6.96 6.96 0 0 0 19 13c0-3.87-3.13-7-7-7zm0 12c-2.76 0-5-2.24-5-5 0-.85.21-1.65.6-2.35L6.14 9.19A6.96 6.96 0 0 0 5 13c0 3.87 3.13 7 7 7v3l4-4-4-4v3z'/%3E%3C/svg%3E");
}
/* 360度動画スライド: Plyr(GLightbox内蔵)を回避し、素のYouTube iframeを
   inlineスライドで埋め込むためのラッパー。PCはドラッグで視点を動かせる。 */
.gl-360-wrap {
  /* スライド枠(GLightboxの width/height オプションで画面サイズに合わせて確定済み)を
     そのまま埋める。16:9 には固定しない。中身=枠で一致するためスクロールバーは出ない。
     映像の縦横比は YouTube プレーヤーが枠内に収める。 */
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gl-360-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
/* 360度動画スライド内の説明文オーバーレイ（プレーヤーを縮めずに枠内下部へ重ねる） */
.glightbox-container .gl-360-slide { position: relative; width: 100%; height: 100%; }
.glightbox-container .gl-360-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  text-align: left;
  pointer-events: none;   /* 360のドラッグ操作・再生コントロールを妨げない */
  z-index: 3;
  border-radius: 0 0 8px 8px;
}
.glightbox-container .gl-360-caption-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 4px;
}
.glightbox-container .gl-360-caption .gl-desc-text {
  display: block;
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.glightbox-container .gl-360-caption .gl-credit-tag {
  position: static;
  display: inline-block;
  margin-top: 8px;
}
/* スマホでスライドに到達した場合のアプリ起動リンク */
.gl-360-applink {
  display: inline-block;
  background: #fff;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
}
/* inlineスライドの既定の白枠・余白・高さ制限・スクロールを 360 用に解除する
   （:has 非対応ブラウザでも width/height ピクセル指定により枠＝中身で一致するため
     スクロールバーは出ない）。 */
.glightbox-container .gslide-inline:has(.gl-360-wrap),
.glightbox-container .ginlined-content:has(.gl-360-wrap) {
  padding: 0;
  background: transparent;
  max-height: none;
  overflow: hidden;
}

@media (max-width: 768px) {
  .gl-play-badge { width: 56px; height: 40px; border-radius: 11px; }
  .gl-play-badge svg { width: 20px; height: 20px; }
  .gl-item-caption { font-size: 0.8125rem; padding: 14px 10px 6px; }
}

/* カテゴリタブ絞り込み: JSが is-hidden を付与した項目は非表示
   （任意のカテゴリスラッグに対応するため、スラッグ固有CSSは廃止） */
.gallery-grid .gl-item.is-hidden { display: none; }

/* 注釈 */
.gallery-note {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  text-align: center;
}

/* TOP ページ用 ギャラリーセクション */
/* ギャラリー マーキー：右→左へゆっくり連続スクロール（無限ループ） */
.gallery-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  /* 左右端をふわっとフェードアウト */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.gallery-marquee-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: galleryMarquee 50s linear infinite;
}
.gallery-marquee:hover .gallery-marquee-track {
  animation-play-state: paused;
}
.gallery-marquee-item {
  flex: 0 0 auto;
  width: 300px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  display: block;
  background: #fff;
  text-decoration: none;
}
.gallery-marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}
.gallery-marquee-item:hover img { transform: scale(1.05); }
/* 右→左へ。複製1セットぶん(-50%)動かして継ぎ目なくループ */
@keyframes galleryMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .gallery-marquee-item { width: 220px; }
  .gallery-marquee-track { gap: 12px; animation-duration: 38s; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-marquee-track { animation: none; }
}

/* ════════════════════════════════════════
   イベント詳細ページ共通レイアウト（event-detail-*.html）
   ════════════════════════════════════════ */

/* セクション背景色 */
.event-section--1 { background: #F7FAFC; }
.event-section--2 { background: #F7FAFC; }
.event-section--3 { background: #F7FAFC; }
.event-section--4 { background: #F7FAFC; }

/* セクション内の event-body の上マージン解除（.section の padding で十分） */
.section > .section-inner > .event-body {
  margin: 0;
}

/* Section 1: 画像エリアと本文の間に区切り線 */
.event-section--1 > .section-inner > .event-body {
  border-top: 1px solid var(--color-border, #e2e8f0);
  padding-top: 32px;
}

/* お申込みはこちらボタンのスクロール先（固定ヘッダー分のオフセット） */
#apply-method {
  scroll-margin-top: var(--header-height, 72px);
}

/* 上部 2 カラム: 画像 + 基本情報 */
.event-top {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 32px;
  align-items: start;
  margin: 32px 0 40px;
}
.event-top-image {
  display: block;
  position: relative;
  width: 350px;
  max-width: 100%;
  height: 280px;
  background: #d9d9d9;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.event-top-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-top-image-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.event-top-image:hover .event-top-image-zoom {
  background: rgba(0,0,0,0.85);
}

.event-top-info {
  list-style: none;
  padding: 0;
  margin: 0;
}
.event-top-info > li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}
.event-top-info-label {
  flex: 0 0 auto;
  font-weight: 700;
  letter-spacing: 0.6em;
  margin-right: 8px;
  color: #0d47a1;
}
.event-top-info-value { flex: 1 1 auto; }

/* イベント概要 等の本文の中で使う水平区切り */
.event-divider {
  border: 0;
  border-top: 1px solid var(--color-border, #e2e8f0);
  margin: 28px 0;
}

/* 「お申込みはこちら」CTA ボタン */
.event-apply-cta {
  text-align: center;
  margin: 32px 0 40px;
}
.event-apply-btn {
  display: inline-block;
  padding: 14px 56px;
  background: #e8a04a;
  color: #fff;
  border: 2px solid #e8a04a;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background var(--transition, 0.2s ease), color var(--transition, 0.2s ease);
}
.event-apply-btn:hover {
  background: #fff;
  color: #e8a04a;
}

/* グレーボックス（持ち物・服装 / 注意事項） */
.event-info-box {
  background: #fff;
  padding: 18px 24px;
  margin: 0 0 24px;
}
.event-info-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* inline .event-body ul の padding-left を上書き */
.event-body .event-info-box ul {
  padding: 0;
}
.event-info-box ul > li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--color-text);
}
.event-info-box ul > li::before {
  content: '・';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-text);
}
/* 横並び（持ち物・服装 PC） */
.event-info-box .event-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* チェックマーク付き横並びリスト（持ち物・服装） */
.event-info-box .event-list-check {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.event-info-box .event-list-check > li {
  position: relative;
  padding-left: 22px;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--color-text);
}
.event-info-box .event-list-check > li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-text-light, #64748b);
  font-weight: 700;
}

/* 持ち物ボックス内の補足説明（インライン .event-body p より特定度を上げる） */
.event-info-box .event-info-box-note {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--color-text-light, #64748b);
  line-height: 1.7;
}

/* 申込方法 2 カラム CTA */
.event-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 8px;
}
.event-cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 24px;
  text-decoration: none;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background var(--transition, 0.2s ease), color var(--transition, 0.2s ease), border-color var(--transition, 0.2s ease);
}
.event-cta-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.event-cta-card-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.event-cta-card-org {
  font-size: 0.8125rem;
}
.event-cta-card-detail {
  font-size: 1rem;
  font-weight: 700;
  word-break: break-all;
}
.event-cta-card--tel  { background: #1565c0; border-color: #1565c0; }
.event-cta-card--mail { background: #c8963e; border-color: #c8963e; }
.event-cta-card--tel:hover  { background: #fff; color: #1565c0; }
.event-cta-card--mail:hover { background: #fff; color: #c8963e; }

/* 申込方法セクション内の開館・受付・休館日情報 */
.event-hours {
  margin-top: 32px;
  text-align: center;
}
.event-hours-grid {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  text-align: left;
  margin-bottom: 14px;
  align-items: flex-start;
  justify-content: center;
}
.event-hours-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.event-hours-row {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text);
}
.event-hours-row > strong {
  color: #0d47a1;
  min-width: 64px;
  flex: 0 0 auto;
}
.event-hours .event-hours-note {
  font-size: 0.875rem;
  color: var(--color-text-light, #64748b);
  margin: 0;
}
@media (max-width: 768px) {
  .event-hours-grid {
    gap: 8px 0;
    flex-direction: column;
  }
}

/* 申込方法のリード文の強調 */
.event-apply-emphasis { color: #d4831f; font-weight: 700; }

@media (max-width: 1240px) {
  .event-top { grid-template-columns: 320px 1fr; gap: 24px; }
  .event-top-image { width: 320px; height: 256px; }
}
@media (max-width: 768px) {
  .event-top {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px 0 32px;
  }
  .event-top-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 5 / 4;
    margin: 0 auto;
  }
  .event-top-info > li { font-size: 0.875rem; }
  .event-top-info-label { letter-spacing: 0.4em; }
  .event-apply-btn { padding: 12px 36px; font-size: 1rem; }
  .event-cta-grid { grid-template-columns: 1fr; }
  .event-info-box { padding: 14px 18px; }
  .event-info-box .event-list-inline { gap: 4px 18px; }
}

/* ════════════════════════════════════════
   共通: ページヒーロー / パンくず
   （以前は各 page-*.php の inline <style> に重複定義されていたが、
   single.php / single-event.php / archive-event.php / search.php からも
   利用するため共通化。個別ページの inline で背景画像を上書き可能。）
   ════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
              url('../images/slide_exterior.jpg') center/cover no-repeat;
  color: #fff;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
}
.page-hero h1 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.04em;
}
/* page-hero は site-wrap の上余白でヘッダー帯の下に配置されるため、
   ヒーロー内部の header 高さぶんの上余白は不要（二重防止）。 */
main .page-hero { padding-top: 0; }
@media (max-width: 768px) {
  .page-hero { height: 170px; }
  .page-hero h1 { font-size: 1.125rem; }
}

.breadcrumb {
  padding: 14px 24px;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.breadcrumb a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; color: var(--color-text-light); }

/* ════════════════════════════════════════
   WordPress 管理バー対応
   - .site-header と .side-nav が position: fixed top:0 のため、
     ログイン中の管理バー（fixed top:0 z-index 99999）と被ってしまう。
   - body.admin-bar 状態のときだけ、ヘッダーとサイドメニューを
     管理バーの分（PC 32px / SP 46px）下にずらす。
   - WP の breakpoint 782px に合わせる（768px ではない）。
   ════════════════════════════════════════ */
@media screen and (min-width: 783px) {
  body.admin-bar .site-header { top: 32px; }
  body.admin-bar .side-nav    { top: calc(32px + var(--header-height)); }
  body.admin-bar .menu-backdrop { top: 32px; }
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .side-nav    { top: calc(46px + var(--header-height)); }
  body.admin-bar .menu-backdrop { top: 46px; }
}

/* ─────────────────────────────────────────────────────────
   ページヒーロー v2 (TOP 以外の全ページ共通)
   PC: 左寄せタイトル + サブタイトル + 左濃グラデオーバーレイ
   SP: 中央寄せ + 薄青オーバーレイ
   ───────────────────────────────────────────────────────── */
.page-hero.page-hero--v2 {
  position: relative;
  /* 高さは可変(clamp)。中間幅では 24vw が効き比率は常に約4:1で一定。
     下限180px(SP担保) / 上限340px(大画面の細帯化防止)。 */
  height: clamp(180px, 24vw, 340px);
  /* site-wrap の上余白でヘッダー帯の下に置かれるため、内部の上余白は 0。
     タイトルは flex 中央寄せでヒーロー内に配置。 */
  padding: 0;
  text-align: center;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #0a1220 !important;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero.page-hero--v2::before {
  content: '';
  position: absolute;
  inset: 0;
  /* 青→緑の斜めグラデーション（爽やかな印象 / 文字可読性は確保） */
  background: linear-gradient(135deg, rgba(0, 68, 158, 0.58) 0%, rgba(31, 138, 85, 0.42) 100%);
  z-index: 1;
  pointer-events: none;
}
.page-hero.page-hero--v2 .page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}
.page-hero.page-hero--v2 .page-hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
}
.page-hero.page-hero--v2 .page-hero__sub {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 720px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
  /* 高さは clamp の下限180pxが担うため個別指定は不要（削除） */
  .page-hero.page-hero--v2 .page-hero__inner {
    padding: 0 24px;
  }
  .page-hero.page-hero--v2 .page-hero__title {
    font-size: 1.5rem;
    margin: 0 0 8px;
  }
  .page-hero.page-hero--v2 .page-hero__sub {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0 auto;
  }
}

/* ───── 予約 注意書きバー (TOP本日明日 / /reservation/ 共通) ───── */
.reservation-notice {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #1a1a1a;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.reservation-notice__icon {
  width: 16px; height: 16px;
  fill: #1565c0;
  vertical-align: -3px;
  margin-right: 6px;
}
.reservation-notice__tel {
  color: #1565c0;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.reservation-notice__tel:hover { color: #0d47a1; }
/* /reservation/ 月別カレンダー下の注意書き: 淡い枠で軽く強調 */
.reservation-notice--card {
  margin-top: 28px;
  padding: 14px 18px;
  background: #eef7ef;
  border: 1px solid #cfe7d2;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .reservation-notice { font-size: 0.875rem; }
  .reservation-notice--card { padding: 12px 14px; }
}

/* ───── 教室カード (グローバル: archive-lesson と TOP 教室セクションで共有) ───── */
/* 横長バー型: 左=画像 / 右=タイトル+説明。カード全体リンク + ホバー(薄膜/拡大/色変化)は維持 */
.lesson-grid { display: flex; flex-direction: column; gap: 16px; }
.lesson-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; color: var(--color-text); display: flex; flex-direction: row; align-items: stretch;
  text-decoration: none; min-height: 150px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lesson-card-thumb { position: relative; width: 260px; flex-shrink: 0; overflow: hidden; background: linear-gradient(135deg, #e8f5e9, #a5d6a7); display: block; }
.lesson-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.lesson-card-thumb .placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #2e7d32; font-size: 0.875rem; font-weight: 700;
}
.lesson-card-thumb .placeholder svg { width: 48px; height: 48px; fill: #2e7d32; opacity: 0.35; }
.lesson-card-film {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.lesson-card-body { padding: 18px 24px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.lesson-card-title { font-size: 1.0625rem; font-weight: 800; line-height: 1.5; margin: 0; color: #0d47a1; }
.lesson-card-excerpt {
  font-size: 0.875rem; line-height: 1.6; color: var(--color-text-light); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .lesson-card:hover .lesson-card-film { opacity: 1; }
  .lesson-card:hover .lesson-card-thumb img { transform: scale(1.05); }
  .lesson-card:hover .lesson-card-title { color: #1565c0; }
}

@media screen and (max-width: 768px) {
  /* SP も横長バーを維持: 画像を小さく */
  .lesson-card { min-height: 104px; }
  .lesson-card-thumb { width: 120px; }
  .lesson-card-body { padding: 12px 14px; }
  .lesson-card-title { font-size: 0.9375rem; }
  .lesson-card-excerpt { font-size: 0.8125rem; }
}
