/* 予約ページ — スマホファースト */
:root {
  --primary: #2f5d50;
  --primary-dark: #234439;
  --bg: #f7f6f3;
  --card: #ffffff;
  --text: #222;
  --muted: #777;
  --border: #ddd;
  --warn-bg: #fff4e5;
  --warn-border: #f0b264;
  --error-bg: #fdecea;
  --error-border: #e08a80;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  background: var(--primary);
  color: #fff;
  padding: 20px 16px 14px;
  text-align: center;
}
.site-header h1 { margin: 0; font-size: 1.15rem; }
.site-sub { margin: 2px 0 0; font-size: 0.8rem; opacity: 0.85; }

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

h2 { font-size: 1.05rem; margin: 20px 0 12px; }
h3 { font-size: 0.95rem; margin: 16px 0 8px; }

.banner {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin: 12px 0;
}
.banner-error { background: var(--error-bg); border: 1px solid var(--error-border); }
.banner-warn { background: var(--warn-bg); border: 1px solid var(--warn-border); }

/* ステップインジケーター */
.steps-nav {
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 16px 0 4px;
  list-style: none;
  font-size: 0.72rem;
  color: var(--muted);
}
.steps-nav li {
  flex: 1;
  text-align: center;
  padding: 6px 2px;
  border-bottom: 3px solid var(--border);
}
.steps-nav li.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

/* メニュー選択 */
.menu-list { display: grid; gap: 10px; }
.menu-card {
  display: block;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}
.menu-card:active { background: #eef4f2; }
.menu-card .duration { color: var(--muted); font-size: 0.85rem; margin-left: 8px; }

/* カレンダー */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cal-title { font-weight: 700; }
.btn-nav {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}
.btn-nav:disabled { opacity: 0.3; cursor: default; }

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}
.cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 4px 0;
}
.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  color: var(--text);
  padding: 0;
}
.cal-day.available {
  background: #eef4f2;
  cursor: pointer;
  font-weight: 700;
}
.cal-day.available:active { background: #dcebe6; }
.cal-day.selected { outline: 2px solid var(--primary); }
.cal-day.unavailable { color: #bbb; }
.cal-day .mark { font-size: 0.65rem; line-height: 1; color: var(--primary); }
.cal-day.unavailable .mark { color: #ccc; }
.cal-note { font-size: 0.78rem; color: var(--muted); }

/* 枠選択 */
.slot-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.slot-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 0;
  font-size: 1rem;
  cursor: pointer;
}
.slot-btn:active { background: #eef4f2; }
.slot-btn:disabled {
  background: #eee;
  color: #aaa;
  cursor: default;
  text-decoration: line-through;
}

/* フォーム */
.field { margin-bottom: 18px; }
.label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
input[type="text"], input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--card);
}
.hint { font-size: 0.78rem; color: var(--muted); margin: 6px 0 0; }
.format-list { display: grid; gap: 8px; }
.format-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
}
.format-option input { width: 20px; height: 20px; }

/* 確認 */
.confirm-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 16px;
  margin: 0 0 14px;
}
.confirm-detail dt {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 10px;
}
.confirm-detail dd { margin: 0 0 10px; font-weight: 700; }
.policy { font-size: 0.8rem; color: var(--muted); }

/* ボタン */
.btn-primary {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}
.btn-primary:active { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

.back-row { margin-top: 24px; }
.btn-back {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 0;
}

.loading { text-align: center; color: var(--muted); }

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