@font-face {
  font-family: "Honoka Shin Mincho";
  src: url("../fonts/honoka-shin-mincho-l.otf") format("opentype");
  font-display: swap;
}

body.first-reservation,
.first-reservation-page {
  --reservation-brown: #594536;
  --reservation-deep: #3f3229;
  --reservation-coral: #df8e94;
  --reservation-coral-soft: #f8dcda;
  --reservation-mint: #8caea4;
  --reservation-cream: #fcf8ef;
  --reservation-line: rgba(89, 69, 54, .22);
  color: var(--reservation-deep);
  margin: 0;
}

.first-reservation-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: clamp(9.5rem, 18vw, 12rem) max(1.25rem, env(safe-area-inset-left)) calc(7.5rem + env(safe-area-inset-bottom));
  overflow: hidden;
}

.first-reservation-page__air {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.first-reservation-page__air span {
  position: absolute;
  width: 22rem;
  aspect-ratio: 1;
  border: 1px solid rgba(223, 142, 148, .13);
  border-radius: 50%;
}

.first-reservation-page__air span:nth-child(1) { top: 8rem; right: -13rem; }
.first-reservation-page__air span:nth-child(2) { top: 21rem; left: -16rem; width: 28rem; }
.first-reservation-page__air span:nth-child(3) { bottom: 10rem; right: -8rem; width: 17rem; border-color: rgba(140, 174, 164, .15); }

.reservation-hero,
.reservation-onion,
.reservation-embed,
.reservation-noscript {
  width: min(100%, 42rem);
  margin-inline: auto;
}

.reservation-hero {
  margin-bottom: clamp(2.2rem, 7vw, 4rem);
  text-align: center;
}

.reservation-hero__eyebrow,
.reservation-card__step,
.reservation-embed > header > p {
  margin: 0 0 .8rem;
  color: #9a7d70;
  font-family: Georgia, serif;
  font-size: .72rem;
  letter-spacing: .19em;
}

.reservation-hero h1,
.reservation-hero h3,
.reservation-card h2,
.reservation-question legend,
.reservation-embed h2,
.reservation-dialog h2,
.reservation-dialog h3,
.reservation-dialog h4 {
  font-family: "Honoka Shin Mincho", "Yu Mincho", serif;
  font-weight: 400;
}

.reservation-hero h1,
.reservation-hero h3 {
  margin: 0;
  color: var(--reservation-brown);
  font-size: clamp(1.75rem, 8.2vw, 3.8rem);
  line-height: 1.3;
  letter-spacing: .045em;
  white-space: nowrap;
}

.first-reservation-page--embedded {
  min-height: auto;
  margin-top: clamp(3.5rem, 10vw, 7rem);
  padding: clamp(4.5rem, 11vw, 7rem) max(1.25rem, env(safe-area-inset-left)) clamp(5rem, 12vw, 8rem);
  border-top: 1px solid rgba(89, 69, 54, .14);
  overflow: clip;
}

.first-reservation-page--embedded .reservation-hero h3 {
  margin: 0;
  color: var(--reservation-brown);
  font-size: clamp(1.75rem, 8.2vw, 3.2rem);
  line-height: 1.35;
  letter-spacing: .045em;
}

.first-reservation-page--embedded .reservation-onion::before,
.first-reservation-page--embedded .reservation-onion::after {
  display: none;
}

.first-reservation-page--embedded .reservation-card {
  border: 1px solid rgba(89, 69, 54, .16);
  border-left: 3px solid rgba(223, 142, 148, .72);
  border-radius: .25rem;
  box-shadow: 0 .8rem 2.4rem rgba(92, 65, 47, .06);
  clip-path: none;
}

.reservation-onion {
  position: relative;
}

.reservation-onion::before,
.reservation-onion::after {
  content: "";
  position: absolute;
  inset: .65rem -.28rem -.65rem;
  z-index: -1;
  border: 1px solid rgba(223, 142, 148, .16);
  background: rgba(255, 255, 255, .46);
  clip-path: polygon(1rem 0, calc(100% - 1rem) 0, 100% 1rem, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 1rem 100%, 0 calc(100% - 1rem), 0 1rem);
}

.reservation-onion::after {
  inset: 1.25rem -.52rem -1.25rem;
  z-index: -2;
  border-color: rgba(140, 174, 164, .14);
  background: rgba(255, 253, 249, .35);
}

.reservation-card {
  position: relative;
  scroll-margin-top: 7.5rem;
  padding: clamp(1.65rem, 7vw, 3.2rem);
  border: 1px solid var(--reservation-line);
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 1.3rem 4rem rgba(92, 65, 47, .09);
  clip-path: polygon(.7rem 0, calc(100% - .7rem) 0, 100% .7rem, 100% calc(100% - .7rem), calc(100% - .7rem) 100%, .7rem 100%, 0 calc(100% - .7rem), 0 .7rem);
  transition: opacity .24s ease, transform .24s ease;
}

.reservation-card[hidden],
.reservation-embed[hidden],
.reservation-dialog[hidden] {
  display: none !important;
}

.reservation-card.is-arriving { animation: reservation-arrive .34s ease both; }
.reservation-card.is-leaving { opacity: 0; transform: translateY(-.4rem) scale(.992); }

@keyframes reservation-arrive {
  from { opacity: 0; transform: translateY(.65rem); }
  to { opacity: 1; transform: translateY(0); }
}

.reservation-card h2 {
  margin: 0 0 1.55rem;
  color: var(--reservation-brown);
  font-size: clamp(1.65rem, 7vw, 2.55rem);
  line-height: 1.55;
  letter-spacing: .04em;
}

[data-flow-step="intro"] h2 {
  font-size: clamp(1.28rem, 5.7vw, 2rem);
  letter-spacing: .02em;
  white-space: nowrap;
}

[data-flow-step="terms"] h2 {
  font-size: clamp(1.28rem, 5.7vw, 2rem);
  letter-spacing: .02em;
  white-space: nowrap;
}

[data-flow-step="terms"] {
  padding-top: calc(clamp(1.65rem, 7vw, 3.2rem) - .7rem);
}

[data-flow-step="intro"] {
  padding-top: calc(clamp(1.65rem, 7vw, 3.2rem) - 1.17rem);
}

.reservation-card p {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 3.7vw, 1.08rem);
  line-height: 1.9;
}

