/* ============================================================
   不動産 個別相談サイト デザインシステム
   トーン: ディープスレートネイビー × ブラス（落ち着き・信頼）
   参考にしたSatoshi版の構造は踏襲しつつ、金融・投資らしい派手さを抑え、
   資産形成／住まいの文脈に合う落ち着いた真鍮色に寄せている。
   見出し: Shippori Mincho / 本文: Noto Sans JP
   ============================================================ */

:root {
  --bg: #080d15;
  --bg-2: #0f1722;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --text: #e8ecf2;
  --muted: #9fa9b8;
  --gold: #c8a86b;
  --gold-2: #e6d3a3;
  --gold-deep: #9d7f45;
  --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: 18px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--gold-2); }

::selection { background: rgba(200, 168, 107, 0.35); }

/* ---------- 背景装飾 ---------- */
.bg-deco {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(200, 168, 107, 0.10), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(58, 122, 106, 0.10), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(200, 168, 107, 0.05), 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); font-size: 17px; 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(200, 168, 107, 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;
}

/* 主要導線の「予約に進む」は一段大きく、ゆっくり脈打たせて視線を集める */
.hero-actions .btn, .cta-banner .btn, .sticky-cta .btn {
  padding: 21px 44px; font-size: 18px; letter-spacing: 0.06em;
  box-shadow: 0 12px 34px rgba(200, 168, 107, 0.38), inset 0 1px 0 rgba(255,255,255,0.55);
  animation: ctaPulse 3.2s ease-in-out infinite;
}
.hero-actions .btn:hover, .cta-banner .btn:hover, .sticky-cta .btn:hover { animation-play-state: paused; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 12px 34px rgba(200, 168, 107, 0.38), inset 0 1px 0 rgba(255,255,255,0.55); }
  50%      { box-shadow: 0 14px 46px rgba(200, 168, 107, 0.62), inset 0 1px 0 rgba(255,255,255,0.55); }
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(200, 168, 107, 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(200, 168, 107, 0.6); background: rgba(200, 168, 107, 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(8, 13, 21, 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(200, 168, 107, 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); }

/* ---------- スクロール誘導（下に続きがあることを示す） ---------- */
.hero { padding-bottom: 150px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: var(--muted); z-index: 2;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.scroll-cue-text { font-size: 11.5px; letter-spacing: 0.22em; font-weight: 600; }
.scroll-cue-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(200, 168, 107, 0.45); background: rgba(200, 168, 107, 0.08);
  position: relative; animation: cueBob 1.9s ease-in-out infinite;
}
.scroll-cue-arrow::after {
  content: ""; position: absolute; left: 50%; top: 45%;
  width: 9px; height: 9px; margin-left: -5px;
  border-right: 2px solid var(--gold-2); border-bottom: 2px solid var(--gold-2);
  transform: translateY(-50%) rotate(45deg);
}
@keyframes cueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.scroll-cue:hover { color: var(--gold-2); }
/* 少しでもスクロールしたら役目を終えるので消す */
body.scrolled-down .scroll-cue { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(12px); }

/* 画面下端のフェード。まだ下に何かある、と視覚的に伝える */
.fold-fade {
  position: fixed; left: 0; right: 0; bottom: 0; height: 96px; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 13, 21, 0.92), rgba(8, 13, 21, 0));
  opacity: 1; transition: opacity 0.4s ease;
}
body.at-bottom .fold-fade { opacity: 0; }

/* ---------- こんなことが相談できます ---------- */
.know-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 900px) { .know-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .know-grid { grid-template-columns: 1fr; } }
.know-card {
  padding: 26px 24px 24px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--panel); position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.know-card:hover { transform: translateY(-4px); border-color: rgba(200,168,107,0.38); background: var(--panel-2); }
.know-card .know-q {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.6; letter-spacing: 0.02em;
}
.know-card .know-q::before {
  content: "Q"; flex: 0 0 auto;
  width: 26px; height: 26px; margin-top: 3px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0;
  color: var(--gold-2); background: rgba(200,168,107,0.14); border: 1px solid rgba(200,168,107,0.32);
}
.know-card .know-a { margin-top: 14px; font-size: 16px; line-height: 1.95; color: var(--muted); }

