
@media (max-width: 700px) {
  .pdf-layout #story.reference-intro h2 {
    font-size: clamp(20px, 5.5vw, 25px);
    letter-spacing: .03em;
    line-break: strict;
    word-break: normal;
    overflow-wrap: normal;
  }
  .pdf-layout #story.reference-intro p { line-break: strict; }
  .pdf-layout #story.reference-intro p br { display: none; }
  .pdf-layout #intro .hero-controls {
    flex-wrap: nowrap;
    gap: clamp(3px, 1vw, 6px);
  }
  .pdf-layout #intro .hero-season-label,
  .pdf-layout #intro .hero-counter {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 0;
    margin-right: 0;
  }
  .pdf-layout #intro .hero-controls .hero-pause { flex: 0 0 auto; }
  .pdf-layout #intro .hero-controls button[data-slide] {
    flex: 1 1 0;
    min-width: 0;
    max-width: 25px;
  }
}

/* SHIKI preview: tablet inquiry buttons */
@media (min-width: 701px) and (max-width: 1024px) {
  .pdf-layout .special-rate-actions { gap: 16px; }
  .pdf-layout .special-rate-actions a { flex: 1 1 0; width: auto; min-width: 0; gap: 10px; padding-inline: 12px; }
  .pdf-layout .special-rate-actions a > span { white-space: nowrap; }
  .pdf-layout .special-rate-actions a > svg { flex-shrink: 0; }
}
@media (min-width: 701px) and (max-width: 1024px) {
  .pdf-layout .special-rate-actions a { font-size: 15px; }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .journey-guide .pdf-route-list { gap: 14px; }
  .journey-guide .pdf-route-list > div { padding: 18px 14px; }
  .journey-guide .pdf-route-list dt { gap: 8px; margin-bottom: 12px; padding-bottom: 12px; font-size: 15px; }
  .journey-guide .pdf-route-list dt span { white-space: nowrap; }
  .journey-guide .route-icon { width: 22px; height: 22px; flex-basis: 22px; }
  .journey-guide .route-mode { font-size: 12px; text-wrap: balance; }
  .journey-guide .pdf-route-list strong { font-size: 18px; white-space: nowrap; }
}

@media (max-width: 700px) {
  .pdf-layout #rooms .courtyard-prose p { line-break: strict; }
  .pdf-layout #rooms .courtyard-prose p br { display: none; }
}

