@font-face {
  font-family: "Mizuha Mincho";
  src: url("assets/mincho-light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

:root {
  --content-width: 1200px;
  --paper: url("assets/washi.webp");
}
body { font-weight: 300; font-synthesis: none; }
/* Keep the approved footer's actual Regular face and all its size rules. */
.site-footer { font-weight: 400; }

.hero-content,
.closing-content,
.gallery-heading,
.gallery-photos,
.intro p {
  width: calc(100% - 48px);
  max-width: var(--content-width);
  margin-inline: auto;
}
.hero-content {
  height: 100%;
  padding-top: calc(var(--u) * 35 + 48px);
}
.hero .brand { transform: translateY(-18px); }
.hero-content { z-index: 1; }
.hero-steam {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  height: 36%;
  opacity: 0;
  pointer-events: none;
}
.hero-steam.is-active { opacity: 1; }
.hero.sequence-ready .hero-steam { opacity: 0; }
.hero.sequence-ready.sequence-visible .hero-steam.is-active {
  opacity: 1;
  transition: opacity 1.15s ease;
}
.steam-toggle {
  position: absolute;
  left: 22px;
  bottom: 96px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  background: rgb(23 37 64 / 12%);
  opacity: .35;
  transition: opacity .2s ease;
}
.steam-toggle::before {
  content: "";
  width: 18px;
  height: 18px;
  background: white;
  mask: url("assets/steam-pause.svg") center / contain no-repeat;
}
.steam-toggle[aria-pressed="true"]::before { mask-image: url("assets/steam-play.svg"); }
.steam-toggle:hover,
.steam-toggle:focus-visible { opacity: 1; }
.steam-toggle[hidden] { display: none; }
@media (max-width: 640px) {
  .steam-toggle { left: 16px; bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-steam,
  .steam-toggle { display: none; }
}
.brand-caption { font-size: 14px; }
.brand-name { font-size: clamp(26px, 2.1vw, 32px); }
main .hero h1 {
  font-size: clamp(36px, 3.9vw, 60px);
  font-weight: 300;
  letter-spacing: .08em;
  line-height: 1.3;
}
.hero-description { font-size: 18px; letter-spacing: .07em; }

.booking-button,
.hero-booking,
.closing .booking-button {
  min-width: 360px;
  padding: 14px 42px;
  gap: 22px;
  border-width: 1px;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: .055em;
}
.hero-booking {
  display: none;
  margin-top: 32px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.intro { height: clamp(496px, calc(33.33vw + 56px), 596px); }
.intro p,
.intro p.reveal-heading.is-ready {
  padding: 0;
  gap: 24px;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .045em;
  transform: none;
}
.intro .gold-rule { width: 80px; }
.intro-inner {
  position: relative;
  width: calc(100% - 48px);
  max-width: var(--content-width);
  margin-inline: auto;
}
.intro .intro-title { width: 100%; }
.intro .intro-eyebrow,
.intro .intro-eyebrow.reveal-heading.is-ready {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 24px;
  padding: 0;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: .35em;
  color: #8e6b2b;
  gap: 32px;
}
.intro .intro-eyebrow .gold-rule { width: 90px; }
.intro .intro-description {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: .045em;
  text-align: center;
  transform: none;
}

.experience-copy { width: min(34vw, 400px); }
.onsen-copy,
.room-copy {
  left: auto;
  right: clamp(24px, 4vw, 80px);
}
.dining-copy {
  left: clamp(24px, 4vw, 80px);
  right: auto;
}
.room-copy { width: min(32vw, 360px); }
main .experience h2,
main .room-copy h2 {
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: .035em;
}
.body-copy,
.room-copy .body-copy {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.95;
  letter-spacing: .035em;
  margin-top: 24px;
}
.section-number { font-size: 22px; gap: 12px; font-weight: 300; }
.section-number span { font-size: 38px; }
.flowing-line { width: 165px; height: 20px; margin: -3px 0 16px 22px; }
.brand-mark { object-fit: contain; }
.footer-brand::before { background-image: url("assets/mizuha-mark.png"); }

/* Photographs remain fully opaque behind the translucent copy panels. */
.room {
  clip-path: none;
  mask-image: none;
}

.gallery {
  height: auto;
  min-height: 0;
  padding-top: 140px;
  padding-bottom: 70px;
}
.eyebrow { font-size: 22px; }
.onsen-copy .section-number,
.dining-copy .section-number,
.eyebrow { color: #8e6b2b; }
main .gallery h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  line-height: 1.3;
  margin-top: 22px;
}
.gallery-heading > p:last-child { font-size: 18px; margin-top: 20px; }
.gallery-photos { margin-top: 36px; }
.gallery-main { height: auto; aspect-ratio: 3.05; }
.gallery-row .gallery-item { height: auto; aspect-ratio: 1.25; }
.gallery-caption { font-size: 15px; font-weight: 300; }

main .closing h2 {
  font-size: clamp(32px, 3.1vw, 44px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: .055em;
}
.closing { height: calc(var(--u) * 470 + 48px); }
.closing-content { padding-top: calc(var(--u) * 50 + 48px); }
.closing p { font-size: 18px; letter-spacing: .045em; }
.notice-dialog h2 { font-size: 24px; font-weight: 300; }
.lightbox-caption h2 { font-size: 18px; font-weight: 300; }
#photo-large { position: relative; z-index: 0; touch-action: pan-y pinch-zoom; user-select: none; }
#photo-outgoing {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
}
#photo-outgoing[hidden] { display: none; }

@media (min-width: 641px) and (max-width: 1100px) {
  .hero-content { padding-top: calc(2vw + 28px); }
  main .hero h1 { font-size: clamp(32px, 3.9vw, 43px); }
  .hero-description { font-size: 16px; }
  .brand-name { font-size: 26px; }
  .intro p,
  .intro p.reveal-heading.is-ready { font-size: clamp(18px, 2.1vw, 23px); }
  .booking-button,
  .hero-booking,
  .closing .booking-button { font-size: 20px; padding: 13px 32px; min-width: 300px; }
  main .experience h2,
  main .room-copy h2 { font-size: clamp(24px, 2.5vw, 28px); }
  .body-copy,
  .room-copy .body-copy { font-size: 16px; margin-top: 20px; line-height: 1.85; }
  .experience-copy .section-number { font-size: 18px; }
  .experience-copy .section-number span { font-size: 30px; }
  .flowing-line { width: 130px; height: 16px; margin-bottom: 10px; }
  .room-copy { top: 22%; }
  .gallery { padding-top: 110px; padding-bottom: 52px; }
  main .gallery h2 { font-size: clamp(22px, 2.6vw, 28px); }
  .eyebrow { font-size: 17px; }
  .gallery-caption { font-size: 14px; }
  .closing p { font-size: 16px; }
  .closing { height: calc(32.64vw + 48px); min-height: 358px; }
  .closing-content { padding-top: calc(var(--u) * 32 + 48px); }
}

@media (min-width: 741px) and (max-width: 850px) {
  main .experience h2,
  main .room-copy h2 { line-height: 1.25; }
  .experience-copy .section-number span { font-size: 28px; }
  .flowing-line { height: 14px; margin-bottom: 6px; }
  .body-copy,
  .room-copy .body-copy { margin-top: 12px; line-height: 1.8; }
}

/* Below this measure the copy cannot fit beside the photo at readable sizes. */
@media (min-width: 641px) and (max-width: 740px) {
  .experience { height: auto; clip-path: none; }
  .experience-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 390px;
    z-index: 0;
  }
  .experience-copy {
    position: relative;
    inset: auto;
    width: calc(100% - 48px);
    max-width: 600px;
    margin-inline: auto;
    padding: 24px 0 64px;
  }
  .onsen { margin-top: -40px; }
  .onsen-copy { margin-top: -22px; }
  .dining { margin-top: -20px; }
  .dining-copy { margin-top: -5px; }
  .room { margin-top: 0; mask-image: none; }
  .room-copy { margin-top: -4px; padding-top: 20px; padding-bottom: 85px; }
}

@media (max-width: 640px) {
  .hero-content,
  .closing-content,
  .gallery-heading { width: calc(100% - 40px); }
  .hero-content { padding-top: 54px; padding-inline: 0; }
  .brand-caption { font-size: 14px; }
  .brand-name { font-size: 26px; }
  main .hero h1 { font-size: clamp(26px, 7vw, 32px); letter-spacing: .04em; }
  .hero-description { font-size: 16px; letter-spacing: .015em; }
  .booking-button,
  .hero-booking,
  .closing .booking-button {
    min-width: 0;
    max-width: 100%;
    font-size: 18px;
    gap: 18px;
    padding: 14px 26px;
  }
  .hero-booking { margin-top: 28px; margin-bottom: 0; }
  .intro { height: 466px; }
  .intro p,
  .intro p.reveal-heading.is-ready { font-size: 18px; gap: 10px; line-height: 1.8; }
  .intro p > span:nth-child(2) { max-width: 260px; }
  .intro .intro-title-text { max-width: min(260px, calc(100% - 68px)); }
  .intro .gold-rule { width: 24px; }
  .intro .intro-eyebrow,
  .intro .intro-eyebrow.reveal-heading.is-ready { gap: 18px; }
  .intro .intro-eyebrow .gold-rule { width: 42px; }
  .intro-inner { width: calc(100% - 40px); }
  .intro .intro-description { font-size: 16px; margin-top: 24px; letter-spacing: .015em; }
  .experience-copy { width: 100%; left: auto; right: auto; }
  .room { mask-image: none; }
  main .experience h2,
  main .room-copy h2 { font-size: 27px; }
  .body-copy,
  .room-copy .body-copy { font-size: 16px; }
  .section-number { font-size: 20px; }
  .section-number span { font-size: 34px; }
  .room-copy { top: auto; }
  .gallery { padding-top: 100px; padding-bottom: 42px; }
  main .gallery h2 { font-size: 25px; }
  .eyebrow { font-size: 16px; }
  .gallery-heading > p:last-child { font-size: 16px; }
  .gallery-photos { width: calc(100% - 32px); margin-top: 30px; }
  .gallery-main { height: 260px; aspect-ratio: auto; }
  .gallery-row .gallery-item { height: 175px; aspect-ratio: auto; }
  .gallery-row .gallery-item:last-child { height: 230px; }
  .gallery-caption { font-size: 14px; }
  .closing { height: 488px; }
  .closing-content { padding-top: 94px; padding-inline: 0; }
  main .closing h2 { font-size: 28px; }
  .closing p { font-size: 16px; }
  .notice-dialog h2 { font-size: 23px; }
}

.hero h1.hero-title-art {
  position: relative;
  width: 13.2em;
  max-width: 100%;
  height: 3.1em;
  margin-top: calc(var(--u) * 37 + 48px);
  padding-left: 0;
  line-height: 0;
}
.hero-title-art img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(-53.52%);
}
@media (min-width: 641px) and (max-width: 1100px) {
  .hero h1.hero-title-art { margin-top: calc(2vw + 40px); }
}
@media (max-width: 640px) {
  .hero h1.hero-title-art { margin-top: 84px; }
}

@media (max-width: 1100px) {
  .intro .intro-eyebrow,
  .intro .intro-eyebrow.reveal-heading.is-ready { font-size: 17px; }
}

@media (min-width: 741px) {
  .room { clip-path: url(#room-curve); }
}

.experience-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: none;
  opacity: 1;
  filter: none;
}
.experience-copy {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 468px;
  max-width: 480px;
  padding: 40px;
  margin-top: 0;
  background: rgb(254 248 241 / 80%);
  color: var(--ink);
}
.room-copy .section-number { color: #8e6b2b; }

@media (min-width: 741px) and (max-width: 1100px) {
  .experience { min-height: 540px; }
  .experience-copy { width: min(48vw, 468px); max-width: 468px; padding: 28px; }
  .onsen-copy, .room-copy { right: 16px; }
  .dining-copy { left: 16px; }
}

@media (max-width: 740px) {
  .experience { height: 640px; }
  .experience-copy {
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    max-width: 468px;
    margin-inline: auto;
    padding: 28px;
  }
}

/* Preserve the supplied wave silhouette in the theme's solid gold. */
.flowing-line {
  height: 30px;
  background-image: none;
  background-color: var(--gold);
  background-size: 100% auto;
  background-position: center 46%;
  transform: scaleX(-1);
}
@media (min-width: 641px) and (max-width: 1100px) {
  .flowing-line { height: 24px; }
}
@media (max-width: 640px) {
  .flowing-line { height: 31px; }
}

.hero.sequence-ready .hero-photo,
.hero.sequence-ready .hero-content,
.experience.sequence-ready .experience-photo,
.experience.sequence-ready .experience-copy {
  opacity: 0;
}
.hero.sequence-ready.sequence-visible .hero-photo,
.experience.sequence-ready.sequence-visible .experience-photo {
  opacity: 1;
  transition: opacity 1.15s ease;
}
.hero.sequence-ready.sequence-visible .hero-content,
.experience.sequence-ready.sequence-visible .experience-copy {
  opacity: 1;
  transition: opacity 1.5s ease 1.15s;
}
.gallery-item.gallery-ready {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gallery-item.gallery-ready.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .5s ease;
}
.brand-mark,
.footer-brand::before {
  mask: url("assets/mizuha-mark-mask.svg") center / contain no-repeat;
}
.flowing-line {
  mask: url("assets/section-wave-solid.png") center 46% / 100% auto no-repeat;
}
@media (prefers-reduced-motion: reduce) {
  .hero.sequence-ready .hero-photo,
  .hero.sequence-ready .hero-content,
  .experience.sequence-ready .experience-photo,
  .experience.sequence-ready .experience-copy,
  .gallery-item.gallery-ready {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }
}

.intro-emblem {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 24px);
  transform: translateX(-50%);
  width: 20px;
  height: 26px;
  object-fit: contain;
}
.gallery-emblem {
  display: block;
  width: 20px;
  height: 26px;
  margin: 0 auto 24px;
}
@media (max-width: 640px) {
  .intro-emblem { width: 18px; height: 24px; bottom: calc(100% + 16px); }
  .gallery-emblem { width: 18px; height: 24px; margin-bottom: 20px; }
}

@media (min-width: 741px) {
  .dining::before,
  .room::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: center / 100% 100% no-repeat;
    opacity: 1;
    pointer-events: none;
  }
  .dining::before { background-image: url("assets/dining-wave-line.svg"); }
  .room::before { background-image: url("assets/room-wave-line.svg"); }
}
