/* ============================================================
   CSS Variables — ブランドカラー
   ============================================================ */
:root {
  /* メインカラー（ウォームダークブラウン） */
  --primary:       #4A3728;
  --primary-light: #7B5C49;
  --primary-dark:  #2E1F14;
  --primary-bg:    #F3EBE3;  /* ホバー・選択背景 */

  /* アクセント（ゴールド） */
  --accent:        #C09060;
  --accent-light:  #EDD9C0;

  /* ステータス */
  --success:       #4A7C5B;
  --success-light: #E3F0E8;
  --warning:       #B07030;
  --warning-light: #FDF0E0;
  --danger:        #A03030;
  --danger-light:  #FDE8E8;

  /* テキスト */
  --text:          #2C2018;
  --text-muted:    #7A6558;
  --text-light:    #A89580;

  /* 背景・サーフェス */
  --bg:            #F5F1EC;  /* ウォームクリーム */
  --surface:       #FDFAF7;
  --border:        #E2D9CF;
  --border-light:  #EDE6DD;

  --radius:     12px;
  --radius-sm:  8px;

  --shadow:       0 2px 12px rgba(74, 55, 40, 0.08);
  --shadow-hover: 0 6px 24px rgba(74, 55, 40, 0.16);

  --ease: 0.2s ease;

  --font-serif: 'Noto Serif JP', 'YuMincho', 'Yu Mincho', serif;
  --font-sans:  'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text:          #F0EBE5;
    --text-muted:    #A89580;
    --text-light:    #7A6558;
    --bg:            #1A1410;
    --surface:       #241E18;
    --border:        #3A3028;
    --border-light:  #2E2620;
    --primary-bg:    #2A1F17;
  }
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: var(--primary-dark);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  flex-shrink: 0;
}

.logo-cn {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  opacity: 0.9;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.62rem;
  opacity: 0.65;
  letter-spacing: 0.05em;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: stretch;
}


.nav-link {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 3px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
}

.nav-link:hover { color: rgba(255,255,255,0.9); }
.nav-link.active { color: #fff; border-bottom-color: var(--accent); }

@media (max-width: 400px) {
  .logo-sub { display: none; }
  .nav-link { padding: 0 10px; font-size: 0.65rem; }
}

/* ============================================================
   Booking Wrapper
   ============================================================ */
.booking-wrapper { padding: 28px 0 80px; }

/* ============================================================
   Progress Bar
   ============================================================ */
.progress-bar {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 32px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 56px;
}

.step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background var(--ease), color var(--ease);
  border: 2px solid transparent;
}

.progress-step.active .step-bubble { background: var(--primary); color: #fff; }
.progress-step.done .step-bubble   { background: var(--success); color: #fff; }

.step-label {
  font-size: 0.6rem;
  color: var(--text-light);
  white-space: nowrap;
}

.progress-step.active .step-label,
.progress-step.done .step-label { color: var(--text-muted); }

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-top: 15px;
  transition: background var(--ease);
  min-width: 12px;
}

.progress-line.done { background: var(--success); }

/* ============================================================
   Step Panels
   ============================================================ */
.step-panel { display: none; animation: fadeUp 0.25s ease; }
.step-panel.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

/* ============================================================
   Section Blocks
   ============================================================ */
.section-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.label-icon { font-size: 1rem; }

/* ============================================================
   Calendar
   ============================================================ */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.05em;
}

.btn-nav {
  width: 34px;
  height: 34px;
  border: none;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  line-height: 1;
}

.btn-nav:hover:not(:disabled) { background: var(--primary); color: #fff; }
.btn-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.calendar-max-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #A6242B;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.calendar-header span {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 4px 0;
  font-weight: 700;
}

.calendar-header span.sun { color: #c04040; }
.calendar-header span.sat { color: #4060a0; }

.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--ease);
  border: 2px solid transparent;
  user-select: none;
}

.cal-day:hover:not(.disabled):not(.empty) {
  background: var(--primary-bg);
  color: var(--primary);
}

