:root {
  --primary: #00b8c4;
  --primary-dark: #0096a3;
  --primary-deep: #087b86;
  --primary-pale: #effbfc;
  --primary-soft: #d9f5f7;
  --text: #263746;
  --text-soft: #667581;
  --border: #d4dde1;
  --surface: #ffffff;
  --background: #f3f6f7;
  --danger: #d54848;
  --danger-pale: #fff3f3;
  --warning: #e69a16;
  --success: #0b9e7a;
  --availability-blue: #087bc1;
  --availability-orange: #f28a3b;
  --shadow: 0 5px 18px rgba(38, 55, 70, 0.08);
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-sm: 4px;
  --content-width: 980px;
  color-scheme: light;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: var(--primary-deep);
  text-underline-offset: 0.2em;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(19, 196, 206, 0.42);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 58px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px 11px 11px 4px;
  background: var(--primary);
  transform: rotate(-8deg);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  width: 5px;
  border-radius: 99px;
  background: #fff;
  content: "";
}

.brand-mark::before {
  height: 12px;
  transform: translate(-7px, 3px) rotate(8deg);
}

.brand-mark span {
  height: 18px;
  transform: rotate(8deg);
}

.brand-mark::after {
  height: 9px;
  transform: translate(7px, 4px) rotate(8deg);
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-label {
  color: #314553;
  font-size: 14px;
  font-weight: 700;
}

.booking-shell {
  width: min(calc(100% - 40px), var(--content-width));
  min-height: calc(100vh - 230px);
  margin: 0 auto;
  padding: 32px 0 72px;
}

.intro {
  margin-bottom: 24px;
  text-align: center;
}

.intro-eyebrow,
.panel-kicker {
  margin: 0 0 3px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.intro h1 {
  margin: 0;
  color: #203342;
  font-size: clamp(25px, 4vw, 32px);
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.intro > p:last-child {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.stepper {
  width: min(100%, 700px);
  margin: 0 auto 24px;
  padding: 17px 24px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.stepper ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stepper-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #94a0a8;
  font-size: 12px;
  font-weight: 700;
}

.stepper-item:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 15px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--border);
  content: "";
}

.stepper-item.is-complete:not(:last-child)::after {
  background: var(--primary);
}

.step-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: #fff;
  line-height: 1;
}

.stepper-item.is-current,
.stepper-item.is-complete {
  color: var(--primary-deep);
}

.stepper-item.is-current .step-number {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 184, 196, 0.12);
}

.stepper-item.is-complete .step-number {
  border-color: var(--primary);
  background: var(--primary-pale);
  color: transparent;
}

.stepper-item.is-complete .step-number::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--primary-deep);
  line-height: 1;
  text-align: center;
  content: "✓";
}

