/* A quiet app surface: system type, grouped choices and one action color. */
html:root { background: #fff; }

.customer-app {
  --line: #e5e5ea;
  --customer-bg: #fff;
  --customer-panel: #fff;
  --customer-ink: #1c1c1e;
  --customer-muted: #6e6e73;
  --customer-line: #e5e5ea;
  --customer-soft: #f5f5f7;
  --customer-accent: #0066cc;
  --customer-accent-soft: #eaf3ff;
  /* One check mark for every round tick: drawn on the 24px circle's own grid and centered on it. */
  --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.2 12.3l3.2 3.2 6.4-6.9' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  min-width: 0;
  background: var(--customer-bg);
  color: var(--customer-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.5;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.customer-app :focus-visible {
  outline-color: #0066cc;
}

.customer-app .customer-header {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: none;
  min-height: 56px;
  padding: 6px max(20px, calc((100% - 600px) / 2));
  border-bottom: 1px solid var(--customer-line);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.customer-app .booking-kicker,
.customer-app .step-heading > p:first-child {
  color: var(--customer-muted);
}

.customer-app .customer-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--customer-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.customer-app .header-link {
  border: 0;
  background: transparent;
  color: var(--customer-accent);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 0 8px 12px;
}

.customer-app .customer-shell,
.customer-app .mypage-shell {
  width: min(100%, 600px);
  margin-inline: auto;
  padding-inline: 20px;
}

.customer-app .booking-intro {
  padding: 28px 4px 18px;
}

.customer-app .booking-intro h1,
.customer-app .booking-success h2,
.customer-app .customer-page-title,
.customer-app .step-heading h2,
.customer-app .step-heading h3,
.customer-app .dialog-card h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
}

.customer-app .booking-intro h1,
.customer-app .booking-success h2,
.customer-app .customer-page-title {
  font-size: clamp(32px, 7vw, 38px);
  line-height: 1.18;
  text-wrap: balance;
}

.customer-app .step-heading h2 {
  font-size: clamp(22px, 5vw, 25px);
  text-wrap: balance;
}
.customer-app .step-heading h3 { font-size: 18px; }
.customer-app .booking-intro > p:last-of-type { margin-top: 7px; font-size: 14px; line-height: 1.5; }

.customer-app .reassurance-list { gap: 5px 15px; margin-top: 14px; }

.customer-app .reassurance-list li {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--customer-muted);
  font-size: 12px;
  font-weight: 500;
}

.customer-app .booking-progress {
  position: static;
  margin: 0 0 22px;
  padding: 0;
  border-bottom: 1px solid var(--customer-line);
  background: #fff;
  backdrop-filter: none;
}

.customer-app .booking-progress ol { gap: 4px; }

.customer-app .progress-step {
  min-height: 52px;
  padding: 7px 1px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--customer-muted);
  font-size: 12px;
  font-weight: 500;
}

.customer-app .progress-step.is-current {
  border-bottom-color: var(--customer-accent);
  background: transparent;
  color: var(--customer-accent);
}

.customer-app .progress-step:disabled { opacity: .65; }

.customer-app .progress-step span { font-size: 11px; font-weight: 500; }

.customer-app .booking-step,
.customer-app .booking-success,
.customer-app .mypage-card {
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.customer-app .booking-step {
  padding: 0 4px 24px;
  background: transparent;
}
.customer-app .booking-success { padding: 24px 4px 40px; }
.customer-app .step-heading > p:first-child { font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.customer-app .step-heading h2,
.customer-app .step-heading h3 { line-height: 1.25; }
.customer-app .step-heading > p:last-child { margin-top: 7px; font-size: 14px; line-height: 1.5; }

.customer-app .menu-guide,
.customer-app .other-date,
.customer-app .choice-fieldset,
.customer-app .history-questions,
.customer-app .policy-summary,
.customer-app .confirm-details {
  border: 1px solid var(--customer-line);
  border-radius: 14px;
  background: #fff;
}

.customer-app .menu-guide {
  margin: 20px 0 18px;
  border: 0;
  background: var(--customer-soft);
}

.customer-app .menu-guide > summary,
.customer-app .other-date > summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--customer-accent);
  text-wrap: balance;
}

.customer-app .menu-guide > summary::after,
.customer-app .other-date > summary::after { font-size: 19px; font-weight: 400; }
.customer-app .menu-guide-body { font-size: 14px; }

.customer-app .purpose-grid button,
.customer-app .guide-candidates button,
.customer-app .option-choice,
.customer-app .choice-fieldset label,
.customer-app .segmented span,
.customer-app .change-button {
  border-color: var(--customer-line);
  border-radius: 11px;
  font-weight: 500;
}

.customer-app .purpose-grid button[aria-pressed="true"],
.customer-app .segmented input:checked + span {
  border-color: var(--customer-accent);
  background: var(--customer-accent);
  color: #fff;
}

.customer-app .guide-result {
  border-top: 1px solid var(--customer-line);
  border-radius: 0;
  background: #fff;
}
.customer-app .guide-candidates button,
.customer-app .menu-details summary,
.customer-app .text-back,
.customer-app .change-button { color: var(--customer-accent); }

.customer-app .menu-list {
  display: block;
  overflow: hidden;
  border: 1px solid var(--customer-line);
  border-radius: 14px;
  background: #fff;
}

.customer-app .menu-card {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  scroll-margin-top: 64px;
}
.customer-app .menu-card + .menu-card { border-top: 1px solid var(--customer-line); }

.customer-app .menu-card.is-selected {
  box-shadow: inset 3px 0 0 var(--customer-accent);
}

.customer-app .menu-select {
  grid-template-columns: minmax(0, 1fr) 24px;
  grid-template-areas: "name check" "description check" "facts check";
  column-gap: 12px;
  padding: 15px 16px 11px;
  border-radius: 0;
}
.customer-app .menu-select:hover { background: #f9f9fb; }
.customer-app .menu-name { grid-area: name; font-size: 16px; font-weight: 600; line-height: 1.4; }
.customer-app .menu-for { grid-area: description; margin-top: 3px; color: var(--customer-muted); font-size: 13px; line-height: 1.45; }
.customer-app .menu-facts { grid-area: facts; margin-top: 9px; gap: 10px; }
.customer-app .menu-facts strong { font-size: 16px; font-weight: 700; }
.customer-app .menu-facts span,
.customer-app .select-label { font-weight: 500; }
.customer-app .menu-facts span { font-size: 12px; }
.customer-app .select-label {
  grid-area: check;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #aeaeb2;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 0;
}
/* The label's hidden text is a grid item of its own, so the mark is a background, not a child. */
.customer-app .menu-card.is-selected .select-label {
  border-color: var(--customer-accent);
  background: var(--customer-accent) var(--check-mark) center / 100% 100% no-repeat border-box;
  color: transparent;
}
.customer-app .menu-details { border-top: 0; }
.customer-app .menu-details summary { min-height: 36px; padding: 5px 16px 9px; font-size: 13px; font-weight: 500; }
.customer-app .menu-details p { font-size: 13px; }

.customer-app .menu-options {
  margin: 0;
  padding: 18px 18px 8px;
  border-top: 1px solid var(--customer-line);
  background: #fff;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.customer-app .menu-options .step-heading { margin-bottom: 10px; }
.customer-app .menu-options .step-heading > p:first-child { color: var(--customer-muted); font-size: 12px; }
.customer-app .menu-options .step-heading h3 { font-size: 17px; }
.customer-app .menu-options .step-heading > p:last-child { margin-top: 4px; font-size: 13px; }
.customer-app .menu-options .option-list { display: block; margin: 0; }
.customer-app .menu-options .option-choice {
  min-width: 0;
  min-height: 68px;
  padding: 12px 2px;
  border: 0;
  border-top: 1px solid var(--customer-line);
  border-radius: 0;
  background: #fff;
  font-weight: 400;
}
.customer-app .menu-options .option-choice > span { min-width: 0; }
.customer-app .menu-options .option-choice strong { font-size: 15px; font-weight: 600; }
.customer-app .menu-options .option-choice small { font-size: 12px; line-height: 1.5; }
.customer-app .menu-options .option-choice em { color: var(--customer-muted); font-size: 13px; font-weight: 500; }

.customer-app .menu-options .option-choice input[type="checkbox"] {
  appearance: none;
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1.5px solid #aeaeb2;
  border-radius: 50%;
  background: #fff;
}

.customer-app .menu-options .option-choice input[type="checkbox"]:checked {
  border-color: var(--customer-accent);
  background: var(--customer-accent) var(--check-mark) center / 100% 100% no-repeat border-box;
}

/* A short pop when a circle fills, like iOS's selection ticks. */
@media (prefers-reduced-motion: no-preference) {
  .customer-app .menu-card.is-selected .select-label,
  .customer-app .menu-options .option-choice input[type="checkbox"]:checked {
    animation: check-pop .32s cubic-bezier(.32, .72, 0, 1);
  }
}
@keyframes check-pop {
  0% { transform: scale(.72); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.customer-app .menu-options .option-choice input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--customer-accent);
  outline-offset: 2px;
}

.customer-app .option-choice input,
.customer-app .consent-row input,
.customer-app .choice-fieldset input { accent-color: var(--customer-accent); }

.customer-app .btn {
  border-radius: 12px;
  font-weight: 600;
  transition: background-color .18s ease, transform .18s ease;
}

.customer-app .btn:active:not(:disabled) { transform: scale(.99); }
.customer-app .btn.block { border-radius: 12px; }

.customer-app .btn.primary {
  border-color: var(--customer-accent);
  background: var(--customer-accent);
  color: #fff;
}

.customer-app .btn.secondary {
  border-color: var(--customer-line);
  background: var(--customer-soft);
  color: var(--customer-accent);
}

.customer-app .btn:disabled {
  border-color: transparent;
  background: #e8e8ed;
  color: var(--customer-muted);
}

.customer-app .step-actions { margin-top: 24px; padding-top: 20px; border-color: var(--customer-line); }
.customer-app .text-back { margin-bottom: 14px; font-size: 14px; font-weight: 500; text-decoration: none; }

.customer-app .selection-recap {
  gap: 0;
  background: var(--customer-soft);
  border: 0;
}
.customer-app .selection-recap > div { background: var(--customer-soft); }
.customer-app .selection-recap > div + div { border-left: 1px solid var(--customer-line); }

.customer-app .date-choice,
.customer-app .time-choice,
.customer-app .change-slot span {
  border: 1px solid var(--customer-line);
  border-radius: 11px;
  background: #fff;
  color: var(--customer-ink);
  font-weight: 500;
}

.customer-app .date-choice[data-status="open"] {
  border-color: var(--customer-line);
  background: #fff;
}

.customer-app .date-choice[data-status="few"] {
  border-color: var(--customer-line);
  background: #fff;
}

.customer-app .date-choice[data-status="open"] small { color: #26804d; }
.customer-app .date-choice[data-status="few"] small { color: #9a6700; }

.customer-app .date-choice[data-status="full"],
.customer-app .date-choice[data-status="error"] {
  background: var(--customer-soft);
  color: var(--customer-muted);
}

.customer-app .date-choice.is-selected,
.customer-app .time-choice.is-selected,
.customer-app .change-slot input:checked + span {
  border-color: var(--customer-accent);
  background: var(--customer-accent);
  color: #fff;
  box-shadow: none;
}
.customer-app .date-choice.is-selected small { color: #fff; }

.customer-app #slots.time-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.customer-app .time-period h4 {
  margin: 0 0 8px;
  color: var(--customer-muted);
  font-size: 13px;
  font-weight: 600;
}

.customer-app .time-period-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.customer-app .date-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.customer-app .date-choice { min-width: 0; }
.customer-app .time-choice { min-height: 48px; font-size: 15px; }

.customer-app .alternative-slots {
  border-width: 1px;
  border-color: #d7bd79;
  background: #fffaf0;
}

.customer-app .field > span,
.customer-app .choice-fieldset legend,
.customer-app .history-questions legend { font-weight: 600; }

.customer-app .field input,
.customer-app .field select,
.customer-app .field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--customer-soft);
  color: var(--customer-ink);
  font-size: 16px;
}

.customer-app .field input:focus,
.customer-app .field select:focus,
.customer-app .field textarea:focus {
  border-color: var(--customer-accent);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, .18);
}

.customer-app .field .saved-profile-field:disabled {
  opacity: 1;
  color: var(--customer-ink);
  -webkit-text-fill-color: var(--customer-ink);
  background: var(--customer-soft);
}

.customer-app .field > span { font-size: 14px; }
.customer-app .field em { border-radius: 4px; background: #fce8e7; color: #b42318; font-size: 11px; font-weight: 600; }
.customer-app .field-help { font-size: 12px; line-height: 1.5; }
.customer-app .form-grid { gap: 16px; }

.customer-app .field [aria-invalid="true"] { border-color: var(--customer-error); }

/* Native iPhone date controls must be allowed to shrink inside every form field. */
.customer-app .field input[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.customer-app .field input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }

.customer-app .booking-conflict-notice {
  margin: 16px 0 20px;
  padding: 14px 16px;
  border: 1px solid #c7665f;
  border-radius: 10px;
  background: #fff;
  color: #8a231d;
  font-size: 16px;
  font-weight: 600;
}

.customer-app .confirm-section.highlight {
  border-left: 0;
  background: var(--customer-soft);
}
.customer-app .consent-row { border-width: 1px; border-color: var(--customer-line); font-size: 14px; font-weight: 500; }
.customer-app .privacy-note,
.customer-app .card-note,
.customer-app .future-feature,
.customer-app .notice.calm {
  border: 0;
  background: var(--customer-soft);
}

.customer-app .privacy-note,
.customer-app .card-note,
.customer-app .future-feature { font-size: 13px; }
.customer-app .policy-summary h3 { font-size: 18px; }
.customer-app .policy-summary p,
.customer-app .policy-summary dl { font-size: 13px; }

.customer-app .booking-bar {
  border-top-color: var(--customer-line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: none;
}

.customer-app .booking-bar-inner { width: min(100%, 560px); }
.customer-app .booking-bar strong { font-size: 17px; }

.customer-app:not(.booking-page) { padding-bottom: 16px; }
.customer-app .mypage-shell { padding-top: 0; padding-bottom: 40px; }
.customer-app .mypage-hero { margin: 0; padding: 28px 4px 14px; }
.customer-app .mypage-hero p { margin: 7px 0 0; font-size: 14px; }
.customer-app .mypage-card {
  margin-top: 14px;
  padding: 19px;
  border: 1px solid var(--customer-line);
  border-radius: 14px;
  background: #fff;
}
.customer-app .mypage-card h2 { margin-bottom: 10px; font-size: 18px; font-weight: 700; }
.customer-app .mypage-card > p { font-size: 13px; }
.customer-app .login-card { display: grid; gap: 12px; }
.customer-app .login-card h2,
.customer-app .login-card p { margin: 0; }
.customer-app .login-card > button.btn.secondary:disabled { display: none; }
.customer-app .login-card .btn.secondary { background: #fff; }

.customer-app .next-booking-card {
  padding: 20px;
  border: 1px solid var(--customer-line);
  border-radius: 14px;
  background: #fff;
}

.customer-app .next-booking-card h2 { margin: 2px 0 14px; font-size: 23px; font-weight: 700; line-height: 1.3; }

.customer-app .mypage-card .card {
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--customer-line);
  border-radius: 0;
  background: transparent;
}

.customer-app .mypage-card .card:first-of-type { border-top: 0; }
.customer-app .summary-list > div { border-bottom-color: var(--customer-line); }
.customer-app .summary-list > div:last-child { border-bottom: 0; }
.customer-app .summary-list dt { color: var(--customer-muted); }
.customer-app .option > span:first-child { min-width: 0; flex: 1; }
.customer-app .option .pill { flex: none; white-space: nowrap; }

.customer-app .future-list li {
  border: 0;
  border-top: 1px solid var(--customer-line);
  border-radius: 0;
  background: transparent;
  color: var(--customer-muted);
}

.customer-app .mypage-card .btn:disabled {
  border: 0;
  background: #e8e8ed;
}

.customer-app .cancellation-dialog {
  border-radius: 18px;
  color: var(--customer-ink);
}

.customer-app .cancellation-dialog::backdrop { background: rgba(29, 29, 31, .55); }
.customer-app .admin-fieldset { border-color: var(--customer-line); }
.customer-app .safe-actions { border-top-color: var(--customer-line); box-shadow: none; }
.customer-app .cancel-fee { background: #fff3f2; }

@media (max-width: 700px) {
  .customer-app .customer-header { padding-inline: 18px; }
  .customer-app .customer-shell,
  .customer-app .mypage-shell { padding-inline: 18px; }
  .customer-app .booking-intro { padding-block: 22px 16px; }
  .customer-app .menu-options { padding: 16px 16px 8px; }
  .customer-app .date-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    padding: 3px 3px 10px;
    scrollbar-width: thin;
  }
  .customer-app .date-choice {
    flex: 0 0 90px;
    min-height: 78px;
    padding: 7px 4px;
    border-width: 1px;
    scroll-snap-align: start;
  }
  .customer-app .date-choice span {
    color: var(--customer-muted);
    font-size: 11px;
    line-height: 1.3;
  }
  .customer-app .date-choice strong {
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
  }
  .customer-app .date-choice small {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
  }
  .customer-app .date-choice[data-status="open"] { border-color: #b9d4c2; }
  .customer-app .date-choice[data-status="few"] { border-color: #e5cf98; }
  .customer-app .date-choice[data-status="full"],
  .customer-app .date-choice[data-status="error"] { background: #f7f7f8; }
  .customer-app .date-choice.is-selected { border-color: var(--customer-accent); }
  .customer-app .date-choice.is-selected span { color: #fff; }
  .customer-app .booking-step,
  .customer-app .booking-success,
  .customer-app .mypage-card { border-radius: 14px; }
  .customer-app .booking-step { padding-inline: 2px; }
  .customer-app .mypage-card,
  .customer-app .next-booking-card { padding: 18px 16px; }
  .customer-app .selection-recap > div + div { border-top: 1px solid var(--customer-line); }
  .customer-app .selection-recap > div:nth-child(2) { border-left: 0; }
}

@media (max-width: 360px) {
  .customer-app .booking-intro h1 { font-size: 32px; }
  .customer-app .step-heading h2 { font-size: 22px; }
}
