@font-face {
  font-family: "Noto Sans TC";
  src: url("../font/NotoSansTC-VariableFont_wght.woff2");
  font-weight: 100 900;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#navbar {
  background: linear-gradient(
    to left,
    #53a1c9 0%,
    #b7a9dd 21%,
    #fdc3be 54%,
    #fff6e3 100%
  );
}

#title {
  animation-name: fadeIn;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

#door {
  animation-name: riseUp;
  animation-duration: 3s;
  opacity: 0;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

#cloud {
  animation-name: riseUp;
  animation-duration: 3s;
  opacity: 0;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

#arrow {
  animation-name: slideIn;
  animation-duration: 2.5s;
  opacity: 0;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

#box1 {
  animation-name: slideIn;
  animation-duration: 3s;
  opacity: 0;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

#box2 {
  animation-name: slideIn;
  animation-duration: 3s;
  opacity: 0;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

.card {
  display: flex;
  flex-direction: column;
  width: calc(372 / 1440 * 100vw);
  min-width: calc(372 / 1440 * 100vw);
  height: calc(503 / 1440 * 100vw);
  border-radius: 20px;
  gap: calc(30 / 1440 * 100vw);
  align-items: center;
}

.card-compon1 {
  width: calc(322 / 1440 * 100vw);
  height: calc(355 / 1440 * 100vw);
  border-radius: 20px;
  margin-top: calc(20 / 1440 * 100vw);
}

.card-compon2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(324 / 1440 * 100vw);
  height: calc(67 / 1440 * 100vw);
  padding: calc(19 / 1440 * 100vw);
  border: 1px solid #968080;
  border-radius: 22px;
  background-color: white;
}

.card-compon2-titlebox {
  display: flex;
  align-items: center;
  gap: calc(8 / 1440 * 100vw);
  font-size: calc(32 / 1440 * 100vw);
  line-height: calc(32 / 1440 * 100vw);
  font-weight: 300;
  color: #968080;
}

.card-compon2-img {
  width: calc(40 / 1440 * 100vw);
  aspect-ratio: 1/1;
}

.reveal_to_t {
  opacity: 0;
}

