@font-face {
  font-family: "GenJyuuGothic";
  src: url("../fonts/GenJyuuGothic-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "GenJyuuGothic";
  src: url("../fonts/GenJyuuGothic-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "GenJyuuGothic";
  src: url("../fonts/GenJyuuGothic-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
body {
  background: #f7f2ef;
  color: #302b33;
  font-family: "Microsoft JhengHei", "PingFang TC", sans-serif;
}

.footer-info,
.contact-details {
  font-family: "GenJyuuGothic", "Microsoft JhengHei", sans-serif;
}

::-moz-selection {
  background: #dcd2f3;
  color: #302b33;
}

::selection {
  background: #dcd2f3;
  color: #302b33;
}

:focus-visible {
  outline: 2px solid #504578;
  outline-offset: 5px;
}

@media (prefers-reduced-motion: no-preference) {
  html:has(#top:target, #tour:target) {
    scroll-behavior: smooth;
  }
  .has-js .tour-reveal {
    --cloud-scroll-distance: 1890px;
    --tour-transition-distance: 200px;
    --tour-curve-peek: 16px;
    --tour-transition-space: calc(var(--cloud-scroll-distance) + var(--tour-transition-distance) + var(--tour-curve-height) - var(--tour-curve-peek));
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 1024.98px) {
  .has-js .tour-reveal {
    --cloud-scroll-distance: 1350px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .has-js .tour-reveal .tour-hero,
  .has-js .tour-reveal .tour-hero-media {
    position: sticky;
    top: 0;
    min-block-size: 100dvh;
  }
  .has-js .tour-reveal .tour-transition-space {
    height: var(--tour-transition-space);
  }
  .has-js .tour-reveal .tour-intro {
    scroll-margin-top: var(--tour-curve-height);
  }
  .has-js .tour-reveal .tour-intro-edge {
    position: absolute;
    inset-inline: 0;
    bottom: 100%;
    height: calc(100dvh + var(--tour-transition-space));
    pointer-events: none;
  }
  .has-js .tour-reveal .tour-curve {
    position: sticky;
    top: calc(100dvh - var(--tour-curve-peek));
  }
}
.tour-reveal:has(.cloud-opening:not([hidden])) .tour-logo {
  filter: brightness(0);
}

.tour-anchor {
  top: var(--cloud-scroll-distance, 0px);
}

.cloud-opening {
  --cloud-opening-scale: 1;
}
@media (max-width: 1599.98px) {
  .cloud-opening {
    --cloud-opening-scale: .7;
  }
}
@media (max-width: 1024.98px) {
  .cloud-opening {
    --cloud-opening-scale: .6;
  }
}

.cloud-opening-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1910px;
  height: 940px;
  transform: translate(-50%, -50%) scale(var(--cloud-opening-scale));
  perspective: 2000px;
  perspective-origin: center 100vh;
}

.cloud-opening-scene {
  --cloud-depth: 0px;
  --cloud-tilt: 0deg;
  position: absolute;
  inset: 0;
  transform: translateZ(var(--cloud-depth)) rotateX(var(--cloud-tilt));
  transform-style: preserve-3d;
}
.cloud-opening-scene img {
  position: absolute;
  top: 0;
  max-width: none;
}
.cloud-opening-scene img + img {
  opacity: 0;
}
.cloud-opening-scene img:nth-child(1) {
  z-index: 1;
  left: 0;
  transform: translate3d(-160px, -100px, -200px);
}
.cloud-opening-scene img:nth-child(2) {
  top: -14%;
  left: 0;
  transform: translate3d(10px, -120px, -1000px);
}
.cloud-opening-scene img:nth-child(3) {
  right: 0;
  transform: translate3d(200px, -290px, -1800px);
}
.cloud-opening-scene img:nth-child(4) {
  left: 0;
  transform: translate3d(-540px, -40px, -2600px);
}
.cloud-opening-scene img:nth-child(5) {
  right: 0;
  transform: translate3d(1020px, -90px, -3400px);
}
.cloud-opening-scene img:nth-child(6) {
  left: 0;
  transform: translate3d(-240px, 260px, -4200px);
}

.tour-reveal {
  --tour-curve-height: clamp(42px, 5.2vw, 96px);
}

.tour-hero {
  min-block-size: 100svh;
  color: #f7f2ef;
}

.tour-hero-media {
  min-block-size: 100svh;
  background: #203a32;
}

.tour-hero-wash {
  background: #f7f2ef;
}

.tour-curve {
  height: var(--tour-curve-height);
  border-radius: 50% 50% 0 0/100% 100% 0 0;
  background: #f7f2ef;
}

.tour-mascot-log {
  position: absolute;
  display: block;
  max-width: calc(100vw - 24px);
  height: auto;
}

.tour-mascot-log-left {
  top: 52%;
  left: max(-36.7%, 50% - 50vw + 12px);
  width: 49%;
}
@media (max-width: 767.98px) {
  .tour-mascot-log-left {
    top: -22%;
    left: 0;
    width: 34.4%;
  }
}

.tour-mascot-log-center {
  top: 1%;
  left: max(-25.5%, 50% - 50vw + 12px);
  width: 69.8%;
}
@media (max-width: 767.98px) {
  .tour-mascot-log-center {
    top: -79%;
    right: 0;
    left: auto;
    width: 55.8%;
  }
}

.tour-mascot-log-right {
  top: 43.8%;
  right: max(-47%, 50% - 50vw + 12px);
  width: 58%;
}
@media (max-width: 767.98px) {
  .tour-mascot-log-right {
    top: calc(106.3% - 8px);
    right: auto;
    left: 42.2%;
    width: 42.2%;
  }
}

.tour-slogan {
  font-family: "GenJyuuGothic", "Microsoft JhengHei", sans-serif;
  line-height: 1.5;
  letter-spacing: 0.105em;
  text-shadow: 0 1px 4px rgba(16, 32, 27, 0.55);
}

.tour-intro-content {
  background: #f7f2ef;
}

.tour-intro-water {
  -webkit-mask: url("../images/intro/index-banner-mask.svg") center/100% 100% no-repeat;
          mask: url("../images/intro/index-banner-mask.svg") center/100% 100% no-repeat;
}

.tour-intro-bubble {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 1.25rem;
  padding: 0.85rem 1rem;
  background: #333;
  color: #f7f2ef;
  line-height: 1.4;
}

.tour-intro-title,
.tour-intro-bubble,
.experience-heading {
  font-family: "GenJyuuGothic", "Microsoft JhengHei", sans-serif;
  font-weight: 700;
}

.tour-intro-title,
.experience-heading {
  letter-spacing: 0.035em;
}

.section-english-label {
  color: #9a96df;
  font-family: "Patrick Hand", sans-serif;
  font-weight: 400;
  letter-spacing: 0.14em;
  -webkit-text-stroke: 0.35px currentColor;
}

.section-english-label-frame {
  border: solid transparent;
  border-width: 15px 17px;
  border-image-source: url("../images/section-english-capsule.svg");
  border-image-slice: 15 17;
  border-image-width: 50% calc(0.5lh + 5px);
  border-image-repeat: stretch;
}

@media (max-width: 767.98px) {
  .tour-intro-scene .tour-intro-bubble {
    position: absolute;
    isolation: isolate;
    align-items: center;
    border-radius: 0;
    padding: 0;
    background: none;
    font-size: clamp(0.9375rem, 3.65vw, 1.125rem);
    text-align: center;
  }
  .tour-intro-scene .tour-intro-bubble::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: url("../images/intro/speech-mobile-bottom.svg") center/100% 100% no-repeat;
    content: "";
  }
  .tour-intro-scene .tour-intro-hours {
    top: calc(7% - 20px);
    left: 13.5%;
    display: grid;
    width: min(70%, 13rem);
    aspect-ratio: 158.32/73.1;
    grid-template-columns: 90% 1fr;
    align-content: center;
    justify-items: center;
    padding-block: 0.25rem 1.4rem;
  }
  .tour-intro-scene .tour-intro-hours > span {
    grid-column: 1;
  }
  .tour-intro-scene .tour-intro-hours::before {
    background-image: url("../images/intro/speech-mobile-top.svg");
  }
  .tour-intro-baths,
  .tour-intro-snacks {
    display: grid;
    width: 63%;
    aspect-ratio: 219.98/92.32;
    grid-template-rows: 36% 1fr 2%;
    justify-items: center;
  }
  .tour-intro-baths > span,
  .tour-intro-snacks > span {
    grid-area: 2/2;
  }
  .tour-intro-baths {
    top: calc(100% - clamp(4.5rem, 17vw, 6rem) + 20px);
    left: 0;
    grid-template-columns: 4% 1fr 0;
  }
  .tour-intro-snacks {
    top: calc(100% + 20px);
    right: 7%;
    grid-template-columns: 0 1fr 4%;
  }
  .tour-intro-snacks::before {
    transform: scaleX(-1);
  }
}
@media (min-width: 1024px) {
  .tour-intro-bubble {
    border-radius: 0;
    padding-block: 0;
  }
  .tour-intro-hours {
    aspect-ratio: 392.86/122.39;
    padding-inline: 5% 12%;
    background: url("../images/intro/speech-1.svg") center/100% 100% no-repeat;
  }
  .tour-intro-baths {
    aspect-ratio: 518.28/118.71;
    padding-inline: 17% 4%;
    background: url("../images/intro/speech-2.svg") center/100% 100% no-repeat;
  }
  .tour-intro-snacks {
    isolation: isolate;
    aspect-ratio: 220.2/51.57;
    padding-inline: 4.5% 13%;
    background: none;
  }
  .tour-intro-snacks::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: url("../images/intro/speech-3.svg") center/100% 100% no-repeat;
    transform: scaleY(-1);
    content: "";
  }
}
.experience-wave {
  position: absolute;
  z-index: -1;
  inset: var(--experience-wave-center, 62%) -7% 0;
  border-radius: 50% 50% 0 0/2.5vw 2.5vw 0 0;
  background: #e2e2e2;
  pointer-events: none;
}
.experience-wave svg {
  display: none;
}
@media (max-width: 767.98px) {
  .experience-wave {
    --experience-wave-height: clamp(6rem, 28vw, 8rem);
    inset: calc(var(--experience-wave-center, 55%) - var(--experience-wave-height) / 2) 0 0;
    border-radius: 0;
    background: none;
  }
  .experience-wave svg {
    display: block;
    width: 200%;
    height: var(--experience-wave-height);
    fill: #e2e2e2;
  }
  .experience-wave::after {
    position: absolute;
    inset: calc(var(--experience-wave-height) - 1px) 0 0;
    background: #e2e2e2;
    content: "";
  }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
  .experience-wave svg {
    animation: experience-wave-drift 7s linear infinite;
  }
  .experience-wave path {
    transform-origin: center bottom;
    animation: experience-wave-swell 6s ease-in-out infinite alternate;
  }
}

@keyframes experience-wave-drift {
  to {
    transform: translateX(-50%);
  }
}
@keyframes experience-wave-swell {
  from {
    transform: scaleY(0.65);
  }
  to {
    transform: scaleY(1);
  }
}
.experience-photo {
  -webkit-mask: url("../images/experiences/ac-mask.svg") center/100% 100% no-repeat;
          mask: url("../images/experiences/ac-mask.svg") center/100% 100% no-repeat;
}

.experience-video {
  opacity: 0;
}
.experience-video.is-playing {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .experience-video {
    transition: opacity 0.5s;
  }
}

.experience-tag {
  writing-mode: vertical-rl;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.plans-prices {
  background: linear-gradient(rgba(238, 232, 245, 0.86), rgba(238, 232, 245, 0.95)), url("../images/experiences/history-trans-1.jpg") center 58%/cover no-repeat #eee8f1;
}

.plans-section {
  --plans-curve-height: clamp(1.5rem, 4vw, 4.5rem);
  --plans-extra-gap: 80px;
  --plans-transition-gap: calc(var(--section-gap) + var(--plans-extra-gap));
  margin-block-start: var(--plans-extra-gap);
}
@media (max-width: 767.98px) {
  .plans-section {
    --plans-extra-gap: 64px;
  }
}

.plans-section::before,
.plans-section::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.plans-section::before {
  z-index: -2;
  inset: calc(-1 * var(--plans-transition-gap)) 0 auto;
  height: calc(var(--plans-transition-gap) + var(--plans-curve-height));
  background: #e2e2e2;
}

.plans-section::after {
  z-index: -1;
  inset: 0 0 auto;
  height: var(--plans-curve-height);
  border-radius: 50% 50% 0 0/100% 100% 0 0;
  background: #f7f2ef;
}