/* =====================================================================
   Beauty Space サン 予約システム デモ
   共通スタイル（明るく・シンプル・親しみやすい／高齢者配慮）
   - 大きな文字・大きなボタン・高コントラスト・少ない要素
   ===================================================================== */

:root {
  /* ==== カラーパレット（デモ：画面右端の🎨から候補を切替。既定＝グリーン系＝ロゴ同系） ====
     第5版「デザインの方向性」：メインカラー検討中。ロゴはグリーン、候補はピンク系／ロイヤルブルー系／
     ダークブラウン系。決定後は data-theme の該当色を既定にし、スイッチャーを外します。 */
  /* 既定＝アンティークブラウン（オーナー決定色）。操作画面はこの明るい配色、
     ホームだけ濃いクラシックブラウン（body.view-home）で“お店の顔”を作る。 */
  --bg:          #F4ECDD;
  --surface:     #FCF8F0;
  --surface-2:   #EEE3D0;
  --primary:     #6E4F34;  /* ブラウン */
  --primary-dark:#4A3320;
  --primary-soft:#EFE4D1;
  --accent:      #A9833C;  /* 真鍮ゴールド（上質アクセント） */
  --accent-soft: #F0E5CD;
  --text:        #392B1D;
  --muted:       #8A7660;
  --border:      #E4D6BF;
  --success:     #3E7C50;
  --danger:      #C0492F;
  --warning:     #C9922B;

  /* 見出し用の明朝（ホームの上質感）。本文はゴシックのまま（高齢者の可読性優先）。 */
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Georgia", serif;

  /* サイズ（高齢者配慮で大きめ） */
  --radius:    14px;
  --radius-lg: 20px;
  --tap:       56px;        /* タップ領域の最小高さ */
  --shadow:    0 2px 10px rgba(30, 35, 55, .06);
  --shadow-lg: 0 10px 30px rgba(30, 35, 55, .14);

  --maxw: 960px;
}

/* グリーン系（ロゴと同系・エメラルド） */
:root[data-theme="green"] {
  --bg:#F6FAF8; --surface:#FFFFFF; --surface-2:#EAF1ED;
  --primary:#149E6A; --primary-dark:#0E7A50; --primary-soft:#E3F3EB;
  --accent:#C79A45; --accent-soft:#F5EDD9;
  --text:#22302A; --muted:#63776D; --border:#DCE8E1;
}
/* ロイヤルブルー系（既定と同値・明示） */
:root[data-theme="blue"] {
  --bg:#F7F8FB; --surface:#FFFFFF; --surface-2:#EEF1F7;
  --primary:#2E4BA6; --primary-dark:#21367A; --primary-soft:#E6EAF7;
  --accent:#C9A227; --accent-soft:#F6EFD6;
  --text:#1F2430; --muted:#667089; --border:#DDE3EF;
}
/* ピンク系（くすみローズ＋ゴールドで“かっこいい大人”） */
:root[data-theme="pink"] {
  --bg:#FBF7F8; --surface:#FFFFFF; --surface-2:#F5EDF0;
  --primary:#C24E6B; --primary-dark:#9B3A52; --primary-soft:#FBE7ED;
  --accent:#D99A5B; --accent-soft:#F8ECD9;
  --text:#2A2126; --muted:#7C6A70; --border:#ECDCE2;
}
/* アンティークブラウン（オーナー決定色）：アイボリー地＋ブラウン＋真鍮ゴールド。
   操作画面はこの明るい配色。ホームだけ濃色（body.view-home）。 */
:root[data-theme="brown"] {
  --bg:#F4ECDD; --surface:#FCF8F0; --surface-2:#EEE3D0;
  --primary:#6E4F34; --primary-dark:#4A3320; --primary-soft:#EFE4D1;
  --accent:#A9833C; --accent-soft:#F0E5CD;
  --text:#392B1D; --muted:#8A7660; --border:#E4D6BF;
}
/* ウォームコーラル系（温かみ・洗練。デザイン候補画像③のオーロラ系より） */
:root[data-theme="coral"] {
  --bg:#FDF7F4; --surface:#FFFFFF; --surface-2:#F8EBE4;
  --primary:#D85F3E; --primary-dark:#B0472C; --primary-soft:#FCE7DE;
  --accent:#E8A24A; --accent-soft:#F9EEDA;
  --text:#2E241F; --muted:#8A776E; --border:#F1DED4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.4; margin: 0 0 .4em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

/* ---------- レイアウト ---------- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
}
.app-header .brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
/* ロゴマーク（Sエンブレム）。テーマ色に再着色したPNGを通常背景で表示。
   ※CSSマスクはこのPNGでChromeが描画できなかったため background 方式に変更。 */
.brand .logo {
  width: 40px; height: 40px; flex: 0 0 auto;
  background: url(logo-mark-brown.png) center / contain no-repeat;
}
/* テキストロゴ「Beauty Space サン」 */
.brand .brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name .en {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--primary); text-transform: none;
}
.brand .brand-name .ja { font-size: 1.15rem; font-weight: 800; color: var(--primary-dark); }
.app-header .spacer { flex: 1; }