.booking-panel {
  width: 100%;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading {
  margin-bottom: 26px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.panel-heading::after {
  display: none;
}

.panel-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.45;
}

.panel-heading h2:focus {
  outline: 0;
}

.panel-heading > p:last-child {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.panel-heading-with-back {
  position: relative;
}

.back-button {
  position: absolute;
  top: -2px;
  right: 0;
  left: auto;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
}

.back-button span {
  color: var(--primary-dark);
  font-size: 22px;
  line-height: 0;
  vertical-align: -2px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid #c9eef1;
  border-radius: var(--radius-md);
  background: var(--primary-pale);
}

.duration-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1px 8px;
  margin: 8px 0 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
}

.duration-notice p {
  margin: 0;
}

.duration-notice-main {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.duration-notice-note {
  margin-top: 0 !important;
  color: var(--text-soft);
  font-size: 11px;
}

.service-fieldset {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.service-fieldset > legend {
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 700;
}

.service-fieldset > p {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-option {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.service-option:hover {
  border-color: #87dfe4;
}

.service-option:has(input:focus-visible) {
  outline: 3px solid rgba(19, 196, 206, 0.42);
  outline-offset: 3px;
}

.service-option.is-selected {
  border-color: var(--primary);
  background: var(--primary-pale);
}

.service-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.service-option-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #e8f2f4;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.service-option.is-selected .service-option-mark {
  background: var(--primary);
  color: #fff;
}

.service-option-copy {
  display: grid;
  min-width: 0;
}

.service-option-copy strong {
  font-size: 13px;
  line-height: 1.45;
}

.service-option-copy small {
  color: var(--text-soft);
  font-size: 10px;
}

.service-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.service-card > div:last-child {
  display: grid;
}

.service-label {
  color: var(--text-soft);
  font-size: 11px;
}

.service-card strong {
  font-size: 16px;
}

.service-card strong + span {
  color: var(--text-soft);
  font-size: 12px;
}

.store-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.store-option {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.store-option:hover {
  border-color: var(--primary);
}

.store-option:has(input:focus-visible) {
  outline: 3px solid rgba(19, 196, 206, 0.42);
  outline-offset: 3px;
}

.store-option.is-selected {
  border-color: var(--primary);
  background: var(--primary-pale);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.store-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.store-radio {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 2px solid #b9c5cb;
  border-radius: 50%;
  background: #fff;
}

.store-option.is-selected .store-radio {
  border-color: var(--primary);
}

.store-option.is-selected .store-radio::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.store-copy {
  display: grid;
  min-width: 0;
}

.store-copy strong {
  line-height: 1.3;
}

.panel-actions {
  margin-top: 32px;
  text-align: center;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}

.button:not(:disabled):hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 12px rgba(0, 150, 163, 0.2);
}

.button-primary:not(:disabled):hover {
  background: var(--primary-dark);
}

.button-primary:disabled {
  background: #c6d2d7;
  box-shadow: none;
  cursor: not-allowed;
}

.button-secondary {
  border-color: var(--primary);
  background: #fff;
  color: var(--primary-deep);
}

.button-wide {
  width: min(100%, 440px);
}

.global-message {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid #f2bcbc;
  border-radius: var(--radius-sm);
  background: var(--danger-pale);
  color: #9e2f2f;
}

.loading-panel,
.state-panel,
.inline-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  text-align: center;
}

.loading-panel p,
.inline-state p {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.spinner {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 3px solid #d8eef0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.state-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--primary-deep);
  font-size: 22px;
  font-weight: 700;
}

.state-icon-error {
  background: var(--danger-pale);
  color: var(--danger);
}

.state-panel h2 {
  margin: 0;
  font-size: 22px;
}

.state-panel p {
  margin: 8px 0 22px;
  color: var(--text-soft);
}

.current-condition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  padding: 8px 12px;
  border: 1px solid #c4e9ec;
  border-radius: var(--radius-md);
  background: var(--primary-pale);
}

.current-condition > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-condition span {
  color: var(--text-soft);
  font-size: 11px;
}

.text-button {
  min-height: 34px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.calendar-toolbar {
  margin-bottom: 9px;
}

.availability-legend {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 12px;
}

.availability-legend b {
  font-size: 15px;
}

.legend-available {
  color: var(--availability-orange);
  font-weight: 900;
}

.legend-unavailable {
  color: #a3adb2;
}

.week-navigation {
  display: grid;
  grid-template-columns: 136px 1fr 136px;
  align-items: center;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: center;
}

.week-button {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--primary-deep);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.week-button:disabled {
  color: #bfc7cb;
  cursor: not-allowed;
}

.week-navigation strong {
  font-size: 16px;
}

.inline-state {
  min-height: 300px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fbfdfd;
}

.inline-state-error .button {
  margin-top: 18px;
}

.desktop-calendar {
  max-height: 610px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  overscroll-behavior: contain;
}

.desktop-calendar table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.desktop-calendar caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.desktop-calendar th,
.desktop-calendar td {
  height: 64px;
  padding: 4px;
  border-right: 1px solid #e5ecef;
  border-bottom: 1px solid #e5ecef;
  text-align: center;
}

.desktop-calendar thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  height: 66px;
  background: #f1f7f8;
  font-size: 12px;
  font-weight: 600;
}

.desktop-calendar thead th:first-child {
  z-index: 4;
  left: 0;
  width: 74px;
}

.desktop-calendar tbody th {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 74px;
  background: #f1f7f8;
  font-size: 12px;
  font-weight: 600;
}

.desktop-calendar tbody th.is-morning {
  background: #42b8d5;
  color: #fff;
}

.desktop-calendar tbody th.is-afternoon {
  background: #f49a58;
  color: #fff;
}

.desktop-calendar tbody th.is-evening {
  background: #806ac6;
  color: #fff;
}

.desktop-calendar tr:last-child th,
.desktop-calendar tr:last-child td {
  border-bottom: 0;
}

.desktop-calendar th:last-child,
.desktop-calendar td:last-child {
  border-right: 0;
}

.calendar-date-head {
  display: grid;
  gap: 1px;
}

.calendar-date-head strong {
  font-size: 15px;
}

.calendar-date-head.is-saturday {
  color: #3178bc;
}

.calendar-date-head.is-sunday {
  color: #d85858;
}

.slot-button {
  display: grid;
  width: 50px;
  height: 50px;
  min-height: 50px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid #9fcae4;
  border-radius: 3px;
  background: #fff;
  color: var(--availability-orange);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.slot-button[data-status="limited"] {
  color: var(--availability-orange);
}

.slot-mark {
  color: var(--availability-orange);
  font-size: 1.18em;
  font-weight: 900;
  line-height: 1;
}

.slot-button.is-selected .slot-mark,
.mobile-slot-button.is-selected .slot-mark {
  color: #fff;
}

.slot-button:hover,
.slot-button.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.slot-button.is-selected {
  background: var(--primary);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--primary-dark);
}

.slot-unavailable {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  place-items: center;
  border-radius: 3px;
  background: #f7f9fa;
  color: #b8c1c5;
  font-size: 18px;
  font-weight: 700;
}

.mobile-calendar {
  display: none;
}

.selection-bar {
  position: sticky;
  z-index: 10;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0 -24px;
  padding: 15px 18px;
  border: 1px solid #bcebee;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 34px rgba(36, 82, 91, 0.18);
  backdrop-filter: blur(8px);
}

.selection-details {
  display: grid;
}

.selection-details > span {
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
}

.selection-details strong {
  font-size: 16px;
  line-height: 1.4;
}

.selection-details small {
  color: var(--text-soft);
}

.selection-bar .button {
  flex: 0 0 auto;
  min-height: 48px;
}

.hold-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid #c4ecef;
  border-radius: var(--radius-sm);
  background: var(--primary-pale);
  color: var(--primary-deep);
  font-size: 13px;
}

.hold-notice > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hold-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(11, 158, 122, 0.12);
}

.hold-notice b {
  font-variant-numeric: tabular-nums;
}

.booking-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.booking-summary > div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.booking-summary > div + div {
  border-left: 1px solid var(--border);
}

.booking-summary span {
  color: var(--text-soft);
  font-size: 11px;
}

.booking-summary strong {
  font-size: 14px;
}

.compact-summary {
  margin-bottom: 14px;
  background: #fbfdfd;
}

.form-section {
  margin-top: 16px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.form-section h3 {
  display: inline-block;
  margin: 0 10px 13px 0;
  font-size: 16px;
}

.required-note {
  display: inline-block;
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
}

.required-note span,
.required-badge {
  color: var(--danger);
  font-size: 10px;
  font-weight: 600;
}

.optional-badge {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 500;
}

.form-field + .form-field {
  margin-top: 10px;
}

.form-field label {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 39px;
  padding: 6px 10px;
  border: 1px solid #c6d2d7;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:hover,
.form-field select:hover {
  border-color: #94b9bd;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 184, 196, 0.12);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fffafa;
}

.form-field small {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.45;
}

.field-error {
  margin: 3px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 500;
}

.profile-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(110px, 0.6fr);
  gap: 12px;
  margin-top: 10px;
}

.profile-fields .form-field {
  margin-top: 0;
}

.gender-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.gender-field legend {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
}

.gender-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.gender-buttons label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.gender-buttons input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}

.gender-buttons span {
  display: grid;
  min-height: 39px;
  place-items: center;
  padding: 7px 4px;
  border: 1px solid #c6d2d7;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.gender-buttons input:checked + span {
  border-color: var(--primary);
  background: var(--primary-pale);
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.gender-buttons input:focus-visible + span {
  outline: 3px solid rgba(19, 196, 206, 0.42);
  outline-offset: 2px;
}

.gender-buttons input[aria-invalid="true"] + span {
  border-color: var(--danger);
}

.consent-section {
  display: grid;
  gap: 8px;
}

.consent-section h3 {
  margin-bottom: 7px;
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.check-card:has(input:checked) {
  border-color: #90dfe4;
  background: var(--primary-pale);
}

.check-card:has(input:focus-visible) {
  outline: 3px solid rgba(19, 196, 206, 0.42);
  outline-offset: 3px;
}

.check-card input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary-dark);
}

.check-card > span {
  flex: 1;
  font-size: 13px;
}

.review-list {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.review-list > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
}

.review-list > div:last-child {
  border-bottom: 0;
}

.review-list dt,
.review-list dd {
  margin: 0;
  padding: 15px 18px;
}

.review-list dt {
  background: #f7fafb;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.review-list dd {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 500;
}

.confirm-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 12px;
}

.confirm-note > span {
  color: var(--success);
  font-weight: 700;
}

.confirm-note p {
  margin: 0;
}

.submit-caution {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 11px;
}

.submit-error {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #f2bcbc;
  border-radius: var(--radius-sm);
  background: var(--danger-pale);
  color: #9e2f2f;
}

.submit-error p {
  margin: 3px 0 0;
  font-size: 12px;
}

.completion-screen {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.completion-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 36px;
  box-shadow: 0 0 0 10px var(--primary-pale);
}

.completion-screen h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
}

