* { box-sizing: border-box; }
:root {
  --main: #DDBFA5;
  --main-dark: #B88666;
  --gold: #C49A43;
  --text: #4A403A;
  --muted: #8A817B;
  --line: #E8E1DB;
  --paper: #FFFFFF;
  --soft: #FAF8F5;
  --closed: #F0EEEB;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F8F6F3;
  color: var(--text);
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
a { color: inherit; }
.site-header {
  min-height: 82px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(22px, calc((100% - 1040px) / 2));
  gap: 16px;
}
.brand { display: flex; flex-direction: column; line-height: 1.3; }
.brand-en { font-family: "Noto Serif JP", serif; font-size: 17px; letter-spacing: .13em; }
.brand-jp { font-size: 12px; letter-spacing: .08em; margin-top: 3px; }
.brand-sub { color: var(--muted); font-size: 10px; margin-top: 2px; }
.admin-link { text-decoration: none; color: var(--muted); font-size: 11px; border-bottom: 1px solid #D8C9BB; white-space: nowrap; }
.container { width: min(920px, calc(100% - 28px)); margin: 0 auto; }
.intro { text-align: center; padding: 38px 12px 24px; }
.eyebrow { color: var(--gold); letter-spacing: .18em; font-size: 10px; font-weight: 700; margin: 0 0 7px; }
h1, h2 { font-family: "Noto Serif JP", serif; font-weight: 500; }
h1 { font-size: clamp(23px, 4vw, 30px); margin: 0; letter-spacing: .05em; }
.intro-text { color: var(--muted); margin: 8px 0 0; font-size: 12px; }
.calendar-card, .booking-method {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: clamp(16px, 3.5vw, 30px);
}
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.calendar-heading h2 { font-size: clamp(19px, 3vw, 24px); margin: 0; letter-spacing: .06em; }
.calendar-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.month-button { border: 1px solid #D8C7B7; background: white; color: var(--text); padding: 8px 11px; border-radius: 3px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.month-button:hover { background: var(--soft); }
.month-button.active { background: #B88D69; color: white; border-color: #B88D69; }
.legend { display: flex; gap: 18px; color: var(--muted); font-size: 11px; margin: 0 0 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-dot.available { background: var(--main-dark); }
.legend-dot.closed { background: #C7C0BA; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #FCFBF9; }
.weekdays span { text-align: center; padding: 7px 0; font-size: 11px; color: var(--muted); }
.weekdays span:first-child { color: #A56B63; }
.weekdays span:last-child { color: #7D8C9A; }
.calendar-grid { border-left: 1px solid var(--line); border-top: 0; }
.day-cell { min-width: 0; min-height: 116px; padding: 7px 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.day-cell.empty { background: #FCFBF9; }
.day-number { font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.day-cell.sunday .day-number { color: #A56B63; }
.day-cell.saturday .day-number { color: #7D8C9A; }
.time-list { display: flex; flex-direction: column; gap: 4px; }
.time-chip { display: block; width: 100%; text-align: center; border: 1px solid #DCC9B6; background: #FBF7F2; color: #705642; border-radius: 3px; padding: 3px 1px; font-size: clamp(9px, 1.1vw, 11px); line-height: 1.35; overflow-wrap: anywhere; }
.time-chip.repeat { background: #F8F5F1; border-color: #C9B9A9; color: #6C625A; }
.time-chip .repeat-label { display: block; font-size: 8px; line-height: 1.3; }
.no-slots { display: block; font-size: 10px; color: #AAA39D; line-height: 1.4; }
.calendar-note { color: var(--muted); font-size: 10px; margin: 13px 0 0; }
.status-message { color: #A56B63; font-size: 12px; margin: 8px 0 0; min-height: 1em; }
.booking-method { margin: 24px 0 42px; text-align: center; }
.booking-method h2 { margin: 0; font-size: 24px; letter-spacing: .06em; }
.booking-method > p:not(.eyebrow):not(.line-help) { color: var(--muted); font-size: 12px; margin: 8px 0 20px; }
.booking-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; margin: 0 auto; }
.booking-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; text-decoration: none; border-radius: 3px; font-size: 13px; font-weight: 500; }
.booking-button.primary { background: #B88D69; color: white; border: 1px solid #B88D69; }
.booking-button.secondary { background: white; color: #6E5745; border: 1px solid #D6C2AF; }
.booking-button .arrow { font-size: 23px; line-height: 1; }
.line-help { margin: 13px 0 0; color: var(--muted); font-size: 10px; }
.site-footer { padding: 20px; text-align: center; color: #A49A91; font-family: "Noto Serif JP", serif; letter-spacing: .16em; font-size: 10px; }
.admin-container { width: min(760px, calc(100% - 28px)); margin: 28px auto 50px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: clamp(18px, 4vw, 30px); margin-bottom: 18px; }
.admin-card h1 { font-size: 24px; margin-bottom: 8px; }
.admin-card h2 { font-size: 18px; margin: 0 0 15px; }
.admin-card p { color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label { font-size: 12px; font-weight: 700; }
input[type="date"], input[type="password"], input[type="text"], select { width: 100%; border: 1px solid #DCD5CF; border-radius: 3px; padding: 10px; font: inherit; color: var(--text); background: white; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.check-item { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 3px; padding: 8px; font-size: 12px; background: #FCFBF9; }
.check-item input { accent-color: var(--main-dark); }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.button { border: 1px solid #B88D69; background: #B88D69; color: white; border-radius: 3px; padding: 10px 17px; font: inherit; font-size: 12px; cursor: pointer; }
.button.secondary { background: white; color: #6E5745; border-color: #D6C2AF; }
.button.danger { background: white; color: #A56B63; border-color: #D8B7B1; }
.admin-message { min-height: 1.5em; font-size: 12px; margin-top: 12px; }
.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-list-item { border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.admin-list-item small { color: var(--muted); display: block; }
.hidden { display: none !important; }
@media (max-width: 600px) {
  .site-header { min-height: 72px; padding: 12px 15px; }
  .brand-en { font-size: 15px; }
  .brand-jp { font-size: 11px; }
  .brand-sub { font-size: 9px; }
  .intro { padding: 28px 8px 19px; }
  .calendar-card { padding: 12px 8px; }
  .calendar-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .calendar-navigation { width: 100%; justify-content: flex-start; }
  .month-button { padding: 8px 9px; font-size: 11px; }
  .day-cell { min-height: 132px; padding: 5px 2px 6px; }
  .day-number { font-size: 11px; margin-bottom: 4px; padding-left: 2px; }
  .time-list { gap: 4px; }
  .time-chip { font-size: 9px; padding: 4px 0; border-radius: 2px; }
  .time-chip .repeat-label { font-size: 7px; }
  .no-slots { font-size: 9px; }
  .legend { gap: 12px; font-size: 10px; }
  .booking-buttons { grid-template-columns: 1fr; }
  .booking-button { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-list-item { align-items: flex-start; }
}