/* ============================================
   AREA-1048（エリア トヨヤ） 共通スタイル
   コンセプト：宇宙船「SPACE SAUNA」基地のHUD
   黒×イエロー、計器パネル、スターフィールド
   ============================================ */

:root {
  --bg: #07090d;
  --bg2: #0b0e14;
  --panel: #10141b;
  --panel2: #171d26;
  --line: #2b3442;
  --line2: #3d4a5c;
  --text: #eaeef4;
  --muted: #93a0b0;
  --accent: #ffd900;
  --accent-dim: rgba(255, 217, 0, .55);
  --accent-ink: #0c0c0c;
  --cyan: #4fd8eb;
  --danger: #ff5a4e;
  --ok: #4ee08a;
  --radius: 10px;
  --maxw: 1120px;
}

html[data-theme="light"] {
  --bg: #f7fdff;
  --bg2: #e9f8ff;
  --panel: #ffffff;
  --panel2: #f2fbff;
  --line: #c7e6f4;
  --line2: #94cfe8;
  --text: #173243;
  --muted: #5f7888;
  --accent: #13a8d6;
  --accent-dim: rgba(19, 168, 214, .5);
  --accent-ink: #ffffff;
  --cyan: #0d87b3;
  --danger: #d94d43;
  --ok: #118765;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  /* スターフィールド（微細な星） */
  background-image:
    radial-gradient(1px 1px at 25px 35px, rgba(255,255,255,.32) 50%, transparent 51%),
    radial-gradient(1px 1px at 145px 92px, rgba(255,255,255,.22) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 310px 180px, rgba(180,220,255,.25) 50%, transparent 51%),
    radial-gradient(1px 1px at 420px 60px, rgba(255,255,255,.18) 50%, transparent 51%),
    radial-gradient(1px 1px at 520px 240px, rgba(255,255,255,.28) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90px 300px, rgba(255,217,0,.16) 50%, transparent 51%),
    radial-gradient(1px 1px at 250px 400px, rgba(255,255,255,.2) 50%, transparent 51%),
    radial-gradient(1px 1px at 480px 420px, rgba(180,220,255,.18) 50%, transparent 51%);
  background-size: 560px 470px;
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; }

.en { font-family: "Oswald", sans-serif; letter-spacing: .06em; }
.mono { font-family: "Share Tech Mono", monospace; letter-spacing: .08em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* LEDインジケータ */
.led {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px var(--ok);
  animation: ledPulse 2s ease-in-out infinite;
  vertical-align: middle;
}
.led.yellow { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
@keyframes ledPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ハザードストライプ（黄×黒 斜線） */
.hazard-line {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, #101010 12px 24px);
  opacity: .9;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7, 9, 13, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; display: block; height: 3px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, transparent 10px 20px);
  opacity: .5;
}
.site-header .bar {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 50%; outline: 1px solid var(--line2); }
.brand .name { font-family: "Oswald", sans-serif; font-size: 20px; letter-spacing: .1em; }
.brand .sub { font-size: 10px; color: var(--muted); display: block; line-height: 1.3; font-family: "Share Tech Mono", monospace; letter-spacing: .12em; }

.gnav { display: flex; align-items: center; gap: 13px; }
.gnav a { color: var(--text); font-size: 12px; white-space: nowrap; }
.gnav a.cta {
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 18px; border-radius: 4px; font-weight: 700;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 8px 12px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--panel2);
  color: var(--text);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}
.theme-toggle-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-dim);
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line2); color: var(--text);
  border-radius: 6px; padding: 6px 10px; font-size: 18px; line-height: 1; cursor: pointer; }

@media (max-width: 1180px) {
  .gnav {
    display: none;
    position: absolute; top: 62px; left: 0; right: 0;
    background: rgba(7, 9, 13, .97);
    flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }
  .gnav.open { display: flex; }
  .gnav a { padding: 12px 24px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .gnav a.cta { margin: 12px 24px 0; text-align: center; }
  .gnav .theme-toggle { justify-content: center; margin: 10px 24px; }
  .nav-toggle { display: block; }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: #000; overflow: hidden;
}
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 32%;
  opacity: .58;
}
.hero .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,13,.4) 0%, rgba(7,9,13,.05) 45%, rgba(7,9,13,.95) 100%);
}
/* スキャンライン */
.hero .scan {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  animation: scanMove 7s linear infinite; opacity: .5;
}
@keyframes scanMove { 0% { top: -2%; } 100% { top: 102%; } }

.hero .inner {
  position: relative; width: 100%;
  max-width: var(--maxw); margin: 0 auto;
  padding: 120px 20px 52px;
}
.hero .coords {
  font-family: "Share Tech Mono", monospace;
  color: var(--cyan); font-size: 12px; letter-spacing: .18em;
  margin-bottom: 10px;
}
.hero .logo-badge { width: 78px; height: 78px; border-radius: 50%; margin-bottom: 16px;
  box-shadow: 0 4px 30px rgba(0,0,0,.6); outline: 2px solid rgba(255,217,0,.35); outline-offset: 3px; }
