/* ============================================================
   コスモアイル羽咋 — site.css
   ------------------------------------------------------------
   構成:
     1. デザイントークン
     2. リセット & ベース
     3. ユーティリティ
     4. レイアウト
     5. タイポグラフィ
     6. ボタン
     7. カード
     8. ヘッダー / ナビ / モバイルメニュー
     9. フッター
    10. ヒーロー
    11. クイックインフォ・dl
    12. セクション共通
    13. 展示カード・ハイライト・地図埋め込み 等
    14. レスポンシブ調整
   ============================================================ */


/* ------------------------------------------------------------
   1. デザイントークン
   ------------------------------------------------------------ */
:root {
  /* カラー */
  --space-black:   #0A0E1A;
  --nebula-navy:   #0F1F3D;
  --cosmic-gold:   #F0C040;
  --nebula-purple: #7B2FBE;
  --starlight:     #F0F4FF;
  --lunar-gray:    #9BA8C0;
  --aurora-green:  #00D4AA;

  --color-bg:        var(--space-black);
  --color-bg-card:   rgba(15, 31, 61, 0.5);   /* nebula-navy 50% */
  --color-border:    rgba(255, 255, 255, 0.1);
  --color-border-strong: rgba(255, 255, 255, 0.3);

  /* タイポグラフィ */
  --font-body:    'Noto Sans JP', system-ui, sans-serif;
  --font-heading: 'Noto Sans JP', system-ui, sans-serif;
  --font-en:      'Space Grotesk', system-ui, sans-serif;

  /* スペーシング */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* 角丸 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* シャドウ */
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);

  /* レイアウト */
  --container-max: 80rem;        /* 1280px */
  --header-height: 5rem;         /* 80px */
}


/* ------------------------------------------------------------
   2. リセット & ベース
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--starlight);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}
body {
  margin: 0;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin: 0;
  line-height: 1.25;
}
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }
img { vertical-align: middle; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
input, textarea, select { font-family: inherit; color: inherit; }

::selection { background-color: var(--cosmic-gold); color: var(--space-black); }

:focus-visible {
  outline: 2px solid var(--cosmic-gold);
  outline-offset: 2px;
}


/* ------------------------------------------------------------
   3. ユーティリティ
   ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--cosmic-gold);
  color: var(--space-black);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 1rem; }


/* ------------------------------------------------------------
   4. レイアウト
   ------------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 640px)  { .container { padding: 0 var(--space-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-8); } }

main {
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}


/* ------------------------------------------------------------
   5. タイポグラフィ
   ------------------------------------------------------------ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  color: var(--cosmic-gold);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow--wide { letter-spacing: 0.35em; }

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--starlight);
  line-height: 1.2;
}
@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

.text-gold  { color: var(--cosmic-gold); }
.text-lunar { color: var(--lunar-gray); }
.text-en    { font-family: var(--font-en); }


/* ------------------------------------------------------------
   6. ボタン
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  text-align: center;
  line-height: 1.2;
}
.btn--primary {
  background: var(--cosmic-gold);
  color: var(--space-black);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: #FCD34D;
}
.btn--secondary {
  border: 1px solid var(--color-border-strong);
  color: var(--starlight);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}
.btn--ghost {
  border: 1px solid rgba(240, 192, 64, 0.3);
  color: var(--cosmic-gold);
  border-radius: var(--radius-full);
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: rgba(240, 192, 64, 0.1);
}
.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}


/* ------------------------------------------------------------
   7. カード
   ------------------------------------------------------------ */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.card--hover { transition: border-color 0.2s, background 0.2s; }
.card--hover:hover,
.card--hover:focus-within {
  border-color: rgba(240, 192, 64, 0.4);
  background: rgba(15, 31, 61, 0.7);
}
.card--gold {
  border-color: rgba(240, 192, 64, 0.3);
}
.card__body { padding: var(--space-6) var(--space-7, 1.75rem); }


/* ------------------------------------------------------------
   8. ヘッダー
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.8);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.site-header__logo img {
  height: 3rem;
  width: auto;
  transition: opacity 0.2s;
}
@media (min-width: 640px) {
  .site-header__logo img { height: 3.5rem; }
}
.site-header__logo:hover img { opacity: 0.8; }

/* デスクトップナビ */
.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
}
@media (min-width: 1024px) {
  .site-nav { display: flex; }
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.site-nav__item {
  position: relative;
}
.site-nav__link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: 0.875rem;
  color: var(--lunar-gray);
  border-radius: var(--radius-sm);
}
.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__item:hover .site-nav__link,
.site-nav__item:focus-within .site-nav__link {
  color: var(--starlight);
}
.site-nav__link.is-current { color: var(--cosmic-gold); }
.mobile-menu__link.is-current { color: var(--cosmic-gold); }
.site-nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  margin-top: var(--space-1);
  padding: var(--space-1) 0;
  background: var(--nebula-navy);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.site-nav__item:hover .site-nav__sub,
.site-nav__item:focus-within .site-nav__sub {
  opacity: 1;
  visibility: visible;
}
.site-nav__sublink {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  color: var(--lunar-gray);
}
.site-nav__sublink:hover,
.site-nav__sublink:focus-visible {
  color: var(--starlight);
  background: rgba(255, 255, 255, 0.05);
}
.site-nav__lang {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0.375rem var(--space-3);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--lunar-gray);
  border: 1px solid rgba(155, 168, 192, 0.4);
  border-radius: var(--radius-sm);
}
.site-nav__lang:hover,
.site-nav__lang:focus-visible {
  color: var(--cosmic-gold);
  border-color: var(--cosmic-gold);
}

/* ハンバーガーボタン */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  color: var(--lunar-gray);
  border-radius: var(--radius-sm);
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}
.menu-toggle:hover,
.menu-toggle:focus-visible { color: var(--starlight); }
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--menu  { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }


/* モバイルメニュー */
.mobile-menu {
  position: absolute;
  top: var(--header-height);
  left: 0; right: 0;
  background: rgba(10, 14, 26, 0.95);
  border-top: 1px solid var(--color-border);
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}
.mobile-menu__nav {
  padding: var(--space-4) var(--space-4) var(--space-10);
}
.mobile-menu__list > li {
  padding: var(--space-1) 0;
}
.mobile-menu__link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: 0.95rem;
  color: var(--starlight);
}
.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  color: var(--cosmic-gold);
}
.mobile-menu__sub { padding-left: var(--space-4); }
.mobile-menu__sublink {
  display: block;
  padding: 0.375rem var(--space-3);
  font-size: 0.75rem;
  color: var(--lunar-gray);
}
.mobile-menu__sublink:hover,
.mobile-menu__sublink:focus-visible { color: var(--starlight); }

body.is-menu-open { overflow: hidden; }


/* ------------------------------------------------------------
   9. フッター
   ------------------------------------------------------------ */
.site-footer {
  background: var(--nebula-navy);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-24);
}
/* 左右は .container のパディングに任せる（shorthand で 0 上書きするとスマホで
   テキストが左端に張り付く。2026-08-29 現場指摘で修正） */
.site-footer__inner {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); }
}
.site-footer__logo img {
  height: 3rem;
  width: auto;
  margin-bottom: var(--space-4);
}
@media (min-width: 640px) {
  .site-footer__logo img { height: 3.5rem; }
}
.site-footer__address, .site-footer__hours {
  font-size: 0.75rem;
  color: var(--lunar-gray);
  line-height: 1.7;
}
.site-footer__hours { margin-top: var(--space-4); }
.site-footer__heading {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cosmic-gold);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  margin-top: var(--space-6);
  font-weight: 700;
}
.site-footer__heading:first-child { margin-top: 0; }
.site-footer__col--brand .site-footer__heading { display: none; }
.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.875rem;
}
.site-footer__list a {
  color: var(--lunar-gray);
}
.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  color: var(--starlight);
}
.site-footer__social {
  display: flex;
  gap: var(--space-3);
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  color: var(--lunar-gray);
}
.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  border-color: var(--cosmic-gold);
  color: var(--cosmic-gold);
}
.site-footer__social .icon { width: 1.25rem; height: 1.25rem; }
.site-footer__lang-link {
  display: inline-block;
  margin-top: var(--space-6);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--lunar-gray);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
}
.site-footer__lang-link:hover,
.site-footer__lang-link:focus-visible {
  color: var(--starlight);
  border-color: rgba(255, 255, 255, 0.5);
}
.site-footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--lunar-gray);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.site-footer__bottom-sub { color: rgba(155, 168, 192, 0.7); }
.site-footer__bottom-links { margin-top: var(--space-2); }
.site-footer__bottom-links a:hover,
.site-footer__bottom-links a:focus-visible {
  color: var(--starlight);
}
@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }
  .site-footer__bottom-links { margin-top: 0; }
}


/* ------------------------------------------------------------
  10. ヒーロー（ページ共通／トップ専用は別途）
   ------------------------------------------------------------ */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-12) 0 var(--space-12);
  overflow: hidden;
}
.page-hero--tall { min-height: 55vh; padding-bottom: var(--space-16); }
.page-hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.page-hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--space-black) 0%, rgba(10,14,26,0.5) 50%, rgba(10,14,26,0.1) 100%);
  z-index: 1;
}
.page-hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(123, 47, 190, 0.18), transparent 55%);
  z-index: 1;
  pointer-events: none;
}
.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.page-hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-3);
  color: var(--starlight);
}
@media (min-width: 640px) {
  .page-hero__title { font-size: 3rem; }
}
.page-hero__lead {
  max-width: 36rem;
  font-size: 1rem;
  color: var(--lunar-gray);
  line-height: 1.7;
}
@media (min-width: 640px) {
  .page-hero__lead { font-size: 1.125rem; }
}


/* ------------------------------------------------------------
  11. トップページ ヒーロー（フル）
   ------------------------------------------------------------ */
.home-hero {
  position: relative;
  /* 100vh は下部が空きすぎるため縮小（ミッションボード追加・2026-08-29） */
  min-height: min(92svh, 54rem);
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-10);
  overflow: hidden;
  background: var(--space-black);
}
@media (min-width: 640px) {
  .home-hero { padding-bottom: 8rem; }
}
.home-hero__fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.home-hero__video-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.home-hero__video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  border: 0;
}
.home-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,14,26,0.3) 0%, rgba(10,14,26,0.55) 50%, var(--space-black) 100%);
  z-index: 2;
  pointer-events: none;
}
.home-hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 30%, rgba(123,47,190,0.2) 0%, transparent 55%);
  z-index: 2;
  pointer-events: none;
}
.home-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
}
.home-hero__overline {
  display: block;
  color: var(--cosmic-gold);
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: var(--space-5);
}
@media (min-width: 640px) {
  .home-hero__overline { font-size: 0.875rem; }
}
.home-hero__title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--starlight);
  margin-bottom: var(--space-6);
}
@media (min-width: 640px) { .home-hero__title { font-size: 3.75rem; } }
@media (min-width: 768px) { .home-hero__title { font-size: 4.5rem; } }
.home-hero__lead {
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--lunar-gray);
  margin-bottom: var(--space-10);
}
@media (min-width: 640px) { .home-hero__lead { font-size: 1.25rem; } }
.home-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .home-hero__actions { flex-direction: row; }
}
.home-hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(155, 168, 192, 0.6);
  animation: bounce 2s infinite;
}
.home-hero__scroll-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.home-hero__scroll .icon { width: 1rem; height: 1rem; }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* 音量切替 */
.mute-toggle {
  position: absolute;
  top: calc(var(--header-height) + var(--space-4));
  right: var(--space-4);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border-strong);
  color: var(--starlight);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  transition: background 0.2s, border-color 0.2s;
}
@media (min-width: 640px) {
  .mute-toggle { right: var(--space-6); padding: 0.625rem 1rem; }
}
.mute-toggle:hover,
.mute-toggle:focus-visible {
  background: rgba(10, 14, 26, 0.9);
  border-color: rgba(240, 192, 64, 0.5);
}
.mute-toggle .icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.mute-toggle .icon--on { display: none; }
.mute-toggle[data-muted="false"] .icon--muted { display: none; }
.mute-toggle[data-muted="false"] .icon--on    { display: block; }


/* ------------------------------------------------------------
  12. クイックインフォ・dl
   ------------------------------------------------------------ */
.quick-info {
  background: rgba(15, 31, 61, 0.7);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}
.quick-info__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  text-align: center;
}
@media (min-width: 640px) {
  .quick-info__grid { grid-template-columns: repeat(4, 1fr); }
}
.quick-info__label {
  font-family: var(--font-en);
  color: var(--cosmic-gold);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.quick-info__value {
  color: var(--starlight);
  font-weight: 700;
  font-size: 0.9rem;
}
@media (min-width: 640px) { .quick-info__value { font-size: 1rem; } }
.quick-info__note {
  color: var(--lunar-gray);
  font-size: 0.6875rem;
  margin-top: 2px;
}


/* ------------------------------------------------------------
  13. セクション共通
   ------------------------------------------------------------ */
/* 縦だけを指定する（padding ショートハンドは禁止）。
   `<div class="container section">` のように .container と同居する使い方が全41ページに
   あり、ショートハンドだと .container の左右パディングを 0 で打ち消して本文が画面端に
   張り付く（2026-08-29 ショップの指摘で発覚。フッターと同じ病気）。 */
.section {
  /* 旧: 上下 96px 固定はセクション間が 192px 空き「間延び」の原因（2026-08-29 改定） */
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.section--narrow { padding-block: var(--space-16); }
.section--top    { padding-top: var(--space-12); }
.section--gradient {
  background: linear-gradient(to bottom, var(--space-black), rgba(15, 31, 61, 0.15), var(--space-black));
}

.section-head {
  margin-bottom: var(--space-12);
}
.section-head--inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.section-head__lead {
  max-width: 36rem;
  color: var(--lunar-gray);
  margin-top: var(--space-3);
  line-height: 1.7;
}


/* ------------------------------------------------------------
   ハイライト（画像 + テキスト split）
   ------------------------------------------------------------ */
.highlight {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(15, 31, 61, 0.3);
}
@media (min-width: 1024px) {
  /* 写真素材が横長のため画像列を広めに取る（2026-08-29 施主指示） */
  .highlight { grid-template-columns: 1.15fr 1fr; }
  .highlight--reverse { grid-template-columns: 1fr 1.15fr; }
}
.highlight--reverse .highlight__image { order: 2; }
@media (max-width: 1023px) {
  .highlight--reverse .highlight__image { order: 0; }
}
.highlight__image {
  position: relative;
  /* 固定高さをやめ横長比率に（両サイドの切れと縦の間延びを防ぐ） */
  aspect-ratio: 16 / 9;
}
@media (min-width: 1024px) {
  /* PC でも 3:2 の「額装写真」にする。stretch のままだと本文の高さに引き伸ばされて
     ほぼ正方形にトリミングされ、横長素材の両サイドが切れる（2026-08-29 施主指摘）。
     align-self を stretch 以外にしないと aspect-ratio が無視される点に注意。 */
  .highlight__image {
    aspect-ratio: 3 / 2;
    align-self: center;
    margin: var(--space-6);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .highlight--reverse .highlight__image { margin: var(--space-6); }
  /* 額装したぶん本文側の余白は詰める */
  .highlight__body { padding: var(--space-10) var(--space-10); }
}
.highlight__image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.highlight__image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(10,14,26,0.6));
}
@media (min-width: 1024px) {
  .highlight__image::after {
    background: linear-gradient(to right, transparent, rgba(10,14,26,0.3));
  }
}
.highlight__body {
  position: relative;
  background: rgba(15, 31, 61, 0.3);
  display: flex;
  align-items: center;
  padding: var(--space-12) var(--space-8);
}
@media (min-width: 640px)  { .highlight__body { padding: var(--space-12) var(--space-12); } }
@media (min-width: 1024px) { .highlight__body { padding: var(--space-16) var(--space-12); } }
.highlight__body-inner { max-width: 32rem; }
.highlight__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: var(--space-4) 0 var(--space-6);
  line-height: 1.2;
}
@media (min-width: 640px) { .highlight__title { font-size: 2.25rem; } }
.highlight__text {
  color: var(--lunar-gray);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.highlight__text:last-of-type { margin-bottom: var(--space-8); }
.highlight__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}