/* ---------- カード ---------- */
.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(200, 168, 107, 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(200, 168, 107, 0.12); border: 1px solid rgba(200, 168, 107, 0.3); margin-bottom: 18px;
}
.card h3 { font-family: var(--serif); font-size: 19px; letter-spacing: 0.05em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16.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: 16.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(200, 168, 107, 0.08); border: 1px solid rgba(200, 168, 107, 0.3);
  color: var(--gold-2); font-weight: 600; font-size: 15.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(200, 168, 107, 0.1); border: 1px solid rgba(200, 168, 107, 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(200, 168, 107, 0.4), rgba(200, 168, 107, 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 {
  font-size: 15.5px; padding: 17px 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); display: flex; gap: 12px; align-items: flex-start;
}
.notice-list li::before { content: "※"; color: var(--gold); font-weight: 700; flex: none; }


/* ---------- キャンセル手順（3ステップ） ---------- */
.cancel-steps { list-style: none; display: grid; gap: 0; margin-top: 34px; counter-reset: cs; }
.cancel-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; position: relative; padding-bottom: 26px; }
.cancel-steps li:last-child { padding-bottom: 0; }
.cancel-steps li::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(200,168,107,0.4), rgba(200,168,107,0.06));
}
.cancel-steps li:last-child::before { display: none; }
.cs-num {
  width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--gold-2);
  background: rgba(200, 168, 107, 0.1); border: 1px solid rgba(200, 168, 107, 0.4);
  position: relative; z-index: 1;
}
.cancel-steps h3 { font-size: 17px; font-weight: 700; margin: 8px 0 6px; letter-spacing: 0.02em; }
.cancel-steps p { color: var(--muted); font-size: 15.5px; }

.sub-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--gold);
  display: flex; align-items: center; gap: 12px; margin: 46px 0 20px;
}
.sub-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 注意事項カード（拾い読みできる形） ---------- */
.note-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 820px) { .note-cards { grid-template-columns: 1fr; } }
.note-card {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start;
  padding: 22px 22px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.note-card:hover { border-color: rgba(200,168,107,0.35); background: var(--panel-2); }
.nc-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: rgba(200, 168, 107, 0.12); border: 1px solid rgba(200, 168, 107, 0.3);
}
.nc-body h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 7px; letter-spacing: 0.02em; line-height: 1.6; }
.nc-body p { color: var(--muted); font-size: 15px; line-height: 1.9; }

/* ---------- 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(200, 168, 107, 0.4); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 24px; color: var(--text); font-family: var(--sans);
  font-size: 17.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(200, 168, 107, 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: 16.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(200, 168, 107, 0.16), rgba(200, 168, 107, 0.04) 60%);
  border: 1px solid rgba(200, 168, 107, 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(8, 13, 21, 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;
}
/* ---------- アンケート前の確認画面 ---------- */
.intro-card {
  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); padding: 34px 34px 32px;
}
.intro-title { font-family: var(--serif); font-size: 22px; letter-spacing: 0.05em; line-height: 1.55; margin-bottom: 10px; }
.intro-lead { color: var(--muted); font-size: 15.5px; margin-bottom: 30px; }
.intro-block { margin-bottom: 30px; }
.intro-h2 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold);
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.intro-h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 流れ（番号つき） */
.intro-flow { list-style: none; display: grid; gap: 0; }
.intro-flow li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.intro-flow li:last-child { padding-bottom: 0; }
.intro-flow li::before {
  content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(200,168,107,0.4), rgba(200,168,107,0.06));
}
.intro-flow li:last-child::before { display: none; }
.ifl-num {
  width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--gold-2);
  background: rgba(200, 168, 107, 0.1); border: 1px solid rgba(200, 168, 107, 0.4);
  position: relative; z-index: 1;
}
.ifl-body h3 { font-size: 17px; font-weight: 700; letter-spacing: 0.02em; margin: 4px 0 5px; line-height: 1.6; }
.ifl-body p { color: var(--muted); font-size: 16px; }