.hero h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(46px, 9vw, 88px);
  letter-spacing: .05em; line-height: 1.02;
}
.hero h1 .arrows { color: var(--accent); }
.hero .tagline { font-size: clamp(16px, 3vw, 23px); font-weight: 700; margin-top: 12px; }
.hero .place { color: var(--muted); font-size: 14px; margin-top: 6px; }
.hero .sysline {
  margin-top: 16px; font-family: "Share Tech Mono", monospace;
  font-size: 12px; letter-spacing: .14em; color: var(--ok);
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badges span {
  border: 1px solid var(--accent-dim); color: var(--accent);
  font-size: 12px; padding: 4px 12px; letter-spacing: .08em;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  background: rgba(255,217,0,.05);
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- 予約前ミッションコントロール ---------- */
.mission-control {
  background:
    radial-gradient(circle at 12% 18%, rgba(79,216,235,.08), transparent 34%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}
.quick-console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 24px;
  align-items: stretch;
}
.quick-console-main,
.availability-panel,
.included-panel {
  border: 1px solid var(--line);
  background: rgba(16, 20, 27, .72);
  padding: 24px;
  position: relative;
}
.quick-console-main::before,
.availability-panel::before,
.included-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.quick-console-main h2 {
  font-size: clamp(24px, 4.5vw, 36px);
  line-height: 1.35;
  margin-top: 8px;
}
.guide-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.guide-check {
  border: 1px solid var(--line);
  background: var(--panel2);
  padding: 14px;
  min-height: 150px;
}
.guide-code,
.step-label,
.console-title {
  display: inline-block;
  font-family: "Share Tech Mono", monospace;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .16em;
  margin-bottom: 8px;
}
.guide-check strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.guide-check p,
.booking-step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.quick-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.availability-panel h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.availability-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.availability-card,
.availability-empty,
.availability-loading {
  border: 1px solid var(--line2);
  background: var(--panel2);
  padding: 12px;
  min-height: 118px;
}
.availability-card {
  display: grid;
  align-content: center;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.availability-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(255,217,0,.07);
  opacity: 1;
}
.availability-month,
.availability-week,
.availability-status {
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
}
.availability-card strong {
  font-family: "Oswald", sans-serif;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
  margin: 4px 0;
}
.availability-status {
  color: var(--ok);
}
.booking-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.booking-step {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
  min-height: 160px;
}
.booking-step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.checkin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.checkin-step {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px 18px;
  min-height: 170px;
}
.checkin-step h3 {
  font-size: 16px;
  margin: 4px 0 8px;
}
.checkin-step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.checkin-step.signal {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(255,217,0,.13), var(--panel) 60%);
  box-shadow: 0 0 24px rgba(255,217,0,.18);
}
.checkin-signal-dot {
  position: absolute;
  top: 18px; right: 18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: ledPulse 1.4s ease-in-out infinite;
}
@media (max-width: 860px) {
  .checkin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .checkin-grid { grid-template-columns: 1fr; }
}
.basecall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.basecall-btn {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px 14px;
  border-radius: var(--radius);
}
.basecall-btn .bc-icon { display: inline-flex; color: var(--text); margin-bottom: 2px; }
.basecall-btn .bc-icon svg {
  width: 42px; height: 42px;
  fill: none; stroke: currentColor;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.basecall-btn .bc-en {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: .14em; color: var(--accent);
}
.basecall-btn .bc-jp { font-size: 14px; font-weight: 700; }
.basecall-btn.help {
  border-color: var(--danger);
  background: linear-gradient(135deg, rgba(255,90,78,.15), var(--panel) 60%);
  box-shadow: 0 0 20px rgba(255,90,78,.25);
}
.basecall-btn.help .bc-icon,
.basecall-btn.help .bc-en,
.basecall-btn.help .bc-jp { color: var(--danger); }
@media (max-width: 860px) {
  .basecall-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .basecall-grid { grid-template-columns: 1fr; }
}

/* ---------- 管理画面 BASE CALL パネル ---------- */
.base-call-panel {
  margin-top: 16px;
  border: 2px solid var(--accent);
  background: rgba(255,217,0,.06);
  padding: 16px;
}
.base-call-panel h3 {
  font-size: 14px;
  color: var(--accent);
  font-family: "Share Tech Mono", monospace;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.call-item {
  border: 1px solid var(--line2);
  background: var(--panel2);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.call-item:last-child { margin-bottom: 0; }
.call-item.help {
  border-color: var(--danger);
  background: rgba(255,90,78,.1);
}
.call-item.status-対応済み { opacity: .55; }
.call-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.call-icon { font-size: 22px; }
.call-type {
  font-family: "Share Tech Mono", monospace;
  font-size: 12px; letter-spacing: .08em; color: var(--text);
  flex: 1;
}
.call-jp { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--text); }
.call-time { font-size: 12px; color: var(--muted); }
.call-actions { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

html[data-theme="light"] .base-call-panel {
  background: rgba(19,168,214,.08);
}
.included-panel {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}
.included-panel h3 {
  font-size: 20px;
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.included-grid span {
  border: 1px solid var(--line);
  background: var(--panel2);
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}
@media (max-width: 920px) {
  .quick-console-grid,
  .included-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .guide-checks,
  .booking-steps,
  .included-grid {
    grid-template-columns: 1fr;
  }

  .availability-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; padding: 14px 34px;
  font-weight: 700; font-size: 15px; text-align: center;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  font-family: inherit;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 22px rgba(255,217,0,.25); }
.btn-primary:hover { box-shadow: 0 0 30px rgba(255,217,0,.45); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn[disabled]:hover { transform: none; box-shadow: none; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------- 注意バー ---------- */
.notice-bar {
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-align: center; font-size: 14px;
  padding: 10px 16px;
  border-top: 4px solid #101010;
  border-bottom: 4px solid #101010;
  position: relative;
}

/* ---------- セクション共通 ---------- */
section.block { padding: 78px 0; position: relative; }
section.block.alt { background: linear-gradient(180deg, var(--bg2), #0d1117 60%, var(--bg2)); }

.sec-head { margin-bottom: 38px; }
.sec-head .en-label {
  font-family: "Share Tech Mono", monospace; color: var(--accent);
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.sec-head .en-label::before {
  content: ""; width: 26px; height: 2px; background: var(--accent);
}
.sec-head h2 { font-size: clamp(24px, 4.5vw, 36px); margin-top: 8px; line-height: 1.4; }
.sec-head p.lead { color: var(--muted); margin-top: 10px; max-width: 660px; font-size: 15px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  section.block { padding: 58px 0; }
}

/* HUDコーナーブラケット付きフレーム */
.hud {
  position: relative;
  padding: 22px;
  background: rgba(16, 20, 27, .75);
  border: 1px solid var(--line);
}
.hud::before, .hud::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
}
.hud::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.hud::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.photo { border-radius: var(--radius); overflow: hidden; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .cap {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 24px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(7,9,13,.85));
  font-family: "Share Tech Mono", monospace; font-size: 11px; letter-spacing: .16em;
  color: #cfd8e3;
}

/* カード */
.card {
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  position: relative;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
  z-index: 1; opacity: .7;
}
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card .body { padding: 18px 20px 22px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--muted); }
.card .tag {
  color: var(--accent); font-size: 11px; letter-spacing: .22em;
  font-family: "Share Tech Mono", monospace;
}

/* ステータスストリップ（数値の帯） */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); background: var(--panel);
  margin-top: 34px;
}
.stat-strip .stat {
  padding: 18px 10px; text-align: center;
  border-right: 1px solid var(--line);
}
.stat-strip .stat:last-child { border-right: none; }
.stat-strip .num {
  font-family: "Oswald", sans-serif; font-size: 30px; color: var(--accent); line-height: 1.1;
}
.stat-strip .unit { font-size: 13px; color: var(--accent); }
.stat-strip .cap { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .1em; }
@media (max-width: 640px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } .stat-strip .stat:nth-child(2) { border-right: none; } }

/* ---------- タイムライン（ミッションログ） ---------- */
.timeline { list-style: none; position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--accent), var(--line) 80%);
}
.timeline li { position: relative; padding: 0 0 26px 16px; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 7px;
  width: 12px; height: 12px;
  background: var(--bg); border: 3px solid var(--accent);
  transform: rotate(45deg);
}
.timeline .t {
  font-family: "Share Tech Mono", monospace; color: var(--accent);
  font-size: 13px; letter-spacing: .14em;
  background: rgba(255,217,0,.08); padding: 2px 8px;
  border: 1px solid rgba(255,217,0,.25);
}
.timeline h4 { font-size: 16px; margin: 8px 0 4px; }
.timeline p { font-size: 14px; color: var(--muted); }

/* ---------- テーブル ---------- */
table.simple {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
table.simple th, table.simple td {
  padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left;
}
table.simple th { background: rgba(255,217,0,.06); color: var(--text); font-weight: 700; white-space: nowrap; }
table.simple tr:last-child th, table.simple tr:last-child td { border-bottom: none; }
table.simple .num { font-family: "Oswald", sans-serif; font-size: 16px; }

/* 料金メインパネル（計器風） */
.price-hero {
  background: var(--panel);
  border: 1px solid var(--accent-dim);
  padding: 28px; text-align: center; position: relative;
}
.price-hero::before, .price-hero::after {
  content: ""; position: absolute; width: 20px; height: 20px;
}
.price-hero::before { top: -1px; left: -1px; border-top: 3px solid var(--accent); border-left: 3px solid var(--accent); }
.price-hero::after { bottom: -1px; right: -1px; border-bottom: 3px solid var(--accent); border-right: 3px solid var(--accent); }
.price-hero .num {
  font-family: "Oswald", sans-serif; font-size: 48px; color: var(--accent); line-height: 1.15;
  text-shadow: 0 0 24px rgba(255,217,0,.35);
}
.price-hero .cap { color: var(--muted); font-size: 13px; }

ul.checks { list-style: none; }
ul.checks li { padding: 6px 0 6px 28px; position: relative; font-size: 14px; }
ul.checks li::before {
  content: "»"; position: absolute; left: 4px; color: var(--accent); font-weight: 700;
}

.warn-box {
  border: 1px solid var(--accent-dim);
  border-left: 6px solid var(--accent);
  padding: 18px 20px; background: rgba(255,217,0,.05);
  font-size: 14px;
}
.warn-box strong { color: var(--accent); }

/* ---------- ギャラリー ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.gallery-grid .g-item {
  aspect-ratio: 1; overflow: hidden; border-radius: 8px;
  border: 1px solid var(--line); position: relative;
}
.gallery-grid .g-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease;
}
.gallery-grid .g-item:hover img { transform: scale(1.06); }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- フッター ---------- */
footer.site-footer {
  border-top: 1px solid var(--line); padding: 44px 0 96px;
  color: var(--muted); font-size: 13px;
  background: var(--bg2);
}
footer.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
footer.site-footer .brand .name { color: var(--text); }
footer.site-footer .sysline { font-family: "Share Tech Mono", monospace; font-size: 11px; letter-spacing: .14em; margin-top: 12px; color: #5a6577; }

/* スマホ固定予約ボタン */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(7,9,13,.7) 30%, rgba(7,9,13,.96));
  display: none;
}
.fixed-cta .btn { width: 100%; }
@media (max-width: 860px) { .fixed-cta { display: block; } }

/* ============================================
   フォーム（予約・確認・管理 共通）
   ============================================ */
.page-head { padding: 108px 0 22px; }
.page-head h1 { font-size: clamp(22px, 5vw, 30px); }
.page-head .en-label {
  font-family: "Share Tech Mono", monospace; color: var(--accent);
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
}

fieldset.fs {
  border: 1px solid var(--line);
  background: rgba(16, 20, 27, .7);
  padding: 22px 20px; margin-bottom: 24px;
  position: relative;
}
fieldset.fs::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
}
fieldset.fs legend {
  padding: 3px 16px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 13px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.f-row { margin-bottom: 16px; }
.f-row:last-child { margin-bottom: 0; }
.f-row > label.lbl, .f-row > .lbl { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--danger); font-size: 11px; margin-left: 6px; }
.opt-tag { color: var(--muted); font-size: 11px; margin-left: 6px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px;
  background: #060809; color: var(--text);
  border: 1px solid var(--line2); border-radius: 6px;
  font-size: 16px; font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent); border-color: var(--accent);
}
textarea { min-height: 90px; resize: vertical; }

.f-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) {
  .f-grid2, .f-grid3 { grid-template-columns: 1fr; }
}