/* ------------------------------------------------------------
   展示カード（4:3 アスペクト・画像オーバーレイ）
   ------------------------------------------------------------ */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .feature-cards { grid-template-columns: 1fr 1fr; }
}
.feature-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;   /* 写真素材（3:2 横長）に合わせる */
  /* 【禁止】ここに min-height を足さないこと。aspect-ratio と併記すると高さが確定し、
     幅が「高さ×比率」で決まって列幅を無視 → グリッドからはみ出し横スクロールが出る
     （2026-08-29 ショップの商品カテゴリーで実害）。低すぎる場合は列幅を広げて解決する。 */
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.feature-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.feature-card:hover img,
.feature-card:focus-visible img { transform: scale(1.05); }
.feature-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.95) 0%, rgba(10,14,26,0.4) 50%, transparent 100%);
  transition: background 0.5s;
}
.feature-card:hover .feature-card__overlay { background: linear-gradient(to top, rgba(10,14,26,0.95) 0%, rgba(10,14,26,0.3) 50%, transparent 100%); }
.feature-card__label {
  position: absolute;
  top: var(--space-4); left: var(--space-4);
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--cosmic-gold);
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid rgba(240, 192, 64, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
.feature-card__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-5);
}
@media (min-width: 640px) {
  .feature-card__caption { padding: var(--space-6); }
}
.feature-card__title {
  color: var(--starlight);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-2);
  transition: color 0.3s;
}
.feature-card:hover .feature-card__title { color: var(--cosmic-gold); }
.feature-card__desc {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  line-height: 1.65;
  /* 説明文が長いカードでも高さが破綻しないよう 3 行で打ち切る */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--cosmic-gold);
  font-size: 0.75rem;
  margin-top: var(--space-4);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.feature-card:hover .feature-card__more,
.feature-card:focus-visible .feature-card__more {
  opacity: 1;
  transform: translateY(0);
}


/* ------------------------------------------------------------
   インフォブロック（展示情報・上映情報パネル）
   ------------------------------------------------------------ */
.info-panel {
  background: rgba(15, 31, 61, 0.5);
  border: 1px solid rgba(240, 192, 64, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-7, 1.75rem);
}
.info-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.info-panel__cell {
  background: rgba(15, 31, 61, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.625rem 0.75rem;
}
.info-panel__key {
  color: var(--cosmic-gold);
  font-size: 0.625rem;
  margin-bottom: 2px;
}
.info-panel__value {
  color: var(--starlight);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.25;
}
@media (min-width: 640px) { .info-panel__value { font-size: 0.875rem; } }
.info-panel__sub {
  color: var(--lunar-gray);
  font-size: 0.625rem;
  margin-top: 2px;
  line-height: 1.25;
}


/* ------------------------------------------------------------
   4 カラム情報グリッド（来館の準備 / カテゴリ）
   ------------------------------------------------------------ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .info-grid { grid-template-columns: repeat(4, 1fr); }
}
.info-grid__card {
  display: block;
  background: rgba(15, 31, 61, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, background 0.2s;
}
.info-grid__card:hover,
.info-grid__card:focus-visible {
  border-color: rgba(240, 192, 64, 0.4);
  background: rgba(15, 31, 61, 0.7);
}
.info-grid__en {
  font-family: var(--font-en);
  color: var(--cosmic-gold);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.info-grid__title {
  color: var(--starlight);
  font-weight: 700;
  margin-bottom: var(--space-2);
  transition: color 0.2s;
}
.info-grid__card:hover .info-grid__title { color: var(--cosmic-gold); }
.info-grid__desc {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  line-height: 1.65;
}
.info-grid__more {
  display: inline-block;
  color: var(--cosmic-gold);
  font-size: 0.75rem;
  margin-top: var(--space-3);
  transition: transform 0.2s;
}
.info-grid__card:hover .info-grid__more { transform: translateX(4px); }


/* ------------------------------------------------------------
   アクセス（地図 + 住所リスト）
   ------------------------------------------------------------ */
.access {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 1024px) {
  .access { grid-template-columns: 1fr 1fr; }
}
.access__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  font-size: 0.875rem;
}
.access__list dt {
  color: var(--cosmic-gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  width: 4rem;
  flex-shrink: 0;
}
.access__list .row {
  display: flex;
  gap: var(--space-4);
}
.access__list dd { color: var(--lunar-gray); }
.access__map {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.access__map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) brightness(0.8);
}


/* ------------------------------------------------------------
   SNS 行
   ------------------------------------------------------------ */
.sns-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.sns-row__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--lunar-gray);
  transition: color 0.2s, border-color 0.2s;
}
.sns-row__link:hover,
.sns-row__link:focus-visible {
  color: var(--cosmic-gold);
  border-color: var(--cosmic-gold);
}
.sns-row__link .icon { width: 1rem; height: 1rem; }
.sns-row__handle {
  font-size: 0.75rem;
  color: rgba(155, 168, 192, 0.6);
}


/* ------------------------------------------------------------
   問い合わせカード（電話 / メール）
   ------------------------------------------------------------ */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
@media (min-width: 768px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  transition: border-color 0.2s;
}
.contact-card:hover,
.contact-card:focus-visible { border-color: rgba(240, 192, 64, 0.3); }
.contact-card--gold {
  background: rgba(240, 192, 64, 0.1);
  border-color: rgba(240, 192, 64, 0.3);
}
.contact-card--gold:hover { background: rgba(240, 192, 64, 0.2); }
.contact-card__icon {
  width: 3rem; height: 3rem;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.2);
  color: var(--cosmic-gold);
}
.contact-card--gold .contact-card__icon {
  background: rgba(240, 192, 64, 0.2);
  border-color: rgba(240, 192, 64, 0.4);
}
.contact-card__icon .icon { width: 1.5rem; height: 1.5rem; }
.contact-card__label {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  margin-bottom: var(--space-1);
}
.contact-card__value {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}
.contact-card__value--num { font-family: var(--font-en); }
.contact-card__note {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  margin-top: 4px;
}


/* ------------------------------------------------------------
   ライトボックス（トピックスなど）
   ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.lightbox.is-open { display: flex; }
.lightbox__close {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius-full);
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--color-border-strong);
  color: var(--starlight);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.lightbox__inner {
  max-width: 64rem;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  background: rgba(15, 31, 61, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}


/* ------------------------------------------------------------
   引用ブロック
   ------------------------------------------------------------ */
.quote {
  border-left: 2px solid rgba(240, 192, 64, 0.5);
  padding-left: var(--space-5);
  color: var(--lunar-gray);
  font-style: italic;
  margin-bottom: var(--space-6);
  line-height: 1.7;
}


/* ------------------------------------------------------------
   タグ・バッジ
   ------------------------------------------------------------ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(240, 192, 64, 0.3);
  color: var(--cosmic-gold);
  background: rgba(240, 192, 64, 0.1);
}


/* ------------------------------------------------------------
   バッジ（カード内ラベル）
   ------------------------------------------------------------ */
.badge-pill {
  display: inline-block;
  font-size: 0.625rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.3);
  color: var(--cosmic-gold);
  backdrop-filter: blur(4px);
}


/* ------------------------------------------------------------
   縦長カード (about ハブの 4 視点など / aspect 3:4)
   ------------------------------------------------------------ */
.tall-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px)  { .tall-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tall-cards { grid-template-columns: repeat(4, 1fr); } }
.tall-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.tall-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.tall-card:hover img,
.tall-card:focus-visible img { transform: scale(1.05); }
.tall-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.95) 0%, rgba(10,14,26,0.5) 50%, rgba(10,14,26,0.1) 100%);
}
.tall-card__badge {
  position: absolute;
  top: var(--space-4); left: var(--space-4);
}
.tall-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-6);
}
.tall-card__title {
  color: var(--starlight);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: var(--space-2) 0 var(--space-3);
  transition: color 0.3s;
}
.tall-card:hover .tall-card__title { color: var(--cosmic-gold); }
.tall-card__desc {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: var(--space-4);
}
.tall-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--cosmic-gold);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.tall-card:hover .tall-card__more,
.tall-card:focus-visible .tall-card__more {
  opacity: 1;
  transform: translateY(0);
}


/* ------------------------------------------------------------
   ヘッダー帯（hero 直下のメタ情報グリッド）
   ------------------------------------------------------------ */
.meta-bar {
  background: rgba(15, 31, 61, 0.6);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  padding: var(--space-5) 0;
}
.meta-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  text-align: center;
}
@media (min-width: 640px) {
  .meta-bar__grid { grid-template-columns: repeat(4, 1fr); }
}
.meta-bar__label {
  font-family: var(--font-en);
  color: var(--cosmic-gold);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.meta-bar__value {
  color: var(--starlight);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.3;
}
.meta-bar__note {
  color: var(--lunar-gray);
  font-size: 0.625rem;
  margin-top: 2px;
}


/* ------------------------------------------------------------
   セクション内コンテンツの空白制御
   ------------------------------------------------------------ */
.stack > * + * { margin-top: var(--space-16); }
.stack-sm > * + * { margin-top: var(--space-8); }

.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.section-divider__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--starlight);
}
.section-divider__desc {
  color: var(--lunar-gray);
  font-size: 0.75rem;
}
.section-divider__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}


/* ------------------------------------------------------------
   戻る／パンくず的なピル
   ------------------------------------------------------------ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.75rem;
  color: var(--lunar-gray);
  background: rgba(15, 31, 61, 0.7);
  border: 1px solid var(--color-border-strong);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  transition: color 0.2s, border-color 0.2s;
}
.back-link:hover,
.back-link:focus-visible {
  border-color: rgba(240, 192, 64, 0.4);
  color: var(--cosmic-gold);
}


/* ------------------------------------------------------------
   バッジバー（hero 直下のチェック付き要素列）
   ------------------------------------------------------------ */
.badge-bar {
  background: rgba(15, 31, 61, 0.6);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  padding: var(--space-4) 0;
}
.badge-bar__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.badge-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--cosmic-gold);
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.3);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
}
.badge-bar__item .icon { width: 0.75rem; height: 0.75rem; flex-shrink: 0; }


/* ------------------------------------------------------------
   イントロ split（左テキスト / 右画像）
   ------------------------------------------------------------ */
.intro-split {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
@media (min-width: 768px) {
  .intro-split { grid-template-columns: 1.2fr 1fr; }
}
.intro-split__body {
  background: rgba(15, 31, 61, 0.6);
  padding: var(--space-8) var(--space-7, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.intro-split__title {
  color: var(--starlight);
  font-size: 1.5rem;
  font-weight: 700;
  margin: var(--space-2) 0 var(--space-4);
  line-height: 1.35;
}
.intro-split__text {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  line-height: 1.7;
}
.intro-split__text + .intro-split__text { margin-top: var(--space-4); }
.intro-split__image {
  position: relative;
  min-height: 260px;
}
@media (min-width: 768px) { .intro-split__image { min-height: 0; } }
.intro-split__image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}


/* ------------------------------------------------------------
   コールアウト（アイコン付きパネル）
   ------------------------------------------------------------ */
.callout {
  background: rgba(15, 31, 61, 0.4);
  border: 1px solid rgba(240, 192, 64, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-7, 1.75rem);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.callout__icon {
  width: 3.5rem; height: 3.5rem;
  flex-shrink: 0;
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.3);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cosmic-gold);
}
.callout__icon .icon { width: 1.75rem; height: 1.75rem; }
.callout__title {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.125rem;
  margin: var(--space-2) 0 var(--space-3);
}
.callout__text {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  line-height: 1.7;
}


/* ------------------------------------------------------------
   定義リスト（基本情報の k:v 行群）
   ------------------------------------------------------------ */
.def-list {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.def-list__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
}
.def-list__row:first-child { border-top: 0; }
@media (min-width: 640px) {
  .def-list__row {
    flex-direction: row;
    gap: var(--space-6);
  }
}
.def-list__key {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .def-list__key {
    width: 8rem;
    font-size: 0.875rem;
    padding-top: 2px;
  }
}
.def-list__val {
  color: var(--starlight);
  font-weight: 700;
  font-size: 0.875rem;
  flex: 1;
}


/* ------------------------------------------------------------
   施設グリッド（フロアラベル付きカード）
   ------------------------------------------------------------ */
.facility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) { .facility-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .facility-grid { grid-template-columns: repeat(3, 1fr); } }
.facility-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;   /* 写真素材（3:2 横長）に合わせる */
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.facility-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s;
}
.facility-card:hover img,
.facility-card:focus-visible img { transform: scale(1.05); }
.facility-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.95) 0%, rgba(10,14,26,0.4) 50%, transparent 100%);
}
.facility-card__floor {
  position: absolute;
  top: var(--space-3); right: var(--space-3);
  font-family: var(--font-en);
  background: var(--cosmic-gold);
  color: var(--space-black);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
}
.facility-card__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-5);
}
.facility-card__name {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.375rem;
  transition: color 0.3s;
}
.facility-card:hover .facility-card__name { color: var(--cosmic-gold); }
.facility-card__desc {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  line-height: 1.65;
}


/* ------------------------------------------------------------
   汎用テキスト・配置ユーティリティ（最小限）
   ------------------------------------------------------------ */
.text-center { text-align: center; }
.flex-between {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.flex-between > .grow { flex: 1; }
.hr-line { height: 1px; background: var(--color-border); flex: 1; }
.mt-3 { margin-top: var(--space-3); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }


/* ------------------------------------------------------------
   ストーリーブロック（番号付き hi-light 派生）
   ------------------------------------------------------------ */
.story {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
@media (min-width: 768px) {
  .story { grid-template-columns: 1.2fr 1fr; }
  .story--flip { grid-template-columns: 1fr 1.2fr; }
  .story--flip .story__image { order: 2; }
}
.story__image {
  position: relative;
  min-height: 260px;
}
@media (min-width: 768px) { .story__image { min-height: 400px; } }
.story__image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.story__image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.7), transparent);
}
@media (min-width: 768px) {
  .story__image::after {
    background: linear-gradient(to right, transparent, rgba(10,14,26,0.8));
  }
  .story--flip .story__image::after {
    background: linear-gradient(to left, transparent, rgba(10,14,26,0.8));
  }
}
.story__num {
  position: absolute;
  top: var(--space-4); left: var(--space-4);
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(201, 168, 76, 0.3);
  user-select: none;
  z-index: 1;
}
.story__body {
  background: rgba(15, 31, 61, 0.6);
  padding: var(--space-8) var(--space-7, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story__period {
  display: inline-block;
  font-size: 0.75rem;
  color: rgba(240, 192, 64, 0.8);
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.story__title {
  color: var(--starlight);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: var(--space-2) 0 var(--space-3);
}
.story__lead {
  color: rgba(240, 192, 64, 0.8);
  font-size: 0.875rem;
  font-style: italic;
  margin-bottom: var(--space-4);
}
.story__text {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.story__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}
.story__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.75rem;
  color: var(--lunar-gray);
  line-height: 1.65;
}
.story__points .icon {
  width: 0.875rem; height: 0.875rem;
  color: var(--cosmic-gold);
  flex-shrink: 0;
  margin-top: 2px;
}


/* ------------------------------------------------------------
   ヒーロー内の点滅星
   ------------------------------------------------------------ */
.starfield-dot {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(240, 192, 64, 0.7);
  animation: pulse-dot 3s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.6); }
}


