/* Shared reservation presentation. Native dialog and search behavior stay intact. */
.is-reservation-modal-open {
  overflow: hidden;
}

.reservation-search-modal {
  background: transparent;
  border: 0;
  color: var(--ink);
  margin: auto;
  max-height: calc(100svh - 48px);
  max-width: min(760px, calc(100vw - 48px));
  overflow: visible;
  padding: 0;
  width: 100%;
}

.reservation-search-modal[open] {
  display: block;
}

.reservation-search-modal::backdrop {
  background: rgba(47, 47, 47, 0.58);
}

.reservation-search-modal-panel {
  --reservation-chevron: url("/assets/icons/lucide/source/chevron-right.svg");
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  font-family: Inter, "Zen Kaku Gothic New", sans-serif;
  letter-spacing: 0;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100svh - 48px);
  overflow: hidden;
}

.reservation-search-modal-header {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  min-height: 76px;
  padding: 14px 24px;
}

.reservation-search-modal-header > div {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  text-align: left;
}

.reservation-search-modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 34px;
  margin: 0;
}

.reservation-search-modal-icon,
.reservation-search-modal-change,
.reservation-search-results-footer button,
.reservation-search-results-footer a,
.reservation-search-modal-footer button {
  appearance: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  border-radius: 4px;
}

.reservation-search-modal-icon {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  grid-column: 3;
  grid-row: 1;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.reservation-search-modal-icon svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  width: 20px;
}

.reservation-search-modal-change {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  grid-column: 2;
  grid-row: 1;
  min-height: 48px;
  padding: 12px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reservation-search-modal-search,
.reservation-search-modal-results {
  min-height: 0;
}

.reservation-search-form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100svh - 124px);
  min-height: 0;
}

/* The sheet keeps the height it opened with (lockSheetHeight); the search fills it, so opening 子ども scrolls the
   fields and the button stays in sight (owner 11/1: it slid out of the sheet). */
.reservation-search-modal-search:not([hidden]) { display: grid; grid-template-rows: minmax(0, 1fr); }
/* 人数を変更 keeps the ages open (reservation-modal.js is-fixed): 子ども reads as a heading, not a toggle. */
.reservation-search-modal .reservation-search-children.is-fixed summary { pointer-events: none; cursor: default; }
.reservation-search-modal .reservation-search-children.is-fixed summary::after { content: none; }

.reservation-search-modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  /* Both edges, so a desktop scrollbar's gutter doesn't push the fields off centre (owner 11/1). */
  scrollbar-gutter: stable both-edges;
}

.reservation-search-modal-intro {
  margin-bottom: 24px;
}

.reservation-search-modal-intro > p {
  display: none;
}

.reservation-search-modal-intro h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 24px;
  margin: 0;
}

/* The heading and field names already say it (owner 10/12: a shorter form). */
.reservation-search-modal-intro > span {
  display: none;
}

/* Rooms come last, after the children's ages (reservation-modal.js). */
.reservation-search-children ~ .reservation-search-field {
  margin-top: 12px;
}

.reservation-search-fields,
.reservation-search-child-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reservation-search-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  position: relative;
}

.reservation-search-field.is-wide {
  grid-column: 1 / -1;
}

.reservation-search-field > span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.reservation-search-field input,
.reservation-search-field select {
  appearance: none;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  height: 48px;
  line-height: 24px;
  min-width: 0;
  padding: 0 16px;
  width: 100%;
}

.reservation-search-field select {
  background-image: none;
  padding-right: 44px;
}

.reservation-search-field:has(select)::after {
  background: var(--ink);
  bottom: 14px;
  content: "";
  height: 20px;
  mask: var(--reservation-chevron) center / contain no-repeat;
  pointer-events: none;
  position: absolute;
  right: 14px;
  transform: rotate(90deg);
  width: 20px;
}

.reservation-search-field input[type="date"]::-webkit-calendar-picker-indicator {
  background: url("/assets/icons/lucide/source/calendar-check.svg") center / contain no-repeat;
  cursor: pointer;
  height: 20px;
  opacity: 1;
  padding: 0;
  width: 20px;
}

.reservation-search-field input:focus-visible,
.reservation-search-field select:focus-visible,
.reservation-search-modal button:focus-visible,
.reservation-search-modal a:focus-visible,
.reservation-search-children summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* Until the keyboard moves inside the dialog (reservation-modal.js is-keyboard), no rings (owner 11/1). */
.reservation-search-modal:not(.is-keyboard) :focus-visible { outline: none; }