/* ラジオ・チェックのカード風選択肢 */
.choice-list { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line2); border-radius: 6px;
  padding: 13px 14px; cursor: pointer; background: var(--panel2);
  transition: border-color .15s, background .15s;
}
.choice:has(input:checked) {
  border-color: var(--accent); background: rgba(255,217,0,.07);
  box-shadow: inset 3px 0 0 var(--accent);
}
.choice input { margin-top: 5px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choice .c-title { font-weight: 700; font-size: 14px; }
.choice .c-desc { font-size: 12px; color: var(--muted); }

/* 数量ステッパー */
.stepper { display: flex; align-items: center; gap: 0; }
.stepper button {
  width: 42px; height: 42px; font-size: 20px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--accent); cursor: pointer;
}
.stepper button:first-child { border-radius: 6px 0 0 6px; }
.stepper button:last-child { border-radius: 0 6px 6px 0; }
.stepper input {
  width: 64px; text-align: center; border-radius: 0; border-left: none; border-right: none;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { display: none; }

.opt-line { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.opt-line:last-child { border-bottom: none; }
.opt-line .o-name { font-size: 14px; font-weight: 700; }
.opt-line .o-price { font-size: 12px; color: var(--muted); }

/* 予約ページ「AREA-1048 HOME」戻るボタン（基地管制トンマナ） */
.back-home {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Share Tech Mono", monospace; font-size: 12px; letter-spacing: .12em;
  color: var(--accent); text-transform: uppercase;
  border: 1px solid var(--accent-dim); background: rgba(255,217,0,.05);
  padding: 9px 16px; margin-bottom: 18px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background .2s, border-color .2s, transform .15s;
}
.back-home span { font-size: 16px; }
.back-home:hover { background: rgba(255,217,0,.12); border-color: var(--accent); transform: translateX(-2px); }
html[data-theme="light"] .back-home { background: rgba(19,168,214,.08); }

/* ドリンク合計インジケーター */
.drink-total {
  margin-top: 12px; padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  border: 1px solid var(--line2); background: var(--panel2);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.drink-total .drink-match { font-size: 13px; margin-left: auto; padding: 2px 10px; border-radius: 999px; }
.drink-total.matched { border-color: var(--ok); }
.drink-total.matched .drink-match { background: rgba(78,224,138,.15); color: var(--ok); }
.drink-total.mismatch { border-color: var(--accent); }
.drink-total.mismatch .drink-match { background: rgba(255,217,0,.15); color: var(--accent); }
html[data-theme="light"] .drink-total.mismatch .drink-match { background: rgba(19,168,214,.12); color: var(--cyan); }

/* 同意ブロック */
details.terms {
  border: 1px solid var(--line); background: var(--panel2);
  padding: 0; margin-bottom: 10px; font-size: 13px;
}
details.terms summary { padding: 12px 14px; cursor: pointer; font-weight: 700; }
details.terms .terms-body { padding: 0 16px 14px; color: var(--muted); }
details.terms .terms-body ol { padding-left: 20px; }
label.agree {
  display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14px;
  border: 2px solid var(--line2); padding: 14px; cursor: pointer;
  background: var(--panel);
}
label.agree:has(input:checked) { border-color: var(--ok); box-shadow: 0 0 14px rgba(78,224,138,.15); }
label.agree input { width: 20px; height: 20px; accent-color: var(--ok); flex: none; }

/* 合計金額バー（コンソール読み出し風） */
.total-bar {
  position: sticky; bottom: 0; z-index: 60;
  background: rgba(13, 17, 23, .97);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -8px 30px rgba(0,0,0,.5);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  margin-top: 26px;
}
.total-bar .inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.total-bar .amount {
  font-family: "Oswald", sans-serif; font-size: 30px; color: var(--accent); line-height: 1;
  text-shadow: 0 0 18px rgba(255,217,0,.4);
}
.total-bar .cap { font-size: 11px; color: var(--muted); }

.form-narrow { max-width: 720px; margin: 0 auto; }
.reserve-wrap { max-width: 940px; }

/* 完了画面 */
.done-box { text-align: center; padding: 30px 0 10px; }
.done-box .resno {
  font-family: "Share Tech Mono", monospace; font-size: 40px; color: var(--accent);
  letter-spacing: .1em; line-height: 1.2;
  text-shadow: 0 0 24px rgba(255,217,0,.45);
}
.summary-table { font-size: 13px; }
.summary-table th { width: 38%; }

.msg-error {
  background: rgba(255,90,78,.1); border: 1px solid var(--danger);
  border-left: 6px solid var(--danger);
  color: #ffb3ad; padding: 12px 16px; font-size: 14px; margin-bottom: 16px;
}
.msg-ok {
  background: rgba(78,224,138,.08); border: 1px solid var(--ok);
  border-left: 6px solid var(--ok);
  color: #a9ecc7; padding: 12px 16px; font-size: 14px; margin-bottom: 16px;
}

.arrival-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, rgba(255,217,0,.13), rgba(78,224,138,.05));
}
.arrival-box p { margin: 0 0 12px; }
.arrival-box p:last-child { margin-bottom: 0; }
.arrival-box strong { color: var(--accent); }
.arrival-box.arrived {
  border-color: var(--ok);
  background: rgba(78,224,138,.08);
}
.arrival-btn {
  width: min(100%, 320px);
  margin: 2px 0 12px;
  font-size: 17px;
}

/* ============================================
   管理画面
   ============================================ */
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 26px; }
.admin-nav button {
  padding: 9px 18px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--text); font-weight: 700; font-size: 13px;
  cursor: pointer; font-family: inherit;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.admin-nav button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.prep-card {
  border: 1px solid var(--accent-dim);
  background: var(--panel); padding: 20px; margin-bottom: 20px;
  position: relative;
}
.prep-card::before, .prep-card::after { content: ""; position: absolute; width: 20px; height: 20px; }
.prep-card::before { top: -1px; left: -1px; border-top: 3px solid var(--accent); border-left: 3px solid var(--accent); }
.prep-card::after { bottom: -1px; right: -1px; border-bottom: 3px solid var(--accent); border-right: 3px solid var(--accent); }
.prep-card h3 { font-size: 18px; margin-bottom: 4px; }
.prep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.prep-item { background: var(--panel2); border: 1px solid var(--line); padding: 10px 12px; }
.prep-item .k { font-size: 10px; color: var(--muted); font-family: "Share Tech Mono", monospace; letter-spacing: .12em; }
.prep-item .v { font-size: 15px; font-weight: 700; margin-top: 2px; }
.prep-item .v.big { font-size: 19px; color: var(--accent); }
.prep-item.hl { border-color: var(--accent); box-shadow: inset 0 0 12px rgba(255,217,0,.08); }
.arrival-alert {
  margin: 14px 0;
  padding: 14px 16px;
  border: 2px solid var(--accent);
  background: rgba(255,217,0,.13);
  color: var(--text);
}
.arrival-alert strong {
  display: block;
  color: var(--accent);
  font-family: "Share Tech Mono", monospace;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.arrival-alert dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 4px 10px;
  margin: 0;
  font-size: 13px;
}
.arrival-alert dt { color: var(--muted); }
.arrival-alert dd { margin: 0; font-weight: 700; }
.poster-card {
  border: 1px solid var(--line2);
  background: var(--panel);
  padding: 18px;
  margin-top: 18px;
}
.poster-card textarea {
  min-height: 150px;
  font-weight: 700;
  line-height: 1.7;
}

