:root {
  color-scheme: light;
  --ink: #24211d;
  --muted: #746e66;
  --paper: #faf8f3;
  --card: #ffffff;
  --line: #ded8ce;
  --brand: #345448;
  --brand-soft: #e5eee8;
  --accent: #b66a3c;
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.shell { width: min(100% - 32px, 720px); margin: 0 auto; padding: 28px 0 64px; }
.brand { margin: 0 0 38px; font-size: 13px; letter-spacing: .16em; font-weight: 800; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 8px 0 12px; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(30px, 8vw, 48px); line-height: 1.15; }
.lead { margin: 0 0 28px; color: var(--muted); line-height: 1.8; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; }
.steps li { border-top: 3px solid var(--line); padding-top: 8px; color: var(--muted); font-size: 11px; }
.steps .active { border-color: var(--brand); color: var(--brand); font-weight: 800; }

.card { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 20px; box-shadow: 0 12px 36px rgba(55, 46, 37, .06); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, .label { font-size: 14px; font-weight: 800; }
.required { color: #a43d32; font-size: 11px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); padding: 13px 14px; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
textarea { min-height: 130px; resize: vertical; }

.calendar-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-bottom: 16px; }
.calendar-title { margin: 0; text-align: center; font-size: 19px; }
.calendar-nav { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--brand); font-size: 27px; line-height: 1; }
.calendar-nav:disabled { opacity: .3; cursor: not-allowed; }
.calendar-weekdays, .calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.calendar-weekdays { margin-bottom: 6px; color: var(--muted); font-size: 11px; text-align: center; }
.calendar { min-height: 250px; }
.calendar-day { aspect-ratio: 1; min-width: 0; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.calendar-day:disabled { border-color: transparent; background: #f3f1ed; color: #b0aaa1; cursor: not-allowed; }
.calendar-day.selected { background: var(--brand); color: #fff; }
.calendar-loading { grid-column: 1 / -1; align-self: center; text-align: center; }
.calendar-help { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.available-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--brand); }
.time-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.consultation-duration { margin: 6px 0 0; font-size: 13px; }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.slot { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 8px; font-weight: 700; }
.slot:hover, .slot:focus { border-color: var(--brand); }
.slot:disabled { background: #f1efeb; color: #aaa39a; cursor: not-allowed; text-decoration: line-through; }
.slot.selected { background: var(--brand); color: #fff; border-color: var(--brand); }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 0; border-radius: 999px; background: var(--brand); color: white; padding: 12px 22px; font-weight: 800; text-decoration: none; }
.button.secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.button.danger { background: #8e3e38; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; flex-wrap: wrap; }

.summary { background: var(--brand-soft); border-radius: 14px; padding: 16px; margin-bottom: 22px; }
.summary strong { display: block; font-size: 18px; margin-top: 5px; }
.manage-note { margin: 14px 0 0; line-height: 1.7; }
.manage-details { display: grid; gap: 0; margin: 0; }
.manage-details div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.manage-details div:first-child { padding-top: 0; }
.manage-details dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.manage-details dd { margin: 5px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.confirm-box { margin-top: 20px; padding: 18px; border-radius: 14px; background: #f8ece9; }
.confirm-box p { margin: 0; }
.success-message { background: var(--brand-soft); color: var(--brand); }
.message { margin: 16px 0 0; border-radius: 12px; padding: 12px 14px; background: #f4e5e2; color: #7d2e27; }
.message:empty { display: none; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 30px; margin-bottom: 20px; }
.muted { color: var(--muted); }

.admin-shell { width: min(100% - 32px, 1080px); }
.admin-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }
.admin-head h1 { font-size: clamp(28px, 5vw, 42px); margin: 0; }
.reservation-list { display: grid; gap: 14px; }
.reservation { border: 1px solid var(--line); border-radius: 16px; background: white; padding: 18px; }
.reservation-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.reservation h2 { margin: 0 0 5px; font-size: 19px; }
.reservation dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 18px 0 0; font-size: 14px; }
.reservation dt { color: var(--muted); }
.reservation dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.status { width: auto; min-width: 125px; padding: 9px 10px; }
.hidden { display: none !important; }

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 720px); padding-top: 20px; }
  .brand { margin-bottom: 28px; }
  .card { padding: 17px; border-radius: 15px; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .reservation-top { display: grid; }
  .reservation dl { grid-template-columns: 1fr; gap: 3px; }
  .reservation dd { margin-bottom: 9px; }
}