/* Responsive review: facilities and English labels */
@media (max-width: 700px) {
  html[lang^="en"] .reference-room-panel dl > div { grid-template-columns: 78px minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  #facilities-title { line-break: strict; }
  .shared-facilities dt { line-break: strict; text-wrap: balance; }
}
@media (min-width: 701px) and (max-width: 1024px) {
  #facilities-title { font-size: clamp(22px, 3vw, 30px); }
  html[lang^="en"] .journey-guide .pdf-route-list :is(dt span, strong) { white-space: normal; text-wrap: balance; }
}

@media (min-width: 701px) and (max-width: 1024px) {
  html[lang^="ja"] .shared-facilities dl > div:first-child dt { font-size: 16px !important; white-space: nowrap; }
}

.guide-intro-text > .guide-intro-original-copy { font-size: 15px; line-height: 2; }
.guide-intro-text > .guide-intro-desktop-copy { display: none; }
@media (min-width: 1025px) {
  html[lang^="ja"] .guide-intro-art { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(30px, 5vw, 70px); }
  html[lang^="ja"] .guide-intro-text > .guide-intro-original-copy { display: none; }
  html[lang^="ja"] .guide-intro-text > .guide-intro-desktop-copy { display: block; }
}

@media (max-width: 700px) {
  html[lang^="ja"] .guide-intro-text > .guide-lead { max-inline-size: 7.6em; line-break: strict; }
}

/* Shared title banners for the five main pages. */
.pdf-layout :is(.reference-banner, .cuisine-entry):has(.page-intro-copy) {
    display: grid;
    align-content: center;
    box-sizing: border-box;
    height: clamp(240px, 24vw, 340px);
    min-height: 0;
    aspect-ratio: auto;
    padding-inline: 8%;
}

.pdf-layout :is(.reference-banner, .cuisine-entry):has(.page-intro-copy) > img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-layout :is(.reference-banner, .cuisine-entry):has(.page-intro-copy)::after {
    background: linear-gradient(90deg, #171717a6 0%, #17171780 45%, #17171720 100%);
}

.pdf-layout :is(.reference-banner, .cuisine-entry):has(.page-intro-copy) > div:has(> h1) {
    position: static;
    transform: none;
}

.pdf-layout :is(.reference-banner, .cuisine-entry):has(.page-intro-copy) h1 {
    position: static;
    transform: none;
    margin: 0;
    padding: 0;
    color: #fff;
    font: 400 38px/1.35 var(--serif);
    letter-spacing: .06em;
    line-break: strict;
    text-shadow: 0 1px 5px #0009;
}

.pdf-layout :is(.reference-banner, .cuisine-entry):has(.page-intro-copy) .page-intro-copy {
    margin: 8px 0 0;
    padding: 0;
    color: #fff;
    font: 500 16px/1.65 var(--serif);
    letter-spacing: .04em;
    text-shadow: 0 1px 4px #0009;
    line-break: strict;
    text-wrap: balance;
}

@media (max-width: 700px) {
    .pdf-layout :is(.reference-banner, .cuisine-entry):has(.page-intro-copy) {
        height: 215px;
        padding-inline: 7%;
    }

    .pdf-layout :is(.reference-banner, .cuisine-entry):has(.page-intro-copy) > img {
        filter: saturate(.65);
    }

    .pdf-layout :is(.reference-banner, .cuisine-entry):has(.page-intro-copy)::after {
        background: #181818ad;
    }

    .pdf-layout :is(.reference-banner, .cuisine-entry):has(.page-intro-copy) h1 { font-size: 27px; }
    .pdf-layout :is(.reference-banner, .cuisine-entry):has(.page-intro-copy) .page-intro-copy { font-size: 15px; }
}






@media (max-width: 1024px) {
  .pdf-layout #story > .text-link,
  .pdf-layout #seasons .culture-bottom > .text-link {
    display: flex;
    box-sizing: border-box;
    width: 172px;
    min-width: 0;
    min-height: 44px;
    padding: 10px 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
  }

  .pdf-layout #story > .text-link span,
  .pdf-layout #seasons .culture-bottom > .text-link span {
    flex: 0 0 18px;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .pdf-layout .culture-bottom {
    display: grid;
    justify-items: center;
    gap: 18px;
  }
  .pdf-layout .culture-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 420px);
    gap: 0;
    border-bottom: 1px solid #d8ded7;
  }
  .pdf-layout .culture-tabs button {
    min-height: 44px;
    padding: 6px 3px;
    font-size: clamp(13px, 2.4vw, 16px);
    line-height: 1.25;
    letter-spacing: normal;
  }
  .pdf-layout .culture-tabs button[aria-pressed="true"] {
    color: #294b3f;
    border-bottom-color: #416854;
  }
  .pdf-layout .culture-bottom > .text-link {
    position: static;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    font-size: 15px;
    white-space: nowrap;
  }
}

@media (max-width: 1024px) {
  .pdf-layout #story > .text-link,
  .pdf-layout #seasons .culture-bottom > .text-link {
    display: flex;
    box-sizing: border-box;
    width: max-content;
    min-width: 0;
    min-height: 44px;
    padding: 10px 0;
    align-items: center;
    justify-content: flex-start;
    gap: 1em;
    font-size: 15px;
  }

  .pdf-layout #story > .text-link span,
  .pdf-layout #seasons .culture-bottom > .text-link span {
    flex: 0 0 auto;
    font-size: 0;
  }

  .pdf-layout #story > .text-link span::before,
  .pdf-layout #seasons .culture-bottom > .text-link span::before {
    content: "↗";
    font-size: 15px;
  }
}

.language-switch button[aria-pressed="true"],
.pdf-layout .language-switch button[aria-pressed="true"] {
  background: #dce8dc;
  border-color: #b3c6b4;
  color: #244638;
}

.language-switch button:hover,
.language-switch button:focus-visible {
  background: #edf3eb;
  color: #244638;
}

.language-switch button[aria-pressed="true"]:hover,
.language-switch button[aria-pressed="true"]:focus-visible {
  background: #cfdfd0;
  color: #244638;
}

@media (min-width: 701px) and (max-width: 1024px) {
  .pdf-layout header .button.compact[data-book] {
    flex-shrink: 0;
    font-size: 14px;
    gap: 10px;
    padding-inline: 14px;
    white-space: nowrap;
  }
}