/* カレンダー */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { font-family: "Share Tech Mono", monospace; font-size: 22px; letter-spacing: .1em; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; font-family: "Share Tech Mono", monospace; }
.cal .day {
  min-height: 74px; border: 1px solid var(--line);
  background: var(--panel2); padding: 4px 6px; font-size: 11px;
  cursor: pointer; overflow: hidden;
}
.cal .day .d { font-family: "Share Tech Mono", monospace; font-size: 13px; }
.cal .day.out { opacity: .2; cursor: default; }
.cal .day.today { outline: 1px dashed #ffffff55; }
.cal .day.selected { outline: 2px solid var(--accent); }
.cal .day.has-res { background: rgba(255,217,0,.13); border-color: var(--accent-dim); }
.cal .day.blocked { background: #241d20; border-color: #593a3e; color: #c09a92; }
.cal .day .mini { line-height: 1.35; font-size: 10px; color: var(--text); }
.cal .day .free { color: #39424e; }
@media (max-width: 640px) {
  .cal .day { min-height: 56px; }
  .cal .day .mini { display: none; }
  .cal .day.has-res::after { content: "●"; color: var(--accent); }
  .cal .day.blocked::after { content: "休"; }
}

/* 予約画面：カレンダー日付選択 */
.reserve-date-grid {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  grid-template-rows: auto auto 1fr;
  align-items: start;
  column-gap: 22px;
  row-gap: 16px;
}
.reserve-date-row {
  grid-column: 1;
  grid-row: 1 / 4;
}
.reserve-nights-row {
  grid-column: 2;
  grid-row: 1;
}
.reserve-total-row {
  grid-column: 2;
  grid-row: 2;
}
.reserve-nights-row,
.reserve-total-row {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 20, 27, .64);
}
.reserve-total-row {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.guest-total-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Oswald", sans-serif;
  font-size: 44px;
  line-height: 1.1;
  color: var(--accent);
}
.guest-total-display span:last-child {
  font-size: 15px;
  color: var(--text);
}
.reserve-calendar {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 20, 27, .72);
}
.reserve-cal-head {
  margin-bottom: 8px;
}
.reserve-cal-head h3 {
  color: var(--accent);
  font-size: 18px;
}
.cal-nav {
  width: 38px;
  height: 34px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.cal-nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.reserve-selected {
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255,217,0,.18);
  background: rgba(255,217,0,.06);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.reserve-cal .day {
  min-height: 74px;
  width: 100%;
  color: var(--text);
  font: inherit;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.reserve-cal button.day:not(.disabled):hover {
  border-color: var(--accent);
  background: rgba(255,217,0,.08);
  transform: translateY(-1px);
}
.reserve-cal .day.selected {
  background: rgba(255,217,0,.16);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.reserve-cal .day.disabled {
  cursor: not-allowed;
  opacity: .48;
}
.reserve-cal .day.has-res,
.reserve-cal .day.range-conflict {
  background: rgba(255,90,78,.1);
  border-color: rgba(255,90,78,.38);
}
.reserve-cal .day.blocked {
  background: #241d20;
  border-color: #593a3e;
}
.reserve-cal .day .d {
  display: block;
  margin-bottom: 2px;
}
.reserve-cal .day .mini {
  display: block;
}
.reserve-cal .day .mini.free {
  color: var(--ok);
}
@media (max-width: 640px) {
  .reserve-calendar {
    padding: 10px;
  }
  .reserve-cal {
    gap: 3px;
  }
  .reserve-cal .day {
    min-height: 46px;
    padding: 5px;
    text-align: center;
  }
  .reserve-cal .day .mini {
    display: none;
  }
  .reserve-cal .day.has-res::after,
  .reserve-cal .day.range-conflict::after {
    content: "×";
    color: var(--danger);
  }
}
@media (max-width: 860px) {
  .reserve-wrap {
    max-width: 720px;
  }
  .reserve-date-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .reserve-date-row {
    grid-column: auto;
    grid-row: auto;
  }
  .reserve-nights-row,
  .reserve-total-row {
    grid-column: auto;
    grid-row: auto;
  }
  .reserve-nights-row,
  .reserve-total-row {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }
  .guest-total-display {
    font-size: 30px;
    color: var(--text);
  }
}

/* 一覧テーブル */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
table.list th, table.list td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.list th { background: var(--panel2); position: sticky; top: 0; font-family: "Share Tech Mono", monospace; font-size: 11px; letter-spacing: .08em; }
table.list tbody tr { cursor: pointer; }
table.list tbody tr:hover { background: rgba(255,217,0,.05); }
.st { font-size: 11px; padding: 2px 10px; font-weight: 700; }
.st.ok { background: rgba(78,224,138,.14); color: var(--ok); border: 1px solid rgba(78,224,138,.4); }
.st.cx { background: rgba(255,90,78,.12); color: var(--danger); border: 1px solid rgba(255,90,78,.4); }
.st.arrived { background: rgba(255,217,0,.18); color: var(--accent); border: 1px solid var(--accent-dim); }

/* モーダル */
dialog.modal {
  border: 1px solid var(--line2);
  background: var(--panel); color: var(--text);
  width: min(680px, calc(100vw - 32px));
  max-height: 86vh; overflow-y: auto;
  padding: 24px;
}
dialog.modal::backdrop { background: rgba(0,0,0,.72); }
.modal-close { float: right; background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.pill-note { font-size: 12px; color: var(--muted); }

/* ============================================
   V2 ENHANCEMENTS
   ============================================ */

/* ---------- ローディングスクリーン ---------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity .6s ease, visibility .6s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
#loader .loader-ring {
  width: 56px; height: 56px; border: 3px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%;
  animation: loaderSpin .8s linear infinite;
}
#loader .loader-text {
  margin-top: 16px; font-family: "Share Tech Mono", monospace;
  font-size: 13px; letter-spacing: .2em; color: var(--accent);
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- ヘッダー拡張 ---------- */
.site-header {
  transition: transform .35s ease, background .3s;
}
.site-header.scrolled {
  background: rgba(7, 9, 13, .96);
  box-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.site-header.hide {
  transform: translateY(-100%);
}

/* ---------- パララックス ---------- */
.parallax-wrap {
  position: relative; overflow: hidden;
}
.parallax-bg {
  position: absolute; inset: -15% 0; z-index: 0;
  background-size: cover; background-position: center;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.15);
}
.hero .hero-bg {
  background-position: center 58%;
}

/* ---------- スクロールアニメーション ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.from-left {
  transform: translateX(-50px);
}
.reveal.from-left.visible {
  transform: translateX(0);
}
.reveal.from-right {
  transform: translateX(50px);
}
.reveal.from-right.visible {
  transform: translateX(0);
}
.reveal.scale-in {
  transform: scale(.9);
}
.reveal.scale-in.visible {
  transform: scale(1);
}

/* stagger */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
}
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ととのいフローセクション ---------- */
.flow-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0a1628 50%, var(--bg) 100%);
  overflow: hidden;
}
.flow-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 40px;
}
/* 4ステップ構成（サウナ→シャワー→水風呂→コールドスリープ） */
.flow-steps-4 {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
}
.flow-steps-4 .flow-arrow { padding: 0 6px; }
.flow-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .4s ease, box-shadow .4s ease;
}
.flow-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.flow-step .flow-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.flow-step .flow-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.flow-step:hover .flow-img img {
  transform: scale(1.06);
}
.flow-step .flow-body {
  padding: 22px 20px 26px;
}
.flow-step .flow-num {
  font-family: "Oswald", sans-serif;
  font-size: 48px; line-height: 1;
  color: var(--accent);
  opacity: .25; position: absolute;
  top: -4px; right: 14px;
}
.flow-step .flow-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px; letter-spacing: .2em;
  color: var(--accent); margin-bottom: 6px;
}
.flow-step h3 {
  font-size: 18px; margin-bottom: 8px;
}
.flow-step p {
  font-size: 14px; color: var(--muted); line-height: 1.7;
}
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 10px;
  color: var(--accent); font-size: 28px;
  font-family: "Oswald", sans-serif;
  animation: flowPulse 2s ease-in-out infinite;
}
@keyframes flowPulse {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: .4; transform: translateX(4px); }
}
/* STEP01→STEP02 導線上の RINSE OFF アテンション */
.flow-attention {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 12px;
  max-width: 250px;
}
.flow-attention .fa-arrow {
  color: var(--accent);
  font-size: 28px;
  font-family: "Oswald", sans-serif;
  animation: flowPulse 2s ease-in-out infinite;
}
.flow-attention .fa-note {
  position: relative;
  border: 1px solid var(--accent-dim);
  border-left: 3px solid var(--accent);
  background: rgba(255,217,0,.05);
  border-radius: 8px;
  padding: 12px 14px;
}
.flow-attention .fa-img {
  margin: -12px -14px 12px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.flow-attention .fa-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.flow-attention .fa-label {
  display: block;
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}
.flow-attention .fa-note strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.flow-attention .fa-note p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
@media (max-width: 860px) {
  .flow-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .flow-arrow {
    transform: rotate(90deg);
    padding: 12px 0;
    font-size: 24px;
  }
  .flow-attention {
    max-width: none;
    width: 100%;
    padding: 14px 0;
  }
  .flow-attention .fa-arrow {
    transform: rotate(90deg);
    font-size: 24px;
  }
}

/* ---------- フルワイド写真帯 ---------- */
.full-photo-band {
  position: relative;
  height: 50vh; min-height: 300px; max-height: 500px;
  overflow: hidden;
}
.full-photo-band img {
  width: 100%; height: 100%; object-fit: cover;
}
.full-photo-band .yuuyake-bg {
  object-position: center 68%;
}
.full-photo-band .night-deck-bg {
  object-position: center center;
}
.full-photo-band .band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,13,.65) 0%, rgba(7,9,13,.5) 40%, rgba(7,9,13,.78) 100%);
  display: flex; align-items: center; justify-content: center;
}
.full-photo-band .band-text {
  text-align: center; padding: 20px;
}
.full-photo-band .band-text h2 {
  font-size: clamp(22px, 4vw, 36px);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.85), 0 0 6px rgba(0,0,0,.6);
}
.full-photo-band .band-text p {
  color: #fff; margin-top: 8px; font-size: 15px;
  text-shadow: 0 1px 10px rgba(0,0,0,.8), 0 0 4px rgba(0,0,0,.6);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px; margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--line);
  background: var(--panel2);
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .3s;
}
.faq-item.open {
  border-color: var(--accent-dim);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700; font-size: 15px;
  user-select: none;
  gap: 16px;
}
.faq-q::after {
  content: "+";
  font-family: "Oswald", sans-serif;
  font-size: 24px; color: var(--accent);
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.22, 1, .36, 1), padding .3s;
  padding: 0 22px;
  font-size: 14px; color: var(--muted); line-height: 1.8;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 22px 20px;
}