.completion-screen > p:not(.panel-kicker) {
  margin: 10px auto 24px;
  color: var(--text-soft);
  font-size: 14px;
}

.confirmation-number {
  display: inline-grid;
  gap: 1px;
  min-width: 240px;
  margin-bottom: 22px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--primary-pale);
}

.confirmation-number span {
  color: var(--text-soft);
  font-size: 11px;
}

.confirmation-number strong {
  color: var(--primary-deep);
  font-size: 20px;
  letter-spacing: 0.08em;
}

.completion-summary {
  margin-bottom: 26px;
  text-align: left;
}

.next-guide {
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: left;
}

.next-guide h3 {
  margin: 0 0 18px;
  text-align: center;
}

.next-guide ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-guide li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.next-guide li > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
}

.next-guide p {
  display: grid;
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.next-guide strong {
  color: var(--text);
  font-size: 14px;
}

.site-footer {
  padding: 32px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  font-size: 11px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 6px 0;
}

.site-footer p {
  margin: 3px 0;
}

.policy-anchor {
  scroll-margin-top: 20px;
}

.policy-shell {
  width: min(calc(100% - 40px), 880px);
  margin: 0 auto;
  padding: 52px 0 72px;
}

.policy-heading {
  margin-bottom: 32px;
  text-align: center;
}

.policy-heading .intro-eyebrow {
  margin-bottom: 8px;
}

.policy-heading h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.35;
}