/* ------------------------------------------------------------
   タイムライン
   ------------------------------------------------------------ */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: rgba(240, 192, 64, 0.2);
}
@media (min-width: 640px) {
  .timeline::before { left: 1.5rem; }
}
.timeline__item {
  position: relative;
  padding: var(--space-5) var(--space-6) var(--space-5) 3rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
@media (min-width: 640px) {
  .timeline__item { padding-left: 4rem; }
}
.timeline__item--featured {
  background: rgba(240, 192, 64, 0.05);
  border-color: rgba(240, 192, 64, 0.4);
}
.timeline__dot {
  position: absolute;
  left: 0.25rem;
  top: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--nebula-navy);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
@media (min-width: 640px) {
  .timeline__dot { left: 0.75rem; }
}
.timeline__item--featured .timeline__dot {
  background: rgba(240, 192, 64, 0.3);
  border-color: rgba(240, 192, 64, 0.5);
}
.timeline__year {
  font-family: var(--font-en);
  color: rgba(240, 192, 64, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}
.timeline__item--featured .timeline__year { color: var(--cosmic-gold); }
.timeline__title {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}
.timeline__item--featured .timeline__title { font-size: 1.125rem; }
.timeline__body {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  line-height: 1.7;
}


/* ------------------------------------------------------------
   CTA カード（ゴールド寄り）
   ------------------------------------------------------------ */
.cta-split {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(240, 192, 64, 0.3);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
@media (min-width: 768px) {
  .cta-split { grid-template-columns: 1fr 1.3fr; }
}
.cta-split--reverse { direction: rtl; }
.cta-split--reverse > * { direction: ltr; }
.cta-split__image {
  position: relative;
  min-height: 200px;
}
@media (min-width: 768px) { .cta-split__image { min-height: 0; } }
.cta-split__image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.cta-split__body {
  background: linear-gradient(to bottom right, rgba(240, 192, 64, 0.15), rgba(15, 31, 61, 0.6));
  padding: var(--space-8) var(--space-7, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-split__title {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: var(--space-2) 0 var(--space-3);
}
.cta-split__lead {
  color: rgba(240, 192, 64, 0.8);
  font-size: 0.875rem;
  font-style: italic;
  margin-bottom: var(--space-4);
}
.cta-split__text {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}


/* ------------------------------------------------------------
   長文章（10章記事）用
   ------------------------------------------------------------ */
.prose-container {
  max-width: 48rem;
  margin: 0 auto;
}
.chapter-toc {
  background: rgba(15, 31, 61, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
}
.chapter-toc__list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.chapter-toc__list a {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  color: var(--lunar-gray);
  font-size: 0.875rem;
  padding: 0.25rem 0;
}
.chapter-toc__list a:hover,
.chapter-toc__list a:focus-visible { color: var(--cosmic-gold); }
.chapter-toc__num {
  font-family: var(--font-en);
  color: rgba(240, 192, 64, 0.7);
  font-weight: 700;
  width: 1.5rem;
  flex-shrink: 0;
}
.chapter {
  scroll-margin-top: 5rem;
  background: rgba(15, 31, 61, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.chapter__banner {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.chapter__banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.chapter__banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--space-black), rgba(10,14,26,0.3), transparent);
}
.chapter__num-pill {
  position: absolute;
  top: var(--space-4); left: var(--space-4);
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid rgba(240, 192, 64, 0.3);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 1;
}
.chapter__title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-6) var(--space-8);
  color: var(--starlight);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  z-index: 1;
}
@media (min-width: 640px) {
  .chapter__title { font-size: 1.875rem; }
}
.chapter__caption {
  padding: var(--space-4) var(--space-7, 1.75rem) 0;
  color: var(--lunar-gray);
  font-size: 0.75rem;
  line-height: 1.7;
  opacity: 0.75;
}
@media (min-width: 640px) { .chapter__caption { padding: var(--space-5) var(--space-10) 0; } }
.chapter__caption + .chapter__body { padding-top: var(--space-5); }
.chapter__head {
  padding: var(--space-7, 1.75rem) var(--space-7, 1.75rem) 0;
  border-top: 3px solid var(--cosmic-gold);
}
@media (min-width: 640px) { .chapter__head { padding: var(--space-8) var(--space-10) 0; } }
.chapter__head .chapter__title {
  position: static;
  padding: var(--space-3) 0 0;
}

.chapter__body {
  padding: var(--space-8) var(--space-7, 1.75rem);
}
@media (min-width: 640px) { .chapter__body { padding: var(--space-10); } }
.chapter__body p {
  color: var(--lunar-gray);
  font-size: 0.9375rem;
  line-height: 1.9;
  letter-spacing: 0.01em;
}
.chapter__body p + p { margin-top: var(--space-5); }


/* ------------------------------------------------------------
   著者カード
   ------------------------------------------------------------ */
.author-card {
  background: linear-gradient(to bottom right, rgba(240, 192, 64, 0.1), rgba(15, 31, 61, 0.5));
  border: 1px solid rgba(240, 192, 64, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-7, 1.75rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: flex-start;
}
@media (min-width: 640px) {
  .author-card { grid-template-columns: 120px 1fr; }
}
.author-card__photo {
  position: relative;
  width: 7rem; height: 7rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(240, 192, 64, 0.3);
  margin: 0 auto;
}
@media (min-width: 640px) { .author-card__photo { margin: 0; } }
.author-card__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.author-card__name {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0.25rem 0 var(--space-3);
}
.author-card__bio {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  line-height: 1.7;
}
.author-card__note {
  color: rgba(155, 168, 192, 0.5);
  font-size: 0.75rem;
  margin-top: var(--space-3);
  font-style: italic;
}


/* ------------------------------------------------------------
   料金表など テーブル
   ------------------------------------------------------------ */
.table-wrap {
  overflow-x: auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.price-table thead {
  background: var(--nebula-navy);
}
.price-table th {
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 0.75rem;
  text-align: center;
  color: var(--cosmic-gold);
  border-bottom: 1px solid var(--color-border);
}
.price-table th:first-child {
  text-align: left;
  color: var(--lunar-gray);
}
.price-table td {
  padding: 0.875rem 1rem;
  text-align: center;
  color: var(--starlight);
  font-weight: 700;
  border-top: 1px solid var(--color-border);
}
.price-table td:first-child {
  text-align: left;
  font-weight: 400;
}
.price-table td:last-child {
  color: var(--cosmic-gold);
}
.price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.price-table-sub {
  color: rgba(155, 168, 192, 0.6);
  font-size: 0.75rem;
  margin-left: 0.25rem;
}


/* ------------------------------------------------------------
   料金強調カード
   ------------------------------------------------------------ */
.price-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .price-cards { grid-template-columns: repeat(3, 1fr); }
}
.price-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7, 1.75rem) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.price-card--featured {
  background: rgba(240, 192, 64, 0.1);
  border: 2px solid rgba(240, 192, 64, 0.5);
}
.price-card__category {
  color: var(--starlight);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: var(--space-2);
}
.price-card__price {
  color: var(--cosmic-gold);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: var(--space-1);
}
.price-card__price .big { font-size: 3.5rem; }
.price-card__price .unit { font-size: 1.25rem; }
.price-card__sub {
  color: var(--lunar-gray);
  font-size: 0.75rem;
}
.price-card__ribbon {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: var(--cosmic-gold);
  color: var(--space-black);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
}


/* ------------------------------------------------------------
   注記ボックス
   ------------------------------------------------------------ */
.note-box {
  background: rgba(15, 31, 61, 0.4);
  border: 1px solid rgba(240, 192, 64, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: 0.75rem;
  color: var(--lunar-gray);
  line-height: 1.75;
}
.note-box__title {
  color: var(--cosmic-gold);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.note-box ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: var(--space-1);
}
.note-box li { margin-bottom: 0.125rem; }


/* ------------------------------------------------------------
   フォーム
   ------------------------------------------------------------ */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: var(--space-4);
}
.form-field__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--starlight);
  font-size: 0.875rem;
  font-weight: 700;
}
.form-field__required {
  color: rgb(252, 165, 165);
  font-size: 0.625rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  padding: 0.0625rem 0.375rem;
  border-radius: var(--radius-sm);
}
.form-field__hint {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  line-height: 1.5;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field input[type="time"],
.form-field input[type="url"],
/* password が抜けていて、パスワード欄だけブラウザ既定の白地で出ていた（2026-09-10 修正）。
   種類を列挙する書き方は、新しい入力欄を足したときに漏れる。増やすときはここも見る。 */
.form-field input[type="password"],
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(15, 31, 61, 0.7);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--starlight);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cosmic-gold);
}
.form-field textarea {
  resize: vertical;
  min-height: 6rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.form-result {
  display: none;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-4);
  font-size: 0.875rem;
}
.form-result.is-success {
  display: block;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: var(--aurora-green);
}
.form-result.is-error {
  display: block;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: rgb(252, 165, 165);
}
.honeypot { position: absolute; left: -9999px; }


/* ------------------------------------------------------------
   ファイル添付ドロップゾーン
   ------------------------------------------------------------ */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-7, 1.75rem) var(--space-6);
  background: linear-gradient(135deg, rgba(15, 31, 61, 0.5), rgba(15, 31, 61, 0.25));
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-xl);
  color: var(--lunar-gray);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 9rem;
}
.dropzone__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.dropzone:hover {
  border-color: rgba(240, 192, 64, 0.45);
  background: linear-gradient(135deg, rgba(15, 31, 61, 0.7), rgba(15, 31, 61, 0.4));
  color: var(--starlight);
}
.dropzone.is-dragover {
  border-color: var(--cosmic-gold);
  background: rgba(240, 192, 64, 0.08);
  color: var(--cosmic-gold);
  box-shadow: 0 0 0 4px rgba(240, 192, 64, 0.15);
}
.dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dropzone__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--cosmic-gold);
  margin-bottom: 0.25rem;
  pointer-events: none;
}
.dropzone__primary {
  color: var(--starlight);
  font-weight: 700;
  font-size: 0.9375rem;
  pointer-events: none;
}
.dropzone__primary em {
  color: var(--cosmic-gold);
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dropzone__secondary {
  font-size: 0.75rem;
  color: rgba(155, 168, 192, 0.8);
  pointer-events: none;
}
.dropzone__formats {
  font-size: 0.6875rem;
  color: rgba(155, 168, 192, 0.6);
  letter-spacing: 0.05em;
  pointer-events: none;
}

.dropzone--has-file {
  border-style: solid;
  border-color: rgba(0, 212, 170, 0.4);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(15, 31, 61, 0.5));
  align-items: stretch;
  cursor: default;
  text-align: left;
  padding: var(--space-5);
}
.dropzone--has-file:hover {
  border-color: rgba(0, 212, 170, 0.6);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.12), rgba(15, 31, 61, 0.6));
}

.dropzone__file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dropzone__file-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: rgba(240, 192, 64, 0.15);
  border: 1px solid rgba(240, 192, 64, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cosmic-gold);
  flex-shrink: 0;
}
.dropzone__file-icon svg { width: 1.25rem; height: 1.25rem; }
.dropzone__file-info {
  flex: 1;
  min-width: 0;
}
.dropzone__file-name {
  color: var(--starlight);
  font-weight: 700;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropzone__file-meta {
  font-size: 0.75rem;
  color: var(--lunar-gray);
  margin-top: 0.125rem;
}
.dropzone__remove {
  position: relative;
  z-index: 2;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: rgb(252, 165, 165);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.15s;
}
.dropzone__remove:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.5);
}
.dropzone__error {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgb(252, 165, 165);
}


/* ------------------------------------------------------------
   貸館仮予約システム — マトリクスビュー
   ------------------------------------------------------------ */