/* ---------- ライトボックス ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.lightbox.open {
  opacity: 1; visibility: visible;
}
.lb-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .92);
  cursor: pointer;
}
.lb-content {
  position: relative; z-index: 1;
  max-width: 90vw; max-height: 85vh;
  display: flex; flex-direction: column; align-items: center;
}
.lb-img {
  max-width: 100%; max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.lb-caption {
  margin-top: 14px;
  font-family: "Share Tech Mono", monospace;
  font-size: 13px; color: var(--muted); letter-spacing: .12em;
}
.lb-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none; color: #fff;
  font-size: 32px; cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  opacity: .7; transition: opacity .2s;
}
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 22px; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  opacity: .6; transition: opacity .2s, background .2s;
}
.lb-prev:hover, .lb-next:hover { opacity: 1; background: rgba(255,255,255,.15); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 18px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}

/* ---------- ギャラリー拡張 ---------- */
.gallery-grid .g-item {
  cursor: pointer;
  position: relative;
}
.gallery-grid .g-item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(7, 9, 13, .4);
  opacity: 0; transition: opacity .3s;
  border-radius: 8px;
}
.gallery-grid .g-item:hover::after {
  opacity: 1;
}
.gallery-grid .g-item::before {
  content: "\26F6";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  font-size: 28px; color: #fff;
  z-index: 1; opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.gallery-grid .g-item:hover::before {
  opacity: .8;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- Instagram誘導 ---------- */
.insta-section {
  text-align: center;
  padding: 60px 0;
}
.insta-link-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 36px;
  background: linear-gradient(135deg, rgba(131, 58, 180, .12), rgba(253, 29, 29, .12), rgba(252, 176, 69, .12));
  border: 1px solid rgba(131, 58, 180, .3);
  border-radius: 16px;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.insta-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(131, 58, 180, .2);
}
.insta-icon {
  flex: none; width: 48px; height: 48px;
  border: 1px solid var(--accent-dim);
  display: grid; place-items: center;
}
.insta-icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--accent);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.insta-link-card .insta-text {
  text-align: left;
}
.insta-link-card .insta-handle {
  font-family: "Oswald", sans-serif;
  font-size: 18px; color: var(--text); letter-spacing: .04em;
}
.insta-link-card .insta-desc {
  font-size: 12px; color: var(--muted); margin-top: 2px;
}

