
/* Anchor offset: HTML 端實體錨點墊高，避開固定 navbar，不需要改 header.js */
:root {
  --anchor-offset: -20px;
}

@media (min-width: 768px) {
  :root {
    --anchor-offset: -12px;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

.anchor-offset {
  display: block;
  height: var(--anchor-offset);
  margin-top: calc(var(--anchor-offset) * -1);
  visibility: hidden;
  pointer-events: none;
}



/* coin animate */
@keyframes coinFloatLeft {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, 13px, 0);
  }
}

@keyframes coinFloatRight {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -15px, 0);
  }
}

.coin-float-left {
  animation: coinFloatLeft 4.2s ease-in-out infinite;
  will-change: transform;
}

.coin-float-right {
  animation: coinFloatRight 4.2s ease-in-out infinite;
  will-change: transform;
}

.route-btn,
.section4-tab,
.section6-main-tab {
  position: relative;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.route-btn img,
.section4-tab img,
.section6-main-tab img {
  box-shadow: none;
}

.route-btn.is-active,
.section4-tab.is-active,
.section6-main-tab.is-active {
  box-shadow: none;
}

.route-btn.is-active .route-btn-img-active,
.section4-tab.is-active .section4-tab-active,
.section6-main-tab.is-active .section6-main-tab-active {
  box-shadow: 2px 3px 3px -2px rgba(122, 109, 100, 0.26);
}

.route-btn.is-active .route-btn-img-active {
  opacity: 1;
}

.route-btn.is-active .route-btn-img-normal {
  opacity: 0;
}

.section4-tab.is-active .section4-tab-active {
  opacity: 1;
}

.section4-tab.is-active .section4-tab-default {
  opacity: 0;
}

.section4-swiper {
  overflow: visible;
}

.section4-swiper .swiper-slide {
  position: relative;
}

.section4-swiper .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(247, 238, 231, 0.12) 0%, rgba(247, 238, 231, 0.68) 48%, rgba(247, 238, 231, 0.96) 100%);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section4-swiper .swiper-slide-prev::after {
  background: linear-gradient(270deg, rgba(247, 238, 231, 0.12) 0%, rgba(247, 238, 231, 0.68) 48%, rgba(247, 238, 231, 0.96) 100%);
}

.section4-swiper .swiper-slide-active::after {
  opacity: 0;
}

.carousel-arrow {
  opacity: 1;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.carousel-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--carousel-arrow-w, 14px);
  height: var(--carousel-arrow-h, 48px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='48' viewBox='0 0 14 48' fill='none'%3E%3Cpath d='M1 47.0002L13 24.0002L1 1.00024' stroke='%23776B66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  transform: translate(-50%, -50%);
}

.carousel-arrow-prev::before {
  transform: translate(-50%, -50%) scaleX(-1);
}

.carousel-arrow.swiper-button-disabled,
.carousel-arrow.is-disabled {
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}

.js-wave-title-layer {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .visual-float-target {
    will-change: auto;
  }
}

.section6-main-tab.is-active .section6-main-tab-active,
.section6-sub-tab.is-active .section6-sub-tab-active {
  opacity: 1;
}

.section6-main-tab.is-active .section6-main-tab-default,
.section6-sub-tab.is-active .section6-sub-tab-default {
  opacity: 0;
}

.section6-panel:not(.is-active) {
  display: none;
}

.section6-sub-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 6px, 0);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 520ms;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.section6-sub-panel.is-active {
  position: absolute;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.section6-sub-panel-m:not(.is-active),
.js-section6-sub-panel-m:not(.is-active) {
  display: none;
}

.section6-swiper {
  overflow: hidden;
}

.section6-swiper .swiper-wrapper {
  align-items: center;
}

.section6-swiper .swiper-slide {
  width: 100% !important;
  height: auto;
  flex-shrink: 0;
}

.section6-swiper .swiper-slide img {
  display: block;
  width: 100%;
}

.section6-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 6px !important;
  background: #8bcfff;
  opacity: 0.7;
}

.section6-swiper .swiper-pagination-bullet-active {
  width: 34px;
  border-radius: 999px;
  background: #5bb8ff;
  opacity: 1;
}