.reserve-matrix-card {
  background: rgba(15, 31, 61, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
@media (min-width: 640px) { .reserve-matrix-card { padding: var(--space-6); } }

.reserve-date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.reserve-date-bar__nav {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: rgba(15, 31, 61, 0.7);
  border: 1px solid var(--color-border-strong);
  color: var(--cosmic-gold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.reserve-date-bar__nav:hover {
  background: rgba(240,192,64,0.18);
  border-color: rgba(240,192,64,0.5);
}
.reserve-date-bar__nav:disabled { opacity: 0.4; cursor: not-allowed; }
.reserve-date-bar__nav svg { width: 1.1rem; height: 1.1rem; }
.reserve-date-bar__date {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.35rem;
  font-family: var(--font-en);
  letter-spacing: 0.02em;
  text-align: center;
  min-width: 18rem;
  white-space: nowrap;
}
.reserve-date-bar__date-input {
  background: rgba(15, 31, 61, 0.7);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.9rem;
  color: var(--starlight);
  font-family: inherit;
  font-size: 0.9rem;
  color-scheme: dark;
}
@media (max-width: 720px) {
  .reserve-date-bar__date { font-size: 1.05rem; min-width: 0; }
  .reserve-date-bar__nav { width: 2.5rem; height: 2.5rem; }
}
/* WebKit/Chromium 系のカレンダーアイコンを明色に。
   color-scheme: dark の下では UA が白アイコンを描くため、
   invert() を掛けると逆に黒くなる（現場指摘のバグ）。フィルタは使わない。 */
.reserve-date-bar__date-input::-webkit-calendar-picker-indicator {
  filter: none;
  cursor: pointer;
  opacity: 0.9;
}
.reserve-date-bar__date-input::-webkit-calendar-picker-indicator:hover {
  filter: none;
  opacity: 1;
}

.reserve-matrix-wrap {
  overflow-x: auto;
}
.reserve-matrix {
  width: 100%;
  min-width: 36rem;
  border-collapse: separate;
  border-spacing: 4px;
  font-size: 0.7rem;
}
.reserve-matrix th, .reserve-matrix td {
  padding: 0.5rem 0.25rem;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
}
.reserve-matrix th {
  color: var(--cosmic-gold);
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  background: rgba(15,31,61,0.6);
}
.reserve-matrix th.reserve-row-label {
  text-align: left;
  color: var(--starlight);
  font-size: 0.8125rem;
  background: rgba(15,31,61,0.6);
  white-space: nowrap;
}
.reserve-matrix__group-divider {
  background: rgba(240,192,64,0.05);
  color: var(--cosmic-gold);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-align: left;
  padding-left: 0.75rem;
}
.reserve-cell-open      { background: rgba(74,222,128,0.10);  border-color: rgba(74,222,128,0.4) !important;  color: var(--aurora-green); cursor: pointer; transition: all 0.15s; }
.reserve-cell-open:hover { background: rgba(74,222,128,0.2); border-color: rgba(74,222,128,0.7) !important; }
.reserve-cell-tentative { background: rgba(240,192,64,0.15);  border-color: rgba(240,192,64,0.5) !important;  color: var(--cosmic-gold); cursor: not-allowed; }
.reserve-cell-booked    { background: rgba(248,113,113,0.15); border-color: rgba(248,113,113,0.5) !important; color: rgb(252,165,165); cursor: not-allowed; }
.reserve-cell-locked    { background: rgba(155,168,192,0.08); border-color: rgba(155,168,192,0.25) !important; color: var(--lunar-gray); cursor: not-allowed; }
.reserve-cell-closed    { background: rgba(155,168,192,0.20); border-color: rgba(155,168,192,0.4) !important; color: var(--lunar-gray); cursor: not-allowed; }
.reserve-cell .ico { display: block; font-size: 1rem; line-height: 1; margin-bottom: 0.125rem; }

/* ─── 週次マトリクス ─── */
.reserve-week-matrix {
  width: 100%;
  min-width: 50rem;
  border-collapse: separate;
  border-spacing: 3px;
  font-size: 0.75rem;
  table-layout: fixed;
}
.reserve-week-matrix th,
.reserve-week-matrix td {
  padding: 0.5rem 0.25rem;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  vertical-align: middle;
}
.reserve-week-matrix th.reserve-row-label {
  text-align: left;
  color: var(--starlight);
  background: rgba(15,31,61,0.6);
  font-weight: 700;
  padding: 0.5rem 0.625rem;
  white-space: nowrap;
}
/* thead 内の「施設」「区分」見出しは中央寄せ */
.reserve-week-matrix thead th.reserve-row-label--head {
  text-align: center;
  padding: 0.5rem 0.25rem;
}
.reserve-week-matrix th.reserve-slot-label {
  background: rgba(15,31,61,0.4);
  color: var(--cosmic-gold);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem;
  width: 3.5rem;
}
.reserve-day-header {
  background: rgba(15,31,61,0.6) !important;
  font-weight: 700;
}
.reserve-day-header__date {
  color: var(--starlight);
  font-size: 0.875rem;
  font-family: var(--font-en);
  letter-spacing: 0.02em;
}
.reserve-day-header__wday {
  color: var(--lunar-gray);
  font-size: 0.625rem;
  margin-top: 0.125rem;
}
.reserve-day-header--sun .reserve-day-header__date,
.reserve-day-header--sun .reserve-day-header__wday { color: rgb(252,165,165); }
.reserve-day-header--sat .reserve-day-header__date,
.reserve-day-header--sat .reserve-day-header__wday { color: rgb(147,197,253); }

.reserve-week-cell {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  transition: all 0.15s;
  height: 3.6rem;       /* 選択中/非選択で高さ変化しないよう固定 */
  line-height: 1.2;
}
.reserve-week-cell__time {
  display: block;
  font-size: 0.55rem;
  font-weight: 400;
  margin-top: 0.15rem;
  opacity: 0.85;
  letter-spacing: 0;
  white-space: nowrap;
}
.reserve-week-cell--open {
  background: rgba(74,222,128,0.10);
  border-color: rgba(74,222,128,0.4) !important;
  color: var(--aurora-green);
  cursor: pointer;
}
.reserve-week-cell--open:hover {
  background: rgba(74,222,128,0.25);
  border-color: rgba(74,222,128,0.7) !important;
  transform: scale(1.03);
}
.reserve-week-cell--tentative {
  background: rgba(255,140,40,0.20);
  border-color: rgba(255,140,40,0.55) !important;
  color: #ffb066;
  cursor: not-allowed;
}
.reserve-week-cell--booked {
  background: rgba(248,113,113,0.18);
  border-color: rgba(248,113,113,0.5) !important;
  color: rgb(252,165,165);
  cursor: not-allowed;
}
.reserve-week-cell--locked,
.reserve-week-cell--closed {
  background: rgba(155,168,192,0.15);
  border-color: rgba(155,168,192,0.4) !important;
  color: var(--lunar-gray);
  cursor: not-allowed;
  font-size: 0.7rem;
}
/* 管理画面では全セルで禁止カーソルを使わない（クリックで詳細／選択動作） */
.reserve-week-matrix--admin .reserve-week-cell--locked,
.reserve-week-matrix--admin .reserve-week-cell--closed,
.reserve-week-matrix--admin .reserve-week-cell--booked,
.reserve-week-matrix--admin .reserve-week-cell--tentative {
  cursor: pointer;
}
.reserve-week-matrix--admin .reserve-week-cell--locked:hover,
.reserve-week-matrix--admin .reserve-week-cell--closed:hover {
  background: rgba(240,192,64,0.10);
  border-color: rgba(240,192,64,0.35) !important;
}
.reserve-week-cell--out {
  background: transparent;
  border-color: rgba(255,255,255,0.04) !important;
  color: transparent;
  cursor: default;
}
.reserve-week-cell--toosoon {
  background: rgba(155,168,192,0.08);
  border-color: rgba(155,168,192,0.25) !important;
  color: rgba(155,168,192,0.7);
  cursor: not-allowed;
  font-weight: 400;
}
.reserve-week-cell--selected {
  background: rgba(240,192,64,0.30) !important;
  border-color: rgba(240,192,64,0.85) !important;
  color: var(--cosmic-gold);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(240,192,64,0.55);
}
.reserve-week-cell--selected:hover {
  background: rgba(240,192,64,0.42) !important;
  border-color: rgba(240,192,64,1) !important;
}
/* 確定（管理画面で使用） */
.reserve-week-cell--confirmed {
  background: rgba(74,222,128,0.18);
  border-color: rgba(74,222,128,0.5) !important;
  color: var(--aurora-green);
  cursor: pointer;
}
.reserve-week-cell--confirmed:hover { background: rgba(74,222,128,0.30); }
/* ブロック（管理画面で使用） */
.reserve-week-cell--blocked {
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.5) !important;
  color: #a5b4fc;
  cursor: pointer;
}
.reserve-week-cell--blocked:hover { background: rgba(99,102,241,0.30); }
/* 編集対象セル（管理画面） — 紫の二重枠で識別 */
.reserve-week-cell[data-edit-target].reserve-week-cell--selected {
  box-shadow: inset 0 0 0 2px #6366f1, inset 0 0 0 4px rgba(99,102,241,0.25) !important;
  background: rgba(240,192,64,0.20) !important;
}
/* 施設グループ区切り用スペーサー行（公開・管理画面共通） */
.reserve-week-matrix tr.reserve-week-matrix__spacer > td {
  height: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.reserve-modal-cell--out {
  background: rgba(255,255,255,0.02) !important;
  border-color: rgba(255,255,255,0.04) !important;
  color: rgba(155,168,192,0.35);
  cursor: not-allowed;
  font-size: 0.7rem;
}
.reserve-modal-cell--toosoon {
  background: rgba(155,168,192,0.08) !important;
  border-color: rgba(155,168,192,0.25) !important;
  color: rgba(155,168,192,0.5);
  cursor: not-allowed;
}

/* グローバル：すべての <input type="date"> のカレンダーアイコンを明色に */
input[type="date"] {
  color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  /* color-scheme: dark で UA が白アイコンを描画するため invert は不要（黒化バグの原因） */
  filter: none;
  cursor: pointer;
  opacity: 0.9;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  filter: none;
  opacity: 1;
}

/* ─── 縦並びスロット選択（モーダル内・旧・互換）─── */
.slot-grid--vertical {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.slot-grid--vertical .slot-cell {
  padding: 0.625rem 0.875rem;
  text-align: left;
  justify-content: flex-start;
  font-size: 0.8125rem;
}

/* ─── 予約モーダル：日付付き大ヘッダー＋全施設マトリクス ─── */
.reserve-modal__inner {
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* 二重クラスで優先度を上げる（同名の .reserve-modal__inner ルールが後で max-width:42rem を再定義しているため）*/
.reserve-modal__inner.reserve-modal__inner--wide {
  max-width: 84rem;
}
.reserve-modal__head { flex-shrink: 0; }
.reserve-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.reserve-modal__footer { flex-shrink: 0; }

/* ─── スティッキー：選択中サマリー ─── */
.reserve-modal__sticky-summary {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(to bottom, var(--nebula-navy) 0%, var(--nebula-navy) 92%, rgba(15,31,61,0));
  padding: var(--space-4) var(--space-6) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  margin: 0 calc(-1 * var(--space-6));
  margin-bottom: var(--space-4);
}
.reserve-modal__summary-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
}
.reserve-modal__summary-title {
  color: var(--cosmic-gold);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}
.reserve-modal__summary-count {
  background: var(--cosmic-gold);
  color: var(--space-black);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
}
.reserve-modal__summary-count--empty {
  background: rgba(155,168,192,0.2);
  color: var(--lunar-gray);
}
.reserve-modal__summary-clear {
  margin-left: auto;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  color: rgb(252,165,165);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
}
.reserve-modal__summary-clear:hover {
  background: rgba(248,113,113,0.2);
}
.reserve-modal__summary-hint {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  margin: 0;
}
.reserve-modal__summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
/* 展開時に高さを制限して内部スクロール */
.reserve-modal__summary-list--scroll {
  max-height: 9rem;            /* 約 4-5 件分（モバイルでは少し小さく）*/
  overflow-y: auto;
  padding-right: 0.25rem;
  /* スクロールバーの見た目 */
  scrollbar-width: thin;
  scrollbar-color: rgba(240,192,64,0.3) transparent;
}
.reserve-modal__summary-list--scroll::-webkit-scrollbar { width: 6px; }
.reserve-modal__summary-list--scroll::-webkit-scrollbar-thumb {
  background: rgba(240,192,64,0.3);
  border-radius: 3px;
}
.reserve-modal__summary-list--scroll::-webkit-scrollbar-track { background: transparent; }

/* 「他 N 件を表示 ▼」トグル */
.reserve-modal__summary-toggle {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
  background: rgba(240,192,64,0.08);
  border: 1px solid rgba(240,192,64,0.25);
  color: var(--cosmic-gold);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.reserve-modal__summary-toggle:hover {
  background: rgba(240,192,64,0.15);
  border-color: rgba(240,192,64,0.4);
}
.reserve-modal__summary-item {
  display: grid;
  grid-template-columns: 6rem 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  background: rgba(15,31,61,0.5);
  border: 1px solid rgba(240,192,64,0.2);
  border-radius: 4px;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
}
.reserve-modal__summary-date {
  color: var(--lunar-gray);
  font-family: var(--font-en);
  font-size: 0.75rem;
}
.reserve-modal__summary-fac {
  color: var(--starlight);
  font-weight: 700;
}
.reserve-modal__summary-time {
  color: var(--cosmic-gold);
  font-family: var(--font-en);
  font-size: 0.75rem;
}
.reserve-modal__summary-remove {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--lunar-gray);
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0;
}
.reserve-modal__summary-remove:hover {
  background: rgba(248,113,113,0.2);
  border-color: rgba(248,113,113,0.4);
  color: rgb(252,165,165);
}

/* ─── 施設グループ見出し（モーダル内）─── */
.reserve-modal-group {
  background: rgba(240,192,64,0.05) !important;
  color: var(--cosmic-gold) !important;
  font-size: 0.6875rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left !important;
  padding: 0.4rem 0.75rem !important;
  border-color: rgba(240,192,64,0.15) !important;
}
.reserve-modal__head--date {
  align-items: center;
  gap: 0.75rem;
  padding-block: var(--space-4);
}
.reserve-modal__date-big {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.5rem;
  font-family: var(--font-en);
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .reserve-modal__date-big { font-size: 1.125rem; }
}

.reserve-modal-matrix-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-3);
  -webkit-overflow-scrolling: touch;
}
.reserve-modal-matrix {
  table-layout: fixed;
  width: 100%;
  min-width: 44rem;       /* この幅未満なら横スクロール（モバイル） */
  border-collapse: separate;
  border-spacing: 4px;
  font-size: 0.8rem;
}
.reserve-modal-matrix th,
.reserve-modal-matrix td {
  padding: 0.625rem 0.375rem;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  vertical-align: middle;
  overflow: hidden;
  word-break: keep-all;
  box-sizing: border-box;
}
.reserve-modal-matrix__facility {
  text-align: left !important;
  color: var(--starlight);
  font-weight: 700;
  background: rgba(15,31,61,0.6) !important;
  padding: 0.625rem 0.75rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reserve-modal-matrix__slot {
  color: var(--cosmic-gold);
  font-weight: 700;
  font-size: 0.78rem;
  background: rgba(15,31,61,0.6) !important;
  line-height: 1.25;
}
.reserve-modal-matrix__slot--ext {
  color: var(--lunar-gray);
}
.reserve-modal-matrix__slot-label {
  display: block;
  line-height: 1.2;
}
.reserve-modal-matrix__slot--ext .reserve-modal-matrix__slot-label {
  font-size: 0.7rem;
}
.reserve-modal-matrix__slot-time {
  display: block;
  font-size: 0.62rem;
  color: var(--lunar-gray);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 0.1rem;
  font-family: var(--font-en);
  line-height: 1.1;
}
.reserve-modal-matrix__slot--ext .reserve-modal-matrix__slot-time {
  font-size: 0.6rem;
}

.reserve-modal-cell {
  cursor: pointer;
  transition: all 0.15s;
  min-height: 2.25rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.reserve-modal-cell--available {
  background: rgba(74,222,128,0.08) !important;
  border-color: rgba(74,222,128,0.3) !important;
  color: var(--aurora-green);
}
.reserve-modal-cell--available:hover {
  background: rgba(74,222,128,0.2) !important;
  border-color: rgba(74,222,128,0.6) !important;
}
.reserve-modal-cell--selected {
  background: rgba(240, 192, 64, 0.38) !important;
  border-color: var(--cosmic-gold) !important;
  color: #ff9933;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 0 0 1px rgba(240,192,64,0.5);
}
.reserve-modal-cell--selected:hover {
  background: rgba(240, 192, 64, 0.55) !important;
}
.reserve-modal-cell--reserved {
  background: rgba(248,113,113,0.15) !important;
  border-color: rgba(248,113,113,0.5) !important;
  color: rgb(252,165,165);
  cursor: not-allowed;
}
.reserve-modal-cell--locked {
  background: rgba(155,168,192,0.10) !important;
  border-color: rgba(155,168,192,0.3) !important;
  color: var(--lunar-gray);
  cursor: not-allowed;
}
.reserve-modal-cell--disabled {
  background: rgba(255,255,255,0.02) !important;
  border-color: rgba(255,255,255,0.05) !important;
  color: rgba(155,168,192,0.4);
  cursor: not-allowed;
}

.reserve-modal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--lunar-gray);
  margin-bottom: var(--space-3);
}
.reserve-modal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.reserve-modal-legend i {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 3px;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 900;
  font-size: 0.75rem;
  line-height: 1;
}
.reserve-modal-legend i.reserve-modal-cell--available {
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.3);
}
.reserve-modal-legend i.reserve-modal-cell--selected {
  background: rgba(240, 192, 64, 0.38);
  border-color: var(--cosmic-gold);
  color: #ff9933;
}
.reserve-modal-legend i.reserve-modal-cell--selected::before { content: '✓'; }
.reserve-modal-legend i.reserve-modal-cell--reserved {
  background: rgba(248,113,113,0.15);
  border-color: rgba(248,113,113,0.5);
  color: rgb(252,165,165);
}
.reserve-modal-legend i.reserve-modal-cell--reserved::before { content: '×'; }
.reserve-modal-legend i.reserve-modal-cell--locked {
  background: rgba(155,168,192,0.10);
  border-color: rgba(155,168,192,0.3);
  color: var(--lunar-gray);
}
.reserve-modal-legend i.reserve-modal-cell--locked::before { content: '—'; }

/* ─── レスポンシブ：スマホでマトリクスがはみ出さないように ─── */
@media (max-width: 720px) {
  /* 週次マトリクス */
  .reserve-matrix-card { padding: var(--space-3); }
  .reserve-week-matrix {
    min-width: 36rem;     /* 縮小：必要なら横スクロール */
    font-size: 0.65rem;
    border-spacing: 2px;
  }
  .reserve-week-matrix th,
  .reserve-week-matrix td {
    padding: 0.25rem 0.125rem;
  }
  .reserve-week-matrix th.reserve-row-label {
    width: 5rem !important;
    font-size: 0.7rem;
    padding: 0.25rem 0.375rem;
  }
  .reserve-week-matrix th.reserve-slot-label { width: 2.25rem; }
  .reserve-day-header__date { font-size: 0.7rem; }
  .reserve-day-header__wday { font-size: 0.55rem; }
  .reserve-week-cell { font-size: 0.6rem; }

  /* 日付ナビゲーション */
  .reserve-date-bar { gap: 0.375rem; }
  .reserve-date-bar__nav { width: 2rem; height: 2rem; }
  .reserve-date-bar__date {
    font-size: 0.875rem;
    flex: 1 1 100%;
    text-align: center;
  }
  .reserve-date-bar__date-input { font-size: 0.75rem; padding: 0.25rem 0.5rem; }

  /* 予約モーダル */
  .reserve-modal { padding: var(--space-2); align-items: flex-start; }
  .reserve-modal__inner,
  .reserve-modal__inner--wide {
    max-width: 100%;
    margin: 0.5rem auto;
  }
  .reserve-modal__head,
  .reserve-modal__head--date { padding: var(--space-3) var(--space-4); }
  .reserve-modal__body { padding: var(--space-4); }
  .reserve-modal__footer { padding: var(--space-3) var(--space-4); }
  .reserve-modal__date-big { font-size: 1rem !important; }

  /* モーダル内マトリクス（スマホでも横スクロール不要に収める）*/
  .reserve-modal-matrix {
    min-width: 0;
    width: 100%;
    font-size: 0.62rem;
    border-spacing: 2px;
  }
  .reserve-modal-matrix th,
  .reserve-modal-matrix td {
    padding: 0.3rem 0.1rem;
  }
  .reserve-modal-matrix__facility {
    font-size: 0.65rem;
    padding: 0.3rem 0.35rem !important;
    white-space: normal;
  }
  .reserve-modal-matrix__facility small { font-size: 0.55rem; }
  .reserve-modal-matrix__slot { font-size: 0.62rem; }
  .reserve-modal-matrix__slot-label { font-size: 0.65rem; }
  .reserve-modal-matrix__slot--ext .reserve-modal-matrix__slot-label { font-size: 0.6rem; }
  .reserve-modal-matrix__slot-time { font-size: 0.5rem; line-height: 1.05; }
  .reserve-modal-cell { min-height: 1.5rem; font-size: 0.75rem; }
  /* 横スクロール用ヒントは不要（はみ出さない設計）*/
  .reserve-modal-matrix-wrap { padding-bottom: 0; }

  /* 凡例 */
  .reserve-legend,
  .reserve-modal-legend { gap: 0.5rem; font-size: 0.625rem; }

  /* sticky summary をモバイル幅に最適化 */
  .reserve-modal__sticky-summary {
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
    padding: var(--space-3) var(--space-4) var(--space-2);
  }
  .reserve-modal__summary-item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.125rem 0.5rem;
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }
  .reserve-modal__summary-date { grid-column: 1; grid-row: 1; }
  .reserve-modal__summary-fac  { grid-column: 1; grid-row: 2; }
  .reserve-modal__summary-time { grid-column: 2; grid-row: 1; }
  .reserve-modal__summary-remove { grid-column: 2; grid-row: 2; justify-self: end; }
}

@media (max-width: 480px) {
  /* さらに小さい画面：必要最低限を表示 */
  .reserve-week-matrix { font-size: 0.6rem; }
  .reserve-modal__date-big { font-size: 0.95rem !important; }
}

.reserve-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-4);
  font-size: 0.625rem;
  color: var(--lunar-gray);
}
.reserve-legend span { display: inline-flex; align-items: center; gap: 0.375rem; }
.reserve-legend i { display: inline-block; width: 0.875rem; height: 0.875rem; border-radius: 3px; }