/* ---------- Google Map ---------- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
  margin-top: 20px;
}
.map-container iframe {
  width: 100%; height: 100%; border: 0;
  filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

/* ---------- カード・写真のグロー強化 ---------- */
.card {
  transition: transform .4s ease, box-shadow .4s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.4), 0 0 0 1px var(--accent-dim);
}
.photo {
  transition: transform .4s ease;
}

/* ---------- 料金カード拡張 ---------- */
.price-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.price-card {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: border-color .3s, transform .3s;
}
.price-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}
.price-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255,217,0,.12);
}
.price-card.popular::before {
  content: "人気";
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; padding: 2px 12px;
  border-radius: 10px;
}
.price-card .pc-num {
  font-family: "Oswald", sans-serif;
  font-size: 14px; color: var(--muted); margin-bottom: 4px;
}
.price-card .pc-price {
  font-family: "Oswald", sans-serif;
  font-size: 28px; color: var(--accent); line-height: 1.1;
}
.price-card .pc-per {
  font-size: 11px; color: var(--muted); margin-top: 4px;
}
@media (max-width: 640px) {
  .price-cards { grid-template-columns: 1fr 1fr; }
}

/* ---------- セクション間のグロー区切り ---------- */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  margin: 0;
}

/* ---------- ヒーロー強化 ---------- */
.hero h1 {
  animation: heroTitleIn 1.2s cubic-bezier(.22, 1, .36, 1) both;
}
.hero .tagline {
  animation: heroFadeUp 1s .3s cubic-bezier(.22, 1, .36, 1) both;
}
.hero .place {
  animation: heroFadeUp 1s .5s cubic-bezier(.22, 1, .36, 1) both;
}
.hero .sysline {
  animation: heroFadeUp 1s .7s cubic-bezier(.22, 1, .36, 1) both;
}
.hero .badges {
  animation: heroFadeUp 1s .9s cubic-bezier(.22, 1, .36, 1) both;
}
.hero .actions {
  animation: heroFadeUp 1s 1.1s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- テキストグラデーション ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- ボタンGlow強化 ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.btn-primary:hover::after {
  transform: translateX(100%);
}

/* ---------- 追加レスポンシブ ---------- */
@media (max-width: 860px) {
  .full-photo-band { height: 35vh; min-height: 220px; }

  .full-photo-band .night-deck-bg {
    object-position: 48% center;
  }

  .full-photo-band .yuuyake-bg {
    object-position: center 72%;
  }

  .hero .hero-bg {
    background-position: 38% center;
  }

  .reveal.from-left,
  .reveal.from-right {
    transform: translateY(40px);
  }

  .reveal.from-left.visible,
  .reveal.from-right.visible {
    transform: translateY(0);
  }
}

/* ============================================
   LIGHT THEME
   白と水色を基調にした明るい管制室テーマ
   ============================================ */
html[data-theme="light"] body {
  background-image:
    radial-gradient(1px 1px at 28px 38px, rgba(19,168,214,.18) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 145px 92px, rgba(8,136,181,.14) 50%, transparent 51%),
    radial-gradient(1px 1px at 310px 180px, rgba(19,168,214,.12) 50%, transparent 51%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, var(--bg2) 100%);
  background-size: 560px 470px, 560px 470px, 560px 470px, auto;
}

html[data-theme="light"] .hazard-line {
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, #ffffff 12px 24px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 2px 24px rgba(48, 134, 169, .12);
}

html[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 28px rgba(48, 134, 169, .16);
}

html[data-theme="light"] .site-header::after {
  background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, rgba(255,255,255,.55) 10px 20px);
  opacity: .7;
}