.reveal_to_t.in-view {
  animation-name: reveal_t;
  animation-duration: 0.8s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

.reveal_to_l {
  opacity: 0;
  transform: translateX(50%);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.reveal_to_l.in-view {
  opacity: 1;
  transform: translateX(0);
}

.reveal_to_r {
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.reveal_to_r.in-view {
  opacity: 1;
  transform: translateX(0);
}

.trip_banner {
  animation-name: fadeIn;
  animation-duration: 1.2s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

@media (max-width: 640px) {
  .image_width {
    width: 92%;
    max-width: 1072px;
  }
  .text_box_width {
    width: 92%;
    max-width: 1072px;
  }
}

@media (min-width: 640px) and (max-width: 1024px) {
  .image_width {
    width: 85%;
    max-width: 1072px;
  }
  .text_box_width {
    width: 85%;
    max-width: 1072px;
  }
}

@media (min-width: 1024px) {
  .image_width {
    width: calc(1072 / 1440 * 100vw);
  }
  .text_box_width {
    width: calc(1072 / 1440 * 100vw);
  }
}

.adjust_width {
  width: calc(var(--w) / 1440 * 100vw);
}

.adjust_height {
  height: calc(var(--h) / 1440 * 100vw);
}

.adjust_text {
  font-size: calc(var(--text) / 1440 * 100vw);
  line-height: calc(var(--line) / 1440 * 100vw);
}

.adjust_marginT {
  margin-top: calc(var(--mt) / 1440 * 100vw);
}

.adjust_marginB {
  margin-bottom: calc(var(--mb) / 1440 * 100vw);
}

.adjust_marginL {
  margin-left: calc(var(--ml) / 1440 * 100vw);
}

.adjust_marginX {
  margin-inline: calc(var(--mx) / 1440 * 100vw);
}

.adjust_marginY {
  margin-block: calc(var(--my) / 1440 * 100vw);
}

.adjust_paddingL {
  padding-left: calc(var(--pl) / 1440 * 100vw);
}

.adjust_paddingR {
  padding-right: calc(var(--pr) / 1440 * 100vw);
}

.adjust_paddingT {
  padding-top: calc(var(--pt) / 1440 * 100vw);
}

.adjust_paddingB {
  padding-bottom: calc(var(--pb) / 1440 * 100vw);
}

.adjust_paddingX {
  padding-inline: calc(var(--px) / 1440 * 100vw);
}

.adjust_gap {
  gap: calc(var(--g) / 1440 * 100vw);
}

.adjust_top {
  top: calc(var(--t) / 1440 * 100vw);
}

.adjust_bottom {
  bottom: calc(var(--b) / 1440 * 100vw);
}

.adjust_right {
  right: calc(var(--r) / 1440 * 100vw);
}

.adjust_left {
  left: calc(var(--l) / 1440 * 100vw);
}

.adjust_radius {
  border-radius: calc(var(--radius) / 1440 * 100vw);
}

.adjust_radiusB {
  border-bottom-left-radius: calc(var(--radiusB) / 1440 * 100vw);
  border-bottom-right-radius: calc(var(--radiusB) / 1440 * 100vw);
}

header {
  background-color: rgba(86, 86, 86, 0.4);
  height: 90px;
  width: 100%;
  position: fixed;
}

.site-title {
  color: #fff;
  font-weight: bolder;
  text-decoration: none;
  line-height: 90px;
  font-size: 20px;
}

.nav-link {
  color: lightgrey;
  text-decoration: none;
  line-height: 90px;
}

.nav-link:hover {
  text-decoration: underline;
}

nav ul {
  position: absolute;
  right: 7vw;
  top: 0;
}
nav li {
  display: inline;
  margin-right: 1.5vw;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes riseUp {
  0% {
    transform: translateY(calc(300 / 1440 * 100vw));
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideIn {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes reveal_t {
  0% {
    transform: translateY(25%);
  }
  100% {
    opacity: 1;
  }
}

.ham {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 400ms;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.hamRotate.active {
  transform: rotate(45deg);
}

.hamRotate180.active {
  transform: rotate(180deg);
}

.line {
  fill: none;
  transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
  stroke: #968080;
  stroke-width: 5.5;
  stroke-linecap: round;
}

.ham4 .top {
  stroke-dasharray: 40 121;
}

.ham4 .bottom {
  stroke-dasharray: 40 121;
}

.ham4.active .top {
  stroke-dashoffset: -68px;
}

.ham4.active .bottom {
  stroke-dashoffset: -68px;
}

/* 讓圓角真正裁切到內部內容 */
.slider_mask {
  overflow: hidden;
  border-radius: calc(40 / 1440 * 100vw);
}

/* 走馬燈本體 */
.slideshow {
  position: relative;
}

/* 橫向排列並平滑位移 */
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

/* 每張圖寬度吃滿容器，高度自動；避免 inline-gap */
.slides img {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

/* 指示點（點點）樣式 */
.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slideshow-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #bbb;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.slideshow-dots .dot.active {
  background: #968080;
  transform: scale(1.1);
}

.mails_box_shadow {
  box-shadow: 0 0 15px 3px rgba(0, 0, 0, 0.15);
}

.mails_box_shadow:active {
  box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.15);
}

.members_tab {
  color: #968080;
  background-color: white;
}

.members_tab:hover {
  color: white;
  background-color: color-mix(in oklab, #968080 80%, transparent);
}

.members_tab:active {
  color: white;
  background-color: #968080;
}

.members_tab_clicked {
  color: white !important;
  background-color: #968080 !important;
}

.member_selector {
  width: calc(215 / 1440 * 100vw);
  transition: all;
  transition-duration: 250ms;
  transition-timing-function: linear;
  border-color: var(--color);
}

.member_selector:hover {
  width: 100%;
  background-color: color-mix(in oklab, var(--color) 60%, transparent);
}

.member_selector:active {
  width: 100%;
  background-color: var(--color);
}

.member_selector_clicked {
  width: 100%;
  background-color: var(--color) !important;
}

/*preloader*/
body.preload *:not(#preloader):not(#preloader *) {
  animation-play-state: paused !important;
  transition: none !important;
}

/* Preloader 覆蓋整個螢幕 */
#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  z-index: 9999;
  flex-direction: column;
  font-family: sans-serif;
  font-size: 1.5rem;
  color: #333;
}

/* 轉圈圈動畫 */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top-color: #968080;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 頁面內容動畫範例 */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  animation: marquee 20s linear infinite;
}

.marquee-track span {
  flex: none;
  padding-right: calc(48 / 1440 * 100vw);
  font-size: calc(128 / 1440 * 100vw);
  line-height: calc(128 / 1440 * 100vw);
  font-weight: 900;
  color: #968080;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