.policy-document {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.policy-section + .policy-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.policy-section h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
}

.policy-section p,
.policy-section li,
.policy-address {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.95;
}

.policy-section p {
  margin: 0;
}

.policy-section p + p {
  margin-top: 14px;
}

.policy-section ul {
  margin: 10px 0 0;
  padding-left: 1.4em;
}

.policy-address {
  margin: 0;
  font-style: normal;
}

.policy-return-note {
  margin: 30px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
}

.policy-modal {
  width: min(760px, calc(100vw - 28px));
  height: min(82dvh, 760px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(20, 42, 52, 0.28);
}

.policy-modal[open] {
  display: flex;
  flex-direction: column;
}

.policy-modal::backdrop {
  background: rgba(26, 43, 53, 0.58);
  backdrop-filter: blur(2px);
}

.policy-modal-header {
  display: flex;
  flex: 0 0 auto;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 18px;
  border-bottom: 1px solid var(--border);
}

.policy-modal-header strong {
  font-size: 16px;
}

.policy-modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--background);
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.policy-modal-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px 20px 28px;
  background: #fff;
  overscroll-behavior: contain;
}

.policy-modal-document {
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}

.policy-modal-document section + section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.policy-modal-document h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.policy-modal-document p {
  margin: 0;
}

.policy-modal-document p + p,
.policy-modal-document p + ul,
.policy-modal-document ul + p {
  margin-top: 8px;
}

.policy-modal-document ul {
  margin: 0;
  padding-left: 1.4em;
}