html[data-theme="light"] .brand img {
  background: #fff;
  box-shadow: 0 2px 12px rgba(19,168,214,.18);
}

html[data-theme="light"] .gnav a.cta,
html[data-theme="light"] .btn-primary,
html[data-theme="light"] fieldset.fs legend,
html[data-theme="light"] .price-card.popular::before,
html[data-theme="light"] .admin-nav button.active {
  color: #fff;
  box-shadow: 0 8px 22px rgba(19,168,214,.2);
}

html[data-theme="light"] .theme-toggle {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 6px 16px rgba(35,126,162,.08);
}

html[data-theme="light"] .theme-toggle-dot {
  background: #ffd166;
  box-shadow: 0 0 0 3px rgba(255,209,102,.25), 0 0 12px rgba(255,209,102,.35);
}

html[data-theme="light"] .nav-toggle {
  background: #ffffff;
}

@media (max-width: 1180px) {
  html[data-theme="light"] .gnav {
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 34px rgba(48,134,169,.14);
  }

  html[data-theme="light"] .gnav a {
    border-bottom-color: rgba(19,168,214,.12);
  }
}

html[data-theme="light"] .hero {
  background: #edf9ff;
}

html[data-theme="light"] .hero .shade {
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(226,246,255,.38) 45%, rgba(247,253,255,.97) 100%);
}

html[data-theme="light"] .hero .scan {
  opacity: .32;
}

html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero .tagline,
html[data-theme="light"] .hero .place,
html[data-theme="light"] .hero .sysline,
html[data-theme="light"] .hero .coords {
  text-shadow: 0 2px 18px rgba(255,255,255,.85);
}

html[data-theme="light"] .hero .logo-badge {
  box-shadow: 0 8px 28px rgba(25,101,135,.16);
  outline-color: rgba(19,168,214,.42);
}

html[data-theme="light"] .badges span,
html[data-theme="light"] .timeline .t,
html[data-theme="light"] .reserve-selected {
  background: rgba(19,168,214,.08);
  border-color: rgba(19,168,214,.24);
}

html[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 10px 30px rgba(19,168,214,.3);
}

html[data-theme="light"] .btn-ghost {
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px var(--line2), 0 6px 18px rgba(48,134,169,.08);
}

html[data-theme="light"] .notice-bar {
  border-top-color: #ffffff;
  border-bottom-color: #ffffff;
}

html[data-theme="light"] section.block.alt {
  background: linear-gradient(180deg, var(--bg2), #ffffff 55%, var(--bg2));
}

html[data-theme="light"] .flow-section {
  background: linear-gradient(180deg, var(--bg) 0%, #dff5ff 50%, #ffffff 100%);
}

html[data-theme="light"] .flow-attention .fa-note {
  background: rgba(19,168,214,.08);
}

html[data-theme="light"] .hud,
html[data-theme="light"] fieldset.fs,
html[data-theme="light"] .reserve-calendar,
html[data-theme="light"] .reserve-nights-row,
html[data-theme="light"] .reserve-total-row,
html[data-theme="light"] .quick-console-main,
html[data-theme="light"] .availability-panel,
html[data-theme="light"] .included-panel {
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 32px rgba(48,134,169,.08);
}

html[data-theme="light"] .card,
html[data-theme="light"] .stat-strip,
html[data-theme="light"] .price-hero,
html[data-theme="light"] table.simple,
html[data-theme="light"] details.terms,
html[data-theme="light"] label.agree,
html[data-theme="light"] .prep-card,
html[data-theme="light"] .poster-card,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .price-card {
  box-shadow: 0 10px 28px rgba(48,134,169,.07);
}

html[data-theme="light"] .card:hover,
html[data-theme="light"] .flow-step:hover,
html[data-theme="light"] .map-container:hover {
  box-shadow: 0 12px 34px rgba(48,134,169,.14), 0 0 0 1px var(--accent-dim);
}

html[data-theme="light"] table.simple th {
  background: rgba(19,168,214,.08);
}

html[data-theme="light"] .timeline li::before {
  background: var(--panel);
}

html[data-theme="light"] .warn-box,
html[data-theme="light"] .arrival-box,
html[data-theme="light"] .arrival-alert {
  background: rgba(19,168,214,.08);
}

html[data-theme="light"] .checkin-step.signal {
  background: linear-gradient(135deg, rgba(19,168,214,.12), var(--panel) 60%);
  box-shadow: 0 0 24px rgba(19,168,214,.18);
}

html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="tel"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="date"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #ffffff;
  color: var(--text);
}

html[data-theme="light"] .choice,
html[data-theme="light"] .stepper button,
html[data-theme="light"] .cal-nav,
html[data-theme="light"] .admin-nav button,
html[data-theme="light"] .prep-item,
html[data-theme="light"] .cal .day,
html[data-theme="light"] .reserve-cal .day {
  background: var(--panel2);
}

html[data-theme="light"] .choice:has(input:checked),
html[data-theme="light"] .reserve-cal button.day:not(.disabled):hover,
html[data-theme="light"] .reserve-cal .day.selected,
html[data-theme="light"] .cal .day.has-res {
  background: rgba(19,168,214,.11);
}

html[data-theme="light"] .reserve-cal .day.has-res,
html[data-theme="light"] .reserve-cal .day.range-conflict,
html[data-theme="light"] .cal .day.blocked,
html[data-theme="light"] .reserve-cal .day.blocked {
  background: rgba(217,77,67,.08);
  border-color: rgba(217,77,67,.28);
  color: var(--danger);
}

html[data-theme="light"] .cal .day.today {
  outline-color: rgba(19,168,214,.45);
}

html[data-theme="light"] .cal .day .free {
  color: rgba(13,135,179,.7);
}

html[data-theme="light"] .total-bar {
  background: rgba(255,255,255,.96);
  box-shadow: 0 -8px 26px rgba(48,134,169,.13);
}

html[data-theme="light"] .msg-error {
  color: #9b2921;
  background: rgba(217,77,67,.08);
}

html[data-theme="light"] .msg-ok {
  color: #0c684d;
  background: rgba(17,135,101,.08);
}

html[data-theme="light"] footer.site-footer {
  background: var(--bg2);
}

html[data-theme="light"] footer.site-footer .sysline {
  color: #6f9aab;
}

html[data-theme="light"] .fixed-cta {
  background: linear-gradient(180deg, transparent, rgba(247,253,255,.7) 30%, rgba(247,253,255,.97));
}

html[data-theme="light"] .full-photo-band .band-overlay {
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.2) 45%, rgba(247,253,255,.82) 100%);
}

html[data-theme="light"] .full-photo-band .band-text h2,
html[data-theme="light"] .full-photo-band .band-text p {
  color: var(--text);
  text-shadow: 0 2px 16px rgba(255,255,255,.82);
}

html[data-theme="light"] .gallery-grid .g-item::after {
  background: rgba(255,255,255,.18);
}

html[data-theme="light"] .map-container iframe {
  filter: none;
}