/* 確認事項（見出しごとに開閉） */
.intro-notes { display: grid; gap: 10px; }
.note-group { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.03); overflow: hidden; }
.note-group summary {
  list-style: none; cursor: pointer; padding: 17px 18px; font-size: 16.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.note-group summary::-webkit-details-marker { display: none; }
.note-group summary::after {
  content: "＋"; color: var(--gold-2); font-size: 15px; flex: none; transition: transform 0.3s ease;
}
.note-group[open] summary::after { content: "－"; }
.note-group[open] { border-color: rgba(200, 168, 107, 0.35); }
.note-body { padding: 0 18px 16px; color: var(--muted); font-size: 16px; line-height: 2; white-space: pre-wrap; }

.intro-agree {
  padding: 15px 18px; border-radius: 13px; margin-bottom: 20px; font-size: 14px; font-weight: 600;
  background: rgba(200, 168, 107, 0.08); border: 1px solid rgba(200, 168, 107, 0.3); color: var(--gold-2);
}
.intro-next { width: 100%; }

.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: 14.5px; }

.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(200, 168, 107, 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: 17.5px; margin-bottom: 6px; letter-spacing: 0.03em; }
.req { color: var(--gold); font-size: 11px; border: 1px solid rgba(200, 168, 107, 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: 15px; 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(200, 168, 107, 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: 18px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04); font-size: 17px; 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(200, 168, 107, 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(200, 168, 107, 0.12);
  box-shadow: 0 0 0 3px rgba(200, 168, 107, 0.12);
}
.opt.checked .mark { background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); border-color: var(--gold); }
.opt.checked .mark::after { content: "✓"; }
/* 設問に添える「他の方の回答傾向」 */
.choice-note {
  font-size: 14px; color: var(--gold-2); line-height: 1.8; margin-bottom: 12px;
  padding: 10px 14px; border-radius: 11px;
  background: rgba(200, 168, 107, 0.08); border: 1px solid rgba(200, 168, 107, 0.25);
}
/* 選択肢の右端に置く割合・バッジ。文字と重ならないよう flex の一員にする */
.opt > span:not(.mark):not(.opt-share):not(.opt-badge) { flex: 1; min-width: 0; }
.opt-share {
  flex: none; margin-left: auto; padding-left: 10px;
  font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}
.opt-badge {
  flex: none; margin-left: auto; white-space: nowrap;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 99px; color: var(--gold-2);
  background: rgba(200, 168, 107, 0.12); border: 1px solid rgba(200, 168, 107, 0.4);
}
@media (max-width: 420px) {
  .opt-badge { font-size: 9px; padding: 3px 8px; }
  .opt-share { font-size: 14px; }
}

.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: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.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(8, 13, 21, 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(200, 168, 107, 0.12), 0 0 60px rgba(200, 168, 107, 0.45);
  animation: ringPulse 2s ease-in-out infinite;
}
@keyframes ringPulse { 0%,100% { box-shadow: 0 0 0 12px rgba(200,168,107,0.12), 0 0 60px rgba(200,168,107,0.45); } 50% { box-shadow: 0 0 0 20px rgba(200,168,107,0.07), 0 0 80px rgba(200,168,107,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: 17px; }

.alert-banner {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: 16px; padding: 20px 22px; margin-bottom: 34px;
  background: rgba(200, 168, 107, 0.1); border: 1px solid rgba(200, 168, 107, 0.45);
}
.alert-banner .icon { font-size: 20px; flex: none; }
.alert-banner strong { color: var(--gold-2); }
.alert-banner p { font-size: 16.5px; 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(200, 168, 107, 0.35); background: rgba(200, 168, 107, 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(200, 168, 107, 0.25);
}
.slot-btn:active { transform: translateY(-1px); }
.slot-time { font-size: 21px; font-weight: 700; letter-spacing: 0.04em; color: var(--gold-2); }
.slot-range { font-size: 12.5px; color: var(--muted); letter-spacing: 0.03em; }

/* ---------- 予約手続きの確認オーバーレイ ---------- */
.step-overlay {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 13, 21, 0.93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
}
.step-overlay.show { display: flex; }
.step-card {
  width: 100%; max-width: 480px; border-radius: 22px; padding: 30px 26px 26px;
  border: 1px solid rgba(200, 168, 107, 0.4); background: rgba(11, 18, 34, 0.98);
  box-shadow: var(--shadow); animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center; margin: auto;
}
.step-eyebrow { font-size: 11.5px; letter-spacing: 0.2em; color: var(--muted); font-weight: 700; }
.step-slot {
  font-family: var(--serif); font-size: clamp(20px, 5vw, 26px); font-weight: 700;
  color: var(--gold-2); margin: 8px 0 22px; letter-spacing: 0.03em; line-height: 1.5;
}

/* 「まだ完了していない」を画面内で一番強く見せる。
   ここを読み飛ばして離脱する事故が起きているので、見出しは大きく・中央・脈打たせる。 */
.step-warn {
  text-align: center; padding: 22px 20px 20px;
  border-radius: 16px; margin-bottom: 22px;
  background: rgba(255, 122, 122, 0.14); border: 2px solid rgba(255, 122, 122, 0.75);
  box-shadow: 0 0 0 5px rgba(255, 122, 122, 0.08), 0 10px 34px rgba(255, 122, 122, 0.14);
  animation: warnPulse 2.2s ease-in-out infinite;
}
@keyframes warnPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 122, 122, 0.08), 0 10px 34px rgba(255, 122, 122, 0.14); }
  50%      { box-shadow: 0 0 0 9px rgba(255, 122, 122, 0.14), 0 10px 40px rgba(255, 122, 122, 0.26); }
}
@media (prefers-reduced-motion: reduce) { .step-warn { animation: none; } }
.step-warn-icon { font-size: 1.15em; margin-right: 10px; vertical-align: -0.06em; }
.step-warn strong {
  display: block; color: var(--danger); font-weight: 700;
  font-size: clamp(21px, 5.6vw, 26px); line-height: 1.45; letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.step-warn p { font-size: 16px; line-height: 1.9; text-align: left; }
.step-warn p strong {
  display: inline; color: var(--gold-2); font-size: inherit;
  text-decoration: underline; text-decoration-color: rgba(200, 168, 107, 0.5); text-underline-offset: 4px;
}

.step-mini { list-style: none; text-align: left; display: grid; gap: 12px; margin-bottom: 24px; }
.step-mini li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.7; color: var(--text); }
.step-mini li > span {
  flex: none; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--gold-2); margin-top: 1px;
  background: rgba(200, 168, 107, 0.12); border: 1px solid rgba(200, 168, 107, 0.4);
}
.step-mini li b { color: var(--gold-2); }