.cal-day.today    { font-weight: 700; border-color: var(--primary); color: var(--primary); }
.cal-day.selected { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.cal-day.disabled { opacity: 0.3; cursor: not-allowed; }
.cal-day.closed   { color: #c04040; opacity: 0.3; cursor: not-allowed; }
.cal-day.empty    { cursor: default; }
.cal-day.sun      { color: #c04040; }
.cal-day.sat      { color: #4060a0; }
.cal-day.selected.sun,
.cal-day.selected.sat { color: #fff; }

.calendar-legend {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-closed   { background: #c04040; opacity: 0.45; }
.dot-selected { background: var(--primary); }

/* ============================================================
   Time Slots
   ============================================================ */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.slot-card {
  padding: 12px 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all var(--ease);
  background: var(--bg);
}

.slot-card:hover:not(.disabled) { border-color: var(--primary-light); background: var(--primary-bg); }
.slot-card.selected { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }
.slot-card.disabled { opacity: 0.35; cursor: not-allowed; }

.slot-time   { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.slot-status { display: block; font-size: 0.68rem; color: var(--text-muted); }
.slot-card.selected .slot-status { color: var(--primary-light); }

/* ============================================================
   Guest Counter
   ============================================================ */
.guest-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.btn-counter {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  font-family: var(--font-sans);
  line-height: 1;
}

.btn-counter:hover:not(:disabled) { background: var(--primary); color: #fff; }
.btn-counter:disabled { opacity: 0.3; cursor: not-allowed; }

.guest-number {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-serif);
  min-width: 3rem;
  text-align: center;
  display: inline-block;
  line-height: 1;
}

.guest-unit {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: -10px;
  align-self: flex-end;
  padding-bottom: 5px;
}

.hint-text { text-align: center; font-size: 0.72rem; color: var(--text-light); }

/* 大人／小学生以下 内訳カウンター（パターンA） */
.counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-light);
}
.counter-row:last-of-type { border-bottom: none; }
.counter-row .cr-info  { text-align: left; }
/* 背景は白固定のため、ダークモードで反転しない固定色を使う */
.counter-row .cr-name  { font-size: 0.98rem; color: #2C2018; font-weight: 600; }
.counter-row .cr-price { font-size: 0.76rem; color: #8A7866; margin-top: 2px; }
.counter-row .cr-counter { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.counter-row .btn-counter   { width: 38px; height: 38px; font-size: 1.2rem; }
.counter-row .guest-number  { font-size: 1.8rem; min-width: 1.6rem; }

.price-summary {
  margin-top: 6px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.price-summary .ps-label { font-size: 0.85rem; color: var(--text-muted); }
.price-summary .ps-total { font-family: var(--font-serif); font-size: 1.3rem; color: var(--primary); font-weight: 700; }

/* ============================================================
   Buttons
   ============================================================ */
.step-nav { margin-top: 24px; display: flex; justify-content: flex-end; }
.step-nav.two-col { gap: 12px; }
.step-nav.two-col .btn-primary,
.step-nav.two-col .btn-submit { flex: 1; }
.step-nav:not(.two-col) .btn-primary { width: 100%; }

.btn-primary {
  padding: 14px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--ease);
  letter-spacing: 0.04em;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  padding: 14px 16px;
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--ease);
  width: 110px;
  flex-shrink: 0;
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-submit {
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--ease);
  letter-spacing: 0.04em;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74, 55, 40, 0.3);
}

.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============================================================
   Menu Selectors (予約 Step 2)
   ============================================================ */
.menu-selectors { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }

.menu-person-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.menu-person-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.menu-options { display: flex; flex-direction: column; gap: 8px; }

.menu-option {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--ease);
  gap: 12px;
  background: var(--bg);
}

.menu-option:hover { border-color: var(--primary-light); background: var(--primary-bg); }
.menu-option.selected { border-color: var(--primary); background: var(--primary-bg); }
.menu-option input[type="radio"] { display: none; }

.menu-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}

.menu-option.selected .menu-radio-dot {
  border-color: var(--primary);
  background: var(--primary);
}

.menu-option.selected .menu-radio-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.menu-info { flex: 1; min-width: 0; }
.menu-name { font-size: 0.9rem; font-weight: 700; display: block; color: var(--text); }
.menu-desc { font-size: 0.72rem; color: var(--text-muted); display: block; margin-top: 2px; }
.menu-price { font-size: 0.95rem; font-weight: 700; color: var(--primary); white-space: nowrap; flex-shrink: 0; }

.total-bar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.total-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.05em; }
.total-amount { font-size: 1.5rem; font-weight: 700; color: var(--primary); font-family: var(--font-serif); }

/* ============================================================
   Form (Step 3)
   ============================================================ */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-label.required::after {
  content: '必須';
  font-size: 0.62rem;
  background: var(--danger);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 700;
  vertical-align: middle;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus { border-color: var(--primary); }
.form-input.error { border-color: var(--danger); }
.form-textarea { min-height: 80px; resize: vertical; }

.form-error {
  display: block;
  font-size: 0.72rem;
  color: var(--danger);
  margin-top: 4px;
  min-height: 1em;
}

/* ============================================================
   Confirmation Card
   ============================================================ */
.confirm-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.confirm-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  gap: 16px;
}

.confirm-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 80px;
}

.confirm-value { font-size: 0.9rem; color: var(--text); text-align: right; line-height: 1.6; }

.confirm-divider { height: 1px; background: var(--border); margin: 10px 0; }

.total-row .confirm-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-serif);
}

.notice-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
  margin-bottom: 16px;
}

