:root {
  --ink: #22303c;
  --muted: #6b7a89;
  --line: #dde4ea;
  --brand: #2f6f6a;
  --brand-dark: #245955;
  --accent: #f4f8f8;
  --danger: #b23a48;
  --ok: #2e7d4f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #fbfcfc;
  line-height: 1.6;
}
header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}
header.site .inner { max-width: 880px; margin: 0 auto; }
header.site h1 { margin: 0; font-size: 24px; letter-spacing: .12em; }
header.site p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
main { max-width: 880px; margin: 0 auto; padding: 20px 16px 60px; }
section.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}
section.step h2 { margin: 0 0 12px; font-size: 17px; }
section.step h2 .no {
  display: inline-block; background: var(--brand); color: #fff; border-radius: 50%;
  width: 24px; height: 24px; line-height: 24px; text-align: center; font-size: 13px; margin-right: 8px;
}
.hidden { display: none !important; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  cursor: pointer; background: #fff;
}
.menu-item.selected { border-color: var(--brand); background: var(--accent); }
.menu-item input { width: 18px; height: 18px; }
.menu-item .dur { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 12px; cursor: pointer; }
table.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.cal th { font-size: 12px; color: var(--muted); padding: 4px 0; }
table.cal td { text-align: center; padding: 2px; }
table.cal button.day {
  width: 100%; min-height: 52px; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  cursor: pointer; font-size: 14px; line-height: 1.3;
}
table.cal button.day .mark { display: block; font-size: 15px; }
table.cal button.day.full .mark { color: var(--brand); }
table.cal button.day.partial .mark { color: #d29a26; }
table.cal button.day.none { color: #c3ccd2; background: #f6f8f9; cursor: not-allowed; }
table.cal button.day.selected { border-color: var(--brand); background: var(--accent); box-shadow: 0 0 0 1px var(--brand); }
table.cal td.empty { background: transparent; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 14px;
  cursor: pointer; font-size: 14px;
}
.slots button.selected { border-color: var(--brand); background: var(--brand); color: #fff; }
.slots button:disabled { color: #c3ccd2; background: #f6f8f9; cursor: not-allowed; }
label.f { display: block; margin-bottom: 12px; font-size: 14px; }
label.f span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date],
input[type=number], select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; background: #fff; color: var(--ink);
}
textarea { min-height: 70px; }
button.primary {
  background: var(--brand); color: #fff; border: none; border-radius: 10px;
  padding: 12px 22px; font-size: 15px; cursor: pointer;
}
button.primary:hover { background: var(--brand-dark); }
button.ghost {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 18px; font-size: 14px; cursor: pointer;
}
button.danger { background: var(--danger); color: #fff; border: none; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.error { color: var(--danger); font-size: 14px; margin-top: 8px; white-space: pre-wrap; }
.booking-number { font-size: 30px; letter-spacing: .15em; text-align: center; margin: 10px 0; color: var(--brand-dark); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
table.list th { color: var(--muted); font-size: 12px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--accent); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; border: 1px solid var(--line); }
.badge.confirmed { color: var(--brand-dark); border-color: var(--brand); }
.badge.visited { color: var(--ok); border-color: var(--ok); }
.badge.cancelled { color: var(--danger); border-color: var(--danger); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 7px 16px; cursor: pointer; font-size: 14px;
}
.tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; }
.toolbar .grow { flex: 1; min-width: 140px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.modal-bg {
  position: fixed; inset: 0; background: rgba(20,30,40,.45);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; z-index: 50;
}
.modal { background: #fff; border-radius: 12px; padding: 20px; width: 100%; max-width: 640px; }
.modal h3 { margin-top: 0; }
.kv { font-size: 14px; }
.kv dt { color: var(--muted); font-size: 12px; margin-top: 10px; }
.kv dd { margin: 2px 0 0; }
.note { color: var(--muted); font-size: 13px; }
.counts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.counts .card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; background: #fff; }
.counts .card b { font-size: 20px; display: block; }