@media (min-width: 1025px) {
  .pdf-layout header .button.compact[data-book] {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (min-width: 1025px) and (max-width: 1100px) {
  .pdf-layout header .button.compact[data-book] {
    font-size: 14px;
    gap: 10px;
    padding-inline: 14px;
  }
}
@media (min-width: 1025px) {
  html[lang^='ja'] .parking-guide p { letter-spacing: -0.025em; }
}

@media (min-width: 1025px) {
  .pdf-layout .journey-guide { padding-bottom: 32px; }
  .pdf-layout .parking-guide h3 { margin-block: 0; line-height: 32px; }
}

#access:has(> #journey) { padding-bottom: 0; }
.pdf-layout #journey.journey-guide { margin-bottom: 48px; }

@media (max-width: 1024px) {
  .pdf-layout #journey.journey-guide { padding-bottom: 28px; }
  #journey .parking-guide { margin-top: 24px; padding-top: 24px; }
  #journey .parking-guide h3 { margin-block: 0; line-height: 32px; }
}

@media (max-width: 700px) {
  .pdf-layout #journey.journey-guide { margin-bottom: 32px; padding-bottom: 22px; }
  #journey .parking-guide { padding-top: 22px; gap: 12px; }
}

.terms-content .booking-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}
.terms-content .booking-contact-actions a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 50px;
  gap: 10px;
  margin: 0;
  padding: 10px 22px;
  border: 1px solid #294b3f;
  border-radius: 999px;
  background: linear-gradient(180deg, #3c604f, #284838);
  color: #fffdf7;
  box-shadow: inset 0 1px 0 #ffffff1a, 0 3px 8px #24453714;
  font: 400 24px/1.5 var(--serif);
  text-decoration: none;
}
.terms-content .booking-contact-actions a.button:hover,
.terms-content .booking-contact-actions a.button:focus-visible {
  background: #f1f3ed;
  color: #284838;
}
.terms-content .booking-contact-actions a.button::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  mask: var(--terms-icon) center / contain no-repeat;
}
.terms-content .booking-contact-actions a[href^="tel:"] {
  --terms-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.24c1.12.37 2.33.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.27.2 2.48.57 3.6a1 1 0 0 1-.25 1.02Z'/%3E%3C/svg%3E");
}
.terms-content .booking-contact-actions .contact-link {
  --terms-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 3H4v18h16v-9M8 12v5h5L22 8l-5-5-9 9ZM15 5l5 5'/%3E%3C/svg%3E");
}
@media (max-width: 560px) {
  .terms-content .booking-contact-actions { flex-direction: column; }
  .terms-content .booking-contact-actions a.button { width: 100%; }
}


@media (max-width: 700px) {
  .terms-content .booking-contact-actions a.button { font-size: 21px; }
}
@media (min-width: 701px) and (max-width: 1024px) {
  .terms-content .booking-contact-actions a.button { font-size: 15px; }
}

.booking-contact-actions a.button {
  font-family: var(--serif);
  font-weight: 400;
}

.terms-content .booking-contact-actions { gap: 24px; }
.terms-content section:has(> .booking-contact-actions) { padding-block: 32px; }
.terms-content section:has(> .booking-contact-actions) > h2 { margin-bottom: 16px; }
.terms-content section:has(> .booking-contact-actions) > p:not(.booking-contact-actions) { margin-block: 0; }
@media (max-width: 560px) {
  .terms-content section:has(> .booking-contact-actions) { padding-block: 24px; }
  .terms-content .booking-contact-actions { margin-top: 20px; gap: 16px; }
}

dialog .booking-contact-actions a.button::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  mask: var(--booking-icon) center / contain no-repeat;
}
dialog .booking-contact-actions a[href^="tel:"] {
  --booking-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.24c1.12.37 2.33.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.27.2 2.48.57 3.6a1 1 0 0 1-.25 1.02Z'/%3E%3C/svg%3E");
}
dialog .booking-contact-actions .contact-link {
  --booking-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 3H4v18h16v-9M8 12v5h5L22 8l-5-5-9 9ZM15 5l5 5'/%3E%3C/svg%3E");
}

@media (min-width: 1025px) {
  .special-rate-actions { justify-content: center; gap: calc(16% - 16px); }
}