/* 週次マトリクス凡例のスウォッチ（× / — をセル内に表示してセルと整合）*/
.reserve-legend__sw {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 3px;
  border: 1px solid;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 900;
  font-size: 0.72rem;
  line-height: 1;
}
.reserve-legend__sw--available {
  background: rgba(74,222,128,0.15);
  border-color: rgba(74,222,128,0.4);
  color: var(--aurora-green);
}
.reserve-legend__sw--tentative {
  background: rgba(255,140,40,0.20);
  border-color: rgba(255,140,40,0.55);
  color: #ffb066;
}
.reserve-legend__sw--tentative::before { content: '×'; }
.reserve-legend__sw--booked {
  background: rgba(248,113,113,0.18);
  border-color: rgba(248,113,113,0.5);
  color: rgb(252,165,165);
}
.reserve-legend__sw--booked::before { content: '×'; }
.reserve-legend__sw--locked {
  background: rgba(155,168,192,0.15);
  border-color: rgba(155,168,192,0.4);
  color: var(--lunar-gray);
}
.reserve-legend__sw--locked::before { content: '—'; }
.reserve-legend__sw--selected {
  background: rgba(240,192,64,0.30);
  border-color: rgba(240,192,64,0.85);
  color: var(--cosmic-gold);
}
.reserve-legend__sw--selected::before { content: '✓'; }

/* ─── 予約モーダル ─── */
.reserve-modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-4);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.reserve-modal.is-open { display: flex; }
.reserve-modal__inner {
  background: var(--nebula-navy);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  max-width: 42rem;
  width: 100%;
  margin: 2rem auto;
  position: relative;
}
.reserve-modal__head {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.reserve-modal__title {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.125rem;
}
.reserve-modal__subtitle {
  color: var(--cosmic-gold);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.reserve-modal__close {
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--starlight);
  cursor: pointer;
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.reserve-modal__close svg { width: 1rem; height: 1rem; }
.reserve-modal__body {
  padding: var(--space-6);
}
.reserve-modal__section {
  margin-bottom: var(--space-5);
}
.reserve-modal__section-title {
  color: var(--starlight);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr 4fr 1fr 4fr 1fr;
  gap: 4px;
  margin-bottom: 0.5rem;
}
.slot-cell {
  position: relative;
  padding: 0.625rem 0.25rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.03);
  color: var(--lunar-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  transition: all 0.15s;
}
.slot-cell input[type="checkbox"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.slot-cell.is-selected {
  background: rgba(240,192,64,0.25);
  border-color: var(--cosmic-gold);
  color: var(--cosmic-gold);
  box-shadow: 0 0 0 1px var(--cosmic-gold);
}
.slot-cell.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.slot-cell.is-booked {
  background: rgba(248,113,113,0.15);
  border-color: rgba(248,113,113,0.5);
  color: rgb(252,165,165);
  cursor: not-allowed;
  text-decoration: line-through;
}
.slot-grid__time-axis {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr 4fr 1fr 4fr 1fr;
  gap: 4px;
  font-size: 0.55rem;
  color: var(--lunar-gray);
  font-family: var(--font-en);
  text-align: center;
  margin-top: 0.25rem;
}

.reserve-summary {
  background: rgba(15, 31, 61, 0.5);
  border: 1px solid rgba(240,192,64,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--starlight);
}
.reserve-summary strong { color: var(--cosmic-gold); }

.reserve-modal__footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ─── 完了画面・状況確認画面 ─── */
.reserve-result {
  text-align: center;
  padding: var(--space-7);
  background: rgba(15, 31, 61, 0.5);
  border: 1px solid rgba(0, 212, 170, 0.4);
  border-radius: var(--radius-xl);
}
.reserve-result__icon {
  width: 4rem; height: 4rem;
  margin: 0 auto var(--space-4);
  color: var(--aurora-green);
}
.reserve-result__id {
  background: rgba(0,0,0,0.4);
  color: var(--cosmic-gold);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: var(--space-2) 0;
  letter-spacing: 0.05em;
}
.reserve-status-card {
  background: rgba(15, 31, 61, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.reserve-status-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem var(--space-4);
  font-size: 0.875rem;
  margin: 0;
}
.reserve-status-card dt { color: var(--lunar-gray); }
.reserve-status-card dd { color: var(--starlight); margin: 0; }
.reserve-status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.reserve-status-badge--pending   { background: rgba(240,192,64,0.15); color: var(--cosmic-gold); border: 1px solid rgba(240,192,64,0.4); }
.reserve-status-badge--confirmed { background: rgba(0,212,170,0.15); color: var(--aurora-green); border: 1px solid rgba(0,212,170,0.4); }
.reserve-status-badge--rejected  { background: rgba(248,113,113,0.15); color: rgb(252,165,165); border: 1px solid rgba(248,113,113,0.4); }
.reserve-status-badge--cancelled,
.reserve-status-badge--expired   { background: rgba(155,168,192,0.15); color: var(--lunar-gray); border: 1px solid rgba(155,168,192,0.3); }

/* ─── 管理画面 ─── */
.admin-reserve-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8125rem;
}
.admin-reserve-row:last-child { border-bottom: none; }
.admin-reserve-row--clickable { cursor: pointer; transition: background 0.12s; }
.admin-reserve-row--clickable:hover { background: rgba(240,192,64,0.06); }
.admin-reserve-row--clickable:focus-visible { outline: 2px solid rgba(240,192,64,0.55); outline-offset: -2px; }
.admin-reserve-row__id {
  color: var(--cosmic-gold);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.875rem;
}
.admin-reserve-row__meta {
  color: var(--lunar-gray);
  font-size: 0.7rem;
  margin-top: 0.125rem;
}
.admin-reserve-row__name { color: var(--starlight); margin: 0.25rem 0; }
.admin-reserve-row__actions {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-reserve-row__actions .btn {
  font-size: 0.7rem;
  padding: 0.375rem 0.625rem;
}
.admin-reserve-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
  font-size: 0.75rem;
}
.admin-reserve-filter button {
  background: rgba(15,31,61,0.5);
  border: 1px solid var(--color-border);
  color: var(--lunar-gray);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-width: 7rem;          /* 「キャンセル」幅に統一 */
  text-align: center;
}
/* 例外: 「要対応（残3日以内）」のみ広め */
.admin-reserve-filter button.adm-rf-wide { min-width: 11rem; }
/* 「↻ 更新」も最小幅にはしない */
.admin-reserve-filter #reserve-refresh { min-width: auto; }
.admin-reserve-filter button.is-active {
  background: rgba(240,192,64,0.15);
  border-color: var(--cosmic-gold);
  color: var(--cosmic-gold);
}


/* ------------------------------------------------------------
   ステップ（手順表示）
   ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.step-card__num {
  font-family: var(--font-en);
  color: var(--cosmic-gold);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.step-card__title {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-2);
}
.step-card__body {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  line-height: 1.65;
}


/* ------------------------------------------------------------
   展示物カタログ用
   ------------------------------------------------------------ */
.catalog-cat {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  scroll-margin-top: 9rem;
}
.catalog-cat__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  background: rgba(15, 31, 61, 0.5);
  border-bottom: 1px solid var(--color-border);
}
.catalog-cat__head h3 {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.125rem;
}
.catalog-cat__head .eyebrow { margin-bottom: 0.25rem; }
.catalog-cat__desc {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.catalog-cat__body {
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px)  { .catalog-cat__body { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .catalog-cat__body { grid-template-columns: 1fr 1fr 1fr; } }

.item-card {
  display: flex;
  flex-direction: column;
  background: rgba(15, 31, 61, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.item-card__image {
  position: relative;
  aspect-ratio: 3 / 2;   /* 写真素材（3:2 横長）に合わせる */
  overflow: hidden;
}
.item-card__image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.item-card__real {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid rgba(240, 192, 64, 0.4);
  color: var(--cosmic-gold);
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
.item-card__body {
  padding: var(--space-4) var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.item-card__origin {
  color: var(--cosmic-gold);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-en);
}
.item-card__name {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}
.item-card__lead {
  color: rgba(240, 192, 64, 0.8);
  font-size: 0.75rem;
  font-style: italic;
}
.item-card__desc {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  line-height: 1.7;
}


/* ------------------------------------------------------------
   ダウンロード一覧（ファイル行）
   ------------------------------------------------------------ */
.dl-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.dl-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  transition: border-color 0.2s;
}
.dl-row:hover { border-color: rgba(240, 192, 64, 0.3); }
@media (max-width: 640px) {
  .dl-row { flex-direction: column; align-items: stretch; }
}
.dl-row__icon {
  width: 3rem; height: 3rem;
  flex-shrink: 0;
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cosmic-gold);
}
.dl-row__icon .icon { width: 1.5rem; height: 1.5rem; }
.dl-row__info { flex: 1; min-width: 0; }
.dl-row__name {
  color: var(--starlight);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.dl-row__desc {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  line-height: 1.65;
}
.dl-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.dl-row__meta-tag {
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.2);
  color: rgba(240, 192, 64, 0.8);
}
.dl-row__meta-tag--neutral {
  background: rgba(15, 31, 61, 0.8);
  border-color: var(--color-border);
  color: rgba(155, 168, 192, 0.7);
}
.dl-row__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--cosmic-gold);
  color: var(--space-black);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}
.dl-row__btn:hover { background: #FCD34D; }
.dl-row__btn .icon { width: 1rem; height: 1rem; }


/* ------------------------------------------------------------
   写真サムネイル（ダウンロード写真素材用）
   ------------------------------------------------------------ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 640px)  { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;   /* 写真素材（3:2 横長）に合わせる */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-card);
}
.photo-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.photo-tile:hover img,
.photo-tile:focus-visible img { transform: scale(1.1); }
.photo-tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.9), rgba(10,14,26,0.2) 50%, transparent);
  transition: background 0.3s;
}
.photo-tile:hover .photo-tile__overlay { background: linear-gradient(to top, rgba(10,14,26,0.8), rgba(10,14,26,0.2) 50%, transparent); }
.photo-tile__id {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  font-family: var(--font-en);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--cosmic-gold);
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid rgba(240, 192, 64, 0.3);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}
.photo-tile__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem;
  color: var(--starlight);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}


/* ------------------------------------------------------------
   レスポンシブ・ヘルパー
   ------------------------------------------------------------ */
.hide-mobile { display: none; }
@media (min-width: 640px) {
  .hide-mobile  { display: initial; }
  .show-mobile  { display: none; }
}


/* ------------------------------------------------------------
   開館カレンダー（visit/hours/ の月間カレンダー）
   ------------------------------------------------------------ */
