/* ============================================================
   Satoshi Vision 個別相談サイト デザインシステム
   トーン: ダークネイビー × ゴールド（上質・信頼）
   見出し: Shippori Mincho / 本文: Noto Sans JP
   ============================================================ */

:root {
  --bg: #070b16;
  --bg-2: #0b1222;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --text: #e9edf7;
  --muted: #a2abc0;
  --gold: #e6b34c;
  --gold-2: #f6d98a;
  --gold-deep: #c9922f;
  --danger: #ff7a7a;
  --ok: #6fe3a5;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --radius: 18px;
  --maxw: 1060px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--gold-2); }

::selection { background: rgba(230, 179, 76, 0.35); }

/* ---------- 背景装飾 ---------- */
.bg-deco {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(230, 179, 76, 0.12), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(76, 108, 230, 0.10), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(230, 179, 76, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1000px 700px at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(1000px 700px at 50% 0%, #000 30%, transparent 80%);
}
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- 共通レイアウト ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 96px 0; position: relative; }
.section + .section { padding-top: 20px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

.sec-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 700; letter-spacing: 0.04em; line-height: 1.5;
  margin: 14px 0 18px;
}
.sec-lead { color: var(--muted); max-width: 720px; }

.gold-text {
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0.04em;
  color: #221803; text-decoration: none;
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: 0 8px 24px rgba(230, 179, 76, 0.28), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(230, 179, 76, 0.42), inset 0 1px 0 rgba(255,255,255,0.5); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text); text-decoration: none;
  background: transparent; border: 1px solid var(--line);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.btn-ghost:hover { border-color: rgba(230, 179, 76, 0.6); background: rgba(230, 179, 76, 0.08); transform: translateY(-2px); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: #221803; font-family: var(--serif); font-weight: 700; font-size: 18px;
  box-shadow: 0 4px 14px rgba(230, 179, 76, 0.35);
}
.brand-text { line-height: 1.3; }
.brand-title { font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; }
.brand-sub { font-size: 10.5px; color: var(--muted); letter-spacing: 0.2em; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a.nav-link {
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500; letter-spacing: 0.06em;
  transition: color 0.2s ease;
}
.header-nav a.nav-link:hover { color: var(--gold-2); }
.header-cta { padding: 10px 22px; font-size: 13.5px; }
@media (max-width: 760px) { .header-nav a.nav-link { display: none; } }

/* ---------- ヒーロー ---------- */
.hero { padding: 180px 0 110px; position: relative; }
.hero-inner { max-width: 780px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 700; line-height: 1.45; letter-spacing: 0.03em;
  margin: 20px 0 22px;
}
.hero-lead { color: var(--muted); font-size: clamp(15px, 2vw, 17px); max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; }
.stat-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--text); letter-spacing: 0.04em;
}
.stat-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ---------- カード ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(230, 179, 76, 0.35); background: var(--panel-2); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }
.card .icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 21px;
  background: rgba(230, 179, 76, 0.12); border: 1px solid rgba(230, 179, 76, 0.3); margin-bottom: 18px;
}
.card h3 { font-family: var(--serif); font-size: 18px; letter-spacing: 0.05em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---------- チェックリスト（確認事項） ---------- */
.check-panel {
  margin-top: 40px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); padding: 36px 32px;
}
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 14.5px; }
.check-list .ck {
  flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 7px;
  display: grid; place-items: center; font-size: 12px; color: #221803; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
}
.agree-note {
  margin-top: 26px; padding: 18px 22px; border-radius: 14px;
  background: rgba(230, 179, 76, 0.08); border: 1px solid rgba(230, 179, 76, 0.3);
  color: var(--gold-2); font-weight: 600; font-size: 14.5px;
}

