:root { --ink: #29411d; --line: #d8e4cb; --green: #5b9434; }
* { box-sizing: border-box; }
body { margin: 0; background: white; color: var(--ink); font: 13px/1.8 "Yu Gothic", Meiryo, sans-serif; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #608a36; outline-offset: 2px; }
button:disabled { opacity: .4; cursor: default; }
.calendar-public { padding: 16px; max-width: 850px; margin: auto; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.calendar-toolbar h1, .calendar-toolbar h2 { font-size: 22px; font-weight: 600; margin: 0; }
.calendar-toolbar button { border: 1px solid var(--line); width: 44px; height: 44px; background: #f3f8ec; color: #416d27; font-size: 25px; padding: 0; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.legend-item { padding: 3px 9px; font-size: 10px; border: 1px solid #00000012; }
.calendar-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar-table th { padding: 9px 0; font-size: 12px; font-weight: 400; }
.calendar-table th:first-child { color: #a54130; }
.calendar-table th:last-child { color: #3c6b9c; }
.calendar-table td { padding: 3px; border: 1px solid var(--line); vertical-align: top; }
.calendar-day { width: 100%; min-height: 76px; border: 1px solid transparent; padding: 7px 2px; display: flex; flex-direction: column; align-items: center; position: relative; gap: 3px; color: var(--ink); }
.calendar-day strong { font: 20px/1.5 Arial, sans-serif; }
.calendar-day > span { font-size: 11px; white-space: nowrap; }
.calendar-day[aria-current=date] strong { text-decoration: underline; text-underline-offset: 4px; }
.calendar-day[aria-pressed=true] { outline: 2px solid #3b6e25; outline-offset: -2px; }
.custom-mark { position: absolute; right: 5px; top: 3px; font-size: 6px; font-style: normal; }
.status-open { background: #eef6e4; color: #335c21; }
.status-closed { background: #f9e8e3; color: #963c2c; }
.status-reservation { background: #e7eff8; color: #2f5f8b; }
.status-full { background: #f4e5ed; color: #833a5b; }
.status-notice { background: #fcf3d7; color: #7e631a; }
.calendar-notice { font-size: 12px; margin: 18px 0; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.calendar-selected { background: #f5f8f0; border-left: 3px solid #76b248; padding: 16px 18px; margin-top: 18px; }
.calendar-selected h2 { margin: 0 0 8px; font-size: 15px; }
.calendar-selected p { font-size: 12px; margin: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.calendar-message, .calendar-updated { font-size: 10px; color: #64765a; margin: 15px 0 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 420px) {
  .calendar-public { padding: 10px; }
  .calendar-toolbar { gap: 15px; margin-bottom: 15px; }
  .calendar-toolbar h1, .calendar-toolbar h2 { font-size: 19px; }
  .calendar-legend { gap: 5px; margin-bottom: 15px; }
  .legend-item { padding: 3px 6px; font-size: 8px; }
  .calendar-table td { padding: 1px; }
  .calendar-day { min-height: 62px; padding: 7px 0; }
  .calendar-day strong { font-size: 17px; }
  .calendar-day > span { font-size: 8px; }
  .calendar-notice { font-size: 10px; }
  .calendar-selected { padding: 13px; }
  .calendar-selected h2 { font-size: 13px; }
  .calendar-selected p { font-size: 11px; }
}