.notice-text strong { color: var(--text); }

/* ============================================================
   Complete
   ============================================================ */
.complete-wrapper { text-align: center; padding: 40px 16px; }

.complete-icon {
  width: 72px;
  height: 72px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.complete-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--text); margin-bottom: 12px; }
.complete-desc  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.9; margin-bottom: 28px; }

.booking-number-box {
  background: var(--primary-bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.booking-number-label { font-size: 0.72rem; color: var(--primary); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.booking-number       { font-size: 1.1rem; font-weight: 700; color: var(--primary); font-family: 'Courier New', monospace; letter-spacing: 0.08em; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.5);
  padding: 24px 0;
}

.site-footer p { font-size: 0.72rem; text-align: center; line-height: 2.2; }
.site-footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ============================================================
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   テイクアウト注文ページ専用スタイル (order.html)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ============================================================ */

/* カテゴリタブ */
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--ease);
  font-family: var(--font-sans);
}

.cat-tab:hover  { border-color: var(--primary-light); color: var(--primary); }
.cat-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 商品グリッド */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 90px; /* sticky cart bar の分 */
}

@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 商品カード */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.product-card.out-of-stock { opacity: 0.5; }

/* 商品画像エリア（プレースホルダー） */
.product-img {
  height: 100px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
}

/* 実際の画像を設定する場合 */
/* .product-img img { width: 100%; height: 100%; object-fit: cover; } */

/* 商品情報 */
.product-body {
  padding: 10px 10px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.product-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.product-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-serif);
}

/* 在庫ステータスバッジ */
.stock-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

.stock-in-stock  { background: var(--success-light); color: var(--success); }
.stock-medium    { background: var(--warning-light); color: var(--warning); }
.stock-low       { background: var(--danger-light);  color: var(--danger); }
.stock-out       { background: var(--border-light);  color: var(--text-light); }

/* 数量コントロール */
.product-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}

.btn-qty {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  line-height: 1;
  font-family: var(--font-sans);
}

.btn-qty:hover:not(:disabled) { background: var(--primary); color: #fff; }
.btn-qty:disabled { opacity: 0.25; cursor: not-allowed; border-color: var(--border); color: var(--text-light); }

.qty-display {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  min-width: 24px;
  text-align: center;
}

.qty-display.has-items { color: var(--primary); }

/* ━━━ カートバー（画面下固定） ━━━ */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 300;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

.cart-bar.visible { transform: translateY(0); }

.cart-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.cart-count-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-total-label {
  font-size: 0.68rem;
  opacity: 0.7;
  white-space: nowrap;
}

.cart-total-price {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-serif);
  white-space: nowrap;
}

.btn-cart-next {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: all var(--ease);
  flex-shrink: 0;
}

.btn-cart-next:hover { background: #a07840; transform: translateY(-1px); }

/* ━━━ 注文確認テーブル ━━━ */
.order-items {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.order-item-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}

.order-item-row:last-child { border-bottom: none; }

.order-item-icon { font-size: 1.5rem; flex-shrink: 0; }

.order-item-info { flex: 1; min-width: 0; }
.order-item-name { font-size: 0.88rem; font-weight: 700; display: block; }
.order-item-unit { font-size: 0.72rem; color: var(--text-muted); }

.order-item-qty   { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.order-item-price { font-size: 0.9rem; font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ============================================================
   テイクアウト補助スタイル
   ============================================================ */

/* ローディング・エラープレースホルダー */
.loading-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px;
  font-size: 0.88rem;
}

/* 在庫更新通知バー */
.stock-notice {
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 12px;
  min-height: 1em;
}

/* ============================================================
   Responsive
   ============================================================ */
/* スマホ：ヘッダーを2段に（ロゴ上・ナビ下）。PCは現状のまま */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }
  .site-logo {
    padding: 10px 16px 2px;
    justify-content: center;
  }
  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 4px;
    padding-top: 4px;
    padding-bottom: 2px;
    border-top: 1px solid rgba(255,255,255,0.18);
  }
  .nav-link {
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .logo-cn { font-size: 1.5rem; }
  .progress-step { min-width: 44px; }
  .step-label { font-size: 0.55rem; }
  .step-bubble { width: 28px; height: 28px; font-size: 0.75rem; }
  .slot-grid { grid-template-columns: 1fr; }
  .booking-number-box { flex-direction: column; gap: 6px; }
  .confirm-label { min-width: 64px; }
  .btn-secondary { width: 88px; font-size: 0.82rem; }
  .product-img { height: 80px; font-size: 2.2rem; }
}