/* ---------- フロー（タイムライン） ---------- */
.flow { margin-top: 46px; display: grid; gap: 0; position: relative; }
.flow-step { display: grid; grid-template-columns: 58px 1fr; gap: 20px; position: relative; padding-bottom: 34px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--gold-2);
  background: rgba(230, 179, 76, 0.1); border: 1px solid rgba(230, 179, 76, 0.4);
  position: relative; z-index: 1;
}
.flow-step::before {
  content: ""; position: absolute; left: 23px; top: 46px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(230, 179, 76, 0.4), rgba(230, 179, 76, 0.08));
}
.flow-step:last-child::before { display: none; }
.flow-body h3 { font-size: 16.5px; font-weight: 700; letter-spacing: 0.04em; margin: 9px 0 6px; }
.flow-body p { color: var(--muted); font-size: 14px; }

/* ---------- 注意事項 ---------- */
.notice-list { list-style: none; margin-top: 36px; display: grid; gap: 12px; }
.notice-list li {
  padding: 16px 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); font-size: 14.5px; display: flex; gap: 12px; align-items: flex-start;
}
.notice-list li::before { content: "※"; color: var(--gold); font-weight: 700; flex: none; }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; transition: border-color 0.3s ease; }
.faq-item.open { border-color: rgba(230, 179, 76, 0.4); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 24px; color: var(--text); font-family: var(--sans);
  font-size: 15.5px; font-weight: 600; letter-spacing: 0.03em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; line-height: 1.6;
}
.faq-q .q-mark { color: var(--gold); font-family: var(--serif); margin-right: 8px; }
.faq-q .toggle {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 15px; color: var(--gold-2);
  transition: transform 0.35s ease, background 0.35s ease;
}
.faq-item.open .toggle { transform: rotate(45deg); background: rgba(230, 179, 76, 0.15); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTAバナー ---------- */
.cta-banner {
  margin-top: 20px; border-radius: 24px; padding: 60px 36px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(140deg, rgba(230, 179, 76, 0.16), rgba(230, 179, 76, 0.04) 60%);
  border: 1px solid rgba(230, 179, 76, 0.35);
}
.cta-banner::before {
  content: ""; position: absolute; inset: -60%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(246, 217, 138, 0.16), transparent 70%);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.05); opacity: 1; } }
.cta-banner h2 { font-family: var(--serif); font-size: clamp(22px, 3.6vw, 32px); letter-spacing: 0.05em; margin-bottom: 14px; position: relative; }
.cta-banner p { color: var(--muted); margin-bottom: 30px; position: relative; }
.cta-banner .btn { position: relative; }

/* ---------- 追従CTA（モバイル） ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(7, 11, 22, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.4s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; padding: 14px; }
@media (min-width: 761px) { .sticky-cta { display: none; } }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 60px; margin-top: 60px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12.5px; }

/* ---------- スクロールリビール ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ============================================================
   アンケート（ウィザード）
   ============================================================ */
.wizard-page { min-height: 100svh; display: flex; flex-direction: column; }
.wizard-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 110px 18px 60px; }
.wizard {
  width: 100%; max-width: 640px; border-radius: 24px; border: 1px solid var(--line);
  background: rgba(11, 18, 34, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow); overflow: hidden;
}
.wizard-head { padding: 30px 34px 0; }
.wizard-title { font-family: var(--serif); font-size: 21px; letter-spacing: 0.05em; margin-bottom: 6px; }
.wizard-sub { color: var(--muted); font-size: 13px; }

