/* ===================================================
   el-body 予約サイト スタイル
   =================================================== */
:root {
  --primary: #c8a882;
  --primary-dark: #a88860;
  --primary-light: #f5ede3;
  --accent: #8b6b8b;
  --text: #333;
  --text-light: #666;
  --border: #e0d0c0;
  --bg: #faf7f4;
  --white: #fff;
  --error: #c0392b;
  --success: #27ae60;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
}

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ヘッダー */
header {
  background: var(--white);
  border-bottom: 2px solid var(--primary-light);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 12px;
}
.header-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
}
.header-sub {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* メインコンテンツ */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* カード */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

/* ステップナビ */
.steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 120px;
}
.step::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step:last-child::after { display: none; }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.step.active .step-num { background: var(--primary); color: var(--white); }
.step.done .step-num { background: var(--success); color: var(--white); }
.step-label {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 4px;
  text-align: center;
}
.step.active .step-label { color: var(--primary-dark); font-weight: 600; }

/* メニューカード */
.menu-list { display: flex; flex-direction: column; gap: 16px; }
.menu-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.menu-card:hover { border-color: var(--primary); background: var(--primary-light); }
.menu-card.selected { border-color: var(--primary); background: var(--primary-light); }
.menu-card.selected::after {
  content: '✓';
  position: absolute;
  top: 14px; right: 16px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
}
.menu-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}
.menu-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 10px;
  white-space: pre-line;
}
.menu-condition {
  display: inline-block;
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.menu-options { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--white);
  transition: all 0.15s;
  color: var(--text);
}
.option-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.option-btn.selected { border-color: var(--primary); background: var(--primary); color: var(--white); font-weight: 600; }
.option-price {
  font-size: 0.8rem;
  color: var(--accent);
  margin-left: 4px;
}

/* カレンダー */
.calendar-wrap { overflow-x: auto; }
.calendar {
  width: 100%;
  border-collapse: collapse;
  min-width: 300px;
}
.calendar th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  padding: 8px 4px;
  text-align: center;
  font-weight: 600;
}
.calendar th.sun { color: #c0392b; }
.calendar th.sat { color: #2980b9; }
.calendar td {
  text-align: center;
  padding: 6px 4px;
  vertical-align: middle;
}
.cal-day {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}
.cal-day.available { color: var(--text); }
.cal-day.available:hover { background: var(--primary-light); color: var(--primary-dark); }
.cal-day.selected { background: var(--primary); color: var(--white); font-weight: 700; }
.cal-day.unavailable { color: #ccc; cursor: default; pointer-events: none; }
.cal-day.today { border: 2px solid var(--primary); }
.cal-day.sun { color: #c0392b; }
.cal-day.sat { color: #2980b9; }
.cal-day.holiday { color: #c0392b; }
.calendar-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.calendar-nav button {
  background: none; border: 2px solid var(--border);
  border-radius: 8px; padding: 6px 14px;
  cursor: pointer; font-size: 0.9rem; color: var(--text-light);
  transition: all 0.15s;
}
.calendar-nav button:hover { border-color: var(--primary); color: var(--primary-dark); }
.calendar-title { font-weight: 700; font-size: 1rem; color: var(--text); }

/* 時間スロット */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.slot-btn {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  transition: all 0.15s;
  font-size: 0.9rem;
  color: var(--text);
}
.slot-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.slot-btn.selected { border-color: var(--primary); background: var(--primary); color: var(--white); font-weight: 700; }
.slot-btn.unavailable { background: #f0f0f0; color: #bbb; cursor: default; pointer-events: none; }
.slots-empty { text-align: center; color: var(--text-light); padding: 20px; }

/* フォーム */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label .required {
  color: var(--error);
  font-size: 0.75rem;
  margin-left: 4px;
}
.form-control {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
}
.form-control.error { border-color: var(--error); }
.form-error {
  color: var(--error);
  font-size: 0.78rem;
  margin-top: 4px;
}
textarea.form-control { resize: vertical; min-height: 80px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: var(--white); }
.btn-outline {
  background: var(--white);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-group .btn { flex: 1; min-width: 120px; }

/* 確認テーブル */
.confirm-table { width: 100%; border-collapse: collapse; }
.confirm-table th, .confirm-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.confirm-table th {
  width: 35%;
  color: var(--text-light);
  font-weight: 600;
  background: var(--primary-light);
}
.confirm-table td { color: var(--text); }

/* お知らせ・注意書き */
.notice {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  line-height: 1.8;
}
.notice strong { color: var(--primary-dark); }
.notice-info {
  background: #e8f4fd;
  border-left-color: #3498db;
}
.notice-warn {
  background: #fff8e1;
  border-left-color: #f39c12;
}

/* 完了ページ */
.complete-icon {
  text-align: center;
  font-size: 4rem;
  margin-bottom: 12px;
}
.complete-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.complete-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* フッター */
footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-light);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* ローディング */
.loading {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  color: var(--text-light);
  padding: 20px;
}
.spinner {
  width: 20px; height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* セクションタイトル */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

/* レスポンシブ */
@media (max-width: 480px) {
  main { padding: 16px 12px 60px; }
  .card { padding: 18px 16px; }
  .btn { padding: 11px 20px; font-size: 0.95rem; }
  .calendar-nav button { padding: 5px 10px; font-size: 0.8rem; }
}