html[data-theme="light"] dialog.modal::backdrop {
  background: rgba(14,50,68,.35);
}

html[data-theme="light"] .lightbox .lb-overlay {
  background: rgba(8,34,48,.9);
}

html[data-theme="light"] #loader {
  background: var(--bg);
}

/* ============================================
   SAUNA SPEC（計器パネル）
   実在サウナサイト定番の「スペック表」を
   宇宙船コックピットのゲージ計器として表現
   ============================================ */
.spec-console {
  border: 1px solid var(--accent-dim);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255,217,0,.06), transparent 60%),
    var(--panel);
  padding: 26px;
  position: relative;
  margin-top: 26px;
}
.spec-console::before, .spec-console::after {
  content: ""; position: absolute; width: 20px; height: 20px;
}
.spec-console::before { top: -1px; left: -1px; border-top: 3px solid var(--accent); border-left: 3px solid var(--accent); }
.spec-console::after { bottom: -1px; right: -1px; border-bottom: 3px solid var(--accent); border-right: 3px solid var(--accent); }

.spec-title {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: "Share Tech Mono", monospace; color: var(--accent);
  font-size: 12px; letter-spacing: .22em; margin-bottom: 22px;
}
.spec-title::after {
  content: ""; flex: 1; height: 1px; min-width: 30px;
  background: linear-gradient(90deg, var(--accent-dim), transparent);
}

.spec-body {
  display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center;
}

/* ゲージ計器 */
.spec-gauges { display: flex; gap: 22px; }
.gauge { text-align: center; width: 120px; }
.gauge-dial {
  width: 120px; height: 120px; border-radius: 50%;
  background: conic-gradient(from 220deg,
      var(--accent) 0deg,
      var(--accent) calc(var(--fill, 60) * 2.8deg),
      var(--line) calc(var(--fill, 60) * 2.8deg),
      var(--line) 280deg,
      transparent 280deg);
  position: relative;
  display: grid; place-items: center;
  margin: 0 auto 8px;
  filter: drop-shadow(0 0 10px rgba(255,217,0,.15));
}
.gauge-dial::before {
  content: ""; position: absolute; inset: 12px;
  border-radius: 50%; background: var(--panel);
  border: 1px solid var(--line);
}
.gauge-read { position: relative; z-index: 1; line-height: 1.05; }
.gauge-val { font-family: "Oswald", sans-serif; font-size: 25px; color: var(--text); display: block; }
.gauge-unit { font-family: "Share Tech Mono", monospace; font-size: 12px; color: var(--accent); }
.gauge-label { font-size: 12px; color: var(--muted); }
.gauge-label .mono { display: block; color: var(--accent); font-size: 10px; letter-spacing: .12em; }

/* スペックチップ */
.spec-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec-chip {
  border: 1px solid var(--line); background: var(--panel2);
  padding: 10px 14px; display: flex; flex-direction: column; gap: 2px;
}
.spec-chip .k { font-family: "Share Tech Mono", monospace; font-size: 10px; letter-spacing: .14em; color: var(--accent); }
.spec-chip .v { font-size: 14px; font-weight: 700; }
.spec-note { font-size: 11px; color: var(--muted); margin-top: 14px; grid-column: 1 / -1; }

@media (max-width: 720px) {
  .spec-body { grid-template-columns: 1fr; gap: 22px; }
  .spec-gauges { justify-content: center; }
  .spec-chips { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .gauge, .gauge-dial { width: 104px; }
  .gauge-dial { height: 104px; }
}

/* ============================================
   設備・アメニティ アイコングリッド
   ============================================ */
.amenity-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 16px;
}
.amenity {
  border: 1px solid var(--line); background: var(--panel2);
  padding: 16px 10px; text-align: center;
  transition: border-color .2s, transform .2s;
}
.amenity:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.amenity .ico { display: flex; justify-content: center; margin-bottom: 9px; }
.amenity .ico svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--accent);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.amenity .nm { font-size: 12px; color: var(--text); line-height: 1.4; }
@media (max-width: 640px) {
  .amenity-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .amenity { padding: 14px 6px; }
  .amenity .ico svg { width: 23px; height: 23px; }
}

/* アクセス：行き方 */
.route-list { display: grid; gap: 12px; margin-top: 18px; }
.route {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); background: var(--panel2);
  padding: 16px 18px;
}
.route .r-ico {
  flex: none; width: 42px; height: 42px;
  border: 1px solid var(--accent-dim);
  display: grid; place-items: center;
}
.route .r-ico svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--accent);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.route strong { font-size: 14px; display: block; margin-bottom: 2px; }
.route p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ============================================
   空き状況ミニカレンダー（トップページ）
   ============================================ */
.mini-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 0 8px;
}
.mini-cal-head .mc-title {
  font-family: "Share Tech Mono", monospace; font-size: 16px;
  letter-spacing: .12em; color: var(--text);
}
.mini-cal-nav {
  width: 32px; height: 32px;
  border: 1px solid var(--line2); background: var(--panel2);
  color: var(--accent); cursor: pointer; font-size: 16px; line-height: 1;
}
.mini-cal-nav[disabled] { opacity: .25; cursor: default; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini-cal .mc-dow {
  text-align: center; font-size: 10px; color: var(--muted);
  font-family: "Share Tech Mono", monospace; padding: 2px 0;
}
.mini-cal .mc-day {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  font-size: 11px; line-height: 1.2;
  border: 1px solid var(--line); background: var(--panel2);
  color: var(--text); text-decoration: none;
}
.mini-cal .mc-day .st { font-size: 11px; font-weight: 700; }
.mini-cal .mc-day.free { border-color: rgba(78, 224, 138, .45); }
.mini-cal .mc-day.free .st { color: var(--ok); }
.mini-cal a.mc-day.free:hover {
  opacity: 1; border-color: var(--ok);
  background: rgba(78, 224, 138, .1);
}
.mini-cal .mc-day.ng .st { color: var(--danger); }
.mini-cal .mc-day.off { opacity: .3; }
.mini-cal .mc-day.today { outline: 1px dashed var(--accent-dim); outline-offset: -2px; }
.mini-cal-legend {
  display: flex; gap: 16px; margin-top: 10px;
  font-size: 11px; color: var(--muted);
}
.mini-cal-legend .lg-ok { color: var(--ok); font-weight: 700; }
.mini-cal-legend .lg-ng { color: var(--danger); font-weight: 700; }

/* ============================================
   ナビのスクロール連動・上へ戻る
   ============================================ */
.gnav a.active { color: var(--accent); }

.to-top {
  position: fixed; right: 16px; bottom: 22px; z-index: 95;
  width: 46px; height: 46px;
  border: 1px solid var(--accent-dim); background: rgba(13, 17, 23, .9);
  cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s, visibility .3s, transform .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--accent);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.to-top:hover { border-color: var(--accent); }
@media (max-width: 860px) {
  .to-top { bottom: 88px; right: 12px; }
}
html[data-theme="light"] .to-top {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px rgba(48, 134, 169, .14);
}