.progress { padding: 22px 34px 0; }
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 10px; }
.progress-labels span { font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); transition: color 0.3s ease; }
.progress-labels span.active { color: var(--gold-2); font-weight: 700; }
.progress-bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress-fill {
  height: 100%; width: 25%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  box-shadow: 0 0 12px rgba(230, 179, 76, 0.6);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.steps-viewport { position: relative; overflow: hidden; }
.step { padding: 28px 34px 8px; display: none; animation: stepIn 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.step.active { display: block; }
.step.back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 24px; }
.field-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; letter-spacing: 0.03em; }
.req { color: var(--gold); font-size: 11px; border: 1px solid rgba(230, 179, 76, 0.5); border-radius: 6px; padding: 1px 7px; margin-left: 9px; vertical-align: 2px; letter-spacing: 0.1em; }
.field-hint { color: var(--muted); font-size: 12.5px; margin-bottom: 10px; line-height: 1.7; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--text); font-family: var(--sans); font-size: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 179, 76, 0.18); background: rgba(255,255,255,0.07);
}
.field textarea { min-height: 110px; resize: vertical; }
.field.error input, .field.error textarea { border-color: var(--danger); }
.field-error { display: none; color: var(--danger); font-size: 12.5px; margin-top: 7px; }
.field.error .field-error { display: block; }

.opts { display: grid; gap: 11px; }
.opt {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04); font-size: 14.5px; font-weight: 500;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
  user-select: none; -webkit-user-select: none;
}
.opt:hover { border-color: rgba(230, 179, 76, 0.4); transform: translateX(3px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3);
  display: grid; place-items: center; transition: all 0.22s ease; font-size: 12px; color: #221803; font-weight: 800;
}
.opt.box .mark { border-radius: 7px; }
.opt.checked {
  border-color: var(--gold); background: rgba(230, 179, 76, 0.12);
  box-shadow: 0 0 0 3px rgba(230, 179, 76, 0.12);
}
.opt.checked .mark { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); border-color: var(--gold); }
.opt.checked .mark::after { content: "✓"; }
.other-input { display: none; margin-top: 11px; }
.other-input.show { display: block; animation: stepIn 0.3s ease; }

.confirm-list { display: grid; gap: 4px; margin-bottom: 18px; }
.confirm-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.confirm-row dt { color: var(--muted); }
.confirm-row dd { word-break: break-word; white-space: pre-wrap; }
@media (max-width: 520px) { .confirm-row { grid-template-columns: 1fr; gap: 2px; } }

.turnstile-box { margin: 18px 0 4px; }
.turnstile-box:empty { margin: 0; }

/* ハニーポット: 画面外に飛ばして人間には見えないようにする（display:noneはボットに検知されやすい） */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
.form-alert {
  display: none; margin: 0 34px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid rgba(255, 122, 122, 0.4); background: rgba(255, 122, 122, 0.1);
  color: var(--danger); font-size: 13.5px;
}
.form-alert.show { display: block; }

.wizard-nav { display: flex; justify-content: space-between; gap: 14px; padding: 18px 34px 32px; }
.wizard-nav .spacer { flex: 1; }
.btn-back {
  background: none; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  padding: 13px 26px; border-radius: 999px; font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-back:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }

/* サクセスオーバーレイ */
.success-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(7, 11, 22, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.success-overlay.show { display: flex; }
.success-card { text-align: center; max-width: 420px; animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes popIn { from { opacity: 0; transform: scale(0.85) translateY(20px); } to { opacity: 1; transform: none; } }
.success-ring {
  width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  display: grid; place-items: center; font-size: 44px; color: #221803;
  box-shadow: 0 0 0 12px rgba(230, 179, 76, 0.12), 0 0 60px rgba(230, 179, 76, 0.45);
  animation: ringPulse 2s ease-in-out infinite;
}
@keyframes ringPulse { 0%,100% { box-shadow: 0 0 0 12px rgba(230,179,76,0.12), 0 0 60px rgba(230,179,76,0.45); } 50% { box-shadow: 0 0 0 20px rgba(230,179,76,0.07), 0 0 80px rgba(230,179,76,0.6); } }
.success-card h2 { font-family: var(--serif); font-size: 24px; letter-spacing: 0.05em; margin-bottom: 12px; }
.success-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }

/* ============================================================
   予約ページ
   ============================================================ */
.reserve-main { max-width: 720px; margin: 0 auto; padding: 120px 20px 80px; }
.reserve-head { text-align: center; margin-bottom: 40px; }
.reserve-head .success-ring { width: 72px; height: 72px; font-size: 32px; margin-bottom: 22px; }
.reserve-head h1 { font-family: var(--serif); font-size: clamp(24px, 4.5vw, 32px); letter-spacing: 0.05em; margin-bottom: 12px; }
.reserve-head p { color: var(--muted); font-size: 14.5px; }

.alert-banner {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: 16px; padding: 20px 22px; margin-bottom: 34px;
  background: rgba(230, 179, 76, 0.1); border: 1px solid rgba(230, 179, 76, 0.45);
}
.alert-banner .icon { font-size: 20px; flex: none; }
.alert-banner strong { color: var(--gold-2); }
.alert-banner p { font-size: 14px; color: var(--text); }

.slot-list { display: grid; gap: 22px; }

/* ---- 日付ごとの空き枠（担当の区切りなし） ---- */
.day-card {
  border-radius: 20px; border: 1px solid var(--line); background: var(--panel);
  padding: 24px 24px 26px; position: relative; overflow: hidden;
}
.day-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2), transparent 80%); opacity: 0.7;
}
.day-title {
  font-family: var(--serif); font-size: 19px; letter-spacing: 0.06em;
  margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.day-title::before { content: "◆"; color: var(--gold); font-size: 11px; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.slot-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 15px 10px; border-radius: 14px; text-decoration: none;
  border: 1px solid rgba(230, 179, 76, 0.35); background: rgba(230, 179, 76, 0.08);
  color: var(--text); transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.slot-btn:hover {
  transform: translateY(-3px); border-color: var(--gold);
  background: linear-gradient(135deg, rgba(246,217,138,0.22), rgba(201,146,47,0.18));
  box-shadow: 0 10px 26px rgba(230, 179, 76, 0.25);
}
.slot-btn:active { transform: translateY(-1px); }
.slot-time { font-size: 19px; font-weight: 700; letter-spacing: 0.04em; color: var(--gold-2); }
.slot-range { font-size: 11.5px; color: var(--muted); letter-spacing: 0.03em; }

.empty-box {
  border-radius: 20px; border: 1px dashed var(--line); background: var(--panel);
  padding: 44px 28px; text-align: center;
}
.empty-title { font-family: var(--serif); font-size: 19px; letter-spacing: 0.05em; margin-bottom: 12px; }
.empty-desc { color: var(--muted); font-size: 14px; }
.slot-card {
  border-radius: 20px; border: 1px solid var(--line); background: var(--panel);
  padding: 28px 28px 26px; position: relative; overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.slot-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2), transparent 80%);
  opacity: 0.7;
}
.slot-card:hover { transform: translateY(-4px); border-color: rgba(230, 179, 76, 0.45); box-shadow: 0 16px 44px rgba(0,0,0,0.4); }
.slot-tag { display: inline-block; font-size: 11.5px; letter-spacing: 0.2em; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.slot-dates { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.slot-dates li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; font-weight: 600; letter-spacing: 0.03em; }
.slot-dates li::before { content: "◆"; color: var(--gold); font-size: 10px; }
.slot-card .btn { width: 100%; }
.reserve-note { margin-top: 36px; color: var(--muted); font-size: 13px; text-align: center; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 16px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12); border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   管理画面
   ============================================================ */
.admin-main { max-width: 1100px; margin: 0 auto; padding: 100px 20px 80px; }
.admin-title { font-family: var(--serif); font-size: 26px; letter-spacing: 0.05em; margin-bottom: 24px; }
.login-card { max-width: 400px; margin: 0 auto; }
.login-card .field { margin-bottom: 16px; }

.tabs { display: flex; gap: 8px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-family: var(--sans); font-size: 14.5px; font-weight: 600; padding: 12px 20px;
  border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease;
}
.tab.active { color: var(--gold-2); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }

/* 自動保存のステータス表示 */
.save-status { font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.02em; }
.save-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.save-status.saved { color: var(--ok); }
.save-status.saving { color: var(--gold-2); }
.save-status.dirty { color: var(--muted); }
.save-status.hold { color: var(--muted); }
.save-status.error { color: var(--danger); }
.save-status.saving::before { animation: pulseDot 1s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.toolbar .grow { flex: 1; }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.badge.ok { background: rgba(111, 227, 165, 0.15); color: var(--ok); border: 1px solid rgba(111, 227, 165, 0.4); }
.badge.ng { background: rgba(255, 122, 122, 0.12); color: var(--danger); border: 1px solid rgba(255, 122, 122, 0.4); }

.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
.admin-table th {
  text-align: left; padding: 13px 14px; background: rgba(255,255,255,0.05);
  color: var(--muted); font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
}
.admin-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; max-width: 260px; word-break: break-word; }
.admin-table tr:hover td { background: rgba(255,255,255,0.025); }

.slot-editor { display: grid; gap: 18px; }
.slot-edit-card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 22px; display: grid; gap: 14px; }
.slot-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .slot-edit-grid { grid-template-columns: 1fr; } }
.slot-edit-card label:not(.switch) { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 5px; }
.slot-edit-card label.switch { display: inline-flex; }
.slot-edit-card input[type="text"], .slot-edit-card textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--text); font-family: var(--sans); font-size: 14px;
}
.slot-edit-card textarea { min-height: 88px; resize: vertical; }
.slot-edit-card input[type="date"], .slot-edit-card input[type="time"] {
  width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--text);
  font-family: var(--sans); font-size: 14px; color-scheme: dark;
}
.slot-edit-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,179,76,0.15); }