.step-primary { width: 100%; padding: 19px 24px; font-size: 17px; }
.step-secondary { width: 100%; margin-top: 12px; }
.step-cancel { width: 100%; margin-top: 12px; }

.step-ask-title { font-family: var(--serif); font-size: clamp(21px, 5.4vw, 25px); letter-spacing: 0.04em; margin: 8px 0 14px; line-height: 1.6; }
.step-ask-lead { color: var(--muted); font-size: 15.5px; line-height: 1.9; margin-bottom: 26px; }
.step-done-ring {
  width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  display: grid; place-items: center; font-size: 34px; color: #221803;
  box-shadow: 0 0 0 10px rgba(200, 168, 107, 0.12), 0 0 50px rgba(200, 168, 107, 0.4);
}
@media (max-width: 640px) {
  .step-card { padding: 24px 16px 22px; border-radius: 18px; }
  .step-warn { padding: 20px 15px 18px; }
  .step-warn p { font-size: 15.5px; line-height: 1.85; }
  .step-mini li { font-size: 15px; }
  .step-primary { padding: 19px 18px; font-size: 16.5px; }
}
/* 狭い画面だけ「まだ予約は / 完了していません」で改行する */
.sp-br { display: none; }
@media (max-width: 420px) { .sp-br { display: inline; } }

/* 枠タップ時の最新確認中の表示 */
.slot-btn.checking { opacity: 0.55; pointer-events: none; position: relative; }
.slot-btn.checking::after {
  content: "確認中…"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12px; color: var(--gold-2); background: rgba(8, 13, 21, 0.72); border-radius: 14px;
}

