:root {
  --shiki-heading-font: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
:root { --paper: #fdfdfd; }
body.pdf-layout, .pdf-layout .header { background-color: var(--paper); }
.pdf-layout #intro .hero-title h1 {
  font: 500 5.5vw/1.4 var(--shiki-heading-font);
  letter-spacing: normal;
  text-wrap: balance;
  line-break: strict;
}
.pdf-layout #intro .hero-title > p {
  font: 500 3.2vw/1.6 var(--shiki-heading-font);
  letter-spacing: normal;
  margin: .75em 0 0;
}
.pdf-layout #intro[data-season="kaneyama"] .hero-title > :is(h1, p) {
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .2);
}
@media (min-width: 600px) {
  .pdf-layout #intro .hero-title h1 { font-size: 28px; }
  .pdf-layout #intro .hero-title > p { font-size: 16px; }
}
#story.reference-intro .shiki-copy-mobile { display: none; }
.language-switch button[data-lang] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.language-switch .language-flag {
  display: block;
  width: 16px;
  height: 12px;
  flex: 0 0 16px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 12%);
}
.pdf-layout main .access-sign-banner {
  overflow: hidden;
  background-color: #292623;
}

.pdf-layout main .reference-banner.access-sign-banner:has(.page-intro-copy) > img {
  inset-inline: auto 0;
  width: 82%;
  object-position: center 45%;
  mask-image: linear-gradient(to right, transparent, #000 15%);
}

@media (max-width: 1024px) {
  .pdf-layout main .reference-banner.access-sign-banner:has(.page-intro-copy) > img {
    width: 62%;
  }
}

@media (max-width: 700px) {
  .pdf-layout main .reference-banner.access-sign-banner:has(.page-intro-copy) > img {
    inset-block-start: -45px;
    height: calc(100% + 45px);
    object-position: 18% 45%;
  }
}

@media (max-width: 700px) {
  html:lang(ja) #story.reference-intro .shiki-copy-original { display: none; }
  html:lang(ja) #story.reference-intro .shiki-copy-mobile { display: inline; }
  #story.reference-intro .shiki-copy-mobile > .shiki-keep-together { white-space: nowrap; }

  html:lang(ja) .pdf-layout #seasons.culture-gallery > p {
    padding-inline: 12px;
    font-size: min(14px, 3.55cqw);
    letter-spacing: normal;
  }
}

.terms-header {
  box-sizing: border-box;
  height: 94px;
  padding: 0 3.5%;
}

@media (max-width: 960px) {
  .terms-header { height: 88px; }
}

@media (max-width: 900px) {
  .terms-header { padding-inline: 4%; }
  .terms-header .brand { width: 200px; }
}

@media (max-width: 700px) {
  .terms-header { height: 63px; padding-inline: 12px; }
  .terms-header .brand { width: 154px; }
}

@media (max-width: 359px) {
  html:lang(ja) .pdf-layout #facilities-title { font-size: 24px; line-break: strict; }
  html:lang(ja) .pdf-layout .room-story blockquote > span {
    font-size: 17px;
    letter-spacing: .02em;
    white-space: nowrap;
  }
  html:lang(ja) .pdf-layout .guide-card-copy h2 { max-width: 100%; font-size: 21px; }
  html:lang(ja) .pdf-layout .guide-access { grid-template-columns: minmax(0, 1fr); }
  html:lang(ja) .pdf-layout .guide-access .button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

header .brand img {
  mix-blend-mode: multiply;
  width: 100%;
  max-width: 211px;
  height: auto;
  aspect-ratio: auto 1280 / 200;
  object-fit: contain;
}
@media (max-width: 700px) { .pdf-layout .header .language-switch button[data-lang] { padding-inline: 5px; } }