.reservation-search-children {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.reservation-search-children summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 72px;
  padding: 12px 2px;
}

.reservation-search-children summary::after {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: var(--ink);
  mask: var(--reservation-chevron) center / contain no-repeat;
  transform: rotate(90deg);
}

.reservation-search-children[open] summary::after {
  transform: rotate(-90deg);
}

.reservation-search-children summary::-webkit-details-marker {
  display: none;
}

.reservation-search-children summary > span:first-child {
  display: grid;
  gap: 2px;
}

.reservation-search-children summary strong {
  font-size: 16px;
  font-weight: 500;
}

.reservation-search-children summary small,
.reservation-search-children summary > span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.reservation-search-children summary > span:last-child {
  color: var(--ink);
  font-family: inherit;
  font-weight: 400;
  margin-left: auto;
}

.reservation-search-child-grid {
  padding: 2px 0 22px;
}

.reservation-search-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 16px 0 0;
}

.reservation-search-modal-footer {
  align-items: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
}

.reservation-search-modal-footer p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.reservation-search-modal-footer p span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.reservation-search-modal-footer p strong {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

.reservation-search-modal-footer button {
  background: var(--ink);
  border: 0;
  color: var(--paper);
  cursor: pointer;
  height: 44px;
  padding: 0 24px;
}

.reservation-search-modal-results {
  background: var(--surface);
  display: grid;
  grid-template-rows: minmax(420px, 1fr) auto;
  height: min(760px, calc(100svh - 124px));
  position: relative;
}

.reservation-search-modal-results[hidden],
.reservation-search-modal-search[hidden],
.reservation-search-modal-change[hidden],
.reservation-search-results-loading[hidden] {
  display: none !important;
}

.reservation-search-modal-results iframe {
  background: var(--paper);
  border: 0;
  height: 100%;
  min-height: 0;
  width: 100%;
}

.reservation-search-results-loading {
  align-items: center;
  background: var(--paper);
  color: var(--muted);
  display: flex;
  font-size: 14px;
  inset: 0 0 69px;
  justify-content: center;
  position: absolute;
  z-index: 1;
}

.reservation-search-results-footer {
  align-items: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  min-height: 69px;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
}

.reservation-search-results-footer button,
.reservation-search-results-footer a {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0 20px;
  text-decoration: none;
}

.reservation-search-results-footer a {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

@media (max-width: 640px) {
  .reservation-search-modal {
    margin: auto 0 0;
    max-height: calc(100svh - 40px);
    max-width: none;
    width: 100%;
  }

  .reservation-search-modal-panel {
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    border-right: 0;
    max-height: calc(100svh - 40px);
  }

  .reservation-search-modal-header {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    min-height: 68px;
    padding: 10px 20px;
  }

  .reservation-search-modal-header h2 {
    font-size: 20px;
    line-height: 30px;
  }

  .reservation-search-form {
    max-height: calc(100svh - 108px);
  }

  .reservation-search-modal-body {
    padding: 22px 20px 20px;
  }

  .reservation-search-modal-intro {
    margin-bottom: 20px;
  }

  .reservation-search-fields,
  .reservation-search-child-grid {
    gap: 14px 12px;
  }

  .reservation-search-field input,
  .reservation-search-field select {
    padding-left: 13px;
  }

  .reservation-search-child-grid {
    grid-template-columns: 1fr;
  }

  .reservation-search-modal-footer {
    gap: 12px;
    grid-template-columns: 1fr;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  }

  .reservation-search-modal-footer p {
    display: none;
  }

  .reservation-search-modal-footer button {
    width: 100%;
  }

  .reservation-search-modal-results {
    grid-template-rows: minmax(0, 1fr) auto;
    height: calc(100svh - 108px);
  }

  .reservation-search-results-loading {
    bottom: 66px;
  }

  .reservation-search-results-footer {
    justify-content: stretch;
    min-height: 66px;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  }

  .reservation-search-results-footer button,
  .reservation-search-results-footer a {
    flex: 1 1 0;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reservation-search-modal,
  .reservation-search-modal::backdrop {
    scroll-behavior: auto;
  }
}

/* Search view in TOP's tone (owner, 2026-10-06; CSS only, the markup is shared by every page):
   12px-round fields on the BUB grey without hard borders, bold small labels, 子ども as the same kind of
   field, a 12px-round full-width ink button, and wording that wraps at phrases. */
.reservation-search-modal-panel { border-radius: 16px; }
.reservation-search-modal-header h2 { font-size: 20px; line-height: 30px; }
.reservation-search-modal-intro h3 { font-size: 18px; line-height: 28px; font-weight: 700; }
.reservation-search-modal-intro > span, .reservation-search-note { text-wrap: pretty; }
.reservation-search-field { gap: 6px; }
.reservation-search-field > span { color: rgb(47 47 47 / 72%); font-size: 13px; line-height: 18px; font-weight: 700; }
.reservation-search-field input,
.reservation-search-field select { height: 52px; border: 1px solid transparent; border-radius: 12px; background-color: #eef1f1; font-weight: 500; }
.reservation-search-field input:hover,
.reservation-search-field select:hover { border-color: rgb(47 47 47 / 16%); }
.reservation-search-field:has(select)::after { bottom: 16px; }
.reservation-search-children { margin-top: 16px; border: 0; border-radius: 12px; background: #eef1f1; }
.reservation-search-children summary { min-height: 60px; padding: 10px 16px; }
.reservation-search-children summary strong { font-size: 15px; font-weight: 700; }
.reservation-search-children summary > span:last-child { font-weight: 700; }
/* Right padding as the 大人 row's (12px), so every − and + sits in one column (owner 11/1). */
.reservation-search-child-grid { padding: 0 12px 16px 16px; }
.reservation-search-child-grid .reservation-search-field input,
.reservation-search-child-grid .reservation-search-field select { background-color: #fcfcfc; }
.reservation-search-note { font-size: 12px; line-height: 20px; }
.reservation-search-modal-footer button { height: 52px; border-radius: 12px; font-size: 15px; font-weight: 700; }
/* The dialog opens with focus on 閉じる; its ring is a soft round one, not a hard black box. */
.reservation-search-modal-icon { border-radius: 12px; }
.reservation-search-modal .reservation-search-modal-icon:focus-visible { outline: 2px solid rgb(47 47 47 / 35%); outline-offset: -2px; }
/* The results view's two actions follow the same buttons. */
.reservation-search-results-footer button,
.reservation-search-results-footer a { min-height: 48px; border-radius: 12px; font-weight: 700; }

/* Counts as app steppers (reservation-modal.js enhanceStepper): one row per count — label at left,
   − value ＋ at right — on the BUB grey. The select stays in the form, visually hidden. */
.reservation-search-field.has-stepper { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 12px 0 16px; border-radius: 12px; background: #eef1f1; }
.reservation-search-field.has-stepper::after { content: none; }
.reservation-search-field.has-stepper > span { color: #2f2f2f; font-size: 15px; line-height: 22px; }
.reservation-search-field.has-stepper > select { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.reservation-stepper { display: flex; align-items: center; gap: 4px; }
.reservation-stepper-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgb(47 47 47 / 22%); border-radius: 50%; background: #fcfcfc; color: #2f2f2f; font: 400 20px/1 Inter, sans-serif; cursor: pointer; transition: background-color var(--feedback-duration, 150ms) ease; }
.reservation-stepper-button:active:not(:disabled) { background: #e7ecec; }
.reservation-stepper-button:disabled { opacity: .3; cursor: default; }
.reservation-stepper-value { min-width: 3.2em; color: #2f2f2f; font-size: 16px; line-height: 24px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.reservation-search-child-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.reservation-search-child-grid .reservation-search-field.has-stepper { min-height: 56px; padding: 0; border-top: 1px solid rgb(47 47 47 / 10%); border-radius: 0; background: none; }
.reservation-search-child-grid .reservation-search-field.has-stepper > span { color: rgb(47 47 47 / 80%); font-size: 14px; }
.reservation-search-fields { row-gap: 10px; }
@media (hover: hover) { .reservation-stepper-button:hover:not(:disabled) { background: #e7ecec; } }
.reservation-search-modal-intro > span, .reservation-search-note { word-break: auto-phrase; }
/* One sentence per line (reservation-modal.js splits the note; owner 2026-10-19). */
.reservation-search-note > span:not([hidden]) { display: block; }
/* Shown when a room reaches 6 people (reservation-modal.js ROOM_CAPACITY). */
.reservation-capacity-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #eef1f1; color: #2f2f2f; font-size: 14px; line-height: 20px; font-weight: 700; word-break: auto-phrase; text-wrap: pretty; }
.reservation-capacity-note[hidden] { display: none; }


/* A shorter form (owner 10/12): facility and check-in side by side, lower fields and steppers, so the
   whole form sits in the lower half of a phone. */
.reservation-search-modal-intro { margin-bottom: 12px; }
.reservation-search-fields { gap: 10px; }
.reservation-search-fields > .reservation-search-field.is-wide { grid-column: auto; }
.reservation-search-field.is-wide > span { font-size: 12px; line-height: 16px; }
.reservation-search-field input,
.reservation-search-field select { height: 44px; }
.reservation-search-field:has(select)::after { bottom: 12px; }
.reservation-search-field.has-stepper { min-height: 52px; }
.reservation-stepper-button { width: 36px; height: 36px; }
.reservation-search-children { margin-top: 10px; }
.reservation-search-children summary { min-height: 52px; padding: 6px 16px; }
.reservation-search-child-grid .reservation-search-field.has-stepper { min-height: 46px; }
.reservation-search-children ~ .reservation-search-field { margin-top: 10px; }

/* The plain 選択中 line stays hidden (the stay line that replaced it went on 10/30). */
.reservation-search-modal-footer > p:has([data-reservation-condition-summary]) { display: none; }
/* With no stay line (owner 10/30) the footer is the search button alone: full width on a phone, centred on a
   wider sheet. */
.reservation-search-modal-footer { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 641px) { .reservation-search-modal-footer button { justify-self: center; width: min(100%, 320px); } }

/* Results: a date in the calendar already opens the booking site, and 条件を変更 sits in the header, so the
   footer's 予約を続ける / 条件を変更 pair only repeated them (owner, 2026-10-13). */
.reservation-search-results-footer { display: none !important; }
/* The search behind the results (reservation-modal.js renderResultsSummary), above the loading cover. */
.reservation-search-modal-results:has(> .reservation-results-summary) { grid-template-rows: auto minmax(0, 1fr) auto; }
.reservation-results-summary { position: relative; z-index: 2; margin: 0; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--paper); color: rgb(47 47 47 / 72%); font-size: 13px; line-height: 20px; }

/* 宿泊 / 日帰り (reservation-modal.js setStayType, 2026-10-29): two halves of one track above the fields,
   the chosen one raised like the stepper buttons. 日帰り hides 客室数 and goes to the facility's day plans. */
.reservation-stay-type { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: 12px; background: #eef1f1; }
.reservation-stay-type button { position: relative; z-index: 1; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: rgb(47 47 47 / 56%); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: color .25s ease; }
.reservation-stay-type button[aria-checked="true"] { color: #2f2f2f; }
/* The chosen half is a thumb that springs across (overshoot easing) while the script squashes it. */
.reservation-stay-type-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 9px; background: #fcfcfc; box-shadow: 0 1px 3px rgb(47 47 47 / 14%); translate: 0 0; transition: translate .52s cubic-bezier(.34, 1.56, .64, 1); }
.reservation-stay-type[data-stay="day"] .reservation-stay-type-thumb { translate: calc(100% + 4px) 0; }
@media (prefers-reduced-motion: reduce) { .reservation-stay-type-thumb, .reservation-stay-type button { transition: none; } }
.reservation-search-field[hidden] { display: none; }

/* 日帰り: one line under 施設・ご利用日 with the chosen facility's hours (reservation-modal.js renderDayPlan). */
.reservation-day-plan { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 0; padding: 0 2px; color: rgb(47 47 47 / 64%); font-size: 13px; line-height: 20px; }
.reservation-day-plan[hidden] { display: none; }
.reservation-day-plan b { color: #2f2f2f; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Calmer form (owner 2026-10-29 「어수선」): five grey boxes of equal weight and two label systems.
   The 宿泊 / 日帰り switch becomes text tabs over a hairline with a springing underline, so choosing no longer
   looks like typing; 施設 and ご利用日 carry their names inside the box like 大人・子ども; the question heading
   gives way to the tabs; the 日帰り line starts where the boxes' text starts. */
.reservation-search-modal-body:has(.reservation-stay-type) .reservation-search-modal-intro { display: none; }
.reservation-stay-type { gap: 0; margin: 0 0 14px; padding: 0; border-radius: 0; background: transparent; border-bottom: 1px solid rgb(47 47 47 / 12%); }
.reservation-stay-type button { min-height: 46px; border-radius: 0; color: rgb(47 47 47 / 46%); font-size: 15px; }
.reservation-stay-type-thumb { top: auto; bottom: -1px; left: 0; width: 50%; height: 2px; border-radius: 2px; background: #2f2f2f; box-shadow: none; }
.reservation-stay-type[data-stay="day"] .reservation-stay-type-thumb { translate: 100% 0; }
.reservation-search-fields > .reservation-search-field.is-wide { gap: 0; padding: 8px 16px 6px; border: 1px solid transparent; border-radius: 12px; background: #eef1f1; }
.reservation-search-fields > .reservation-search-field.is-wide:hover { border-color: rgb(47 47 47 / 16%); }
.reservation-search-fields > .reservation-search-field.is-wide > span { color: rgb(47 47 47 / 60%); font-size: 11px; line-height: 16px; font-weight: 700; }
.reservation-search-fields > .reservation-search-field.is-wide input,
.reservation-search-fields > .reservation-search-field.is-wide select { height: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; font-weight: 700; }
.reservation-search-fields > .reservation-search-field.is-wide input:focus-visible,
.reservation-search-fields > .reservation-search-field.is-wide select:focus-visible { outline: none; }
.reservation-search-fields > .reservation-search-field.is-wide:focus-within { outline: 2px solid #2f2f2f; outline-offset: 2px; }
.reservation-search-fields > .reservation-search-field.is-wide:has(select)::after { bottom: 12px; right: 14px; }
.reservation-day-plan { padding: 0 16px; }

/* Steppers as bare signs (owner 2026-10-29): no disc and no ring on the grey box, the number leads. A tap
   bounces the sign twice inside a brief soft circle (reservation-modal.js adds .is-bump); a step that cannot be
   taken only fades. The 40px hit area stays. */
.reservation-stepper-button { border-color: transparent; background: transparent; color: rgb(47 47 47 / 72%); box-shadow: none; }
.reservation-stepper-button:disabled { opacity: .22; }
.reservation-stepper-button:active:not(:disabled) { background: transparent; }
@media (hover: hover) { .reservation-stepper-button:hover:not(:disabled) { background: rgb(47 47 47 / 6%); } }
.reservation-stepper-button.is-bump { animation: reservation-stepper-tap .56s ease-out; }
@keyframes reservation-stepper-tap {
  0% { transform: scale(1); background-color: rgb(47 47 47 / 0%); }
  18% { transform: scale(.78); background-color: rgb(47 47 47 / 12%); }
  40% { transform: scale(1.16); background-color: rgb(47 47 47 / 8%); }
  58% { transform: scale(.94); }
  76% { transform: scale(1.05); background-color: rgb(47 47 47 / 3%); }
  100% { transform: scale(1); background-color: rgb(47 47 47 / 0%); }
}
@media (prefers-reduced-motion: reduce) { .reservation-stepper-button.is-bump { animation: none; } }

/* Taps on a real iPhone landed on the wrong control (owner 2026-10-29: 施設 opened the date, the tabs misfired):
   the 28px control left the label's padding as a separate tap target, and iOS snaps such taps to a nearby
   control. Each box is now entirely its own control (the select / date input covers the box, the name sits on
   top and lets taps through), and the tabs take taps without the double-tap delay. */
.reservation-search-fields > .reservation-search-field.is-wide { min-height: 60px; }
.reservation-search-fields > .reservation-search-field.is-wide > span { position: relative; z-index: 1; pointer-events: none; }
.reservation-search-fields > .reservation-search-field.is-wide input,
.reservation-search-fields > .reservation-search-field.is-wide select { position: absolute; inset: 0; width: 100%; height: 100%; padding: 22px 44px 0 16px; border-radius: 12px; touch-action: manipulation; }
.reservation-search-fields > .reservation-search-field.is-wide input[type="date"] { padding-right: 16px; }
.reservation-search-fields > .reservation-search-field.is-wide:has(select)::after { z-index: 1; }
.reservation-stay-type button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* Quick repeated taps on +/− or the tabs read as iOS's double-tap zoom and froze the form (owner's iPhone,
   2026-10-29). The whole dialog takes taps as taps. */
.reservation-search-modal, .reservation-search-modal * { touch-action: manipulation; }

/* 空室カレンダー (reservation-modal.js, owner 10/30): a month of ○× for one facility, read from the engine's week
   view. Quiet like the form: ink marks on paper, a ○ day is a button, weekends tinted only in the day number. */
.reservation-calendar { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100svh - 124px); background: var(--paper); }
.reservation-calendar[hidden] { display: none !important; }
/* One width for the site's dialogs (owner 10/30): the search, the calendar and どこで遊ぶ？ (.ref-facility-modal-dialog,
   560px) open at the same width in the same place. The week results (the calendar's fallback) keep the wide sheet. */
@media (min-width: 641px) { .reservation-search-modal:not(:has([data-reservation-results-view]:not([hidden]))) { max-width: min(560px, calc(100vw - 48px)); } }
/* Each day's state is read out in words; the number and mark are for the eye. */
.reservation-calendar .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reservation-calendar-days li > * { position: relative; }
.reservation-calendar-body { overflow: auto; padding: 16px 20px; }
/* Facilities as chips in one row (owner 11/1, みなかみ makes four): the row scrolls sideways past the sheet's padding
   when it runs out of width, and the chosen one is filled in ink. 6px above and below keep the focus ring inside
   the scrolling row. */
.reservation-calendar-tabs { display: flex; gap: 8px; margin: -6px -20px 10px; padding: 6px 20px; overflow-x: auto; scroll-padding-inline: 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
.reservation-calendar-tabs::-webkit-scrollbar { display: none; }
.reservation-calendar-tabs button { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #eef1f1; color: rgb(47 47 47 / 72%); font: inherit; font-size: 15px; line-height: 20px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.reservation-calendar-tabs button[aria-pressed="true"] { background: #2f2f2f; color: #fcfcfc; }
/* The conditions line carries 人数を変更 on its right (11/1 mock). */
.reservation-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 0; }
.reservation-calendar-head p { margin: 0; }
.reservation-calendar-head button { flex: none; min-height: 32px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
/* The other two ways in sit in a footer like the search form's button bar (owner 11/1): two equal outlined buttons,
   one when the facility has no 日帰り. */
.reservation-calendar-foot { display: flex; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.reservation-calendar-foot a { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; border: 1px solid #dfe4e4; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 20px; font-weight: 700; text-decoration: none; }
.reservation-calendar-foot a[hidden] { display: none; }
@media (hover: hover) { .reservation-calendar-foot a:hover { background: #f4f6f6; } }
.reservation-search-modal [data-reservation-modal-title]:focus { outline: none; }
.reservation-calendar-month { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 8px; }
.reservation-calendar-month h3 { margin: 0; color: #2f2f2f; font-size: 18px; line-height: 26px; font-weight: 700; text-align: center; }
.reservation-calendar-month button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: #2f2f2f; cursor: pointer; }
.reservation-calendar-month button:disabled { opacity: .3; cursor: default; }
.reservation-calendar-month svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reservation-calendar-week, .reservation-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; }
.reservation-calendar-week li { padding: 4px 0 8px; color: rgb(47 47 47 / 60%); font-size: 12px; line-height: 16px; font-weight: 500; text-align: center; }
.reservation-calendar-week li:first-child { color: #d56e59; }
.reservation-calendar-week li:last-child { color: #4a96e6; }
.reservation-calendar-days { margin-top: 0; }
.reservation-calendar-days li > * { display: grid; place-items: center; width: 100%; min-height: 44px; padding: 0; border: 0; border-radius: 6px; background: none; color: #2f2f2f; font: inherit; }
.reservation-calendar-days b { font-size: 14px; line-height: 20px; font-weight: 500; }
.reservation-calendar-days i { min-height: 20px; font-size: 16px; line-height: 20px; font-style: normal; font-weight: 700; }
.reservation-calendar-days .is-sun b { color: #d56e59; }
.reservation-calendar-days .is-sat b { color: #4a96e6; }
.reservation-calendar-days .is-open a { text-decoration: none; cursor: pointer; }
@media (hover: hover) { .reservation-calendar-days .is-open a:hover { background: #d9e5dc; } }
.reservation-calendar-days .is-chosen > * { box-shadow: inset 0 0 0 2px #2f2f2f; }
/* Bookable or not at a glance, as on hotels' own sites (owner 11/1, ④): a bookable day's cell is a pale tint of the
   status green (#486860); a full or closed day is a faint number on paper. No ○ or × to read; each state is still
   read out. */
.reservation-calendar-days i { display: none; }
.reservation-calendar-days b { font-weight: 400; }
.reservation-calendar-days .is-open a { background: #e8efe9; text-decoration: none; }
.reservation-calendar-days .is-open b { font-weight: 500; }
.reservation-calendar-days .is-open a:active { background: #486860; }
.reservation-calendar-days .is-open a:active b { color: #fcfcfc; }
.reservation-calendar-days :is(.is-full, .is-none) > * { opacity: .3; }
/* Weekend colours only on days that can be booked: colour means bookable (owner 11/1). */
.reservation-calendar-days :is(.is-full, .is-none, .is-past) b { color: #2f2f2f; }
.reservation-calendar-days .is-loading b { animation: bub-calendar-wait 1s ease-in-out infinite alternate; }
.reservation-calendar-days .is-past b { color: rgb(47 47 47 / 30%); }
@keyframes bub-calendar-wait { to { opacity: .35; } }
/* A day the engine did not answer stays tappable and reads as unknown, not as closed (11/3 review). */
.reservation-calendar-days .is-unknown a { text-decoration: none; outline: 1px dashed rgb(47 47 47 / 40%); outline-offset: -4px; }
.reservation-calendar-days .is-unknown b { color: #2f2f2f; }
/* A day unlike the others (たまき 11/16): a small red badge under the date, and one line under the month with the
   same badge as its key, opening the article. Red stands out on the green cells (owner 11/16); the red is MUCHU, the palette's red. The cell keeps its height; the number moves up a little. */
.reservation-calendar-days .is-special > * { align-content: center; gap: 2px; }
.reservation-calendar-days .is-special b { line-height: 18px; }
/* たまき picked the version where the open cell itself turns pale red as well (B案, 11/16), so the day reads as
   different at a glance; hover and the pressed state keep the same red family. */
.reservation-calendar-days .is-special.is-open a { background: rgb(213 110 89 / 14%); }
@media (hover: hover) { .reservation-calendar-days .is-special.is-open a:hover { background: rgb(213 110 89 / 24%); } }
.reservation-calendar-days .is-special.is-open a:active { background: #d56e59; }
.reservation-calendar-days .is-special.is-open a:active small { background: #fcfcfc; color: #d56e59; }
.reservation-calendar-days small, .reservation-calendar-special small { padding: 0 5px; border-radius: 999px; background: #d56e59; color: #fcfcfc; font-size: 9px; line-height: 13px; font-weight: 700; }
/* The sheet keeps the height it opened with (lockSheetHeight), so the calendar holds room for six weeks and the key
   line in every month, the line empty when the month has none: a month with more of either never scrolls inside the
   sheet (owner 11/16). */
.reservation-calendar-special { margin: 12px 0 0; min-height: 32px; }
/* A five-week month keeps the key right under its last week and leaves the sixth week's room below it. */
.reservation-calendar-days:not(:has(> li:nth-child(36))) + .reservation-calendar-special { margin-bottom: 46px; }
.reservation-calendar-special a { display: flex; align-items: center; gap: 6px; min-height: 32px; color: #2f2f2f; font-size: 13px; line-height: 18px; font-weight: 500; text-decoration: none; }
.reservation-calendar-special small { flex: none; padding: 0 6px; font-size: 11px; line-height: 18px; }
.reservation-calendar-special span { text-decoration: underline; text-decoration-color: rgb(47 47 47 / 30%); text-underline-offset: 4px; }
.reservation-calendar-special svg { flex: none; width: 16px; height: 16px; margin-left: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .reservation-calendar-special a:hover span { text-decoration-color: currentColor; } }
.reservation-calendar-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: #62666d; }

/* ＋ 予約 floats above the bottom bar on the right (owner 10/30, after みっくん saw cart visits fall; the owner's
   reference: an app's 「＋ 追加」 pill). The one vivid blue on the site, kept for booking only; white type. The bar
   reads ホーム・施設・アクティビティ・客室. The button lives under the bar's surface (::before) so it rises out
   from behind the bar: with a bounce on arrival (.is-greeting), plainly when it returns after reading down the page
   (.is-tucked while scrolling down). */
.mobile-action-bar:has(.mobile-action-fab) { background: transparent; box-shadow: none; clip-path: inset(-80px 0 0 0); }
.mobile-action-bar:has(.mobile-action-fab)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--paper); box-shadow: 0 -4px 14px rgb(47 47 47 / 7%); }
.mobile-action-bar:has(.mobile-action-fab) > a:not(.mobile-action-fab) { position: relative; z-index: 2; }
.mobile-action-bar .mobile-action-fab { position: absolute; z-index: 0; right: 16px; bottom: calc(100% + 12px); display: inline-flex; flex-direction: row; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px 0 18px; border-radius: 999px; background: #4a96e6; color: #fcfcfc; font-size: 17px; font-weight: 700; line-height: 1; letter-spacing: .03em; box-shadow: 0 6px 18px rgb(31 41 51 / 22%); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.mobile-action-bar .mobile-action-fab .mobile-nav-ic { width: 20px; height: 20px; stroke-width: 2; }
.mobile-action-bar .mobile-action-fab:active { background: color-mix(in srgb, #4a96e6 85%, #2f2f2f); }
@media (hover: hover) { .mobile-action-bar .mobile-action-fab:hover:not(:active) { background: color-mix(in srgb, #4a96e6 92%, #2f2f2f); } }
/* It comes back with a small spring (owner, 2026-10-30: 「쫀득하게」): up a little past its place, then settles. It
   leaves quickly and plainly, so reading down the page stays calm. */
.mobile-action-bar .mobile-action-fab.is-tucked { transform: translateY(76px); pointer-events: none; transition: transform .22s cubic-bezier(.4, 0, 1, 1); }
@media (prefers-reduced-motion: reduce) { .mobile-action-bar .mobile-action-fab { transition-timing-function: ease-out; transition-duration: .2s; } }
/* Reached by keyboard while tucked, it comes back up rather than taking focus out of sight. */
.mobile-action-bar .mobile-action-fab.is-tucked:focus-visible { transform: none; pointer-events: auto; }
/* The first time a visit shows it, it springs up from behind the bar and settles with a little bounce
   (reservation-modal.js adds .is-greeting once per tab session). Transform only. */
@keyframes bub-fab-greet {
  0% { transform: translateY(76px); }
  55% { transform: translateY(-12px); }
  72% { transform: translateY(4px); }
  86% { transform: translateY(-2px); }
  100% { transform: none; }
}
.mobile-action-bar .mobile-action-fab.is-greeting { animation: bub-fab-greet .9s cubic-bezier(.22, 1, .36, 1) .6s both; }
/* Soft as it goes and comes (owner, 2026-10-30, 「쫀득」): squash, then drop behind the bar; stretch as it rises, a
   little past its place, then one squash as it lands. Scaled from the bottom so it seems to come out of the bar. */
.mobile-action-bar .mobile-action-fab { transform-origin: 50% 100%; }
@keyframes bub-fab-tuck {
  0% { transform: none; }
  30% { transform: scale(1.08, .9); }
  100% { transform: translateY(76px) scale(.9, 1.12); }
}
@keyframes bub-fab-rise {
  0% { transform: translateY(76px) scale(.9, 1.14); }
  50% { transform: translateY(-8px) scale(.94, 1.1); }
  70% { transform: translateY(1px) scale(1.1, .88); }
  85% { transform: translateY(-2px) scale(.98, 1.03); }
  100% { transform: none; }
}
.mobile-action-bar .mobile-action-fab.is-tucking { animation: bub-fab-tuck .3s cubic-bezier(.5, 0, .9, .6) both; }
.mobile-action-bar .mobile-action-fab.is-rising { animation: bub-fab-rise .62s cubic-bezier(.25, .8, .35, 1) both; }
@media (prefers-reduced-motion: reduce) { .mobile-action-bar .mobile-action-fab.is-tucking, .mobile-action-bar .mobile-action-fab.is-rising { animation: none; } }
/* Other floating pills keep clear of it: クルーに質問 (FAQ) sits above it, the activity lists' 1泊2日 pill moves to the
   left of it. */
@media (max-width: 1023px) {
  body:has(.mobile-action-fab) .faq-chat-launcher { bottom: calc(64px + env(safe-area-inset-bottom) + 72px); }
  body:has(.mobile-action-fab) .activity-day-float { margin-inline: 16px auto; max-width: calc(100% - 151px); }
}