/* 「埋まってしまいました」などのお知らせ */
.slot-notice {
  display: none; margin-bottom: 18px; padding: 15px 18px; border-radius: 14px; font-size: 14px;
  background: rgba(255, 122, 122, 0.1); border: 1px solid rgba(255, 122, 122, 0.45); color: var(--danger);
}
.slot-notice.show { display: block; animation: stepIn 0.3s ease; }

.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(200, 168, 107, 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: 14px; 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; }

/* 開発環境／本番環境の取り違え防止バナー */
.env-banner { display: none; padding: 12px 20px; border-radius: 12px; margin-bottom: 20px; font-size: 13px; font-weight: 600; }
.env-banner.show { display: block; }
.env-banner.dev { background: rgba(255, 122, 122, 0.12); border: 1px solid rgba(255, 122, 122, 0.5); color: var(--danger); }
.env-banner.prod { background: rgba(111, 227, 165, 0.1); border: 1px solid rgba(111, 227, 165, 0.35); color: var(--ok); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-head .admin-title { margin-bottom: 0; }

.login-card { max-width: 420px; margin: 40px auto; }
.login-card .field { margin-bottom: 18px; }
.login-title { font-family: var(--serif); font-size: 19px; letter-spacing: 0.05em; margin-bottom: 22px; text-align: center; }
.login-card input[type="email"], .login-card input[type="password"], .login-card input[type="text"] {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--text); font-family: var(--sans); font-size: 16px;
}
.login-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,168,107,0.18); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 68px !important; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  border-radius: 99px; padding: 5px 12px; font-size: 11.5px; font-family: var(--sans);
}
.pw-toggle:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }

.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; white-space: nowrap; }
.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); }

/* 回答一覧の絞り込み */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
  padding: 16px 18px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
}
.filter-item { display: flex; flex-direction: column; gap: 6px; }
.filter-item label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.filter-item select, .filter-item input[type="date"] {
  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; min-width: 180px;
}
.filter-item input[type="date"] { min-width: 160px; color-scheme: dark; }
.filter-actions { margin-left: auto; }
@media (max-width: 720px) {
  .filter-bar { gap: 12px; }
  .filter-item { flex: 1 1 100%; }
  .filter-item select, .filter-item input[type="date"] { min-width: 0; width: 100%; }
  .filter-actions { margin-left: 0; flex: 1 1 100%; }
  .filter-actions .btn-ghost { width: 100%; }
}

/* 選択中の行に対する操作バー */
.select-bar {
  padding: 12px 16px; border-radius: 14px;
  border: 1px solid rgba(224, 184, 106, 0.4); background: rgba(224, 184, 106, 0.08);
}

.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.col-check, .admin-table td.col-check { width: 40px; padding-right: 0; }
.admin-table .col-check input { width: 17px; height: 17px; accent-color: var(--gold-2); cursor: pointer; }
.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(200,168,107,0.15); }

/* Timerex取得結果のプレビュー */
.info-panel {
  padding: 18px 22px; border-radius: 14px; margin-bottom: 20px; font-size: 13.5px; line-height: 1.9;
  background: rgba(200, 168, 107, 0.08); border: 1px solid rgba(200, 168, 107, 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(200,168,107,0.45); background: rgba(200,168,107,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(200,168,107,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(200,168,107,0.35); background: rgba(200,168,107,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; }
}

/* ---------- ログイン情報タブ ---------- */
.account-card { max-width: 540px; }
.account-current { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-current strong { color: var(--text); font-size: 14.5px; }
.account-sep { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.account-card .field { margin-bottom: 20px; }
.account-card input[type="text"], .account-card input[type="email"], .account-card input[type="password"] {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--text); font-family: var(--sans); font-size: 16px;
}
.account-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,168,107,0.18); }

/* パスワードの強さの目安 */
.pw-meter { height: 5px; border-radius: 99px; background: rgba(255,255,255,0.08); margin-top: 10px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 0.3s ease, background 0.3s ease; }
.pw-meter.s1 span { background: var(--danger); }
.pw-meter.s2 span { background: #e0a341; }
.pw-meter.s3 span { background: var(--gold); }
.pw-meter.s4 span { background: var(--ok); }

/* ---------- 流入元リンク ---------- */
.src-form-card { max-width: 720px; }
.src-form-title { font-family: var(--serif); font-size: 17px; letter-spacing: 0.04em; margin-bottom: 18px; }
.src-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .src-form { grid-template-columns: 1fr; } }
.src-form-card input[type="text"] {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--text); font-family: var(--sans); font-size: 16px;
}
.src-form-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,168,107,0.15); }
.src-preview { margin-top: 14px; font-size: 13px; color: var(--gold-2); word-break: break-all; line-height: 1.8; }