.calendar-card {
  background: rgba(15, 31, 61, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
@media (min-width: 640px) { .calendar-card { padding: var(--space-6); } }

.calendar-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.calendar-card__title {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  font-family: var(--font-en);
}
.calendar-card__nav {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(15, 31, 61, 0.7);
  border: 1px solid var(--color-border-strong);
  color: var(--cosmic-gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.calendar-card__nav:hover:not(:disabled) {
  border-color: rgba(240, 192, 64, 0.5);
  background: rgba(15, 31, 61, 1);
}
.calendar-card__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.calendar-card__nav svg { width: 1rem; height: 1rem; }

.calendar-card__msg {
  text-align: center;
  padding: var(--space-10) var(--space-4);
  color: var(--lunar-gray);
}
.calendar-card__msg svg {
  width: 3rem; height: 3rem;
  margin: 0 auto var(--space-3);
  color: rgba(155, 168, 192, 0.4);
}
.calendar-card__msg p { font-size: 0.875rem; }
.calendar-card__msg p + p {
  font-size: 0.75rem;
  color: rgba(155, 168, 192, 0.6);
  margin-top: 0.25rem;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.calendar-weekdays > div {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem;
  color: var(--lunar-gray);
}
.calendar-weekdays > div:first-child { color: rgb(252, 165, 165); }
.calendar-weekdays > div:last-child  { color: rgb(147, 197, 253); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.calendar-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  padding: 0.375rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  background: rgba(240, 192, 64, 0.05);
  border: 1px solid var(--color-border);
  color: var(--starlight);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
@media (min-width: 640px) { .calendar-cell { padding: 0.5rem; } }
.calendar-cell:hover {
  border-color: rgba(240, 192, 64, 0.4);
  background: rgba(240, 192, 64, 0.1);
}
.calendar-cell--closed {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
}
.calendar-cell--closed:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.5);
}
.calendar-cell--today { box-shadow: 0 0 0 2px rgba(240, 192, 64, 0.6); }
.calendar-cell--empty { background: transparent; border-color: transparent; cursor: default; }
.calendar-cell--empty:hover { background: transparent; border-color: transparent; }

.calendar-cell__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.25rem;
}
.calendar-cell__date {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
@media (min-width: 640px) { .calendar-cell__date { font-size: 0.875rem; } }
.calendar-cell__date--sun { color: rgb(252, 165, 165); }
.calendar-cell__date--sat { color: rgb(147, 197, 253); }
.calendar-cell__date--hol { color: rgb(252, 165, 165); }

.calendar-cell__badge {
  font-size: 0.625rem;
  font-weight: 700;
}
.calendar-cell__badge--closed { color: rgb(252, 165, 165); }
.calendar-cell__badge--open   { color: rgba(240, 192, 64, 0.7); }
/* シアター満席 */
.calendar-cell__badge--full {
  color: rgb(252, 165, 165);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: var(--radius-sm);
  padding: 0 0.25rem;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.calendar-cell__hol {
  font-size: 0.5625rem;
  color: rgba(252, 165, 165, 0.8);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}
@media (min-width: 640px) { .calendar-cell__hol { display: block; } }
.calendar-cell__progs {
  font-size: 0.5625rem;
  color: rgba(240, 192, 64, 0.6);
  display: none;
}
@media (min-width: 640px) { .calendar-cell__progs { display: block; } }

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-5);
  font-size: 0.625rem;
  color: var(--lunar-gray);
}
.calendar-legend > div { display: flex; align-items: center; gap: 0.375rem; }
.calendar-legend__swatch {
  width: 0.75rem; height: 0.75rem;
  border-radius: 0.25rem;
  background: rgba(240, 192, 64, 0.05);
  border: 1px solid var(--color-border);
}
.calendar-legend__swatch--closed {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
}

/* 選択日の詳細 */
.calendar-detail {
  background: rgba(15, 31, 61, 0.5);
  border: 1px solid rgba(240, 192, 64, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-top: var(--space-4);
}
.calendar-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.calendar-detail__date { color: var(--starlight); font-weight: 700; font-size: 1.25rem; }
.calendar-detail__status { margin-top: 0.25rem; font-size: 0.875rem; }
.calendar-detail__status--open   { color: var(--cosmic-gold); }
.calendar-detail__status--closed { color: rgb(252, 165, 165); }
.calendar-detail__close {
  background: none;
  border: none;
  color: var(--lunar-gray);
  cursor: pointer;
  padding: 0.25rem;
}
.calendar-detail__close:hover { color: var(--starlight); }
.calendar-detail__close svg { width: 1.25rem; height: 1.25rem; }

.calendar-detail__progs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.calendar-detail__prog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 31, 61, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.625rem 1rem;
}
.calendar-detail__prog-time {
  color: var(--starlight);
  font-weight: 700;
  font-size: 0.875rem;
  font-family: var(--font-en);
}
.calendar-detail__prog-name {
  font-size: 0.75rem;
  color: var(--cosmic-gold);
}
.calendar-detail__prog-link {
  text-decoration: none;
  transition: color 0.15s, text-decoration-color 0.15s;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.calendar-detail__prog-link:hover,
.calendar-detail__prog-link:focus-visible {
  color: rgb(255, 218, 102);
  text-decoration-color: rgb(255, 218, 102);
}
.calendar-detail__note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--lunar-gray);
}

/* ------------------------------------------------------------
   ホーム：ミニカレンダー＋トピックス
   ------------------------------------------------------------ */
.mini-cal {
  background: rgba(15, 31, 61, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
.mini-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.mini-cal__title {
  color: var(--starlight);
  font-weight: 700;
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}
.mini-cal__nav {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(15, 31, 61, 0.7);
  border: 1px solid var(--color-border-strong);
  color: var(--cosmic-gold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.mini-cal__nav:hover:not(:disabled) {
  border-color: rgba(240, 192, 64, 0.5);
}
.mini-cal__nav:disabled { opacity: 0.4; cursor: not-allowed; }
.mini-cal__nav svg { width: 0.875rem; height: 0.875rem; }

.mini-cal__weekdays,
.mini-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}
.mini-cal__weekdays {
  margin-bottom: 0.375rem;
}
.mini-cal__weekdays > div {
  text-align: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--lunar-gray);
}
.mini-cal__weekdays > div:first-child { color: rgb(252, 165, 165); }
.mini-cal__weekdays > div:last-child  { color: rgb(147, 197, 253); }

.mini-cal__cell {
  aspect-ratio: 1;
  border-radius: 0.25rem;
  /* 日付＋バッジを上段、上映回数を下段に置く（2026-08-29 施主指示） */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(240, 192, 64, 0.05);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--starlight);
  font-family: inherit;
  padding: 0.3125rem 0.375rem;
  text-align: left;
  gap: 0.125rem;
  overflow: hidden;
}
.mini-cal__cell-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.125rem;
  width: 100%;
}
.mini-cal__cell:hover {
  border-color: rgba(240, 192, 64, 0.4);
  background: rgba(240, 192, 64, 0.1);
}
.mini-cal__cell--closed {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
}
.mini-cal__cell--closed:hover {
  background: rgba(248, 113, 113, 0.2);
}
.mini-cal__cell--today    { box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.6); }
.mini-cal__cell--selected { box-shadow: 0 0 0 2px var(--cosmic-gold); }
.mini-cal__cell--empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}
.mini-cal__cell-date {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.mini-cal__cell-date--sun { color: rgb(252, 165, 165); }
.mini-cal__cell-date--sat { color: rgb(147, 197, 253); }
.mini-cal__cell-date--hol { color: rgb(252, 165, 165); }
.mini-cal__cell-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  color: rgb(252, 165, 165);
  line-height: 1;
}
/* 上映回数（開館日のみ・セル下段） */
.mini-cal__cell-progs {
  font-size: 0.5625rem;
  font-weight: 700;
  color: rgba(240, 192, 64, 0.85);
  font-family: var(--font-en);
  line-height: 1;
  white-space: nowrap;
}
/* 狭い画面ではセルが小さく回数が読めないので隠す */
@media (max-width: 420px) {
  .mini-cal__cell-progs { display: none; }
}
.mini-cal__msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 0;
  font-size: 0.75rem;
  color: var(--lunar-gray);
}

/* ホームページの「トピックス」セクション */
/* 共通仕様（アスロン準拠）：カード幅は 14〜16rem に固定し中央寄せ。
   auto-fit（空トラックを畳む）でないと件数が少ないときカードが左に寄って見える */
.topics-grid {
  /* 旧: minmax(14rem, 16rem) のカードは文字も写真も小さく読みにくかった（2026-09-03 拡大） */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 24rem));
  gap: var(--space-6);
  justify-content: center;
}
.topic-card {
  background: rgba(15, 31, 61, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.topic-card:hover { border-color: rgba(240, 192, 64, 0.4); }
.topic-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--space-black);
}
.topic-card__image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.topic-card:hover .topic-card__image { transform: scale(1.05); }
.topic-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.topic-card__date {
  color: var(--cosmic-gold);
  font-size: 0.875rem;
  font-family: var(--font-en);
  letter-spacing: 0.04em;
  margin-bottom: 0.625rem;
}
.topic-card__title {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.1875rem;
  margin-bottom: 0.625rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topic-card:hover .topic-card__title { color: var(--cosmic-gold); }
.topic-card__body-text {
  color: var(--lunar-gray);
  font-size: 0.9375rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topic-card__more {
  color: var(--cosmic-gold);
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 1rem;
  align-self: flex-start;
}
@media (max-width: 640px) {
  .topics-grid { grid-template-columns: 1fr; }
}

/* トピックス：ライトボックス */
.topic-lightbox {
  /* 共通仕様（v0.2）: モーダル内スクロールは作らず、オーバーレイ全体をスクロールさせる
     （2026-09-03 施主指摘「モーダルにスクロールが発生」を受け、inner の max-height/overflow を撤去） */
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vh, 3rem) var(--space-4);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.topic-lightbox.is-open { display: flex; }
.topic-lightbox.is-visible { opacity: 1; }
.topic-lightbox__inner {
  background: var(--nebula-navy);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  max-width: 48rem;
  width: 100%;
  margin: auto;               /* 短いときは上下中央、長いときは上から並んでオーバーレイがスクロール */
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}
.topic-lightbox.is-visible .topic-lightbox__inner { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .topic-lightbox, .topic-lightbox__inner { transition: none; }
}
.topic-lightbox__close {
  position: fixed;
  top: 1rem; right: 1rem;
  width: 2.5rem; height: 2.5rem;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--starlight);
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.topic-lightbox__close svg { width: 1.25rem; height: 1.25rem; }
/* 共通仕様：画像はモーダル横幅いっぱい・縦は実寸（トリミング・レターボックスなし） */
.topic-lightbox__image-wrap {
  background: var(--space-black);
  display: block;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}
.topic-lightbox__image {
  width: 100%;
  height: auto;
  display: block;
}
/* 共通仕様（アスロン準拠）の余白。旧実装は未定義変数 --space-7 で padding が 0 に落ちていた */
.topic-lightbox__body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.topic-lightbox__date {
  color: var(--cosmic-gold);
  font-size: 0.75rem;
  font-family: var(--font-en);
  margin-bottom: 0.5rem;
}
.topic-lightbox__title {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  line-height: 1.4;
}
.topic-lightbox__text {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ------------------------------------------------------------
   管理画面 admin/calendar
   ------------------------------------------------------------ */
.admin-login {
  max-width: 28rem;
  margin: var(--space-12) auto;
  padding: var(--space-8);
  background: rgba(15, 31, 61, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.admin-login__title {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
  text-align: center;
}
.admin-login__lead {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  margin-bottom: var(--space-6);
  text-align: center;
}
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.admin-tab {
  background: none;
  border: none;
  color: var(--lunar-gray);
  padding: 0.75rem 1rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.admin-tab:hover { color: var(--starlight); }
.admin-tab.is-active {
  color: var(--cosmic-gold);
  border-bottom-color: var(--cosmic-gold);
}
.admin-panel { display: none; }
.admin-panel.is-active { display: block; }

.admin-overrides-list {
  max-height: 24rem;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.admin-overrides-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}
.admin-overrides-list__item:last-child { border-bottom: none; }
.admin-overrides-list__date {
  color: var(--starlight);
  font-family: var(--font-en);
  font-weight: 700;
}
.admin-overrides-list__detail {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  margin-left: 0.75rem;
}
.admin-overrides-list__remove {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: rgb(252, 165, 165);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
}
.admin-overrides-list__empty {
  padding: var(--space-8);
  text-align: center;
  color: var(--lunar-gray);
  font-size: 0.875rem;
}

.admin-topic-card {
  background: rgba(15, 31, 61, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.admin-topic-card__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.admin-topic-card__title {
  color: var(--starlight);
  font-weight: 700;
  font-size: 0.875rem;
}
.admin-topic-card__date {
  color: var(--cosmic-gold);
  font-size: 0.75rem;
  font-family: var(--font-en);
}
.admin-topic-card__body {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: var(--space-3);
}
.admin-topic-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* =========================================================================
   貸館仮予約 — インライン選択パネル
   ========================================================================= */
.section-divider--minor {
  margin-top: var(--space-5);
}
.section-divider__title--minor {
  font-size: 1rem;
  font-weight: 700;
  color: var(--starlight);
}

.reserve-selection-panel {
  display: block;
}
.reserve-selection-empty {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5);
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(155,168,192,0.25);
  border-radius: var(--radius-md);
  color: var(--lunar-gray);
  font-size: 0.8125rem;
  line-height: 1.7;
}
.reserve-selection-empty svg {
  color: var(--lunar-gray);
  opacity: 0.7;
}

.reserve-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.625rem var(--space-4);
  background: rgba(240,192,64,0.08);
  border: 1px solid rgba(240,192,64,0.25);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: none;
}
.reserve-selection-count {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--cosmic-gold);
  letter-spacing: 0.04em;
}
.reserve-selection-clear {
  background: transparent;
  border: 1px solid rgba(248,113,113,0.4);
  color: rgb(252,165,165);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}
.reserve-selection-clear:hover {
  background: rgba(248,113,113,0.12);
  border-color: rgba(248,113,113,0.7);
}

.reserve-selection-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(240,192,64,0.25);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.reserve-sel-row {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.reserve-sel-row:last-child {
  border-bottom: none;
}
.reserve-sel-row__main {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.75rem var(--space-4);
}
.reserve-sel-row__main--clickable { cursor: pointer; transition: background 0.12s; user-select: none; }
.reserve-sel-row__main--clickable:hover { background: rgba(240,192,64,0.06); }
.reserve-sel-row__main--clickable:focus-visible { outline: 2px solid rgba(240,192,64,0.55); outline-offset: -2px; }
.reserve-sel-row__date {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--starlight);
  font-size: 0.875rem;
  min-width: 5rem;
  font-family: var(--font-en);
}
.reserve-sel-row__fac {
  flex: 1 1 auto;
  color: var(--starlight);
  font-size: 0.875rem;
}
.reserve-sel-row__time {
  flex: 0 0 auto;
  color: var(--cosmic-gold);
  font-weight: 700;
  font-size: 0.8125rem;
  font-family: var(--font-en);
}
.reserve-sel-row__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.reserve-sel-row__detail-btn {
  background: rgba(240,192,64,0.10);
  border: 1px solid rgba(240,192,64,0.3);
  color: var(--cosmic-gold);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.reserve-sel-row__detail-btn:hover {
  background: rgba(240,192,64,0.18);
  border-color: rgba(240,192,64,0.55);
}
.reserve-sel-row__remove {
  width: 1.625rem;
  height: 1.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(248,113,113,0.4);
  color: rgb(252,165,165);
  font-size: 1rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}
.reserve-sel-row__remove:hover {
  background: rgba(248,113,113,0.15);
  border-color: rgba(248,113,113,0.7);
}
.reserve-sel-row.is-expanded {
  background: rgba(240,192,64,0.04);
}
.reserve-sel-row__detail-body {
  padding: 0.25rem var(--space-4) var(--space-3) calc(5rem + var(--space-4) + var(--space-3));
  border-top: 1px dashed rgba(240,192,64,0.18);
  background: rgba(240,192,64,0.025);
}
.reserve-sel-row__ext-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--cosmic-gold);
  letter-spacing: 0.06em;
  margin: 0.5rem 0 0.5rem;
  text-transform: uppercase;
}
.reserve-sel-row__ext-empty,
.reserve-sel-row__ext-loading {
  font-size: 0.75rem;
  color: var(--lunar-gray);
  margin: 0;
}
.reserve-sel-row__ext-auto {
  font-size: 0.6875rem;
  color: var(--lunar-gray);
  margin: 0.5rem 0 0;
  font-style: italic;
}

.reserve-ext-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.reserve-ext-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(155,168,192,0.25);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  color: var(--starlight);
  cursor: pointer;
  transition: all 0.12s;
}
.reserve-ext-opt:hover {
  border-color: rgba(240,192,64,0.45);
  background: rgba(240,192,64,0.08);
}
.reserve-ext-opt input[type="checkbox"] {
  width: 0.875rem;
  height: 0.875rem;
  accent-color: var(--cosmic-gold);
  margin: 0;
  cursor: pointer;
}
.reserve-ext-opt input[type="checkbox"]:checked + .reserve-ext-opt__label {
  color: var(--cosmic-gold);
  font-weight: 700;
}
.reserve-ext-opt--disabled {
  cursor: not-allowed;
  opacity: 0.65;
  border-color: rgba(248,113,113,0.3);
  background: rgba(248,113,113,0.04);
}
.reserve-ext-opt--disabled:hover {
  border-color: rgba(248,113,113,0.3);
  background: rgba(248,113,113,0.04);
}
.reserve-ext-opt__tag {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}
.reserve-ext-opt__tag--reserved {
  background: rgba(248,113,113,0.18);
  color: rgb(252,165,165);
  border: 1px solid rgba(248,113,113,0.4);
}

/* インラインフォーム見出し */
.reserve-form__heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--starlight);
  margin: var(--space-5) 0 var(--space-3);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(240,192,64,0.2);
  letter-spacing: 0.02em;
}
.reserve-form__heading:first-child {
  margin-top: 0;
}
.reserve-form__note {
  font-size: 0.75rem;
  color: var(--lunar-gray);
  line-height: 1.7;
  margin: 0 0 var(--space-3);
}
.reserve-form__submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  align-items: center;
}