/* ============================================================
   ロゴ（全ページ共通）
   ============================================================ */
.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: invert(1);
}

.logo-renpo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.9);
  margin-left: -12px;
  position: relative;
  top: 8px;
}

/* ============================================================
   予約フォームページ — カラーテーマ
   ============================================================ */
body.reservation-page .site-header {
  background: #A6242B;
}

body.reservation-page {
  background: #2D4A3E;
}

body.reservation-page .booking-wrapper {
  background: #2D4A3E;
}

body.reservation-page .progress-step .step-bubble {
  background: #3A6B5A;
  border-color: #4A7A68;
  color: #C8D8EC;
}

body.reservation-page .progress-step.active .step-bubble,
body.reservation-page .progress-step.done .step-bubble {
  background: #A6242B;
  border-color: #A6242B;
  color: #fff;
}

body.reservation-page .progress-step .step-label { color: #8A9EBA; }
body.reservation-page .progress-step.active .step-label,
body.reservation-page .progress-step.done .step-label { color: #C8D8EC; }

body.reservation-page .progress-line { background: #4A7A68; }

body.reservation-page .step-title { color: #F2EBE3; }

body.reservation-page .section-block {
  background: #F2F2F4;
  border-color: #D0D0D4;
  color: #2C2018;
}

body.reservation-page .section-label { color: #4A4A55; }
body.reservation-page .hint-text { color: #7A6558; }

body.reservation-page .slot-card {
  background: #EBEBED;
  border-color: #D0D0D4;
  color: #2C2018;
}

body.reservation-page .slot-card.selected {
  background: rgba(166,36,43,0.1);
  border-color: #A6242B;
  color: #A6242B;
}

body.reservation-page .btn-nav {
  background: #3A6B5A;
  color: #C8D8EC;
  border: 1.5px solid #5A7AA8;
}
body.reservation-page .btn-nav:hover:not(:disabled) {
  background: #4A7A68;
  color: #fff;
}
body.reservation-page .btn-nav:disabled {
  background: #223D33;
  color: #4A6080;
  border-color: #3A5E50;
  opacity: 1;
}

body.reservation-page .form-input {
  background: #EBEBED;
  border-color: #D0D0D4;
  color: #2C2018;
}
body.reservation-page .form-input::placeholder { color: #A89580; }
body.reservation-page .form-label { color: #4A4A55; }

body.reservation-page .confirm-card {
  background: #F2F2F4;
  border-color: #D0D0D4;
  color: #2C2018;
}
body.reservation-page .confirm-section-title { color: #4A4A55; }
body.reservation-page .confirm-label { color: #7A6558; }
body.reservation-page .confirm-value { color: #2C2018; }
body.reservation-page .confirm-divider { background: #D0D0D4; }
body.reservation-page .notice-text { color: #8A9EBA; }

body.reservation-page .guest-number { color: #2C2018; }
body.reservation-page .guest-unit { color: #7A6558; }

body.reservation-page .complete-wrapper {
  background: #F2F2F4;
  color: #2C2018;
}
body.reservation-page .complete-title { color: #2C2018; }
body.reservation-page .complete-desc { color: #7A6558; }
body.reservation-page .booking-number-box { background: #EBEBED; border-color: #D0D0D4; }
body.reservation-page .booking-number-label { color: #7A6558; }
body.reservation-page .booking-number { color: #2C2018; }
body.reservation-page .complete-wrapper .notice-text { color: #7A6558; }
body.reservation-page .complete-wrapper .notice-text strong { color: #2C2018; }