/* Timerex取得結果のプレビュー */
.info-panel {
  padding: 18px 22px; border-radius: 14px; margin-bottom: 20px; font-size: 13.5px; line-height: 1.9;
  background: rgba(230, 179, 76, 0.08); border: 1px solid rgba(230, 179, 76, 0.3); color: var(--muted);
}
.info-panel strong { color: var(--gold-2); }
.fetched-box { border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); padding: 16px 18px; }
.fetched-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fetched-head .grow { flex: 1; }
.fetched-when { font-size: 12px; color: var(--muted); }
.fetched-error { margin-top: 12px; font-size: 12.5px; color: var(--danger); word-break: break-all; }
.fetched-empty { margin-top: 12px; font-size: 13px; color: var(--muted); }
.fetched-list { margin-top: 14px; display: grid; gap: 10px; }
.fetched-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; }
.fetched-row .f-date { font-size: 13.5px; font-weight: 700; color: var(--gold-2); }
.fetched-row .f-times { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chip {
  font-size: 12px; padding: 3px 10px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--text);
}
@media (max-width: 620px) { .fetched-row { grid-template-columns: 1fr; gap: 4px; } }

/* 対応日: 追加済みリスト（未使用。旧UIの残り） */
.date-list { display: grid; gap: 8px; margin-bottom: 12px; }
.date-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
}
.date-row .d-text { flex: 1; font-size: 14.5px; font-weight: 600; letter-spacing: 0.02em; }
.date-row .d-text::before { content: "◆"; color: var(--gold); font-size: 9px; margin-right: 10px; vertical-align: 2px; }
.date-row.past { opacity: 0.55; }
.date-row .d-past {
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px;
  color: var(--danger); border: 1px solid rgba(255,122,122,0.45); background: rgba(255,122,122,0.1);
}
.date-row .d-del {
  flex: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: none; color: var(--muted);
  font-size: 15px; line-height: 1; transition: color 0.2s ease, border-color 0.2s ease;
}
.date-row .d-del:hover { color: var(--danger); border-color: rgba(255,122,122,0.5); }
.date-empty {
  padding: 14px 16px; border-radius: 12px; font-size: 13.5px;
  border: 1px dashed var(--line); color: var(--muted); margin-bottom: 12px;
}