.back-btn {
  border: none;
  background: var(--surface-2);
  color: var(--text);
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-btn:hover { background: var(--border); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 16px 120px;
  flex: 1;
}

/* ---------- 画面切り替え ---------- */
.screen { display: none; }
.screen.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform:none;} }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .05s, background .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.95); }
.btn-outline { background: var(--surface); color: var(--primary-dark); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
/* LINEログイン（LINEブランドカラー）。第6版 4-9 */
.btn-line { background: #06C755; color: #fff; font-weight: 700; }
.btn-line:hover { filter: brightness(.95); }
.ez-line-card { border-left: 4px solid #06C755; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.95); }
.btn-lg { min-height: 64px; font-size: 1.25rem; width: 100%; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- カード ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card + .card { margin-top: 16px; }

/* ---------- ホーム ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-lg);
}
.hero h1 { color: #fff; margin-bottom: 6px; }
.hero p { color: rgba(255,255,255,.92); margin: 0; }

.home-grid {
  display: grid;
  grid-auto-flow: column;      /* 二次ボタンは横1列で等幅（2個でも3個でも均等） */
  grid-auto-columns: 1fr;
  gap: 16px;
}
/* 予約する（CTA）はグリッドの外に出して常に横幅いっぱい */
.home-cta { margin: 16px 0; }
.home-tile {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform .08s, border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow);
}
.home-tile:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.home-tile .ico { font-size: 2.6rem; line-height: 1; margin-bottom: 10px; display: block; }
.home-tile .ttl { font-size: 1.25rem; font-weight: 700; }
.home-tile .sub { font-size: .95rem; color: var(--muted); margin-top: 4px; }
.home-tile.primary { background: var(--primary-soft); border-color: var(--primary); }

/* ---------- ステップ表示 ---------- */
.steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.steps .step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .95rem;
}
.steps .step .num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: .95rem;
  flex: 0 0 auto;
}
.steps .step.active .num { background: var(--primary); color: #fff; }
.steps .step.done .num { background: var(--success); color: #fff; }
.steps .step.active { color: var(--text); font-weight: 700; }
.steps .sep { color: var(--border); }

.section-title { margin-bottom: 14px; }
.section-title small { display:block; color: var(--muted); font-weight: 400; font-size: .95rem; }

/* ---------- メニュー選択（ホームと同じタイル型の大きなボタン／高齢者の押し間違い防止） ---------- */
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.menu-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 4px;
  min-height: 200px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .08s, border-color .15s, background .15s, box-shadow .15s;
}
.menu-item:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.menu-item.selected { border-color: var(--primary); background: var(--primary-soft); }
/* メニュー名の行数（1行／2行）でカードの中身がズレて見えないように、
   名前は上の余白ごと中央に、料金は必ずカードの下端にそろえる。 */
.menu-item .m-body { width: 100%; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.menu-item .m-name { font-size: 1.3rem; font-weight: 700; word-break: auto-phrase; }
.menu-item .m-desc { color: var(--muted); font-size: .92rem; margin-top: 2px; word-break: auto-phrase; }
.menu-item .m-meta { margin-top: auto; padding-top: 10px; }
.menu-item .m-price { font-size: 1.4rem; font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.menu-item .m-time { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.menu-item .m-check {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: grid; place-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity .12s;
}
.menu-item.selected .m-check { background: var(--primary); border-color: var(--primary); opacity: 1; }

/* ---------- 施術オプション（髪の長さ・トリートメント／第5版） ---------- */
.opt-block { margin-top: 20px; }
.opt-block .opt-label { font-weight: 800; font-size: 1.08rem; margin-bottom: 4px; }
.opt-block .opt-hint { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice-row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.choice { min-width: 0; }
#menuOptions { min-width: 0; }
.choice {
  border: 2px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 14px; padding: 14px 10px; cursor: pointer; font-family: inherit;
  text-align: center; transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--primary); }
.choice.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.choice .c-main { font-weight: 800; font-size: 1.12rem; }
.choice .c-sub  { font-size: .82rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.choice.on .c-sub { color: var(--primary-dark); }
.price-note {
  background: var(--accent-soft); border-radius: 12px;
  padding: 11px 15px; margin-top: 16px; font-size: .95rem; color: var(--text);
}
.price-note strong { color: var(--accent); }

/* ===== Step1：髪の長さ・区分の選択（大きなタイル） ===== */
.len-section { margin-bottom: 22px; }
.len-head { font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.len-head small { font-weight: 400; color: var(--muted); font-size: .9rem; }
/* 髪の長さ＝1行1枚の大きな行カード。
   以前は3列の小さなタイルで、押し間違いが起きそう・目安が読みにくいという指摘があった。
   ラジオ＋特大の S/M/L ＋名称＋目安バッジを横一列に並べ、指でも迷わない大きさにする。 */
.len-list { display: grid; gap: 14px; }
.len-row {
  position: relative; width: 100%; min-width: 0; cursor: pointer; font-family: inherit; text-align: left;
  display: flex; align-items: center; gap: 18px; min-height: 104px; padding: 18px 20px;
  border: 2px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow); transition: border-color .15s, background .15s, box-shadow .15s;
}
.len-row:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.len-row.on { border-color: var(--primary); background: var(--primary-soft); }
.len-row .len-radio {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; position: relative;
  border: 2px solid var(--muted); background: var(--surface);
}
.len-row.on .len-radio { border-color: var(--primary-dark); }
.len-row.on .len-radio::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--primary-dark);
}
.len-row .len-key {
  flex: 0 0 58px; text-align: center; font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: var(--primary-dark);
}
.len-row .len-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.len-row .len-label { font-size: 1.3rem; font-weight: 800; }
.len-row .len-desc {
  font-size: .92rem; color: var(--muted); line-height: 1.3;
  background: var(--surface-2); border-radius: 999px; padding: 5px 13px;
}
.len-row.on .len-desc { color: var(--primary-dark); background: rgba(255, 255, 255, .62); }
.len-row .len-arrow { margin-left: auto; flex: 0 0 auto; font-size: 1.7rem; line-height: 1; color: var(--muted); }
.len-row.on .len-arrow { color: var(--primary-dark); }

/* いま何を選んでいるかを画面内にも出す（固定フッターが隠れる端末向けの保険） */
.len-current {
  display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2);
}
.len-cur-ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; color: var(--primary-dark);
}
.len-cur-ico svg { width: 24px; height: 24px; }
.len-cur-txt { display: flex; flex-direction: column; min-width: 0; }
.len-cur-txt small { color: var(--muted); font-size: .86rem; }
.len-cur-txt strong { font-size: 1.15rem; }

@media (max-width: 520px) {
  .len-row { min-height: 92px; padding: 16px 14px; gap: 12px; }
  .len-row .len-key { flex-basis: 46px; font-size: 2.15rem; }
  .len-row .len-label { font-size: 1.15rem; }
  .len-row .len-desc { font-size: .86rem; padding: 4px 11px; }
  .len-row .len-arrow { font-size: 1.4rem; }
}

/* ===== Step1：区分（大人／お子さま・学生）の選択 ===== */
.region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.region-tile {
  position: relative; min-width: 0; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 184px; padding: 26px 16px; text-align: center;
  border: 2px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text);
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
}
.region-tile:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.region-tile.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
/* 選択中の✓（未選択のときは出さない。長さのタイルと同じ見た目） */
.region-tile .len-check {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .85rem; color: #fff;
  background: var(--primary); opacity: 0; transition: opacity .15s;
}
.region-tile.on .len-check { opacity: 1; }
.region-tile .region-label { font-size: 1.3rem; font-weight: 800; }
.region-tile .region-desc { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.region-tile.on .region-desc { color: var(--primary-dark); }

/* ===== 追加オプション（複数選択チップ） ===== */
.opt-block .opt-label small { font-weight: 400; color: var(--muted); font-size: .9rem; }
.opt-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt-chip {
  min-width: 0; cursor: pointer; font-family: inherit; text-align: left;
  display: flex; align-items: center; gap: 10px; padding: 14px;
  border: 2px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text);
  transition: border-color .15s, background .15s;
}
.opt-chip:hover { border-color: var(--primary); }
.opt-chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.opt-chip .oc-check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
  border: 2px solid var(--border); color: var(--muted); background: var(--surface);
}
.opt-chip.on .oc-check { background: var(--primary); border-color: var(--primary); color: #fff; }
.opt-chip .oc-name { flex: 1 1 auto; font-weight: 700; font-size: 1.02rem; }
.opt-chip .oc-price { flex: 0 0 auto; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.opt-chip.on .oc-price { color: var(--primary-dark); }
@media (max-width: 520px) {
  .opt-chips { grid-template-columns: 1fr; }
  .len-tile { min-height: 104px; }
  .region-grid { grid-template-columns: 1fr; }
  .region-tile { min-height: 128px; padding: 20px 16px; }
}

/* ---------- 日時選択：曜日タブ / カレンダー ---------- */
.picker-hint {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: .98rem;
}
.picker-hint strong { color: var(--accent); }

/* スマホ：週間スケジュール */
.week-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 12px;
}
.week-nav .range { font-weight: 700; }
.week-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.week-grid {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(64px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  min-width: 540px;
}
.week-grid .wg-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 4px;
  text-align: center;
  font-size: .9rem;
}
.week-grid .wg-head {
  background: var(--surface-2);
  font-weight: 700;
  position: sticky; top: 0;
  line-height: 1.25;
}
.week-grid .wg-head.sun { color: var(--danger); }
.week-grid .wg-head.sat { color: #2f6fb0; }
.week-grid .wg-time {
  background: var(--surface-2);
  color: var(--muted);
  font-size: .82rem;
  display: grid; place-items: center;
}
.week-grid .wg-slot {
  min-height: 44px;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 1rem;
  font-weight: 700;
}
.week-grid .wg-slot.free { color: var(--primary); background: var(--primary-soft); }
.week-grid .wg-slot.free:hover { background: var(--primary); color: #fff; }
.week-grid .wg-slot.busy { color: var(--border); background: var(--surface); cursor: not-allowed; }
.week-grid .wg-slot.closed { background: repeating-linear-gradient(45deg, #f2efea, #f2efea 6px, #e9e4dc 6px, #e9e4dc 12px); cursor: not-allowed; }
.week-grid .wg-slot.selected { background: var(--accent); color: #fff; }
.week-grid .wg-slot.loading { color: var(--border); background: var(--surface); cursor: default; animation: slotPulse 1s ease-in-out infinite; }
@keyframes slotPulse { 0%,100% { opacity: .35; } 50% { opacity: .8; } }

/* PC/タブレット：月カレンダー */
.cal-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.cal-head { display:flex; align-items:center; justify-content: space-between; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-weight: 700; color: var(--muted); padding: 4px 0; font-size: .95rem; }
.cal-dow.sun { color: var(--danger); }
.cal-dow.sat { color: #2f6fb0; }
.cal-day {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 700;
  gap: 2px;
  transition: border-color .15s, background .15s;
}
.cal-day .dot { font-size: .7rem; font-weight: 700; }
.cal-day.free { border-color: var(--primary); }
.cal-day.free .dot { color: var(--primary); }
.cal-day.free:hover { background: var(--primary-soft); }
.cal-day.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-day.selected .dot { color: #fff; }
.cal-day.muted { color: var(--border); background: var(--surface-2); cursor: default; }
.cal-day.closed { color: var(--muted); background: var(--surface-2); cursor: not-allowed; }
.cal-day.closed .dot { color: var(--danger); }
.cal-day.loading { color: var(--muted); background: var(--surface-2); cursor: default; animation: slotPulse 1s ease-in-out infinite; }
.cal-day.loading .dot { color: var(--muted); }

.timeslots { }
.timeslots h3 { margin-bottom: 12px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot-btn {
  min-height: 52px;
  border: 2px solid var(--primary);
  background: var(--surface);
  color: var(--primary-dark);
  border-radius: 12px;
  font-size: 1.15rem; font-weight: 700;
  cursor: pointer;
}
.slot-btn:hover { background: var(--primary-soft); }
.slot-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot-btn:disabled { border-color: var(--border); color: var(--border); background: var(--surface-2); cursor: not-allowed; }
.slot-btn { flex-direction: column; gap: 0; line-height: 1.25; display: flex; align-items: center; justify-content: center; }
.slot-btn .t-range { font-size: 1.1rem; font-weight: 700; }
.slot-btn .t-dur { font-size: .78rem; font-weight: 400; opacity: .7; }

/* 選択中サマリ（終了時刻まで明示） */
.pick-summary {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary-soft);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--primary-dark);
}
.pick-summary .ps-check {
  width: 26px; height: 26px; flex: 0 0 auto;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-size: .9rem; font-weight: 700;
}
.pick-summary .ps-dur { color: var(--muted); font-size: .92rem; font-weight: 400; }
.slot-empty { color: var(--muted); padding: 20px 0; }

/* ---------- フォーム ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 1.05rem; }
.field label .req { color: var(--danger); font-size: .9rem; margin-left: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  font-size: 1.15rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field .hint { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.field .err { color: var(--danger); font-size: .95rem; margin-top: 6px; display: none; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .err { display: block; }

/* ---------- 予約内容サマリ ---------- */
.summary-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-row .k { color: var(--muted); }
.summary-row .v { font-weight: 700; text-align: right; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 8px; padding-top: 16px; border-top: 2px solid var(--border);
}
.summary-total .v { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }

/* ---------- 会員登録（お客様self登録） ---------- */
.field label .opt { color: var(--muted); font-size: .9rem; margin-left: 6px; }
.consent-box {
  margin-top: 18px; border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; background: var(--surface-2);
}
.consent-head { font-weight: 800; margin-bottom: 8px; }
.consent-body { font-size: .92rem; color: var(--text); line-height: 1.75; margin: 0 0 12px; }
.consent-check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; min-height: 44px; }
.consent-check input { width: 22px; height: 22px; flex: none; }
.consent-box .err { color: var(--danger); font-size: .95rem; margin-top: 6px; display: none; }
.consent-box.invalid { border-color: var(--danger); }
.consent-box.invalid .err { display: block; }

/* ---------- かんたん予約（会員：前回と同じ / 本人選択） ---------- */
.ez-greet { font-size: 1.15rem; margin-bottom: 4px; }
.ez-greet strong { color: var(--primary-dark); font-size: 1.35rem; }
.ez-note { font-size: 1.05rem; font-weight: 700; }
.ez-q { font-size: 1.1rem; font-weight: 700; margin: 16px 0 12px; }
/* 前回内容を大きく見せる（高齢者配慮） */
.ez-last {
  background: var(--primary-soft); border: 2px solid var(--primary);
  border-radius: var(--radius); padding: 16px 18px; margin: 14px 0 6px;
}
.ez-last-h { font-size: .9rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.ez-last-menu { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.ez-last-meta { font-size: 1.05rem; color: var(--muted); margin-top: 8px; }
.ez-who { margin-top: 10px; }

/* ---------- 次回予約割引 ---------- */
.next-banner {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--accent-soft); border: 2px solid var(--accent);
  border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 16px;
  transition: transform .1s, box-shadow .15s;
}
.next-banner:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.next-banner .nb-ico { font-size: 2rem; line-height: 1; }
.next-banner .nb-body { flex: 1; }
.next-banner .nb-ttl { font-weight: 800; color: var(--text); font-size: 1.05rem; }
.next-banner .nb-sub { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.next-banner .nb-sub strong { color: var(--primary-dark); }
.next-banner .nb-go { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.menu-disc-banner {
  grid-column: 1 / -1;                 /* メニューは2列グリッドなので割引バナーは全幅に */
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 10px 14px; margin-bottom: 2px;
  font-size: .95rem; color: var(--text);
}
.m-price-old { text-decoration: line-through; color: var(--muted); font-size: .85rem; font-weight: 600; }
.m-disc-tag { font-size: .8rem; font-weight: 700; color: var(--success); margin-top: 2px; }
.disc-pill { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--success);
  background: var(--primary-soft); border-radius: 999px; padding: 1px 8px; }

/* ---------- 完了画面 ---------- */
.done-wrap { text-align: center; padding: 30px 10px; }
.done-mark {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: grid; place-items: center; margin: 0 auto 20px;
  font-size: 3rem;
  animation: pop .35s ease;
}
@keyframes pop { from { transform: scale(.6); opacity:0;} to {transform: scale(1); opacity:1;} }

/* ---------- 予約確認カード ---------- */
.res-card { border-left: 6px solid var(--primary); }
.res-card.cancelled { border-left-color: var(--muted); opacity: .8; }
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 700;
}
.badge.confirmed { background: var(--primary-soft); color: var(--primary-dark); }
.badge.cancelled { background: var(--surface-2); color: var(--muted); }

/* 予約カードの操作ボタン（変更・キャンセル） */
.res-actions { display: flex; gap: 10px; margin-top: 14px; }
.res-actions .btn { flex: 1; min-height: 46px; }

/* ---------- 会員登録 完了（専用画面） ---------- */
.regdone-screen { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 62vh; padding: 24px 0; }
.regdone-screen .reg-done { max-width: 460px; width: 100%; padding: 32px 24px; }
.regdone-screen .reg-check { width: 104px; height: 104px; }

/* ---------- 会員登録 完了アニメーション ---------- */
.reg-done { text-align: center; position: relative; overflow: hidden; }

/* 両側クラッカー（下の両隅から紙吹雪が斜め上へ） */
.confetti-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.cone {
  position: absolute; bottom: 14px; width: 0; height: 0;
  border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-bottom: 24px solid var(--primary);
  animation: coneKick .4s ease both;
}
.cone.left { left: 16px; transform: rotate(-40deg); transform-origin: bottom center; }
.cone.right { right: 16px; transform: rotate(40deg); transform-origin: bottom center; }
@keyframes coneKick {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 1; }
}
.confetti {
  position: absolute; opacity: 0; will-change: transform, opacity;
  animation: confettiFly var(--dur, 1.2s) cubic-bezier(.15,.7,.5,1) forwards;
}
.confetti.left { left: 24px; bottom: 22px; }
.confetti.right { right: 24px; bottom: 22px; }
.confetti.rect { width: 9px; height: 13px; border-radius: 2px; }
.confetti.strip { width: 5px; height: 16px; border-radius: 3px; }
.confetti.dot { width: 9px; height: 9px; border-radius: 50%; }
@keyframes confettiFly {
  0%   { transform: translate(0, 0) rotate(0deg) scale(.4); opacity: 1; }
  22%  { transform: translate(calc(var(--dx) * .45), var(--peak)) rotate(calc(var(--rot) * .35)) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti, .cone { animation: none; opacity: 0; }
}
.reg-check { width: 92px; height: 92px; margin: 6px auto 16px; animation: rcPop .45s cubic-bezier(.2,.9,.3,1.3) both; }
.reg-check svg { width: 100%; height: 100%; overflow: visible; }
.rc-ring {
  fill: none; stroke: var(--primary); stroke-width: 3; opacity: .9;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  animation: rcDraw .55s .05s ease forwards;
}
.rc-tick {
  fill: none; stroke: var(--primary); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: rcDraw .35s .5s ease forwards;
}
/* 完了時の淡いリング（ポンと広がって消える） */
.reg-check::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 92px; height: 92px;
  margin-left: -46px; border-radius: 50%; border: 2px solid var(--primary);
  opacity: 0; animation: rcRipple .7s .55s ease-out forwards; pointer-events: none;
}
.reg-check { position: relative; }
.reg-done .ez-greet { animation: rcRise .4s .65s ease both; }
.reg-done p { animation: rcRise .4s .78s ease both; }
.reg-done .btn { animation: rcRise .4s .9s ease both; }
@keyframes rcPop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes rcDraw { to { stroke-dashoffset: 0; } }
@keyframes rcRipple { 0% { opacity: .5; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes rcRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reg-check, .rc-ring, .rc-tick, .reg-check::after,
  .reg-done .ez-greet, .reg-done p, .reg-done .btn { animation: none; }
  .rc-ring, .rc-tick { stroke-dashoffset: 0; }
}

/* ---------- 予約一覧・マイページ ---------- */
/* 予約中／過去 の切替タブ */
.seg-tabs { display: flex; gap: 8px; background: var(--surface-2); border-radius: 14px; padding: 5px; }
.seg-tab {
  flex: 1; min-height: 44px; border: none; background: transparent; cursor: pointer;
  border-radius: 10px; font-size: 1rem; font-weight: 700; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.seg-tab.on { background: var(--surface); color: var(--primary-dark); box-shadow: 0 1px 3px rgba(0,0,0,.10); }
.seg-n {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  padding: 0 6px; border-radius: 999px; font-size: .78rem; background: var(--primary-soft); color: var(--primary-dark);
}
.seg-tab:not(.on) .seg-n { background: var(--border); color: var(--muted); }
/* マイページ */
.mp-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }

/* ---------- 店舗情報 ---------- */
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .i-ico { font-size: 1.4rem; flex: 0 0 auto; width: 30px; text-align:center; }
.info-row .i-k { font-weight: 700; margin-bottom: 2px; }

/* ---------- 下部固定アクションバー ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.05);
  z-index: 25;
}
.action-bar .container-inner {
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: flex; gap: 12px; align-items: center;
}
/* 料金プレビューは幅を譲る（ボタンの文字が縦に折り返さないように） */
.action-bar .price-preview { font-weight: 700; flex: 1 1 auto; min-width: 0; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-bar .price-preview small { display:block; color: var(--muted); font-weight: 400; font-size: .8rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-bar .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 420px) {
  .action-bar { padding: 10px 12px; }
  .action-bar .container-inner { gap: 8px; }
  .action-bar .btn { padding: 0 14px; font-size: .98rem; }
  .action-bar .price-preview { font-size: .92rem; }
  .action-bar .price-preview small { font-size: .74rem; }
}

/* ---------- ご予約の進め方（前回と同じ／新しく予約する） ---------- */
.pick-btn {
  display: block; width: 100%; text-align: left; font-family: inherit; cursor: pointer;
  background: var(--primary); color: #fff; border: 2px solid var(--primary);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.pick-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.pick-btn .p-ttl { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.4; }
.pick-btn .p-sub { display: block; font-size: .95rem; margin-top: 4px; color: rgba(255,255,255,.85); }
.pick-btn.outline { background: var(--surface); color: var(--primary-dark); border-color: var(--primary); }
.pick-btn.outline:hover { background: var(--primary-soft); }
.pick-btn.outline .p-sub { color: var(--muted); }

/* ---------- お知らせ／確認ダイアログ（標準のalertはURLが出るため自前） ---------- */
.notice-bg { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px;
  background: rgba(30,20,12,.55); }
.notice-card { background: var(--surface); border-radius: 20px; padding: 24px 22px 20px; width: 100%;
  max-width: 380px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.notice-ico { font-size: 2rem; line-height: 1; }
.notice-title { margin: 10px 0 12px; font-size: 1.2rem; }
.notice-text p { margin: 0 0 6px; line-height: 1.75; }
.notice-text p.sp { height: 8px; margin: 0; }
.notice-btns { margin-top: 18px; }

/* ---------- 下部ナビゲーション ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -2px 14px rgba(0,0,0,.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav button {
  flex: 1; min-width: 0; border: none; background: none; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px 11px; color: var(--muted); font-size: .72rem; font-weight: 700;
  transition: color .12s;
}
.bottom-nav button .bn-ico { width: 24px; height: 24px; }
.bottom-nav button .bn-ico svg { width: 100%; height: 100%; display: block; }
.bottom-nav button.on { color: var(--primary); }
/* コンテンツが下部ナビに隠れないよう余白 */
body.has-bottom-nav .container { padding-bottom: 84px; }
/* 濃色ホーム上ではナビも濃色に（クラシックブラウン＋金） */
body.view-home .bottom-nav { background: #241811; border-top-color: rgba(255,255,255,.10); box-shadow: 0 -2px 14px rgba(0,0,0,.35); }
body.view-home .bottom-nav button { color: rgba(255,255,255,.55); }
body.view-home .bottom-nav button.on { color: var(--accent); }

/* ---------- デモ用バナー ---------- */
.demo-banner {
  background: var(--warning); color: #fff;
  text-align: center; font-size: .85rem; font-weight: 700;
  padding: 5px; letter-spacing: .02em;
}

/* ---------- レスポンシブ ---------- */
.only-mobile { display: none; }
.only-desktop { display: block; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .home-grid { grid-auto-flow: row; grid-template-columns: 1fr; }  /* スマホは縦積み */
  .cal-layout { grid-template-columns: 1fr; }
  .only-mobile { display: block; }
  .only-desktop { display: none; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  /* タブレット幅（521〜720px）は2列のまま少しコンパクトに */
  .menu-item { min-height: 176px; padding: 20px 14px; }
}

/* スマホ幅はホームと同じく1列の大きなタイル（横スクロール回避・押し間違い防止） */
@media (max-width: 520px) {
  .menu-list { grid-template-columns: 1fr; }
  .menu-item { min-height: 150px; padding: 22px 18px; }
  .menu-item .m-name { font-size: 1.25rem; }
  .menu-item .m-price { font-size: 1.35rem; }
}

@media (min-width: 721px) {
  /* PC/タブレットでは月カレンダーを使う */
}

/* ---------- 配色スイッチャー（デモ用・右端タブ／実運用では非表示） ---------- */
#theme-switcher {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 70; display: flex; align-items: center;
}
#theme-switcher .ts-tab {
  border: 1px solid var(--border); border-right: none;
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg); cursor: pointer;
  width: 46px; height: 54px; border-radius: 16px 0 0 16px;
  font-size: 1.4rem; line-height: 1;
}
#theme-switcher .ts-tab:hover { background: var(--surface-2); }
#theme-switcher .ts-panel {
  position: absolute; right: 54px; top: 50%;
  transform: translateY(-50%) translateX(12px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 14px; width: 216px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
#theme-switcher.open .ts-panel {
  opacity: 1; pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
#theme-switcher .ts-title { font-weight: 800; font-size: .98rem; margin-bottom: 12px; }
#theme-switcher .ts-title small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; margin-top: 2px; }
#theme-switcher .ts-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 2px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 700; text-align: left;
}
#theme-switcher .ts-opt:last-child { margin-bottom: 0; }
#theme-switcher .ts-opt:hover { border-color: var(--primary); }
#theme-switcher .ts-opt.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
#theme-switcher .ts-dot {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 1px 3px rgba(0,0,0,.2);
}
#theme-switcher .ts-check { margin-left: auto; color: var(--primary-dark); opacity: 0; font-weight: 800; }
#theme-switcher .ts-opt.on .ts-check { opacity: 1; }

@media (max-width: 720px) {
  #theme-switcher .ts-tab { width: 42px; height: 48px; font-size: 1.25rem; }
  #theme-switcher .ts-panel { width: 190px; }
}

/* =====================================================================
   ホーム画面：クラシックブラウン（濃色・上質）
   操作画面（予約・確認など）は明るいアンティークブラウン、
   ホームだけ濃色にして「お店の顔」を作る。
   customer.html の go() が body に .view-home を付け外しして切り替える。
   ===================================================================== */
body.view-home {
  /* 上下の色ムラを抑えたほぼ均一なブラウン（わずかな奥行きだけ残す） */
  background:
    radial-gradient(150% 120% at 50% 30%, #2a1c11 0%, #241710 60%, #20140c 100%);
}
/* ホームではアプリのヘッダーは隠し、パネル自体を店の顔にする */
body.view-home .app-header { display: none; }
body.view-home .container { padding-top: 26px; }

/* 金の装飾フレームで囲った濃色パネル */
/* ロイヤルフレーム：装飾フレーム画像を border-image で適用（写真そのまま・伸縮可）。
   画像は 1254px 四方・角の唐草は端から約210px内に収まる・背景は透明化済み。 */
.home-panel {
  position: relative;
  padding: 22px 28px 14px;
  /* パネルもほぼ均一に（上下差を最小化） */
  background: rgba(44,30,19,.42);
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  border: 60px solid transparent;
  border-image: url("frame.png") 210 / 60px / 0 stretch;
  overflow: hidden;
}

/* ブランド（ロゴ＋店名＋英字タグ） */
.hp-brand { text-align: center; position: relative; }
.hp-logo {
  width: 96px; height: 96px; margin: 0 auto 12px;
  background: url(logo-mark-gold.png) center / contain no-repeat;
}
.hp-name {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 700; letter-spacing: .05em;
  color: #ecd9ad;
}
.hp-tag {
  font-size: .72rem; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(201,167,92,.85); margin-top: 5px;
}
/* 金のヘアライン区切り */
.hp-brand::after {
  content: ""; display: block; width: 130px; height: 1px; margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, rgba(201,167,92,.75), transparent);
}

/* 見出し（明朝で上質感） */
.hp-head { text-align: center; margin: 22px 0 20px; }
.hp-head h1 {
  font-family: var(--serif);
  font-size: 2rem; font-weight: 700; letter-spacing: .08em;
  color: #f4e9d2; margin: 0 0 12px;
}
.hp-head p { color: rgba(240,230,210,.82); font-size: .98rem; margin: 0; line-height: 1.85; }

/* ログイン後ホーム：あいさつ・次回のご予約 */
.hp-greet { text-align: center; font-family: var(--serif); color: #f4e9d2; font-size: 1.3rem; line-height: 1.4; margin: 18px 0 16px; }
.hp-greet strong { display: inline-block; margin-top: 4px; font-size: 1.85rem; color: #ecd9ad; }
.home-next { margin: 0 0 20px; }
.home-next .hn-loading { text-align: center; color: rgba(220,206,180,.6); font-size: .92rem; padding: 8px 0; }
.home-next-card { background: rgba(201,167,92,.10); border: 1px solid rgba(201,167,92,.35); border-radius: 16px; padding: 16px 18px; text-align: center; color: #efe6d4; }
.home-next-card .hn-label { font-size: .76rem; letter-spacing: .12em; color: rgba(201,167,92,.9); font-weight: 700; }
.home-next-card .hn-main { font-size: 1.3rem; font-weight: 800; color: #f4e9d2; margin-top: 6px; }
.home-next-card .hn-menu { color: rgba(220,206,180,.85); margin-top: 2px; }
.home-next-card.empty .hn-none { color: rgba(220,206,180,.7); margin-top: 8px; }

/* ホームのタイル（濃色・金アクセント） */
body.view-home .home-grid { gap: 14px; }
body.view-home .home-tile {
  background: rgba(255,250,240,.045);
  border: 1px solid rgba(201,167,92,.30);
  box-shadow: none;
  color: #efe6d4;
  padding: 22px 14px;
}
body.view-home .home-tile:hover {
  border-color: #c9a75c;
  background: rgba(201,167,92,.10);
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
  transform: translateY(-2px);
}
body.view-home .home-tile .ico {
  color: #c9a75c; margin: 0 auto 12px;
  width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 0;
}
body.view-home .home-tile .ico svg { width: 42px; height: 42px; }
body.view-home .home-tile .ttl { color: #f4e9d2; font-size: 1.18rem; }
body.view-home .home-tile .sub { color: rgba(220,206,180,.72); }

/* かんたん予約＝目立つ金のCTA（横幅いっぱい） */
body.view-home .home-tile.primary {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #cba960, #b0883f);
  border-color: #d8bd80;
  color: #241610;
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 20px 24px;
}
body.view-home .home-tile.primary .ico { margin: 0; color: #241610; }
body.view-home .home-tile.primary .ttl { color: #241610; }
body.view-home .home-tile.primary .sub { color: rgba(36,22,16,.72); }
body.view-home .home-tile.primary:hover { filter: brightness(1.03); transform: translateY(-2px); background: linear-gradient(120deg, #d3b168, #b88f44); }

/* 次回割引バナー（濃色版） */
body.view-home .next-banner {
  background: rgba(201,167,92,.10);
  border-color: rgba(201,167,92,.5);
}
body.view-home .next-banner .nb-ttl { color: #f4e9d2; }
body.view-home .next-banner .nb-sub { color: rgba(220,206,180,.82); }
body.view-home .next-banner .nb-sub strong { color: #ecd9ad; }
body.view-home .next-banner .nb-go { color: #ecd9ad; }

/* フッター著作権（パネル内） */
.hp-foot {
  text-align: center; margin-top: 20px; padding-top: 6px;
  font-size: .72rem; letter-spacing: .06em; color: rgba(201,167,92,.6);
}

@media (max-width: 720px) {
  .home-panel { padding: 16px 14px 8px; border-width: 44px; border-image: url("frame.png") 210 / 44px / 0 stretch; }
  .hp-head h1 { font-size: 1.55rem; }
  body.view-home .home-tile.primary { flex-direction: column; text-align: center; }
  body.view-home .home-tile.primary .ico { margin: 0 auto 8px; }
}
@media (max-width: 520px) {
  .home-panel { border-width: 32px; border-image: url("frame.png") 210 / 32px / 0 stretch; }
  .hp-head h1 { font-size: 1.4rem; letter-spacing: .02em; }
  .hp-head p { font-size: .9rem; }
  /* 次回割引バナーはタップ全体で予約に進むため、狭い画面では右端の矢印を省く */
  .next-banner .nb-go { display: none; }
  .next-banner .nb-sub { font-size: .88rem; }
}