@media (max-width: 760px) {
  .header-inner,
  .booking-shell {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .header-inner {
    min-height: 58px;
  }

  .policy-shell {
    width: min(calc(100% - 24px), 880px);
    padding: 32px 0 52px;
  }

  .policy-document {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  .policy-section + .policy-section {
    margin-top: 26px;
    padding-top: 24px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 18px;
  }

  .booking-shell {
    padding: 12px 0 48px;
  }

  .intro {
    margin-bottom: 18px;
  }

  .intro h1 {
    font-size: 24px;
  }

  .stepper {
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .stepper-item {
    min-height: 46px;
    gap: 3px;
    padding: 7px 2px 5px;
    border-top: 4px solid #dce3e6;
    background: #f7f9fa;
  }

  .stepper-item:not(:last-child)::after {
    display: none;
  }

  .stepper-item.is-current {
    border-top-color: var(--primary);
    background: var(--primary-pale);
  }

  .stepper-item.is-complete {
    border-top-color: var(--primary-dark);
  }

  .stepper .step-number {
    width: 21px;
    height: 21px;
    border-width: 1px;
    font-size: 11px;
  }

  .stepper .step-label {
    font-size: 11px;
  }

  .booking-shell[data-current-step="2"] {
    padding-top: 8px;
  }

  .booking-shell[data-current-step="2"] .intro {
    display: none;
  }

  .booking-shell[data-current-step="2"] .stepper {
    margin-bottom: 8px;
  }

  .booking-shell[data-current-step="2"] #calendar-step {
    padding-top: 9px;
  }

  .booking-shell[data-current-step="2"] #calendar-step .panel-heading {
    margin-bottom: 7px;
    padding-top: 25px;
    padding-bottom: 6px;
  }

  .booking-shell[data-current-step="2"] #calendar-step .panel-kicker,
  .booking-shell[data-current-step="2"] #calendar-step .panel-heading > p {
    display: none;
  }

  .booking-shell[data-current-step="2"] #calendar-step .current-condition {
    margin-bottom: 5px;
    padding: 5px 9px;
  }

  .booking-shell[data-current-step="2"] #calendar-step .availability-legend {
    margin-bottom: 3px;
  }

  .booking-panel {
    padding: 18px 16px 22px;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(38, 55, 70, 0.07);
  }

  .panel-heading {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .panel-heading-with-back {
    padding-top: 31px;
  }

  .panel-heading-with-back .back-button {
    top: -5px;
    right: -8px;
    left: auto;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .store-option {
    min-height: 45px;
    gap: 7px;
    padding: 7px 8px;
  }

  .store-copy strong {
    font-size: 13px;
  }

  .availability-legend {
    justify-content: center;
    gap: 9px;
    font-size: 11px;
  }

  .week-navigation {
    grid-template-columns: 82px 1fr 82px;
    min-height: 46px;
    border: 0;
    background: transparent;
  }

  .week-button {
    min-height: 42px;
    padding: 5px 3px;
    border: 1px solid #9ba7b0;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  .week-button:disabled {
    border-color: #e1e4ea;
    background: #eceef3;
    color: #aeb4bd;
  }

  .week-navigation strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .desktop-calendar {
    display: block;
    max-height: none;
    overflow: visible;
    border-radius: 0;
  }

  .mobile-calendar {
    display: none;
  }

  .desktop-calendar table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .desktop-calendar th,
  .desktop-calendar td {
    height: 50px;
    padding: 0;
  }

  .desktop-calendar thead th {
    height: 64px;
    padding: 4px 1px;
    background: #fff;
    font-size: 11px;
  }

  .desktop-calendar thead th:first-child,
  .desktop-calendar tbody th {
    width: 50px;
    min-width: 50px;
  }

  .desktop-calendar thead th:first-child {
    color: transparent;
    font-size: 0;
  }

  .desktop-calendar tbody th {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
  }

  .desktop-calendar tbody th.is-morning {
    background: #42b8d5;
    color: #fff;
  }

  .desktop-calendar tbody th.is-afternoon {
    background: #f49a58;
    color: #fff;
  }

  .desktop-calendar tbody th.is-evening {
    background: #806ac6;
    color: #fff;
  }

  .desktop-calendar thead th.is-selected-date {
    background: var(--primary);
    color: #fff;
  }

  .desktop-calendar thead th.is-selected-date .calendar-date-head,
  .desktop-calendar thead th.is-selected-date .calendar-date-head strong {
    color: #fff;
  }

  .calendar-date-head {
    gap: 0;
    line-height: 1.3;
  }

  .calendar-date-head strong {
    font-size: 0;
  }

  .calendar-date-head strong::after {
    content: attr(data-mobile-label);
    font-size: 14px;
    font-weight: 700;
  }

  .calendar-date-head span {
    font-size: 10px;
  }

  .desktop-calendar .slot-button,
  .desktop-calendar .slot-unavailable {
    width: 100%;
    height: 49px;
    min-height: 49px;
    border: 0;
    border-radius: 0;
  }

  .desktop-calendar .slot-button {
    background: #fff;
    font-size: 20px;
  }

  .desktop-calendar .slot-button:hover {
    background: var(--primary-soft);
  }

  .desktop-calendar .slot-button.is-selected {
    background: var(--primary);
    color: #fff;
  }

  .desktop-calendar .slot-unavailable {
    background: #f7f8fb;
    font-size: 16px;
  }

  .mobile-date-strip {
    display: grid;
    grid-auto-columns: minmax(68px, 1fr);
    grid-auto-flow: column;
    gap: 6px;
    overflow-x: auto;
    padding: 3px 3px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .mobile-date-button {
    min-height: 68px;
    padding: 7px 4px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #fff;
    color: var(--text-soft);
    cursor: pointer;
    scroll-snap-align: start;
  }

  .mobile-date-button strong,
  .mobile-date-button span,
  .mobile-date-button small {
    display: block;
  }

  .mobile-date-button strong {
    color: var(--text);
    font-size: 17px;
  }

  .mobile-date-button small {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
  }

  .mobile-date-button.is-saturday strong {
    color: #3178bc;
  }

  .mobile-date-button.is-sunday strong {
    color: #d85858;
  }

  .mobile-date-button.is-selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: inset 0 0 0 1px var(--primary);
  }

  .mobile-date-button.is-selected strong,
  .mobile-date-button.is-selected small {
    color: #fff;
  }

  .mobile-slots {
    padding-top: 14px;
  }

  .slot-period + .slot-period {
    margin-top: 22px;
  }

  .slot-period h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
  }

  .slot-period h3::after {
    flex: 1;
    height: 1px;
    background: var(--border);
    content: "";
  }

  .mobile-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .mobile-slot-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 50px;
    padding: 8px 5px;
    border: 1px solid #a8dfe2;
    border-radius: 3px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-slot-button[data-status="limited"] {
    border-color: #a8d1f4;
    color: var(--text);
  }

  .mobile-slot-button.is-selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
  }

  .mobile-slot-button:disabled {
    border-color: #e4eaec;
    background: #f6f8f9;
    color: #adb6ba;
    cursor: not-allowed;
  }

  .mobile-slot-button:disabled .slot-mark {
    color: #adb6ba;
  }

  .mobile-empty-slots {
    padding: 34px 12px;
    color: var(--text-soft);
    font-size: 13px;
    text-align: center;
  }

  .selection-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 11px max(12px, env(safe-area-inset-right)) calc(11px + env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    border: 0;
    border-top: 2px solid var(--primary);
    border-radius: 0;
  }

  .selection-details strong {
    font-size: 13px;
  }

  .selection-details small {
    font-size: 10px;
  }

  .selection-bar .button {
    min-height: 48px;
    padding: 11px 16px;
    font-size: 13px;
  }

  body:has(.selection-bar:not([hidden])) {
    padding-bottom: 86px;
  }

  .hold-notice {
    align-items: flex-start;
    font-size: 11px;
  }

  .hold-notice > div {
    align-items: flex-start;
  }

  .booking-summary {
    grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr);
  }

  .booking-summary > div + div {
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .form-section {
    padding: 12px 10px;
  }

  .form-field + .form-field {
    margin-top: 8px;
  }

  .profile-fields .form-field {
    margin-top: 0;
  }

  .form-field input,
  .form-field select,
  .gender-buttons span {
    min-height: 36px;
  }

  .form-field input,
  .form-field select {
    padding: 5px 9px;
    font-size: 14px;
  }

  .form-field small {
    font-size: 10px;
  }

  .policy-modal {
    width: calc(100vw - 18px);
    height: 88dvh;
  }

  .policy-modal-content {
    padding: 14px 15px 24px;
  }

  .review-list > div {
    grid-template-columns: 1fr;
  }

  .review-list dt {
    padding: 10px 14px 2px;
    background: #fff;
  }

  .review-list dd {
    padding: 2px 14px 12px;
  }
}

@media (max-width: 390px) {
  .step-label {
    font-size: 11px;
  }

  .selection-details small {
    display: none;
  }

  .selection-bar .button {
    padding-inline: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
