:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --paper-deep: #eee7dc;
  --ink: #2e2a25;
  --muted: #746c62;
  --line: #d7cfc2;
  --amber: #c98a3d;
  --amber-dark: #8f5d25;
  --white: #fffdf9;
  --shadow: 0 18px 50px rgba(52, 40, 27, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 10% 0%, rgba(201,138,61,.12), transparent 28rem), linear-gradient(180deg, var(--paper), #f4f0e9); font-family: "Yu Gothic", "Hiragino Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.65; }
button, input, select { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 34px; }
.masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.kicker { margin: 0 0 7px; color: var(--amber-dark); font: 700 .78rem/1.2 system-ui, sans-serif; letter-spacing: .18em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 500; letter-spacing: .025em; line-height: 1.25; }
.status { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.status span { width: 8px; height: 8px; border-radius: 50%; background: #528265; box-shadow: 0 0 0 5px rgba(82,130,101,.12); }
.workspace { background: rgba(255,253,249,.9); border: 1px solid var(--line); box-shadow: var(--shadow); }
.settings-panel, .calendar-panel, .results-panel { padding: clamp(24px, 3.2vw, 40px); }
.settings-panel { border-bottom: 1px solid var(--line); }
.section-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 23px; }
.section-heading > span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid var(--amber); border-radius: 50%; color: var(--amber-dark); font: 700 .75rem/1 system-ui, sans-serif; }
.section-heading h2 { margin: -3px 0 2px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.42rem; font-weight: 600; }
.section-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 28px; align-items: end; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend, .duration-control > span { display: block; margin-bottom: 9px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.salon-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.salon-card { position: relative; display: flex; min-height: 78px; flex-direction: column; justify-content: center; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.salon-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.salon-card:has(input:checked) { border-color: var(--amber); background: #fff8ec; box-shadow: inset 0 -3px 0 var(--amber); }
.salon-card input { position: absolute; inset: 10px 10px auto auto; accent-color: var(--amber-dark); }
.salon-place { font-weight: 700; font-size: 1.02rem; }
.salon-name { color: var(--muted); font-size: .75rem; letter-spacing: .05em; }
select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--white); padding: 10px 12px; }
select:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(201,138,61,.32); outline-offset: 2px; }
.updated { margin: 13px 0 0; color: var(--muted); font-size: .78rem; }
.decision-grid { display: grid; grid-template-columns: minmax(390px, .9fr) minmax(0, 1.1fr); }
.calendar-panel { border-right: 1px solid var(--line); }
.selection-count { margin: -5px 0 13px; color: var(--muted); font-size: .88rem; text-align: right; }
.selection-count strong { color: var(--amber-dark); font-size: 1.15rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(38px, 1fr)); gap: 6px; }
.weekday-label { padding: 3px 0 6px; color: var(--muted); font-size: .76rem; text-align: center; }
.date-spacer { min-height: 58px; }
.date-button { position: relative; display: grid; min-height: 62px; place-content: center; gap: 1px; border: 1px solid var(--line); color: var(--ink); background: var(--white); cursor: pointer; }
.date-button:not(:disabled):hover { border-color: var(--amber); background: #fff8ec; }
.date-button:disabled { color: #afa89e; background: #f5f1ea; cursor: default; }
.date-button[aria-pressed="true"] { border-color: var(--ink); color: var(--white); background: var(--ink); }
.date-number { font-weight: 700; line-height: 1.2; }
.date-state { color: var(--amber-dark); font-size: .62rem; white-space: nowrap; }
.date-button[aria-pressed="true"] .date-state { color: #e7b675; }
.date-button strong { position: absolute; top: -6px; right: -5px; display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--amber); font: 700 .68rem/1 system-ui, sans-serif; }
.calendar-note { display: flex; align-items: center; gap: 8px; margin: 13px 0 0; color: var(--muted); font-size: .76rem; }
.calendar-note span { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.decision-button { width: 100%; min-height: 52px; margin-top: 18px; padding: 11px 16px; border: 1px solid var(--ink); color: var(--white); background: var(--ink); cursor: pointer; font-weight: 700; }
.decision-button:hover:not(:disabled) { color: var(--ink); background: var(--amber); }
.decision-button:disabled { border-color: var(--line); color: #9b9388; background: #eee9e1; cursor: not-allowed; }
.results { display: grid; gap: 14px; }
.day-result { border: 1px solid var(--line); background: var(--white); }
.day-result > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #faf7f1; }
.day-result > header p { margin: 0; color: var(--muted); font-size: .8rem; }
.result-date { display: flex; align-items: baseline; gap: 8px; }
.result-date strong { font: 600 1.25rem/1.2 "Yu Mincho", "Hiragino Mincho ProN", serif; }
.result-date span { color: var(--muted); font-size: .8rem; }
.start-windows { padding: 4px 16px; }
.start-window { padding: 16px 0; border-bottom: 1px solid #e9e3da; }
.start-window:last-child { border-bottom: 0; }
.start-window div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
.start-window div > span { color: var(--amber-dark); font-size: .74rem; font-weight: 700; letter-spacing: .08em; }
.start-window div > strong { font-size: 1rem; }
.start-window small { grid-column: 2; color: var(--muted); font-size: .72rem; }
.loading, .empty { padding: 28px 0; color: var(--muted); }
.calendar-error { grid-column: 1 / -1; }
footer { max-width: 760px; margin: 20px auto 0; color: var(--muted); text-align: center; font-size: .84rem; }
.booking-notice { padding: 16px 20px; margin-bottom: 24px; border-left: 3px solid var(--amber); background: var(--white); font-size: .9rem; }
.calendar-period { font-weight: 700; margin-bottom: 12px; }
.date-number { font-size: .85rem; }
.contact-panel { padding: 28px 0 12px; }
.contact-panel h2 { font-size: 1.25rem; }
.contact-link { display: inline-block; padding: 12px 18px; background: var(--ink); color: var(--white); text-decoration: none; }
.contact-link:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.evening-panel { margin-top: 24px; padding: clamp(24px, 3.2vw, 40px); border: 1px solid var(--line); background: #f0ebe1; }
.evening-panel h2 { margin-bottom: 10px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.42rem; }
.evening-panel > p:not(.kicker) { max-width: 46rem; }
.evening-button { min-height: 48px; padding: 10px 20px; border: 1px solid var(--ink); color: var(--ink); background: var(--white); cursor: pointer; font-weight: 700; }
.evening-button:hover { background: #fff8ec; border-color: var(--amber-dark); }
#evening-results { margin-top: 22px; }
[hidden] { display: none !important; }
.evening-summary { margin-bottom: 12px; font-weight: 700; }
.evening-dates { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.evening-dates li { padding: 9px 15px; border: 1px solid var(--line); background: var(--white); }
.evening-note { margin: 16px 0 0; color: var(--muted); font-size: .82rem; }

@media (max-width: 880px) {
  .shell { width: min(100% - 24px, 720px); padding-top: 26px; }
  .masthead { display: block; }
  .status { margin-top: 14px; }
  .decision-grid { grid-template-columns: 1fr; }
  .calendar-panel { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .shell { width: 100%; padding: 20px 12px; }
  .workspace { border-left: 0; border-right: 0; }
  .settings-panel, .calendar-panel, .results-panel { padding: 24px 18px; }
  .settings-grid { grid-template-columns: 1fr; gap: 18px; }
  .salon-options { grid-template-columns: 1fr; }
  .salon-card { min-height: 62px; }
  .calendar-grid { gap: 4px; }
  .date-button { min-height: 56px; padding: 3px; }
  .date-state { font-size: .56rem; }
  .day-result > header { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Match the Bodywork session page while keeping the finder self-contained. */
:root {
  --paper: #f8f5ee;
  --paper-deep: #eaf4ff;
  --ink: #202b38;
  --muted: #5d6670;
  --line: #e8e3db;
  --amber: #1268df;
  --amber-dark: #0755c6;
  --white: #fff;
  --shadow: 0 8px 24px rgba(32, 44, 61, .07);
}
body {
  background: radial-gradient(circle at 8% 0%, rgba(129,186,161,.12), transparent 34rem), var(--paper);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", system-ui, sans-serif;
  line-height: 1.8;
  letter-spacing: .025em;
}
.site-nav {
  width: min(1080px, calc(100% - 48px));
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: auto;
  border-bottom: 1px solid rgba(34,48,71,.1);
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-brand { font-family: "Noto Serif JP", "Yu Mincho", serif; font-weight: 700; }
.site-nav-links { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.site-nav-links .current { padding: 7px 15px; border-radius: 999px; color: var(--amber-dark); background: var(--paper-deep); font-weight: 700; }
.shell { width: min(760px, calc(100% - 32px)); padding: 28px 0 70px; }
.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  padding: 36px 42px;
  border-radius: 27px;
  color: #fff;
  background: linear-gradient(145deg, #1682f1 0%, #0865dc 53%, #1d77e6 100%);
  box-shadow: 0 8px 20px rgba(16,91,190,.18);
}
.masthead::before, .masthead::after { position: absolute; z-index: -1; content: ""; background: rgba(103,178,255,.2); transform: rotate(-34deg); }
.masthead::before { width: 420px; height: 160px; right: -145px; top: -43px; }
.masthead::after { width: 360px; height: 190px; right: -120px; bottom: -128px; }
.kicker { color: #fff5a3; font-size: .76rem; }
h1 { color: #fff; font-family: "Noto Sans JP", "Yu Gothic", sans-serif; font-size: clamp(2rem, 7vw, 2.7rem); font-weight: 700; letter-spacing: .04em; }
.status { align-self: flex-start; margin: 0; padding: 5px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: #fff; background: rgba(255,255,255,.12); font-size: .78rem; }
.booking-notice { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; padding: 18px 22px; border-left: 0; border-radius: 18px; background: #eaf4ff; color: #16416d; }
.notice-symbol { position: relative; flex: 0 0 76px; width: 76px; height: 76px; display: grid; place-items: center; border: 2px solid #b8d8fa; border-radius: 18px; background: #fff; color: #1268df; }
.notice-symbol svg { display: block; width: 58px; height: 58px; }
.notice-symbol .notice-warning { position: absolute; right: -11px; bottom: -16px; width: 58px; height: 58px; filter: drop-shadow(0 2px 2px rgba(115, 48, 20, .22)); }
.notice-content { min-width: 0; }
.notice-content p { margin: 0; }
.notice-labels { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; font-size: .78rem; font-weight: 800; line-height: 1.3; }
.notice-labels span { display: inline-block; padding: 5px 9px; border-radius: 999px; color: #fff; background: #1268df; }
.notice-labels span:last-child { color: #9e3b27; background: #fff0e9; border: 1px solid #e85638; }
.booking-purpose { display: inline-block; margin-top: 5px; color: #0755c6; }
.updated, .evening-note { white-space: pre-line; }
.workspace { display: grid; gap: 18px; border: 0; background: transparent; box-shadow: none; }
.settings-panel, .calendar-panel, .results-panel, .evening-panel, .contact-panel {
  padding: 26px 24px;
  border: 1px solid rgba(20,58,95,.045);
  border-radius: 23px;
  background: #fff;
  box-shadow: var(--shadow);
}
.settings-panel { border-bottom: 1px solid rgba(20,58,95,.045); }
.section-heading > span { border: 0; color: #fff; background: #e85638; font-weight: 800; }
.section-heading h2, .evening-panel h2 { color: var(--ink); font-family: "Noto Sans JP", "Yu Gothic", sans-serif; font-size: 1.25rem; font-weight: 800; }
.settings-grid { grid-template-columns: minmax(0,1fr) 150px; gap: 16px; }
.salon-card, select, .date-button, .day-result, .evening-dates li { border-radius: 12px; }
.salon-card:has(input:checked) { border-color: var(--amber); background: var(--paper-deep); box-shadow: inset 0 -3px 0 var(--amber); }
.salon-card:hover, .date-button:not(:disabled):hover { border-color: var(--amber); background: var(--paper-deep); }
.decision-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.calendar-panel { border-right: 1px solid rgba(20,58,95,.045); border-bottom: 1px solid rgba(20,58,95,.045); }
.date-button { min-height: 58px; }
.date-button:disabled { background: #f5f6f7; }
.date-button[aria-pressed="true"] { border-color: var(--amber); background: var(--amber); color: #fff; }
.date-state { color: var(--amber-dark); }
.date-button[aria-pressed="true"] .date-state { color: #fff; }
.date-button strong { color: #fff; background: #e85638; }
.decision-button, .contact-link { border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg,#1171e7,#0755c6); }
.decision-button:hover:not(:disabled), .contact-link:hover { color: #fff; background: #06376f; }
.decision-button:disabled { color: #8994a0; background: #e9edf1; }
.day-result { overflow: hidden; }
.day-result > header { background: #f4f9ff; }
.evening-panel { margin-top: 18px; background: #fff; }
.evening-button { border: 1px solid var(--amber); border-radius: 11px; color: var(--amber-dark); background: var(--paper-deep); }
.evening-button:hover { background: #dceeff; }
.contact-panel { margin-top: 18px; }
.contact-panel h2 { margin-bottom: 10px; color: var(--amber-dark); font-size: 1.18rem; }
.contact-link { font-weight: 700; }
footer a { color: var(--amber-dark); text-underline-offset: 4px; }
select:focus-visible, button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(18,104,223,.32); outline-offset: 2px; }
@media (max-width: 620px) {
  .site-nav { width: calc(100% - 32px); min-height: 64px; }
  .shell { width: calc(100% - 24px); padding: 18px 0 48px; }
  .masthead { min-height: 180px; padding: 28px 24px; border-radius: 22px; }
  .booking-notice { gap: 12px; padding: 14px; }
  .notice-symbol { flex-basis: 56px; width: 56px; height: 56px; border-radius: 14px; }
  .notice-symbol svg { width: 43px; height: 43px; }
  .notice-symbol .notice-warning { right: -8px; bottom: -10px; width: 43px; height: 43px; }
  .notice-labels { font-size: .68rem; }
  .status { margin-top: 14px; }
  .settings-grid { grid-template-columns: 1fr; }
  .salon-options { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .salon-card { min-height: 76px; padding: 10px 6px; }
  .salon-place { font-size: .88rem; }
  .salon-name { font-size: .67rem; }
  .calendar-grid { grid-template-columns: repeat(7,minmax(0,1fr)); }
  .date-button { min-height: 52px; padding: 2px; }
  .date-state { font-size: .52rem; }
}