/* 14日同意チェックボックス */
.form-field--consent {
  background: rgba(240,192,64,0.06);
  border: 1px solid rgba(240,192,64,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  line-height: 1.7;
  font-size: 0.8125rem;
  color: var(--starlight);
}
.consent-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.consent-check__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  border: 2px solid rgba(240,192,64,0.55);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  transition: all 0.12s;
}
.consent-check__box::after {
  content: '✓';
  color: var(--space-black);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.12s;
}
.consent-check:hover .consent-check__box {
  border-color: rgba(240,192,64,0.85);
  background: rgba(240,192,64,0.10);
}
.consent-check input[type="checkbox"]:checked + .consent-check__box {
  background: var(--cosmic-gold);
  border-color: var(--cosmic-gold);
}
.consent-check input[type="checkbox"]:checked + .consent-check__box::after {
  opacity: 1;
}
.consent-check input[type="checkbox"]:focus-visible + .consent-check__box {
  outline: 2px solid var(--cosmic-gold);
  outline-offset: 2px;
}
.consent-check__text {
  flex: 1;
}

.link-gold {
  color: var(--cosmic-gold);
  text-decoration: underline;
  text-decoration-color: rgba(240,192,64,0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}
.link-gold:hover {
  text-decoration-color: var(--cosmic-gold);
}

/* モバイル：選択中サマリーの行を縦積み */
@media (max-width: 640px) {
  .reserve-sel-row__main {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .reserve-sel-row__date {
    min-width: 4rem;
  }
  .reserve-sel-row__fac {
    flex: 1 1 calc(100% - 5rem);
  }
  .reserve-sel-row__time {
    width: 100%;
    flex: 1 1 100%;
    padding-left: 5rem;
    font-size: 0.75rem;
  }
  .reserve-sel-row__actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.25rem;
  }
  .reserve-sel-row__detail-body {
    padding-left: var(--space-4);
  }
}

/* =========================================================================
   管理画面: 貸館予約タブ — カレンダービュー + インライン登録パネル
   ========================================================================= */
.adm-panel-section { margin-bottom: var(--space-5); }
.adm-section-title { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.875rem; }
.adm-section-title h3 {
  margin: 0; font-size: 1.05rem; color: var(--starlight); font-weight: 700;
  padding-left: 0.6rem; border-left: 4px solid var(--cosmic-gold);
}
.adm-section-title hr { flex: 1; border: 0; border-top: 1px solid var(--color-border); margin: 0; }

.cal-view {
  background: rgba(15,31,61,0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: var(--space-3); }
.cal-nav__btn {
  width: 2rem; height: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--starlight);
  cursor: pointer;
  font-size: 1rem; line-height: 1;
}
.cal-nav__btn:hover { background: rgba(240,192,64,0.15); }
.cal-nav__label { font-weight: 700; font-size: 0.95rem; color: var(--cosmic-gold); font-family: var(--font-en); }

.cal-matrix-wrap { overflow-x: auto; }
/* マトリクス本体は公開ページと共通の .reserve-week-matrix を使う（CSS 共通化済み） */

.cal-legend {
  display: flex; gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.7rem; color: var(--lunar-gray);
  flex-wrap: wrap;
}
.cal-legend__sw {
  display: inline-block;
  width: 0.8rem; height: 0.8rem;
  border-radius: 3px; margin-right: 0.3rem;
  vertical-align: -1px;
}
.cal-legend__sw--conf     { background: rgba(74,222,128,0.18); border: 1px solid rgba(74,222,128,0.5); }
.cal-legend__sw--tent     { background: rgba(240,192,64,0.18); border: 1px solid rgba(240,192,64,0.5); }
.cal-legend__sw--block    { background: rgba(99,102,241,0.18); border: 1px solid rgba(99,102,241,0.5); }
.cal-legend__sw--selected { background: rgba(240,192,64,0.30); box-shadow: inset 0 0 0 2px rgba(240,192,64,0.85); }
.cal-legend__sw--empty    { background: rgba(74,222,128,0.10); border: 1px solid rgba(74,222,128,0.4); }
.cal-legend__sw--closed   { background: rgba(155,168,192,0.15); border: 1px solid rgba(155,168,192,0.4); }

.register-panel {
  background: rgba(15,31,61,0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: border-color 0.2s, background 0.2s;
}
.register-panel.is-edit {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.04);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}

.edit-banner {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(99,102,241,0.5);
  border-radius: var(--radius-md);
}
.is-edit .edit-banner { display: flex; }
.edit-banner__label {
  background: #6366f1;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.edit-banner__id { color: #c7d2fe; font-family: var(--font-en, monospace); font-size: 0.85rem; font-weight: 700; }
.edit-banner__exit {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(199,210,254,0.4);
  color: #c7d2fe;
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.edit-banner__exit:hover { background: rgba(99,102,241,0.15); }

.sel-empty {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(155,168,192,0.25);
  border-radius: var(--radius-md);
  color: var(--lunar-gray);
  font-size: 0.8rem;
}
.sel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.9rem;
  background: rgba(240,192,64,0.08);
  border: 1px solid rgba(240,192,64,0.25);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 0;
}
.sel-count { font-size: 0.8rem; font-weight: 700; color: var(--cosmic-gold); }
.sel-clear { background: transparent; border: 1px solid rgba(248,113,113,0.4); color: rgb(252,165,165); font-size: 0.7rem; padding: 0.25rem 0.6rem; border-radius: var(--radius-sm); cursor: pointer; }
.sel-list { list-style: none; margin: 0; padding: 0; background: rgba(255,255,255,0.02); border: 1px solid rgba(240,192,64,0.25); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.sel-row {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sel-row:last-child { border-bottom: 0; }
.sel-row.is-expanded { background: rgba(240,192,64,0.04); }
.sel-row__main {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.9rem;
}
.sel-row__main--clickable { cursor: pointer; transition: background 0.12s; user-select: none; }
.sel-row__main--clickable:hover { background: rgba(240,192,64,0.06); }
.sel-row__main--clickable:focus-visible { outline: 2px solid rgba(240,192,64,0.55); outline-offset: -2px; }
.sel-row__date { font-weight: 700; color: var(--starlight); min-width: 5rem; font-family: var(--font-en, monospace); font-size: 0.85rem; }
.sel-row__fac { color: var(--starlight); flex: 1; font-size: 0.85rem; }
.sel-row__time { color: var(--cosmic-gold); font-family: var(--font-en, monospace); font-size: 0.8rem; font-weight: 700; }
.sel-row__detail-btn {
  background: rgba(240,192,64,0.10);
  border: 1px solid rgba(240,192,64,0.3);
  color: var(--cosmic-gold);
  font-size: 0.7rem; padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm); cursor: pointer;
  white-space: nowrap;
}
.sel-row__detail-btn:hover { background: rgba(240,192,64,0.18); border-color: rgba(240,192,64,0.55); }
.sel-row__del {
  background: transparent; border: 1px solid rgba(248,113,113,0.4); color: rgb(252,165,165);
  width: 1.6rem; height: 1.6rem;
  border-radius: 3px; cursor: pointer; font-size: 1rem; line-height: 1;
}
.sel-row__detail-body {
  padding: 0.5rem 0.9rem 0.9rem calc(5rem + 0.75rem + 0.9rem);
  border-top: 1px dashed rgba(240,192,64,0.18);
  background: rgba(240,192,64,0.025);
}
.sel-row__ext-title {
  font-size: 0.7rem; font-weight: 700;
  color: var(--cosmic-gold);
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}
.sel-row__ext-empty {
  font-size: 0.75rem;
  color: var(--lunar-gray);
  margin: 0;
}
.sel-row__ext-auto {
  font-size: 0.7rem;
  color: var(--lunar-gray);
  margin: 0.5rem 0 0;
  font-style: italic;
}
@media (max-width: 640px) {
  .sel-row__detail-body { padding-left: 0.9rem; }
}

.form-heading {
  font-size: 0.85rem; font-weight: 700; color: var(--starlight);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.3rem; border-bottom: 1px solid rgba(240,192,64,0.25);
}
.form-heading:first-child { margin-top: 0; }

.option-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.option-card {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.12s;
  font-size: 0.85rem;
}
.option-card:hover { background: rgba(240,192,64,0.06); border-color: rgba(240,192,64,0.4); }
.option-card input[type="radio"], .option-card input[type="checkbox"] {
  accent-color: var(--cosmic-gold);
  width: 1rem; height: 1rem; margin: 0; flex-shrink: 0;
}
.option-card__label { font-weight: 600; }
.option-card__desc { color: var(--lunar-gray); font-size: 0.75rem; margin-left: auto; }
.option-card:has(input:checked) { background: rgba(240,192,64,0.12); border-color: rgba(240,192,64,0.55); }
.option-card:has(input:checked) .option-card__label { color: var(--cosmic-gold); }

.submit-row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  align-items: center;
}

.detail-row {
  display: grid; grid-template-columns: 7rem 1fr;
  gap: 0.5rem; padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border); font-size: 0.85rem;
}
.detail-row__label { color: var(--lunar-gray); font-size: 0.75rem; }
.detail-row__value { color: var(--starlight); }
.detail-section-title {
  font-size: 0.8rem; font-weight: 700; color: var(--cosmic-gold);
  margin: 1.5rem 0 0.5rem;
  padding-bottom: 0.3rem; border-bottom: 1px solid rgba(240,192,64,0.3);
}
.detail-section-title:first-child { margin-top: 0; }

.reserve-status-badge--blocked {
  background: rgba(99,102,241,0.18);
  color: #c7d2fe;
  border: 1px solid rgba(99,102,241,0.5);
}

/* ============================================================
   トップページ改定（2026-08-29）
   ミッションボード / 目的別バナー / 19点パネル / 上映2カラム /
   サンダーくんプロフィールカード / クイックインフォ強調
   ============================================================ */

/* ── 本日のミッションボード（ヒーロー下部・ライブ表示）── */
.today-panel {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  background: rgba(10, 14, 26, 0.78);
  border: 1px solid rgba(240, 192, 64, 0.35);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  overflow: hidden;
  max-width: 56rem;
}
.today-panel__cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.875rem 1.25rem;
  border-right: 1px solid rgba(240, 192, 64, 0.18);
  min-width: 0;
}
.today-panel__cell:last-child { border-right: 0; }
.today-panel__cell--date { flex: 0 0 auto; }
.today-panel__cell--grow { flex: 1 1 10rem; }
.today-panel__key {
  font-family: var(--font-en);
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 192, 64, 0.8);
}
.today-panel__val {
  color: var(--starlight);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.today-panel__val .en { font-family: var(--font-en); }
.today-panel__dot {
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--aurora-green, #4ade80);
  margin-right: 0.375rem;
  vertical-align: 0.0625rem;
  animation: today-pulse 2.4s ease-in-out infinite;
}
.today-panel__dot--closed { background: rgb(248, 113, 113); animation: none; }
.today-panel__dot--full   { background: rgb(248, 113, 113); }
@keyframes today-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .today-panel__dot { animation: none; }
}
.today-panel__link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  color: var(--cosmic-gold);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(240, 192, 64, 0.08);
  transition: background 0.2s;
}
.today-panel__link:hover,
.today-panel__link:focus-visible { background: rgba(240, 192, 64, 0.16); }
@media (max-width: 720px) {
  .today-panel { flex-direction: column; }
  .today-panel__cell { border-right: 0; border-bottom: 1px solid rgba(240, 192, 64, 0.18); }
  .today-panel__link { justify-content: center; }
}

/* ── 目的別バナー（クイックリンク）── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 640px)  { .quick-links { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .quick-links { grid-template-columns: repeat(8, 1fr); } }
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-2) var(--space-4);
  background: rgba(15, 31, 61, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.quick-link:hover,
.quick-link:focus-visible {
  border-color: rgba(240, 192, 64, 0.5);
  background: rgba(15, 31, 61, 0.8);
  transform: translateY(-2px);
}
.quick-link .icon {
  width: 1.5rem; height: 1.5rem;
  color: var(--cosmic-gold);
}
.quick-link__name {
  color: var(--starlight);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}
.quick-link__sub {
  color: var(--lunar-gray);
  font-size: 0.625rem;
  line-height: 1.4;
}

/* ── 「本物 19点」クレームパネル ── */
.stat-claim {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.stat-claim__num {
  font-family: var(--font-en);
  font-size: clamp(4.5rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--cosmic-gold);
  letter-spacing: -0.02em;
}
.stat-claim__unit {
  color: var(--starlight);
  font-weight: 700;
  font-size: 1.125rem;
}
.stat-claim__note {
  color: var(--lunar-gray);
  font-size: 0.75rem;
}
.craft-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-6);
}
.craft-roster__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 31, 61, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  color: var(--starlight);
}
.craft-roster__origin {
  font-family: var(--font-en);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  color: var(--cosmic-gold);
  border-left: 1px solid rgba(240, 192, 64, 0.4);
  padding-left: 0.5rem;
}

/* ── 上映スケジュール 2 カラム（カレンダー幅を制限）── */
.schedule-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: stretch;      /* 左右の箱の高さを揃える */
  max-width: 62rem;          /* 広い画面で間延びしないよう全体を中央にまとめる */
  margin-inline: auto;
}
.schedule-duo .mini-cal { max-width: 26rem; margin-inline: auto; width: 100%; }
@media (min-width: 840px) {
  /* 左右を同じ幅に。カレンダーを大きく見せる（2026-08-29 施主指示） */
  .schedule-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .schedule-duo .mini-cal { max-width: none; margin-inline: 0; }
}