.src-list { display: grid; gap: 14px; }
.src-empty { color: var(--muted); font-size: 14px; padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }
.src-card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 20px 22px; }
.src-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.src-label { font-size: 16.5px; font-weight: 700; letter-spacing: 0.02em; }
.src-count { font-size: 13px; color: var(--muted); }
.src-count strong { font-family: var(--serif); font-size: 26px; color: var(--gold-2); margin-right: 3px; }
.src-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 14px; font-size: 12.5px; color: var(--muted); }
.src-url-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.src-url-row input {
  flex: 1; min-width: 220px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--gold-2); font-family: var(--sans); font-size: 13.5px;
}
.src-card .btn-danger-ghost { margin-top: 14px; }

.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(200, 168, 107, 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); }

/* ============================================================
   スマートフォン最適化（主要な利用環境）
   ・文字を詰め込みすぎない／タップ領域は44px以上
   ・追従CTAに隠れないよう本文下に余白を確保
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 17.5px; line-height: 1.95; }

  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .section + .section { padding-top: 8px; }

  /* ヒーロー: 1画面に「見出し＋ボタン＋続きの気配」が収まる高さに */
  .hero { padding: 130px 0 120px; }
  .hero h1 { font-size: 30px; line-height: 1.5; margin: 16px 0 18px; }
  .hero-lead { font-size: 15px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn, .hero-actions .btn-ghost { width: 100%; padding: 16px 24px; font-size: 16px; }
  .hero-stats { gap: 8px; margin-top: 30px; }
  .stat-chip { font-size: 12.5px; padding: 8px 14px; }

  .sec-title { font-size: 24px; margin: 12px 0 14px; }
  .sec-lead { font-size: 16.5px; }

  /* 実績バー: 3列のまま数字を主役に */
  .proof-bar-wrap { margin-top: -18px; }
  .proof-item { padding: 22px 6px; }
  .proof-num { font-size: 30px; }
  .proof-label { font-size: 11px; margin-top: 6px; letter-spacing: 0.02em; }
  .proof-note { font-size: 10.5px; margin-top: 10px; }

  /* 相談者の内訳: ラベルを上、バーを下の2段に */
  .who-headline { gap: 8px; }
  .who-big { font-size: 54px; }
  .who-suffix { font-size: 15px; }
  .bar-row { grid-template-columns: 1fr 46px; grid-template-areas: "label pct" "track track"; gap: 6px 10px; }
  .bar-label { grid-area: label; font-size: 15.5px; }
  .bar-pct { grid-area: pct; font-size: 16.5px; }
  .bar-track { grid-area: track; height: 9px; }
  .bar-chart { gap: 18px; margin-top: 28px; }

  /* CTAはさらに大きく */
  .hero-actions .btn, .cta-banner .btn, .sticky-cta .btn { padding: 20px 28px; font-size: 17px; }

  /* お客様の声: 1列で読みやすく */
  .voice-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .voice-card { padding: 22px 18px 18px; }
  .voice-card blockquote { font-size: 17px; padding-top: 16px; line-height: 1.95; }
  .closing-quote { font-size: 17px; margin-bottom: 22px; }
  .closing-quote .cq-mark { font-size: 36px; }

  .card { padding: 24px 20px; }
  .card h3 { font-size: 17px; }
  .card p { font-size: 16px; }
  .card-grid { gap: 14px; margin-top: 28px; }

  .check-panel { padding: 26px 20px; margin-top: 28px; }
  .check-list { gap: 16px; }
  .check-list li { font-size: 16.5px; }
  .agree-note { font-size: 14px; padding: 16px 18px; }

  .flow { margin-top: 32px; }
  .flow-step { grid-template-columns: 46px 1fr; gap: 14px; padding-bottom: 26px; }
  .flow-num { width: 38px; height: 38px; font-size: 16px; }
  .flow-step::before { left: 19px; top: 38px; }
  .flow-body h3 { font-size: 15.5px; }
  .flow-body p { font-size: 13.5px; }

  .notice-list { margin-top: 26px; }
  .notice-list li { font-size: 15px; padding: 15px 16px; }
  .cancel-steps { margin-top: 28px; }
  .cancel-steps li { grid-template-columns: 42px 1fr; gap: 12px; padding-bottom: 22px; }
  .cancel-steps li::before { left: 17px; top: 38px; }
  .cs-num { width: 35px; height: 35px; font-size: 15px; }
  .cancel-steps h3 { font-size: 16px; margin-top: 5px; }
  .cancel-steps p { font-size: 15px; }
  .sub-title { margin: 36px 0 16px; font-size: 12px; }
  .note-card { padding: 18px 16px; grid-template-columns: 40px 1fr; gap: 12px; }
  .nc-icon { width: 38px; height: 38px; font-size: 18px; }
  .nc-body h4 { font-size: 16px; }
  .nc-body p { font-size: 14.5px; }

  .faq { margin-top: 28px; }
  .faq-q { padding: 19px 18px; font-size: 17px; }
  .faq-a-inner { padding: 0 18px 18px; font-size: 16px; }

  .cta-banner { padding: 44px 22px; border-radius: 20px; }
  .cta-banner h2 { font-size: 21px; }
  .cta-banner .btn { width: 100%; }

  /* 追従CTAに本文が隠れないようにする */
  .site-footer { padding-bottom: 110px; }
  .reserve-main { padding-bottom: 60px; }

  /* 予約ページ: 時間ボタンは2列で大きく */
  .reserve-main { padding-top: 96px; }
  .reserve-head h1 { font-size: 25px; }
  .reserve-head p { font-size: 15.5px; }
  .alert-banner { padding: 17px 18px; }
  .alert-banner p { font-size: 15px; }
  .day-card { padding: 20px 18px 22px; }
  .day-title { font-size: 17px; margin-bottom: 14px; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .slot-btn { padding: 16px 8px; min-height: 64px; }
  .slot-time { font-size: 20px; }

  /* 確認画面 */
  .intro-card { padding: 26px 20px 26px; border-radius: 20px; }
  .intro-title { font-size: 19px; }
  .intro-lead { font-size: 15px; margin-bottom: 26px; }
  .intro-block { margin-bottom: 26px; }
  .intro-flow li { grid-template-columns: 34px 1fr; gap: 12px; }
  .intro-flow li::before { left: 13px; top: 30px; }
  .ifl-num { width: 28px; height: 28px; font-size: 13px; }
  .ifl-body h3 { font-size: 15.5px; }
  .ifl-body p { font-size: 15.5px; }
  .note-group summary { padding: 17px 16px; font-size: 16.5px; min-height: 54px; }
  .note-body { padding: 0 16px 15px; font-size: 15.5px; }
  .intro-next { padding: 17px 24px; font-size: 16px; }

  /* アンケート: 入力欄とボタンを大きく */
  .wizard-main { padding: 92px 14px 40px; }
  .wizard { border-radius: 20px; }
  .wizard-head { padding: 24px 20px 0; }
  .wizard-title { font-size: 19px; }
  .progress { padding: 18px 20px 0; }
  .progress-labels span { font-size: 10.5px; }
  .step { padding: 22px 20px 4px; }
  .form-alert { margin: 0 20px; }
  .wizard-nav { padding: 16px 20px 26px; gap: 10px; }
  .wizard-nav .btn, .wizard-nav .btn-back { padding: 15px 22px; font-size: 15px; }
  .opt { padding: 18px 16px; font-size: 16.5px; min-height: 60px; }
  .field-label { font-size: 16px; }

  /* 管理画面 */
  .admin-main { padding: 80px 14px 60px; }
  .toolbar { gap: 8px; }
  .btn-sm { padding: 10px 16px; font-size: 13px; }
}

/* 極小画面 */
@media (max-width: 360px) {
  .hero h1 { font-size: 26px; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .slot-time { font-size: 18px; }
}

/* ---------- モーション配慮 ---------- */
@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; }
}
