:root {
  color-scheme: light;
  --background: #f7f5f1;
  --surface: #ffffff;
  --surface-soft: #efede8;
  --text: #25231f;
  --muted: #716d65;
  --border: #d9d4cb;
  --accent: #25231f;
  --accent-text: #ffffff;
  --open-bg: #e8f3ed;
  --open-text: #235c3d;
  --closed-bg: #fff1d7;
  --closed-text: #76500b;
  --danger: #9e2f2f;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-size: 16px; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid rgba(35, 92, 61, 0.28); outline-offset: 2px; }
h1, h2, p { margin-top: 0; }

.public-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px max(18px, calc((100% - 960px) / 2)); border-bottom: 1px solid var(--border); background: var(--surface); }
.public-brand { display: flex; align-items: baseline; gap: 12px; }
.public-brand span:first-child { font-weight: 800; letter-spacing: 0.14em; }
.public-brand span:last-child { color: var(--muted); }
.quiet-button { min-height: 42px; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; background: var(--surface); color: var(--text); }

.availability-main { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 70px; }
.intro { max-width: 650px; margin-bottom: 24px; }
.intro h1 { margin-bottom: 10px; font-size: clamp(1.8rem, 4vw, 2.65rem); }
.intro > p:last-child { color: var(--muted); line-height: 1.75; }
.eyebrow { margin-bottom: 6px; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }

.reception-guide { margin-bottom: 30px; border-radius: 12px; padding: 15px 18px; background: var(--surface-soft); line-height: 1.55; font-weight: 700; white-space: pre-line; }
.reception-guide.open { background: var(--open-bg); color: var(--open-text); }
.reception-guide.closed { background: var(--closed-bg); color: var(--closed-text); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin-bottom: 12px; font-size: 1.15rem; }
.updated-at { color: var(--muted); font-size: 0.78rem; }

.public-date-strip { display: grid; grid-template-columns: repeat(15, minmax(78px, 1fr)); gap: 8px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: thin; }
.date-tab { min-height: 68px; display: grid; place-items: center; gap: 3px; border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: var(--surface); color: var(--text); white-space: nowrap; }
.date-tab span { color: var(--muted); font-size: 0.75rem; }
.date-tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.date-tab[aria-selected="true"] span { color: var(--accent-text); }
.date-tab.closed { background: #efeeeb; color: var(--muted); }

.availability-card, .request-helper { margin-top: 12px; border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: var(--surface); }
.selected-date-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.selected-date-heading h2 { margin-bottom: 5px; }
.public-holiday { flex: 0 0 auto; border-radius: 999px; padding: 5px 9px; background: #fff0c5; color: #765700; font-size: 0.78rem; font-weight: 700; }
.availability-message { color: var(--muted); line-height: 1.65; }
.available-times { display: grid; gap: 20px; margin-top: 18px; }
.availability-period { display: grid; gap: 9px; }
.availability-period + .availability-period { border-top: 1px solid var(--border); padding-top: 18px; }
.availability-period h3 { margin: 0; color: var(--muted); font-size: 0.92rem; }
.period-time-grid { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); gap: 10px; }
.time-button { min-height: 54px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 700; }
.time-button:hover { border-color: var(--accent); }
.time-button.selected { background: var(--accent); color: var(--accent-text); }

.request-helper { background: var(--surface-soft); }
.request-helper[hidden] { display: none; }
.request-helper h2 { margin-bottom: 12px; }
.request-text { border-left: 4px solid var(--accent); padding: 8px 12px; background: var(--surface); font-size: 1.08rem; font-weight: 700; }
.copy-button { min-height: 48px; border: 1px solid var(--accent); border-radius: 10px; padding: 10px 18px; background: var(--accent); color: var(--accent-text); font-weight: 700; }
.public-error { margin-top: 16px; border: 1px solid #d9a7a7; border-radius: 10px; padding: 12px; background: #fff4f4; color: var(--danger); }
.public-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); border-radius: 10px; padding: 12px 16px; background: var(--accent); color: var(--accent-text); }

@media (max-width: 700px) {
  .public-header { padding: 9px 14px; }
  .availability-main { width: min(100% - 24px, 960px); padding-top: 28px; }
  .public-date-strip { display: flex; }
  .date-tab { flex: 0 0 76px; }
  .availability-card, .request-helper { padding: 18px; }
  .period-time-grid { grid-template-columns: repeat(3, 1fr); }
}