/* 対応日: 追加フォーム */
.date-add {
  display: grid; grid-template-columns: 1.5fr 1fr auto 1fr auto; gap: 10px; align-items: end;
  padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
.date-add .tilde { padding-bottom: 11px; color: var(--muted); }
.date-add .btn-add {
  padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  font-family: var(--sans); font-size: 13.5px; font-weight: 700; color: #221803;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.date-add .btn-add:hover { transform: translateY(-1px); filter: brightness(1.06); }
.date-add-error { display: none; color: var(--danger); font-size: 12.5px; margin-top: 8px; }
.date-add-error.show { display: block; }
@media (max-width: 720px) {
  .date-add { grid-template-columns: 1fr 1fr; }
  .date-add .tilde { display: none; }
  .date-add .btn-add { grid-column: 1 / -1; }
}
.slot-edit-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--muted); }
.switch input { position: absolute; opacity: 0; }
.switch .track { flex: none; width: 44px; height: 24px; border-radius: 99px; background: rgba(255,255,255,0.14); position: relative; transition: background 0.25s ease; }
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform 0.25s ease;
}
.switch input:checked + .track { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); }
.switch input:checked + .track::after { transform: translateX(20px); }
.btn-danger-ghost {
  background: none; border: 1px solid rgba(255, 122, 122, 0.4); color: var(--danger); cursor: pointer;
  padding: 9px 18px; border-radius: 999px; font-family: var(--sans); font-size: 12.5px; font-weight: 600;
}

/* ---------- 文言・画面設定タブ ---------- */
.content-editor { display: grid; gap: 26px; }
.content-section { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 26px 26px 30px; }
.content-section-title { font-family: var(--serif); font-size: 18px; letter-spacing: 0.05em; margin-bottom: 6px; }
.content-section-desc { color: var(--muted); font-size: 12.5px; margin-bottom: 20px; }
.content-field { padding: 16px 0; border-top: 1px solid var(--line); }
.content-field:first-of-type { border-top: 0; }
.content-field-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.content-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.edited-badge {
  display: none; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  color: var(--gold-2); border: 1px solid rgba(230,179,76,0.45); background: rgba(230,179,76,0.1);
}
.content-field.edited .edited-badge { display: inline-block; }
.reset-btn {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 99px; padding: 4px 14px; font-size: 11.5px; cursor: pointer; font-family: var(--sans);
}
.content-field.edited .reset-btn { display: inline-block; }
.reset-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.content-hint { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.content-field input[type="text"], .content-field input[type="number"], .content-field textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.8;
}
.content-field textarea { min-height: 84px; resize: vertical; }
.content-field textarea.list-area { min-height: 130px; }
.content-field input:focus, .content-field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,179,76,0.15);
}
.pair-rows { display: grid; gap: 12px; margin-bottom: 12px; }
.pair-row { display: flex; gap: 12px; align-items: flex-start; }
.pair-no {
  flex: none; width: 26px; height: 26px; margin-top: 8px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--gold-2);
  border: 1px solid rgba(230,179,76,0.35); background: rgba(230,179,76,0.08);
}
.pair-inputs { flex: 1; display: grid; gap: 8px; }
.pair-inputs textarea { min-height: 64px; }
.pair-tools { display: flex; flex-direction: column; gap: 6px; }
.pair-tools button { white-space: nowrap; }
@media (max-width: 720px) {
  .pair-row { flex-direction: column; }
  .pair-tools { flex-direction: row; }
}

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); z-index: 200;
  padding: 14px 26px; border-radius: 14px; font-size: 14px; font-weight: 600;
  background: rgba(11, 18, 34, 0.95); border: 1px solid rgba(230, 179, 76, 0.5); color: var(--gold-2);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow); max-width: min(92vw, 560px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255, 122, 122, 0.55); color: var(--danger); }

/* ---------- モーション配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}