/* ── 宇宙人サンダーくん：不時着ストーリーのワイドバナー ── */
.thunder-banner {
  position: relative;
  border: 1px solid rgba(240, 192, 64, 0.25);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--space-black);
}
.thunder-banner__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;   /* 実写: 立っている宇宙人の頭〜上半身を見せる（2026-09-03） */
}
.thunder-banner__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,14,26,0.95) 0%, rgba(10,14,26,0.55) 45%, rgba(10,14,26,0.15) 100%);
}
.thunder-banner__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding: var(--space-10) var(--space-6) var(--space-8);
  /* 上部に空の余白を残してイラストを見せる */
  padding-top: clamp(9rem, 26vw, 18rem);
}
@media (min-width: 900px) {
  .thunder-banner__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--space-10);
    padding: clamp(11rem, 22vw, 20rem) var(--space-10) var(--space-10);
  }
}
.thunder-banner__title {
  color: var(--starlight);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin: var(--space-2) 0 var(--space-4);
}
.thunder-banner__lead {
  color: var(--starlight);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-3);
}
.thunder-banner__text {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  line-height: 1.9;
}
/* 右側：肩書きの並び */
.thunder-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  margin-bottom: var(--space-5);
}
.thunder-fact {
  background: rgba(10, 14, 26, 0.55);
  border: 1px solid rgba(240, 192, 64, 0.25);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  backdrop-filter: blur(4px);
}
.thunder-fact__key {
  display: block;
  font-family: var(--font-en);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 192, 64, 0.85);
  margin-bottom: 0.1875rem;
}
.thunder-fact__val {
  display: block;
  color: var(--starlight);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ── クイックインフォの数字を主役に ── */
.quick-info__value {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.quick-info__value .en { font-family: var(--font-en); }

/* 歩み（timeline）の写真: 横長 3:2 を2枚並べる */
.timeline__photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-4); max-width: 44rem; }
.timeline__photos figure { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg-card); }
.timeline__photos img { width: 100%; height: 100%; object-fit: cover; }
.timeline__photos figcaption { position: absolute; left: 0.6rem; bottom: 0.5rem; font-size: 0.7rem; color: var(--starlight); background: rgba(10,14,26,0.65); padding: 0.15rem 0.5rem; border-radius: var(--radius-sm); }
@media (max-width: 640px) { .timeline__photos { grid-template-columns: 1fr; } }


/* =====================================================================
   矢印記号（→）の廃止：ボタン・リンクの「進む」は CSS シェブロンで表す
   （施主指示 2026-09-03。貸館サイト hall.css の .chev / .more::after と同じ型）
   ===================================================================== */
.chev,
.btn--go::after,
.more-link::after,
.info-grid__more::after,
.feature-card__more::after,
.tall-card__more::after,
.today-panel__link::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  flex-shrink: 0;
}
.chev { margin-left: 0.45em; vertical-align: 0.1em; }
.btn--go::after { margin-left: 0.1em; transition: transform 0.2s; }
.btn--go:hover::after, .btn--go:focus-visible::after { transform: translateX(3px) rotate(-45deg); }
.more-link { display: inline-flex; align-items: center; gap: 0.45em; }
.more-link::after { transition: transform 0.2s; }
.more-link:hover::after, .more-link:focus-visible::after { transform: translateX(3px) rotate(-45deg); }
.info-grid__more { display: inline-flex; align-items: center; gap: 0.45em; }
.info-grid__more::after { width: 0.55em; height: 0.55em; }
.feature-card__more::after, .tall-card__more::after { width: 0.45em; height: 0.45em; margin-left: 0.1em; }
.today-panel__link::after { margin-left: 0.5em; }
@media (prefers-reduced-motion: reduce) {
  .btn--go::after, .more-link::after { transition: none; }
}

/* 研究ノート（展示カード）2026-09-04 */
.item-card__note { margin-top: .7rem; padding-left: .7rem; border-left: 3px solid #C9A227; font-size: .84rem; line-height: 1.7; color: #4a4a4a; }
.item-card__note b { font-weight: 700; margin-right: .5em; color: #1f2a44; }

/* ==========================================================================
   SSR（公開時プリレンダー）で生HTMLに焼く区画  ── 2026-09-10
   --------------------------------------------------------------------------
   AI検索のクローラは JavaScript を実行しないので、トピックスと休館日を
   サーバー側で本文として書き出している（api/ssr.php）。

   ・.topics-ssr … トップの「最新情報」。topics.js が同じ場所を上書きするため、
                   人の画面にはほぼ出ない。JS が動かない環境の保険でもある。
   ・.closure-list … 開館時間・休館日ページの「今後の休館日」。
                   JS は触らないので常に表示される本文。隠さないこと
                   （見えない構造化データ・隠しテキストは検索の規約違反になる）。
   ========================================================================== */

.topics-ssr {
  display: grid;
  gap: var(--space-4);
}
.topics-ssr .topic-card {
  padding: var(--space-4) var(--space-5);
  background: rgba(15, 31, 61, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.topics-ssr .topic-card__date {
  color: var(--cosmic-gold);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.topics-ssr .topic-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}
.topics-ssr .topic-card__title a { color: var(--starlight); text-decoration: none; }
.topics-ssr .topic-card__title a:hover { color: var(--cosmic-gold); }
.topics-ssr .topic-card__body {
  color: var(--lunar-gray);
  font-size: 0.875rem;
  line-height: 1.8;
}

/* ── 今後の休館日 ── */
.closure-list {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: rgba(15, 31, 61, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.closure-list__title {
  color: var(--starlight);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.closure-list__month + .closure-list__month { margin-top: var(--space-4); }
.closure-list__ym {
  color: var(--cosmic-gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.closure-list__days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.closure-list__days li {
  color: var(--starlight);
  font-size: 0.875rem;
  /* 数字が並ぶので幅を揃える */
  font-variant-numeric: tabular-nums;
}
.closure-list__note { color: var(--lunar-gray); font-size: 0.75rem; }
.closure-list__empty, .closure-list__foot {
  color: var(--lunar-gray);
  font-size: 0.8125rem;
  line-height: 1.8;
}
.closure-list__foot { margin-top: var(--space-4); }

/* ── トピックスの個別ページ ── */
.topic-page__date { color: var(--cosmic-gold); font-size: 0.8125rem; margin-bottom: var(--space-5); }
.topic-page__figure { margin: 0 0 var(--space-6); }
.topic-page__figure img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.topic-page__body { color: var(--starlight); font-size: 0.9375rem; line-height: 2; }
.topic-page__back { margin-top: var(--space-7, 2rem); }
.breadcrumb { color: var(--lunar-gray); font-size: 0.75rem; margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--lunar-gray); }
.breadcrumb a:hover { color: var(--cosmic-gold); }


/* ==========================================================================
   管理画面「料金計算」タブ  ── 2026-09-16
   --------------------------------------------------------------------------
   貸館の概算見積の画面。金額の計算はサーバー（api/_lib/fees.php）が行い、
   ここは入力と内訳の見せ方だけ。内訳の表は既存の .table-wrap + .price-table
   を流用している（管理画面の暗い意匠に合う表がそれしかない）。
   ========================================================================== */

.fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--space-4);
  align-items: start;
}
.fee-box {
  background: rgba(15, 31, 61, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}
.fee-box__title {
  color: var(--cosmic-gold);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(240, 192, 64, 0.3);
}
.fee-box__note {
  color: var(--lunar-gray);
  font-size: 0.75rem;
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
/* 大ホール以外を選んでいるときは、楽屋・職員の欄を薄くして「関係ない」と示す。
   隠さないのは、既に入れた数字が見えないまま計算に入るのを防ぐため。 */
#fee-euphony-only.is-off { opacity: 0.45; }

/* ── 時間区分 ── */
.fee-slots { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: var(--space-3); }
.fee-slot {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: rgba(15, 31, 61, 0.7);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--starlight);
  font-size: 0.8rem;
  cursor: pointer;
}
.fee-slot--main { font-weight: 700; border-color: rgba(240, 192, 64, 0.45); }
.fee-slot.is-off { opacity: 0.4; cursor: not-allowed; }
/* 橋渡し（12-13・17-18）は前後の区分を両方選ぶと自動で入る。
   外せないことを見た目で示す（サーバー側の正規化と同じ挙動）。 */
.fee-slot.is-forced { border-style: dashed; color: var(--cosmic-gold); cursor: default; }

/* ── 条件のチェックと数量 ── */
.fee-check {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.35rem 0;
  color: var(--starlight); font-size: 0.8125rem; line-height: 1.6;
  cursor: pointer;
}
.fee-nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.6rem;
  margin-bottom: var(--space-3);
}
.fee-nums label { display: grid; gap: 0.25rem; }
.fee-nums span { color: var(--lunar-gray); font-size: 0.72rem; }
.fee-nums input {
  width: 100%;
  background: rgba(15, 31, 61, 0.7);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--starlight);
  padding: 0.35rem 0.5rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ── 附帯設備（54品目。グループごとに折りたたむ） ── */
.fee-eqgroup { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 0.5rem; }
.fee-eqgroup summary {
  padding: 0.6rem 0.9rem;
  color: var(--starlight); font-size: 0.8125rem; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: baseline; gap: 0.6rem;
}
.fee-eqgroup__n { color: var(--lunar-gray); font-size: 0.72rem; font-weight: 400; }
.fee-eqrow {
  display: grid;
  grid-template-columns: 1fr 3.5rem 5.5rem 4.5rem;
  gap: 0.5rem; align-items: center;
  padding: 0.45rem 0.9rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
}
.fee-eqrow__name { color: var(--starlight); line-height: 1.5; }
.fee-eqrow__na { color: var(--lunar-gray); font-size: 0.7rem; font-style: normal; margin-left: 0.35rem; }
.fee-eqrow__unit { color: var(--lunar-gray); font-size: 0.72rem; text-align: center; }
.fee-eqrow__yen { color: var(--lunar-gray); font-variant-numeric: tabular-nums; text-align: right; }
.fee-eqrow__qty {
  background: rgba(15, 31, 61, 0.7);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--starlight);
  padding: 0.3rem 0.4rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .fee-eqrow {
    grid-template-columns: 1fr 4.5rem;
    grid-template-areas: "name qty" "meta qty";
  }
  .fee-eqrow__name { grid-area: name; }
  .fee-eqrow__unit { grid-area: meta; text-align: left; }
  .fee-eqrow__yen  { grid-area: meta; text-align: right; }
  .fee-eqrow__qty  { grid-area: qty; }
}

/* ── 操作ボタンと明細 ── */
.fee-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  margin: var(--space-5) 0 var(--space-4);
}
.fee-items { display: grid; gap: 0.4rem; }
.fee-items__empty { color: var(--lunar-gray); font-size: 0.78rem; line-height: 1.8; }
.fee-item {
  display: grid; grid-template-columns: 1.6rem 1fr auto;
  gap: 0.6rem; align-items: center;
  padding: 0.5rem 0.8rem;
  background: rgba(15, 31, 61, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
}
.fee-item__no {
  color: var(--cosmic-gold); font-weight: 700;
  font-variant-numeric: tabular-nums; text-align: center;
}
.fee-item__body { color: var(--starlight); line-height: 1.5; }

/* ── 計算結果 ── */
.fee-resultbox { margin-top: var(--space-5); }
.fee-res { margin-bottom: var(--space-6); }
/* グループの見出し行（基本使用料・延長料金 …）。
   .price-table は td を中央寄せ・太字にするので、ここで上書きする。 */
.price-table tbody tr.fee-res__group td {
  background: rgba(240, 192, 64, 0.08);
  color: var(--cosmic-gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: left;
  padding: 0.5rem 1rem;
}
.price-table tfoot td {
  background: var(--nebula-navy);
  color: var(--cosmic-gold);
  font-weight: 700;
  border-top: 1px solid var(--color-border-strong);
}
.fee-res__notes { margin-top: 0.7rem; display: grid; gap: 0.3rem; }
.fee-res__notes li {
  color: var(--lunar-gray); font-size: 0.75rem; line-height: 1.7;
  padding-left: 1.1rem; position: relative;
}
.fee-res__notes li::before { content: "\203B"; position: absolute; left: 0; }
.fee-total {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  padding: var(--space-4) var(--space-5);
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.4);
  border-radius: var(--radius-md);
  color: var(--starlight); font-size: 0.875rem; font-weight: 700;
}
.fee-total b { color: var(--cosmic-gold); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.fee-res__caution { color: var(--lunar-gray); font-size: 0.75rem; line-height: 1.7; margin-top: 0.6rem; }

/* =====================================================================
   矢印記号の追い出し・第2弾（2026-09-16・施主指示
   「管理画面においてまだ矢印（→）が採用されているようなので、全体をチェックして修正」）
   ---------------------------------------------------------------------
   進む = 右シェブロン（rotate(-45deg)）／戻る = 左シェブロン（rotate(135deg)）。
   **rotate は「動き」ではなく形そのもの**なので、transform を上書きする
   hover などでは必ず併記する（外すと形が崩れる）。
   ===================================================================== */
.topic-card__more,
.calendar-detail__prog-link { display: inline-flex; align-items: center; gap: 0.45em; }
.topic-card__more::after,
.calendar-detail__prog-link::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

/* 戻る導線（「← 当館について」の ← を置き換えたもの）。左向きなので 135deg */
.back-link::before {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(135deg);
  flex: 0 0 auto;
  transition: transform 0.2s;
}
.back-link:hover::before,
.back-link:focus-visible::before { transform: translateX(-2px) rotate(135deg); }

/* ---------------------------------------------------------------------
   管理画面どうしの往来ボタン（博物館 → 貸館）
   操作ボタン（.btn--ghost の丸い小さなボタン）と混ざらないよう、
   四角い枠・アイコン・2 行のラベルで「画面の移動」だと分かる形にする。
   --------------------------------------------------------------------- */
.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.9rem 0.5rem 0.75rem;
  background: rgba(240, 192, 64, 0.08);
  border: 1px solid rgba(240, 192, 64, 0.45);
  border-radius: var(--radius-md);
  transition: background 0.15s, border-color 0.15s;
}
.admin-switch:hover,
.admin-switch:focus-visible {
  background: rgba(240, 192, 64, 0.16);
  border-color: var(--cosmic-gold);
}
.admin-switch__icon { width: 1.5rem; height: 1.5rem; color: var(--cosmic-gold); flex: 0 0 auto; }
.admin-switch__text { display: grid; gap: 0.1rem; text-align: left; }
.admin-switch__kicker { font-size: 0.625rem; letter-spacing: 0.1em; color: var(--lunar-gray); }
.admin-switch__label { font-size: 0.875rem; font-weight: 700; color: var(--starlight); }
.admin-switch::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-right: 1.5px solid var(--cosmic-gold);
  border-bottom: 1.5px solid var(--cosmic-gold);
  transform: rotate(-45deg);
  flex: 0 0 auto;
  margin-left: 0.15rem;
  transition: transform 0.2s;
}
.admin-switch:hover::after,
.admin-switch:focus-visible::after { transform: translateX(3px) rotate(-45deg); }
@media (max-width: 640px) {
  .admin-switch { width: 100%; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .back-link::before, .admin-switch::after { transition: none; }
}