.reservation-card__quiet,
.reservation-card__caution {
  color: #77685d;
  font-size: .86rem !important;
  line-height: 1.75 !important;
}

.reservation-card__caution {
  margin: 1.4rem -.75rem 0 !important;
  padding: .9rem .75rem;
  border-top: 1px solid rgba(223, 142, 148, .42);
  border-bottom: 1px solid rgba(223, 142, 148, .42);
  background: linear-gradient(90deg, rgba(248, 220, 218, .58), rgba(255, 248, 238, .86));
}

.reservation-question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.reservation-question legend {
  display: block;
  width: 100%;
  margin: 0 0 1.8rem;
  color: var(--reservation-brown);
  font-size: clamp(1.45rem, 6.1vw, 2.2rem);
  line-height: 1.55;
  letter-spacing: .025em;
}

.reservation-question__conditions {
  margin: -.55rem 0 1.65rem;
  padding: 1.1rem 1.2rem 1.1rem 2.4rem;
  background: var(--reservation-cream);
  font-size: 1rem;
  line-height: 1.8;
}

.reservation-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .72rem;
}

.reservation-choices--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reservation-choices--stacked { grid-template-columns: 1fr; }

.reservation-choices button {
  min-height: 3.7rem;
  padding: .85rem .75rem;
  border: 1px solid rgba(89, 69, 54, .28);
  border-radius: .25rem;
  color: var(--reservation-deep);
  background: #fff;
  font: inherit;
  line-height: 1.45;
  cursor: pointer;
  transition: opacity .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.reservation-choices button.is-selected {
  border-color: var(--reservation-coral);
  background: var(--reservation-coral-soft);
  box-shadow: inset 0 0 0 2px rgba(223, 142, 148, .22);
  font-weight: 700;
}

.reservation-choices button.is-selected::before { content: "✓ "; }
.reservation-choices.has-selection button:not(.is-selected) { opacity: .44; background: #f2efeb; }
.reservation-choices.has-selection button:not(.is-selected):hover,
.reservation-choices.has-selection button:not(.is-selected):focus-visible { opacity: .8; }

.reservation-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.55rem;
  margin-top: 1.65rem;
  padding: .9rem 1.25rem;
  border: 1px solid var(--reservation-coral);
  border-radius: .25rem;
  color: var(--reservation-deep);
  background: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.reservation-button--primary {
  color: #fff;
  border-color: #cf7d85;
  background: linear-gradient(115deg, #d98289, #e8a49f 67%, #92b5ab);
  box-shadow: 0 .7rem 1.5rem rgba(190, 108, 116, .18);
}

[data-flow-start] {
  border-color: #d68b72;
  background: linear-gradient(115deg, #df8e94 0%, #e59a63 56%, #cfa94f 100%);
  box-shadow: 0 .7rem 1.5rem rgba(211, 139, 91, .2);
  letter-spacing: .08em;
}

[data-flow-agree] {
  border-color: #d68b72;
  background: linear-gradient(to right bottom, #db808b 0%, #df8e94 58%, #e49a64 80%, #cda64d 100%);
  box-shadow: 0 .7rem 1.5rem rgba(211, 139, 91, .2);
}

.reservation-button--guide-close {
  color: #fff;
  border-color: #55aeb0;
  background: linear-gradient(115deg, #83d4cc, #49b8bd 58%, #3298aa);
  box-shadow: 0 .7rem 1.5rem rgba(56, 160, 169, .2);
}

.reservation-button--next {
  border-color: #d78972;
  color: #fff;
  background: linear-gradient(115deg, #d98289 0%, #e99b65 62%, #d6ad55 100%);
  box-shadow: 0 .65rem 1.35rem rgba(211, 139, 91, .2);
  transition: color .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.reservation-button--next:disabled {
  border-color: #d7d3ce;
  color: #8b8782;
  background: #e7e4e0;
  box-shadow: none;
  cursor: not-allowed;
}

.reservation-button--next::after,
.reservation-button--primary[href]::after { content: "→"; margin-left: .65em; font-weight: 400; }

.reservation-card__alternative {
  margin-top: 1.8rem !important;
  padding: 1.15rem;
  text-align: center;
  background: rgba(220, 236, 228, .58);
}

.reservation-restart {
  display: block;
  margin: 1.25rem auto 0;
  padding: .4rem .15rem;
  border: 0;
  border-bottom: 1px dotted currentColor;
  color: #73655a;
  background: transparent;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}

.reservation-document-links {
  display: grid;
  gap: .65rem;
  margin-top: 1.55rem;
}

.reservation-document-links button,
.reservation-document-links a {
  display: block;
  box-sizing: border-box;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  border: 1px solid var(--reservation-line);
  color: var(--reservation-brown);
  background: #fff;
  font: inherit;
  line-height: 1.7;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.reservation-document-links button::after { content: "＋"; float: right; }
.reservation-document-links a::after { content: "→"; float: right; }

.reservation-policy-list {
  margin: 1rem 0 0;
  padding: 1rem 1.05rem 1rem 2.2rem;
  background: var(--reservation-cream);
  font-size: clamp(1rem, 3.5vw, 1.06rem);
  line-height: 1.8;
}

.reservation-policy-list li + li { margin-top: .45rem; }

.reservation-menu-reference {
  margin: 1.35rem 0;
}

.reservation-menu-reference__image {
  position: relative;
}

.reservation-menu-reference img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--reservation-line);
}

.reservation-menu-reference figcaption {
  margin-top: .45rem;
  color: #817166;
  font-size: .72rem;
  text-align: right;
}

/* The first frame shows the same Air Reserve control before its list opens. */
.reservation-menu-reference--closed .reservation-menu-reference__image {
  aspect-ratio: 1004 / 242;
  overflow: hidden;
}

.reservation-menu-reference__arrow-highlight {
  position: absolute;
  z-index: 1;
  top: 51%;
  right: 1.3%;
  width: 5.7%;
  height: 47%;
  border: clamp(2px, .55vw, 4px) solid #d8444b;
  border-radius: .35rem;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 .25rem .8rem rgba(158, 47, 54, .12);
  pointer-events: none;
}

.reservation-menu-reference__highlight {
  position: absolute;
  z-index: 1;
  top: 16.4%;
  right: 1.4%;
  bottom: 19.2%;
  left: 1.4%;
  border: clamp(2px, .55vw, 4px) solid #d8444b;
  border-radius: .55rem;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 .25rem .8rem rgba(158, 47, 54, .12);
  pointer-events: none;
}

.reservation-embed {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  padding: clamp(1.4rem, 5vw, 2rem);
  border: 1px solid var(--reservation-line);
  overflow: hidden;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 1.2rem 3rem rgba(92, 65, 47, .09);
  animation: reservation-arrive .4s ease both;
}

.reservation-embed > header { margin-bottom: 1.4rem; text-align: center; }
.reservation-embed h2 { margin: 0; color: var(--reservation-brown); font-size: 2rem; }
.reservation-embed > header > p:last-child { margin: .65rem 0 0; line-height: 1.7; }
.reservation-embed iframe { display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; border: 0; background: #fff; }
.reservation-embed__credit { margin: 1rem 0 0; color: #555; font-size: .625rem; line-height: 1.6; text-align: right; }
.reservation-embed__credit a { color: inherit; text-decoration: underline; }
.reservation-embed__credit img { width: .75rem; margin: .1rem .12rem .25rem; vertical-align: top; }

.reservation-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.reservation-dialog__backdrop { position: absolute; inset: 0; background: rgba(45, 35, 29, .55); backdrop-filter: blur(4px); }

.reservation-dialog__window {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 45rem);
  max-height: min(88vh, 52rem);
  border: 1px solid rgba(89, 69, 54, .28);
  background: #fffdf9;
  box-shadow: 0 1.5rem 4rem rgba(31, 22, 17, .25);
}

.reservation-dialog--guide .reservation-dialog__window {
  overflow: hidden;
  border-top-left-radius: 1.45rem;
}

.reservation-dialog--guide .reservation-dialog__body {
  background: #fff6e4;
}

.reservation-dialog--guide .reservation-dialog__body h3 {
  white-space: nowrap;
}

.reservation-dialog__window > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--reservation-line);
}

.reservation-dialog__window > header h2 { margin: 0; color: var(--reservation-brown); font-size: 1.45rem; }
.reservation-dialog__window > header button { width: 2.75rem; height: 2.75rem; border: 1px solid var(--reservation-line); color: var(--reservation-deep); background: #fff; font-size: 1.4rem; cursor: pointer; }
.reservation-dialog__body { overflow-y: auto; overscroll-behavior: contain; padding: 1.3rem; font-size: 1rem; line-height: 1.9; }
.reservation-dialog__body h3 { margin: 2rem 0 .75rem; color: var(--reservation-brown); font-size: 1.2rem; }
.reservation-dialog__body h4 { margin: 1.4rem 0 .55rem; color: var(--reservation-brown); font-size: 1.05rem; }
.reservation-dialog__body ol,
.reservation-dialog__body ul { padding-left: 1.45rem; }
.reservation-dialog__body li + li { margin-top: .8rem; }
.reservation-dialog__body > ol > li:first-child > ol { margin-top: 1.1rem; }
.reservation-terms-detail {
  margin: .85rem 0 1.1rem;
  border-top: 1px solid rgba(89, 69, 54, .16);
  border-bottom: 1px solid rgba(89, 69, 54, .16);
  background: rgba(252, 248, 239, .72);
}

.reservation-terms-detail summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 3rem;
  padding: .7rem .75rem;
  color: var(--reservation-brown);
  font-weight: 600;
  line-height: 1.55;
  list-style: none;
  cursor: pointer;
}

.reservation-terms-detail summary::-webkit-details-marker { display: none; }
.reservation-terms-detail summary::after { content: "＋"; flex: 0 0 auto; font-size: 1.15rem; font-weight: 400; }
.reservation-terms-detail[open] summary::after { content: "−"; }
.reservation-terms-detail__close { display: none; }
.reservation-terms-detail[open] .reservation-terms-detail__open { display: none; }
.reservation-terms-detail[open] .reservation-terms-detail__close { display: inline; }
.reservation-terms-detail__body { padding: 0 .75rem .9rem; }
.reservation-terms-detail__body > :first-child { margin-top: .2rem; }
.reservation-terms-detail__body > :last-child { margin-bottom: 0; }
.reservation-dialog__window > footer { padding: .8rem 1.25rem 1.1rem; border-top: 1px solid var(--reservation-line); }
.reservation-dialog__window > footer .reservation-button { margin-top: 0; }

body.has-reservation-dialog { overflow: hidden; }
.reservation-noscript { margin-top: 1rem; padding: 1rem; border: 1px solid var(--reservation-coral); background: #fff; }

@media (min-width: 46rem) {
  .reservation-choices--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .reservation-card { padding-inline: 3.4rem; }
}

@media (max-width: 30rem) {
  .reservation-card h2 { font-size: 1.5rem; }
  .reservation-embed {
    width: calc(100% + 1.5rem);
    max-width: calc(100% + 1.5rem);
    margin-inline: -.75rem;
    padding-inline: .5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reservation-card,
  .reservation-choices button { transition: none; }
  .reservation-card.is-arriving,
  .reservation-embed { animation: none; }
}

/* Embedded in chapter 7: obey the same content width and gutters as every chapter. */
.vertical-scene--first-visit .first-reservation-page--embedded {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  margin-inline: 0;
  padding-inline: 0;
}

.vertical-scene--first-visit .first-reservation-page--embedded :where(
  .reservation-hero,
  .reservation-onion,
  .reservation-card,
  .reservation-question,
  .reservation-choices,
  .reservation-embed
) {
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
}

@media (max-width: 30rem) {
  .vertical-scene--first-visit .first-reservation-page--embedded .reservation-embed {
    inline-size: 100%;
    max-inline-size: 100%;
    margin-inline: 0;
    padding-inline: 0.5rem;
  }
}
