:root {
  color-scheme: light;
  --navy: #071b2e;
  --ink: #14283a;
  --muted: #607383;
  --line: #d7e0e6;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --cyan: #00a9c7;
  --cyan-dark: #08788c;
  --available-bg: #e4f4e9;
  --available-border: #8cc9a0;
  --available-text: #286b42;
  --inquire-bg: #fff4d5;
  --inquire-border: #e9c45e;
  --inquire-text: #785912;
  --full-bg: #e9edf0;
  --full-border: #bdc6cd;
  --full-text: #596875;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; }
body { margin: 0; min-width: 320px; background: linear-gradient(180deg, #fff 0, var(--bg) 280px); }
a { color: inherit; }
button { font: inherit; }
.site-header {
  height: 84px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { color: #073c65; font-size: 22px; letter-spacing: .02em; }
.brand-text small { margin-top: 7px; font-size: 9px; letter-spacing: .26em; color: #526573; }
.back-link { color: #315469; font-size: 14px; text-decoration: none; border-bottom: 1px solid #8ba3b1; padding-bottom: 3px; }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 62px 0 72px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 11px; color: var(--cyan-dark); letter-spacing: .22em; font: 700 12px/1.3 "Arial Narrow", Arial, sans-serif; }
h1 { margin: 0; color: var(--navy); font-size: clamp(34px, 4vw, 54px); line-height: 1.15; letter-spacing: .02em; }
.lead { margin: 17px 0 0; color: #526b7b; font-size: 16px; line-height: 1.8; }
.update-status { flex: none; padding: 12px 15px; border: 1px solid #bdd5dc; background: #f7fbfc; border-radius: 4px; }
.updated-at { margin: 0; color: #607383; font-size: 12px; }
.calendar-panel { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(13,38,57,.07); }
.calendar-toolbar { padding: 28px 30px 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-bottom: 1px solid var(--line); }
.range-label { color: var(--muted); margin: 0 0 6px; font-size: 12px; }
.calendar-toolbar h2 { color: var(--navy); margin: 0; font-size: 28px; }
.month-controls { display: flex; gap: 8px; }
.month-controls button { min-height: 42px; padding: 0 15px; border: 1px solid #aebcc6; border-radius: 4px; background: #fff; color: #243e50; cursor: pointer; }
.month-controls button:hover:not(:disabled), .month-controls button:focus-visible { border-color: var(--cyan-dark); color: var(--cyan-dark); outline: 2px solid rgba(0,169,199,.18); }
.month-controls button:disabled { opacity: .35; cursor: default; }
.legend { display: flex; gap: 28px; padding: 16px 30px; background: #f8fafb; border-bottom: 1px solid var(--line); }
.legend > span { display: grid; grid-template-columns: 13px auto; align-items: center; column-gap: 7px; }
.legend small { grid-column: 2; color: var(--muted); font-size: 10px; margin-top: 1px; }
.legend-dot { width: 11px; height: 11px; border-radius: 2px; border: 1px solid; grid-row: 1 / 3; }
.legend-dot.available { background: var(--available-bg); border-color: var(--available-border); }
.legend-dot.inquire { background: var(--inquire-bg); border-color: var(--inquire-border); }
.legend-dot.full { background: var(--full-bg); border-color: var(--full-border); }
.legend-dot.unavailable { background: #f8e7e6; border-color: #d9a09b; }
.legend-dot.outside { background: #f7f8f9; border-color: #dce2e6; }
.calendar-wrap { padding: 0 20px 24px; }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekday-row span { padding: 16px 8px 11px; color: #607483; text-align: center; font-size: 12px; font-weight: 700; }
.calendar-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.day { position: relative; min-height: 112px; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.day.empty { background: #fafbfc; }
.day.saturday:not(.out-of-range) { background: #eff5fc; }
.day.sunday:not(.out-of-range), .day.holiday:not(.out-of-range) { background: #fff1f0; }
.day.out-of-range { background: repeating-linear-gradient(-45deg,#fafbfc,#fafbfc 5px,#f4f6f7 5px,#f4f6f7 10px); color: #a6b0b7; }
.date-number { display: flex; align-items: center; gap: 7px; color: #243b4b; font: 700 16px/1 Arial, sans-serif; }
.day.saturday:not(.out-of-range) .date-number { color: #456c98; }
.day.sunday:not(.out-of-range) .date-number, .day.holiday:not(.out-of-range) .date-number { color: #a15350; }
.date-number small { color: #6f8391; font: 500 10px/1.2 "Yu Gothic", sans-serif; }
.today .date-number strong { display: grid; place-items: center; width: 27px; height: 27px; margin: -5px 0 -5px -5px; color: #fff; background: var(--navy); border-radius: 50%; }
.status { position: absolute; left: 11px; right: 11px; bottom: 11px; min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 8px 9px; border: 1px solid; border-radius: 4px; font-size: 12px; }
.status strong { font-size: 13px; }
.status small { opacity: .85; }
.status.available { background: var(--available-bg); border-color: var(--available-border); color: var(--available-text); }
.status.inquire { background: var(--inquire-bg); border-color: var(--inquire-border); color: var(--inquire-text); }
.status.full { background: var(--full-bg); border-color: var(--full-border); color: var(--full-text); }
.status.unavailable { background: #f8e7e6; border-color: #d9a09b; color: #8b3f39; justify-content: center; }
.outside-label { position: absolute; left: 12px; bottom: 13px; font-size: 11px; color: #8b969e; }
.confirmation { margin: 42px 0 0; }
.confirmation-body { display: flex; gap: 17px; align-items: flex-start; padding: 25px 26px; background: #edf4f7; border-left: 3px solid var(--cyan-dark); }
.notice-icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: white; background: var(--cyan-dark); border-radius: 50%; font: 700 13px Georgia, serif; }
.confirmation h2 { margin: 0; color: var(--navy); font-size: 20px; }
.confirmation-body p { margin: 8px 0 0; color: #536b79; font-size: 14px; line-height: 1.85; }
footer { min-height: 126px; padding: 30px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #0d2b40; color: white; }
footer div { display: grid; gap: 5px; }
footer strong { font-size: 16px; letter-spacing: .08em; }
footer span { color: #b9c9d3; font-size: 11px; }
footer a { color: white; font-size: 13px; text-decoration: none; border-bottom: 1px solid #5f7a8c; padding-bottom: 5px; }
@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 18px; }
  .brand-text strong { font-size: 18px; }
  .brand-text small { font-size: 7px; }
  .back-link { font-size: 12px; }
  main { width: calc(100% - 16px); padding: 38px 0 48px; }
  .intro { display: block; margin-bottom: 24px; }
  h1 { font-size: 34px; }
  .lead { font-size: 14px; }
  .update-status { width: 100%; margin-top: 18px; }
  .calendar-toolbar { padding: 20px 16px 16px; display: block; }
  .calendar-toolbar h2 { font-size: 23px; }
  .month-controls { margin-top: 16px; }
  .month-controls button { flex: 1; padding: 0 8px; }
  .legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; padding: 14px 16px; }
  .calendar-wrap { padding: 0 8px 12px; }
  .weekday-row span { padding: 12px 2px 8px; font-size: 11px; }
  .day { min-height: 76px; padding: 7px 5px; }
  .date-number { font-size: 13px; }
  .date-number small { display: none; }
  .today .date-number strong { width: 22px; height: 22px; margin: -4px 0 -4px -3px; }
  .status { left: 4px; right: 4px; bottom: 5px; min-height: 27px; padding: 5px 0; justify-content: center; }
  .status strong { font-size: clamp(8px, 2.4vw, 10px); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
  .status.unavailable strong { max-width: 100%; font-size: 7px; line-height: 1.1; white-space: normal; word-break: keep-all; text-align: center; }
  .status small { display: none; }
  .outside-label { left: 5px; bottom: 7px; font-size: 8px; }
  .confirmation { margin-top: 32px; }
  .confirmation-body { padding: 19px 16px; }
  .confirmation h2 { font-size: 18px; }
  .confirmation-body p { font-size: 13px; line-height: 1.8; }
  footer { min-height: 150px; padding: 28px 20px; display: grid; }
}
@media (max-width: 390px) {
  .back-link { max-width: 92px; text-align: right; }
}
