/* Homepage layout based on the supplied 1915 × 4860 artwork. */
:root {
  color-scheme: light;
  --blue: #54b8dc;
  --pink: #e883aa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #075397;
  color: #fff;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #172d76;
  outline-offset: 6px;
}
section { position: relative; scroll-margin-top: 24px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px;
  background: #fff;
  color: #222;
}
.header { position: absolute; inset: 0 0 auto; height: 0; z-index: 20; }
.brand-ci { position: absolute; top: 1.36vw; left: 1.25%; width: 9.09%; }
.brand-sg { position: absolute; top: 1.15vw; right: 1.05%; width: 7.83%; }
.menu-toggle {
  position: absolute;
  top: 9.3vw;
  right: 1.62%;
  width: 2.8vw;
  height: 2.4vw;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .55vw;
}
.menu-toggle span {
  display: block;
  height: max(1px, .15vw);
  width: 100%;
  background: #fff;
  transition: transform .2s;
}
.menu-toggle[aria-expanded=true] span:first-child {
  transform: translateY(.35vw) rotate(45deg);
}
.menu-toggle[aria-expanded=true] span:last-child {
  transform: translateY(-.35vw) rotate(-45deg);
}
.site-nav {
  position: absolute;
  right: 2%;
  top: 12.5vw;
  width: min(310px, 90vw);
  background: #fff;
  color: #24628d;
  box-shadow: 0 8px 25px #173e5540;
  padding: 20px;
}
.site-nav:not([hidden]) { display: grid; gap: 6px; }
.site-nav a { padding: 14px 12px; text-decoration: none; font-weight: bold; }
.site-nav a:hover { background: #e5f5fb; }
.book-now { position: fixed; z-index: 30; right: 1.25%; top: 26.2vw; width: 4.125%; }
.hero {
  /* The desktop video artwork occupies about 64.3% of its encoded frame. */
  --hero-video-zoom: 1.56;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1080;
  overflow: hidden;
  background: #63bad8;
}
.hero-video-player, .hero-poster { position: absolute; inset: 0; }
.hero-video-player iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  transform: translate(-50%, -50%) scale(var(--hero-video-zoom));
  border: 0;
  pointer-events: none;
}
.hero-poster { z-index: 1; pointer-events: none; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero.is-playing .hero-poster { visibility: hidden; }
.hero-loading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  place-items: center;
  pointer-events: none;
}
.hero.is-loading .hero-loading { display: grid; }
.hero-loading img { width: clamp(48px, 6vw, 96px); height: auto; }
.hero-message {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #153c66b3;
  padding: 24px;
  text-align: center;
}
.hero-message[hidden] { display: none; }
.hero-message p { width: 100%; margin: 0; font-size: 16px; }
.hero-play {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #24628d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.hero-video-link { padding: 12px; font-size: 14px; }
.hero-sound {
  position: absolute;
  z-index: 4;
  left: 1.25%;
  bottom: 18px;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.hero-sound img { width: 100%; height: 100%; }
.hero-sound:disabled { opacity: .5; cursor: default; }
.hero-noscript { position: absolute; z-index: 4; left: 20px; bottom: 20px; padding: 12px; background: #24628d; }
.play {
  aspect-ratio: 1915 / 1409;
  background: url('../images/play/bg_02.jpg') center / 100% 100% no-repeat;
}
.play-frame { position: absolute; inset: 4.1% 3%; border: .26vw solid #fff; pointer-events: none; }
.play h2 { position: absolute; left: 32.59%; top: 10.4%; width: 34.83%; margin: 0; }
.play-intro {
  position: absolute;
  right: 9.25%;
  top: 26.7%;
  margin: 0;
  text-align: right;
  font-size: 1.52vw;
  line-height: 1.6;
  letter-spacing: .16vw;
  z-index: 2;
}
.attractions { position: absolute; left: 9.4%; top: 26.7%; width: 81.57%; height: auto; }
.intro-mobile-break, .intro-mobile-space { display: none; }
.attractions .swiper-slide img { width: 100%; height: auto; }
.play-tagline {
  position: absolute;
  right: 9%;
  top: 81.85%;
  margin: 0;
  font-size: 1.72vw;
  letter-spacing: .16vw;
  z-index: 3;
}
.play > .swiper-pagination {
  position: absolute;
  left: 0;
  bottom: 7.7%;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.3vw;
}
.play .swiper-pagination-bullet {
  width: .8vw;
  height: .8vw;
  border-radius: 0;
  background: #fff;
  opacity: .35;
  margin: 0 !important;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.play .swiper-pagination-bullet-active { opacity: 1; }
.choice {
  aspect-ratio: 1915 / 506;
  background:
    url('../images/choice/bg_03.jpg') left / 50% 100% no-repeat,
    url('../images/choice/bg_04.jpg') right / 50% 100% no-repeat;
}
.choice > a { position: absolute; top: 29.4%; width: 19.43%; text-align: center; text-decoration: none; }
.choice-friends { left: 26.8%; }
.choice-family { left: 53.55%; }
.choice-more {
  display: inline-block;
  margin-top: 1.15vw;
  padding: .1vw .35vw;
  background: var(--blue);
  font-size: 1.1vw;
  font-weight: bold;
  line-height: 1.25;
  letter-spacing: .05vw;
}
.choice-family .choice-more { background: var(--pink); }
.price {
  aspect-ratio: 1915 / 1864;
  background: url('../images/price/bg_05.jpg') center / 100% 100% no-repeat;
}
.price h2 {
  position: absolute;
  top: 8.9%;
  left: 0;
  width: 100%;
  text-align: center;
  margin: 0;
  font-size: 3.5vw;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .16vw;
}
.fare { position: absolute; left: 21.23%; width: 57.55%; display: block; text-decoration: none; }
.fare img { width: 100%; }
.fare .fare-heading { width: 82.94%; margin: 0 auto 1.25vw; }
.fare-kaohsiung .fare-heading { width: 85.75%; }
.fare-taipei { top: 14.9%; }
.fare-kaohsiung { top: 42.55%; }
.flight-note {
  display: block;
  height: 1.45vw;
  padding-top: .5vw;
  text-align: right;
  font-size: .65vw;
  line-height: 1;
  letter-spacing: .02vw;
}
.flight-inbound { margin-top: 1.5vw; }

@media (max-width: 767px) {
  section { scroll-margin-top: 16px; }
  .brand-ci { top: 18px; left: 16px; width: clamp(118px, 34vw, 140px); }
  .brand-sg { top: 14px; right: 74px; width: clamp(80px, 22vw, 96px); }
  .menu-toggle {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    padding: 10px;
    gap: 6px;
  }
  .menu-toggle span { height: 2px; }
  .menu-toggle[aria-expanded=true] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .menu-toggle[aria-expanded=true] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
  .site-nav { top: 64px; right: 12px; padding: 12px; }
  .book-now {
    top: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 60px;
  }
  .hero {
    --hero-video-zoom: 1;
    height: auto;
    aspect-ratio: 1080 / 1920;
  }
  .hero-video-player iframe {
    width: 100%;
    min-width: 0;
    height: 160%;
  }
  .hero-sound { left: 8px; top: 94%; bottom: auto; width: 40px; height: 40px; }
  .play { aspect-ratio: 1152 / 2048; padding: 0; }
  .play-frame { inset: 4.5vw; border-width: 1px; }
  .play h2 {
    position: absolute;
    top: 9.7vw;
    left: 23.1%;
    width: 53.8%;
    max-width: none;
    margin: 0;
  }
  .play-intro {
    position: absolute;
    top: 25.2vw;
    right: 9.7%;
    font-size: 2.7vw;
    line-height: 1.5;
    letter-spacing: .25vw;
    text-align: right;
  }
  .intro-desktop-break { display: none; }
  .intro-mobile-break, .intro-mobile-space { display: inline; }
  .attractions {
    position: absolute;
    top: 40vw;
    left: 11.9%;
    width: 76.9%;
    margin: 0;
  }
  .attractions picture { display: block; }
  .play-tagline {
    position: absolute;
    top: auto;
    bottom: calc(13.3vw + 8px);
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    font-size: 2.7vw;
    line-height: 1.5;
    letter-spacing: .25vw;
  }
  .play > .swiper-pagination {
    position: absolute;
    bottom: 7.3vw;
    margin-top: 0;
    gap: 0;
  }
  .play .swiper-pagination-bullet {
    display: grid;
    place-items: center;
    width: 6vw;
    height: 6vw;
    background: transparent;
  }
  .play .swiper-pagination-bullet::after {
    content: "";
    width: 2.25vw;
    height: 2.25vw;
    background: #fff;
  }
  .choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    aspect-ratio: auto;
  }
  .choice > a {
    position: static;
    width: 100%;
    padding: 32px 16px;
  }
  .choice > a img { width: 100%; max-width: 260px; margin: auto; }
  .choice-more { margin-top: 14px; padding: 3px 8px; font-size: 12px; letter-spacing: .5px; }
  .price {
    aspect-ratio: auto;
    padding: 40px 16px 260px;
    background-color: #02529b;
    background-position: center bottom;
    background-size: 100% auto;
  }
  .price h2 { position: static; font-size: 25px; letter-spacing: 1px; margin-bottom: 32px; }
  .fare { position: static; width: 100%; max-width: 560px; margin: 0 auto; }
  .fare + .fare { margin-top: 36px; }
  .fare .fare-heading,
  .fare-kaohsiung .fare-heading { width: 100%; margin-bottom: 18px; }
  .flight-note {
    height: auto;
    padding-top: 6px;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0;
  }
  .flight-inbound { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
