@charset "utf-8";
/* CSS Document */

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: clip;
}

.no-webp body {
  background-image: url(../img/bg-grid.png);
  background-repeat: repeat;
}

.webp body {
  background-image: url(../img/bg-grid.png);
  background-repeat: repeat;
}

body.modal-open {
  padding-right: 0 !important;
}

body,
td,
th {
  /* 黑體 */
  font-family: "Noto Sans TC", sans-serif;
  text-align: justify;
}

a:link {
  color: #000000;
  text-decoration: none;
}

a:visited {
  text-decoration: none;
  color: #000000;
}

a:hover {
  text-decoration: none;
  color: #000000;
}

a:active {
  text-decoration: none;
  color: #000000;
}

.chapterTitle {
  margin-bottom: 48px;
}

.chapterTitle h2 {
  color: #ffff00;
  font-size: 56px;
  text-align: center;
  font-family: "Dela Gothic One", sans-serif;
  /* letter-spacing: 8px; */
}

.color-y {
  color: #fffb14 !important;
}

.color-w {
  color: #ffffff !important;
}

.color-gy {
  color: #8f8f8f !important;
}

.color-gr {
  color: #27c24e !important;
}

.color-bl {
  color: #3282e5 !important;
}

.color-red {
  color: #e50012 !important;
}

.bg-red {
  background-color: #e50012 !important;
}

.bg-gray {
  background-color: #8f8f8f !important;
}
.bg-lightgray {
  background-color: #f3f3f3 !important;
}

.bg-pink {
  background-color: #e50012 !important;
}
.bg-blue {
  background-color: cornflowerblue !important;
}

.main-border-left,
.main-border-right {
  position: fixed;
  top: 0;
  width: 8px;
  height: 100%;
  background-image: url(../img/dec.svg);
  background-repeat: repeat-y;
  z-index: 99;
}

.main-border-right {
  right: 0;
}

/* 1) 媒體元素保險 */
img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 2) 盒模型統一，避免 padding 加寬 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 3) Flex/Grid 常見溢出：允許子項縮小 */
.studytrip-content,
.feature-area,
.plan,
[class*="row"],
[class*="grid"] > * {
  min-width: 0;
}

/* 4) 長英文/URL 自動換行，避免把容器撐爆 */
:where(p, li, .card, .studytrip-textbox, .plan) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* --------------------------- */
/* NAVBAR */
/* --------------------------- */
.navbar-custom {
  height: 100px;
  background-color: rgb(245 25 25 / 70%);
  border-radius: 0 0 80px 80px;
}

@media (max-width: 991px) {
  .navbar-custom {
    height: auto;
    background-color: #e50012;
    border-radius: 0 0 0 0;
  }
}

.navbar-brand img {
  height: 55px;
}

@media (max-width: 991px) {
  .navbar-brand img {
    height: 50px;
  }
}

.navbar-nav {
  margin: 0 0 0 auto;
}

.navbar .nav-link {
  color: #ffffff;
  font-size: 20px;
  margin: 0 12px;
  position: relative;
  text-align: center;
  /* -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out; */
}

.nav-item span {
  font-weight: 600;
}

@media (max-width: 1399px) {
  .navbar .nav-link {
    margin: 0 5px;
  }
}

@media (max-width: 1199px) {
  .navbar .nav-link {
    font-size: 16px;
    margin: 0 2px;
  }
}

@media (max-width: 991px) {
  .navbar .nav-link {
    color: white;
    font-size: 20px;
    margin: 3px 0 3px 20px;
  }
}

.navbar .nav-link:hover {
  color: #fffb14;
}

@media (max-width: 991px) {
  .navbar .nav-link:hover {
    color: yellow;
  }
}

.navbar .nav-link:after {
  content: "";
  display: block;
  width: 0;
  height: 4px;
  border-radius: 2px;
  background-color: #e50012;
  margin-top: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out; */
}

.navbar .nav-link:hover:after {
  width: 50%;
}

.navbar-toggler {
  background-color: white;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(28, 28, 28, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* --------------------------- */
/* NAVBAR */
/* --------------------------- */

/* --------------------------- */
/* SIDEMENU */
/* --------------------------- */
.sidemenu {
  position: fixed;
  top: 20%;
  right: 0;
  z-index: 999;
  font-size: 20px;
  line-height: 25px;
}

@media (max-width: 991px) {
  .sidemenu {
    top: auto;
    right: auto;
    bottom: 20px;
    left: 20px;
  }
}

.sidemenu a {
  color: white;
}

.sidemenu-form {
  font-weight: 600;
  color: #ffffff;
  background-color: #e50012;
  padding: 28px 16px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  /* -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out; */
}

@media (max-width: 991px) {
  .sidemenu-form {
    padding: 10px 0;
    border-radius: 10px;
    width: 60vw;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  }
}

.sidemenu-gotop {
  background-color: #fffb14;
  padding: 15px 10px;
  margin-top: 5px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  /* -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out; */
}

.sidemenu-form:hover {
  padding: 28px 28px 28px 16px;
  transition: ease-in-out 0.5s;
}

.sidemenu-gotop:hover {
  background-color: #e6e208;
}

/* --------------------------- */
/* SIDEMENU */
/* --------------------------- */

/* --------------------------- */
/* BANNER */
/* --------------------------- */
.banner-bg {
  border-radius: 0 0 360px 360px;
  background-size: cover;
  background-position: center;
  background-image: url("../img/banner1.jpg");
  background-size: cover;
  background-position: center;
  animation: bannerFade 15s infinite;
}

@keyframes bannerFade {
  0%,
  33% {
    background-image: url("../img/banner1.jpg");
  }
  34%,
  66% {
    background-image: url("../img/banner2.jpg");
  }
  67%,
  100% {
    background-image: url("../img/banner3.jpg");
  }
}

.banner-area {
  padding-top: 100px;
  position: relative;
}

@media (max-width: 991px) {
  .banner-area {
    padding-top: 60px;
    position: relative;
  }
}

.banner-area img {
  width: 100%;
}

.banner-decoration {
  position: absolute;
  top: 100px;
  left: 0;
  z-index: 1;
}

@media (min-width: 1440px) {
  .banner-area {
    width: 80%;
    margin: 0 auto;
  }
}
/* --------------------------- */
/* BANNER */
/* --------------------------- */

/* --------------------------- */
/* FEATURE */
/* --------------------------- */
/* #feature-area,
.feature-area {
  width: 100%;
}
#feature-area *[data-aos] {
  will-change: transform;
} */

/* 若有位移造成溢出，外層加護欄 */
.feature-area .overflow-guard {
  overflow: clip;
}

.feature-area {
  padding: 30px 0;
  position: relative;
}

.feature-decBox {
  position: absolute;
  bottom: 0;
  left: 20px;
  z-index: 99;
}

.feature-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  padding: 20px 32px;
}

.feature-imgBox {
  width: 30%;
}
/* 
.feature-imgBox img {
  width: 360px;
  height: 360px;
} */

.feature-textBox {
  display: flex;
  align-items: flex-start;
  justify-content: left;
  flex-direction: column;
  padding: 12px;
  width: 70%;
}

.feature-textBox h3 {
  font-size: 36px;
  font-weight: 800;
  /* font-family: "Dela Gothic One", sans-serif; */
  letter-spacing: 2.5px;
  color: #e50012;
  line-height: 1.5;
  margin-bottom: 20px;
}

.feature-textBox h4 {
  font-size: 18px;
  color: #ffffff;
  margin: 12px 0;
  letter-spacing: 1px;
  background-color: #9b000c;
  padding: 12px 20px;
  border-radius: 32px;
  margin: 20px 0 12px 0;
}

.feature-textBox p {
  font-size: 18px;
  line-height: 1.5;
}

.feature-textBox-m {
  display: none;
}

@media (max-width: 1199px) {
  .feature-imgBox {
    display: none;
  }
  .feature-textBox {
    width: 100%;
  }
  .feature-decBox {
    display: none;
  }
  .feature-textBox h3 {
    margin: 0 auto 20px auto;
    text-align: center;
  }
}

@media (max-width: 1099px) {
  .feature-decBox {
    left: -40px;
  }
}

@media (max-width: 991px) {
  .feature-area {
    padding: 60px 0 20px 0;
  }
  .feature-content {
    flex-wrap: wrap;
    align-items: center;
  }
  .feature-imgBox,
  .feature-textBox {
    width: 100%;
  }
  .feature-imgBox img {
    margin: 0 auto 20px auto;
    display: block;
    width: 70%;
    height: auto;
  }
  .feature-textBox {
    display: none;
  }
  .feature-textBox-m {
    display: flex;
    align-items: center;
    justify-content: left;
    flex-direction: column;
    padding: 12px;
  }
  .feature-textBox-m h3 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #e50012;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: center;
  }

  .feature-textBox-m h4 {
    font-size: 16px;
    color: #ffffff;
    margin: 12px 0;
    letter-spacing: 1px;
    background-color: #9b000c;
    padding: 12px 20px;
    border-radius: 32px;
    margin: 20px 0 12px 0;
  }
}

@media (max-width: 576px) {
  .feature-textBox-m h3 {
    font-size: 24px;
  }
  .feature-content {
    padding: 16px 8px;
  }
}

.feature-imgBox img {
  animation: floatIn 1.2s ease-out forwards,
    floatLoop 3.5s ease-in-out infinite 1.2s;
  opacity: 0;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatLoop {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
/* ✅ 小飛機剪影 */
.plane {
  position: absolute;
  right: 960px; /* 從左側畫面外起飛 */
  bottom: -40px; /* 從下方畫面外起飛 */
  width: 70px;
  height: 70px;
  background-image: url("../img/plane-pink.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  animation: planeFlyUp 7s ease-in-out infinite;
}

/* ✅ 飛行動畫：左下 → 右上 */
@keyframes planeFlyUp {
  0% {
    transform: translate(0, 0px) scale(0.9) rotate(-8deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(960px, -380px) scale(1) rotate(-8deg);
    opacity: 0;
  }
  100% {
    transform: translate(960px, -680px) scale(1) rotate(-8deg);
    opacity: 0;
  }
}

/* --------------------------- */
/* FEATURE */
/* --------------------------- */

/* --------------------------- */
/* IMGMARQUEE */
/* --------------------------- */
/* 基本可調參數 */
.marquee {
  --gap: 16px; /* 圖片間距 */
  --height: 180px; /* 跑馬燈高度（會等比裁切） */
  --speed: 120; /* 每秒位移像素（JS會覆蓋成精準值） */
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(180deg, #fff 0%, #ffe1e8 100%);
  padding: 16px 0;
}

.marquee__track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
  /* 先給個預設動畫；真實 duration 由 JS 依內容寬度計算 */
  animation: marquee linear infinite;
  animation-duration: 60s;
}

/* .marquee:hover .marquee__track {
  animation-play-state: paused;
} */

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  } /* 走完整個雙份內容的一半寬度 */
}

.marquee__item {
  flex: 0 0 auto;
  display: block;
  width: clamp(200px, 25vw, 360px); /* RWD 寬度 */
  height: var(--height);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 等高裁切、置中 */
  display: block;
}

/* 減少動效偏好 */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    transform: translateX(0);
  }
}

/* --------------------------- */
/* IMGMARQUEE */
/* --------------------------- */

/* --------------------------- */
/* CUPON */
/* --------------------------- */
.cupon-area {
  padding: 120px 0;
  background: #ff5555;
}

.cupon-title h4 {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 48px;
  color: #fffb14;
  text-align: center;
  letter-spacing: 2.5px;
}

.cupon-title p {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 48px;
}

.cupon-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin-bottom: 80px;
}

.cupon-box {
  display: flex;
  justify-content: space-around;
  position: relative;
}

.cupon-decBox {
  /* position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%); */
  background-color: #fffb14;
  padding: 4px 16px;
  border-radius: 8px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 12px;
}

.cupon-decBox p {
  margin-bottom: 0;
  font-weight: 600;
}

.cupon-decBox span {
  color: #000000;
}

.cupon-boxTitle {
  width: 25%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #e50012;
  border: 4px solid #e50012;
  border-radius: 20px 0 0 20px;
  position: relative;
}

.cupon-boxTitle h4 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 800;
}

.cupon-boxContent {
  width: 75%;
  background-color: #ffffff;
  border: 4px solid #e50012;
  border-radius: 0 20px 20px 0;
  padding: 24px;
}

.cupon-boxContent p {
  font-weight: 600;
}

.cupon-boxContent p span {
  font-size: 28px;
  font-weight: 600;
  color: #e50012;
}

.cupon-boxContent h3 {
  font-size: 20px;
}

.cupon-boxContent h3 span {
  font-size: 42px;
  font-weight: 800;
  color: #e50012;
}

.cupon-boxInner {
  display: flex;
  justify-content: center;
}

.groupCupon-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 32px;
}

.groupCupon-box:nth-child(2) {
  border-right: 2px solid #b9b9b9;
  border-left: 2px solid #b9b9b9;
}

.groupCupon-box p {
  margin-bottom: 0;
  font-weight: 600;
}

.cupon-boxInner h3,
.cupon-boxInner p,
.cupon-boxContent h3,
.cupon-boxContent p {
  font-size: 24px;
  margin-bottom: 12px;
}

@media (max-width: 1199px) {
  .cupon-boxContent h3 {
    font-size: 18px;
  }

  .cupon-boxContent h3 span {
    font-size: 24px;
  }
}

@media (max-width: 991px) {
  .cupon-boxContent {
    padding: 24px 6px;
  }
  .groupCupon-box {
    padding: 0 10px;
  }
  .cupon-boxTitle h4 {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .cupon-boxInner h3,
  .cupon-boxInner p,
  .cupon-boxContent h3,
  .cupon-boxContent p {
    font-size: 16px;
    margin-bottom: 0px;
  }
}

.cupon-for-pc {
  display: block;
}
.cupon-for-m {
  display: none;
}

@media (max-width: 576px) {
  .cupon-area {
    padding: 100px 0 10px 0;
  }
  .cupon-boxInner {
    flex-direction: column;
  }
  .groupCupon-box {
    flex-direction: row;
    padding: 16px 10px;
  }
  .groupCupon-box:nth-child(2) {
    border: 0px;
  }
  .groupCupon-box h3 {
    margin-bottom: 0px;
  }
  .cupon-for-pc {
    display: none;
  }
  .cupon-for-m {
    display: inline-block;
    width: 100%;
  }
  .cupon-for-m span {
    margin-left: 12px;
    margin-top: 12px;
    display: inline-block;
  }
  .cupon-decBox {
    padding: 4px 6px;
  }
}

@media (max-width: 499px) {
  .cupon-boxTitle h4 {
    font-size: 20px;
  }
  .groupCupon-box img {
    display: none;
  }
}

@media (max-width: 399px) {
  .cupon-boxInner h3,
  .cupon-boxInner p,
  .cupon-boxContent h3,
  .cupon-boxContent p {
    font-size: 16px;
  }
  .cupon-boxContent h3 span {
    font-size: 20px;
  }
  .cupon-boxTitle h4 {
    font-size: 18px;
  }
  .cupon-decBox p {
    font-size: 14px;
  }
}

.cupon-glow {
  position: relative;
  z-index: 1;
}

.cupon-glow::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 28px;
  background: linear-gradient(
    90deg,
    rgba(255, 61, 61, 0.9),
    rgba(218, 17, 17, 0.726)
  );
  background-size: 300% 300%;
  filter: blur(12px);
  z-index: -1;
  opacity: 0;
  animation: cuponGlow 6s ease-in-out infinite;
}

@keyframes cuponGlow {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  35% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* 第一個優惠框：先亮 */
.glow-1::before {
  animation-delay: 0s;
}

/* 第二個：接著亮 */
.glow-2::before {
  animation-delay: 2s;
}

/* 第三個：最後亮 */
.glow-3::before {
  animation-delay: 4s;
}

/* --------------------------- */
/* CUPON */
/* --------------------------- */

/* --------------------------- */
/* STUDYTRIP */
/* --------------------------- */
/* .studytrip-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.studytrip-content > * {
  min-width: 0;
} 
.studytrip-content .feature-imgBox img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
} */

.studytrip-area {
  padding: 120px 0;
  background: linear-gradient(150deg, #ff5555, #cb1010, #a12626, #ff5555);
}

.studytrip-decBox img {
  width: 400px;
  height: 400px;
}

.studytrip-title {
  font-family: "Dela Gothic One", sans-serif;
  text-align: center;
  letter-spacing: 2.5px;
}

.studytrip-title h3 {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 48px;
  color: #fffb14;
  margin-bottom: 48px;
}

.studytrip-title h4 {
  font-size: 32px;
  color: #ffffff;
}

.studytrip-box {
  margin: 60px 20px;
  padding: 8px;
  border-radius: 24px;
  border: 2px #ffffff solid;
}

.studytrip-box:hover {
  border: 2px #fffb14 solid;
}

.studytrip-inner {
  background-color: #ffffff;
  padding: 166px 36px 16px 36px;
  border-radius: 24px;
  position: relative;
  cursor: pointer;
}

.studytrip-inner a {
  text-decoration: none;
}

.studytrip-days {
  position: absolute;
  top: 5px;
  right: 26px;
  text-align: center;
  width: 28%;
  padding: 20px 0;
}

.studytrip-days h4 {
  font-size: 60px;
  font-family: "Dela Gothic One", sans-serif;
  color: #e50012;
  margin-bottom: 0;
}

.studytrip-days p {
  color: #8f8f8f;
  text-align: center;
  margin-bottom: 0px;
}

.studytrip-img {
  position: absolute;
  top: -40px;
  left: 36px;
  border-radius: 12px;
  width: clamp(200px, calc(100% - 72px), 300px);
  height: 170px;
}
.studytrip-img1 {
  background-image: url(../img/studytrip-img1.jpg);
  background-size: cover;
}

.studytrip-img2 {
  background-image: url(../img/studytrip-img2.jpg);
  background-size: cover;
}
.studytrip-img3 {
  background-image: url(../img/studytrip-img3.jpg);
  background-size: cover;
}
.studytrip-img4 {
  background-image: url(../img/studytrip-img4.jpg);
  background-size: cover;
}
.studytrip-img5 {
  background-image: url(../img/studytrip-img5.jpg);
  background-size: cover;
}
.studytrip-img6 {
  background-image: url(../img/studytrip-img6.jpg);
  background-size: cover;
}
.studytrip-img7 {
  background-image: url(../img/studytrip-img7.jpg);
  background-size: cover;
}
.studytrip-img8 {
  background-image: url(../img/studytrip-img8.jpg);
  background-size: cover;
}
.studytrip-img9 {
  background-image: url(../img/studytrip-img9.jpg);
  background-size: cover;
}
.studytrip-textbox h3 {
  font-size: 28px;
  font-weight: 800;
  color: #ab0411;
}

.studytrip-textbox h4 {
  color: #000000;
  font-weight: 600;
}

.studytrip-textbox ul {
  margin-top: 16px;
  padding-left: 0px;
  line-height: 2;
}

.studytrip-textbox li {
  text-decoration: none;
  font-size: 18px;
  list-style-type: none;
  letter-spacing: 1.2px;
  color: #000000;
}

.studytrip-textbox li span {
  color: #575757;
  margin-right: 12px;
}

.studytrip-intro {
  color: #000000;
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 12px;
}

.studytrip-intro p {
  line-height: 1.6;
  margin-bottom: 0px;
}

.studytrip-intro span {
  font-weight: 600;
  /* font-size: 18px; */
}

.studytrip-dateTitle {
  position: relative;
  text-align: center;
  z-index: 2;
  margin: 12px 0 0 0;
}

.studytrip-textbox .studytrip-dateTitle p {
  padding: 12px;
  color: #e50012;
  background-color: #ffffff;
  display: inline-block;
  margin-bottom: 0px;
}

.studytrip-dateTitle::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  border-bottom: 2px solid #e50012;
  width: 100%;
  z-index: -1;
}

.studytrip-date {
  font-size: 28px;
  font-weight: 800;
  color: #e50012;
  text-align: center;
}

.studytrip-btn button {
  position: absolute;
  bottom: -48px;
  left: 50%;
  font-size: 20px;
  font-weight: 600;
  color: #e50012;
  background-color: #fffb14;
  border: 2px solid #fffb14;
  border-radius: 16px;
  padding: 12px 32px;
  width: 160px;
  text-align: center;
  animation-name: cta-ani;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  -webkit-transition: all 0.1s linear;
  -moz-transition: all 0.1s linear;
}

@keyframes cta-ani {
  0% {
    transform: translate(-50%, -3px);
  }

  50% {
    transform: translate(-50%, 3px);
  }
  100% {
    transform: translate(-50%, -3px);
  }
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
}
.overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.hidden {
  display: none;
}

.dialog {
  background: #fff;
  width: min(92vw, 520px);
  border-radius: 16px;
  padding: 32px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.dialog h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.dialog p {
  margin: 0 0 12px;
  line-height: 1.5;
  color: #5e5e5e;
}
.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

@media (max-width: 1399px) {
  .studytrip-box {
    margin: 60px 0px;
  }

  .studytrip-days {
    width: 21%;
  }
}

@media (max-width: 1399px) {
  .studytrip-img {
    left: -14px;
  }
  .studytrip-days {
    right: 32px;
  }
}

@media (max-width: 479px) {
  .studytrip-box {
    border: 2px #fffb14 solid;
  }
  .studytrip-days {
    background-color: #ab0411;
    border-radius: 12px;
    padding: 8px 20px;
    width: auto;
    top: -25px;
    right: -12px;
  }
  .studytrip-days h4 {
    color: #ffffff;
  }
  .studytrip-days p {
    color: #f1f1f1;
  }
  .studytrip-inner {
    padding: 166px 20px 16px 20px;
  }
}

@media (max-width: 375px) {
  .studytrip-textbox h3 {
    font-size: 24px;
  }
  .studytrip-textbox h4 {
    font-size: 20px;
  }
  .studytrip-textbox li {
    font-size: 16px;
  }
  .studytrip-intro {
    font-size: 16px;
    padding: 16px;
  }
}

/* --------------------------- */
/* STUDYTRIP */
/* --------------------------- */

/* --------------------------- */
/* COUNT */
/* --------------------------- */
.count-area {
  padding: 100px 0;
  background-color: rgba(240, 255, 35, 0.623);
}
.count-box {
  padding: 8px;
  border: 2px #ffffff solid;
  margin: 0 auto;
  border-radius: 24px;
  position: relative;
}

.count-inner {
  border-radius: 32px;
  border: 1px solid #f2e8ff;
  padding: 3rem 2.25rem;
  background-color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.count-area h2 {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 56px;
  margin-bottom: 48px;
  text-align: center;
}
@media (max-width: 375px) {
  .count-area h2 {
    font-size: 32px;
  }
  .count-inner {
    padding: 3rem 1rem;
  }
}

.count-area .count-h3 {
  font-size: 24px;
  font-weight: 600;
}

.bf-trip-note {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #777;
}

.bf-trip-note span {
  font-weight: 600;
  color: #e50012;
}

.bf-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.bf-row label,
.bf-row legend {
  font-weight: 600;
  color: #000000;
}

#base-price {
  font-weight: 700;
  font-size: 1.1rem;
}

select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select:focus {
  border-color: #e9a6a6;
  box-shadow: 0 0 0 3px rgba(233, 166, 201, 0.25);
}

fieldset {
  border-radius: 12px;
  padding: 1rem 1rem 0.75rem;
}

#extras-container {
  margin-top: 0.25rem;
}

.bf-extra {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.45rem;
}

.bf-extra input {
  margin-right: 0.35rem;
}

.count-hr {
  display: block;
  width: 100%;
  border-top: 1px solid #f3e7ff;
}

.bf-summary {
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.bf-summary h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #444;
}

.bf-summary p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.bf-summary strong {
  font-weight: 700;
}

.bf-note-line {
  font-size: 0.8rem;
  color: #999;
  justify-content: flex-start;
}

#final-total {
  font-size: 24px;
  color: #e50012;
}

#due-now {
  color: #ff2323;
}

.bf-submit {
  margin-top: 1.75rem;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #ff3838, #fa5959);
  color: #fff;
  letter-spacing: 0.04em;
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.bf-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(255, 127, 127, 0.35);
  filter: brightness(1.04);
}

/* --------------------------- */
/* COUNT */
/* --------------------------- */

/* --------------------------- */
/* REGISTER */
/* --------------------------- */
.register-area {
  padding: 120px 0;
  background-color: #000000;
}

.register-area .chapterTitle {
  margin-bottom: 0px;
}

.register-info {
  color: #ffffff;
  margin: 0 auto;
  text-align: center;
}

.registerStar {
  text-align: end;
  color: #ffff00;
  margin-bottom: 32px;
}

.register-area .form-box {
  color: #ffffff;
  background-color: #000000;
}

.register-area .form-control,
.register-area .form-select,
.register-area .form-box .firstname {
  background-color: #353535;
  border: 1px #241a13 solid;
  border-radius: 0px !important;
}

.register-area .form-box .form-control,
.register-area .form-box .form-select {
  color: #ffff00;
}

.register-area .form-box .modalContract {
  color: #ffff00;
  margin-top: 20px;
}

.register-area button {
  font-family: "Dela Gothic One", sans-serif;
  color: #ffffff;
  background-color: #e50012;
  border: 3px #e50012 solid;
  border-radius: 0px;
  padding: 20px;
  font-size: 32px;
}

.register-area button:hover {
  background-color: #c20414;
  border: 3px #ffffff solid;
  color: #ffffff;
}

.form-box .from-check-box {
  display: flex;
  flex-wrap: wrap;
  margin-left: 12px;
}

@media (max-width: 576px) {
  .form-box .from-check-box {
    margin-left: 0px;
  }
}

@media (max-width: 480px) {
  .form-box .from-check-box {
    word-wrap: break-word;
  }
  .form-box .from-check-box label {
    width: 65%;
  }
}

@media (max-width: 410px) {
  .form-box .from-check-box label {
    width: 55%;
  }
}

.form-box .from-check-box .from-check-content {
  min-width: 500px;
  text-align: start;
}

.form-box .form-check .form-check-input {
  cursor: pointer;
}

.form-box .from-check-box .from-check-content label {
  cursor: pointer;
}

.register-area .form-box .form-select {
  padding: 0.8rem 0.75rem 0.7rem 13.5rem;
}

.register-area span {
  color: #ffff00;
}

.register-area p {
  margin-bottom: 0;
  font-weight: 600;
}

.form-control::placeholder {
  /* CSS 3 標準 */

  color: #8d8d8d;
}

.form-control::-webkit-input-placeholder {
  /* Chrome, Safari */

  color: #8d8d8d;
}

.form-control:-ms-input-placeholder {
  /* IE 10+ */

  color: #8d8d8d;
}

.form-control::-moz-placeholder {
  /* Firefox 19+ */

  color: #8d8d8d;

  opacity: 1;
}

input:-webkit-autofill {
  background-color: #353535 !important; /* 修改背景顏色 (黃色) */
  color: #ffff00 !important; /* 修改文字顏色 */
  -webkit-box-shadow: 0 0 0px 1000px #353535 inset !important; /* 避免被瀏覽器覆蓋 */
  -webkit-text-fill-color: #ffff00 !important; /* 確保字體顏色變更 */
}

.form-check-input:checked {
  background-color: #e50012;
  border-color: #e50012;
}

.required-tag {
  font-size: 12px;
  font-weight: 400;
  margin-right: 4px;
  color: #ffff00;
  letter-spacing: 4px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' width='24' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.form-title .form-label-in-box label {
  font-weight: 400;
}

/* --------------------------- */
/* REGISTER */
/* --------------------------- */

/* --------------------------- */
/* FOOTER */
/* --------------------------- */
.footer-area {
  padding: 30px 0;
  background-color: #1c1c1c;
  color: white;
  text-align: center;
  z-index: 999;
  position: relative;
}

@media (max-width: 991px) {
  .footer-area {
    padding: 30px 0 100px;
  }
}
/* --------------------------- */
/* FOOTER */
/* --------------------------- */

/* --------------------------- */
/* STUDYTRIP-PLANS */
/* --------------------------- */
.plans-header {
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 600px;
  padding: 100px 0 0 0;
  border-radius: 0 0 120px 120px;
}

.plans-header1 {
  background-image: url(../img/springsakura.jpg);
  background-size: cover;
  background-position: bottom;
}
.plans-header2 {
  background-image: url(../img/jlptsummer.jpg);
  background-size: cover;
  background-position: bottom;
}
.plans-header3 {
  background-image: url(../img/traditional.jpg);
  background-size: cover;
  background-position: bottom;
}
.plans-header4 {
  background-image: url(../img/summer3w.jpg);
  background-size: cover;
  background-position: bottom;
}

.plans-header5 {
  background-image: url(../img/summer4w.jpg);
  background-size: cover;
  background-position: bottom;
}
.plans-header6 {
  background-image: url(../img/otaku.jpg);
  background-size: cover;
  background-position: bottom;
}
.plans-header7 {
  background-image: url(../img/autumn.jpg);
  background-size: cover;
  background-position: bottom;
}
.plans-header8 {
  background-image: url(../img/jlptwinter.jpg);
  background-size: cover;
  background-position: bottom;
}

.plans-header h2 {
  font-size: 60px;
  font-weight: 600;
  margin: 20px 0;
  text-shadow: 0 0 0.2em rgba(31, 31, 31, 0.507),
    0 0 0.2em rgba(66, 66, 66, 0.678), 0 0 0.2em rgba(49, 49, 49, 0.603);
}
.plans-header h3 {
  font-size: 32px;
  text-shadow: 0 0 0.2em rgb(31, 31, 31), 0 0 0.2em rgb(66, 66, 66),
    0 0 0.2em rgb(49, 49, 49);
}
.plans-header p {
  font-size: 24px;
  letter-spacing: 6px;
  color: #ffff00;
  text-shadow: 0 0 0.2em rgba(31, 31, 31, 0.404),
    0 0 0.2em rgba(66, 66, 66, 0.555), 0 0 0.2em rgba(49, 49, 49, 0.493);
}
.plans-header h4 {
  display: none;
}

@media (max-width: 576px) {
  .plans-header {
    height: 400px;
    padding: 70px 0 0 0;
  }

  .plans-header h2 {
    display: none;
  }
  .plans-header h4 {
    font-size: 40px;
    text-align: center;
    display: inline-block;
    text-shadow: 0 0 0.2em rgba(31, 31, 31, 0.404),
      0 0 0.2em rgba(66, 66, 66, 0.555), 0 0 0.2em rgba(49, 49, 49, 0.493);
  }
  .plans-header h3 {
    display: none;
  }
  .plans-header p {
    font-size: 16px;
    letter-spacing: 2px;
  }
}

.plans-body {
  padding: 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.plans-video {
  width: 40%;
}
.video {
  width: 100%;
}

.video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 20px;
}

.plans-content {
  width: 60%;
  margin-left: 32px;
}

.plans-intro {
  margin: 20px 0 20px 12px;
}

@media (max-width: 991px) {
  .plans-intro {
    margin: 20px 0;
  }
}

.plans-intro h3 {
  color: #ff2323;
  font-weight: 800;
  margin-bottom: 16px;
}

.plans-intro p {
  line-height: 32px;
}

.plans-infoBox {
  background: #ffffff;
  padding: 12px 32px;
  box-shadow: 1px 1px 7px 1px rgb(138 138 138 / 39%);
  border-radius: 12px;
}

.plans-infoBox ul,
li {
  list-style: none;
  padding-left: 0;
}
.plans-infoBox li {
  font-size: 18px;
  font-weight: 600;
  margin: 16px 0px;
}
.plans-infoBox li span {
  color: #8d8d8d;
  margin-right: 20px;
}
.plans-btn-box {
  display: flex;
  justify-content: center;
  align-items: center;
}
.count-btn,
.plans-btn {
  font-size: 20px;
  font-weight: 600;
  background-color: #e50012;
  border-radius: 20px;
  padding: 8px 20px;
  display: inline-block;
  margin: 20px 12px 0 12px;
  color: #ffffff;
}

.count-btn {
  background-color: #ffff00;
  color: #000000;
}

@media (max-width: 1199px) {
  .plans-body {
    flex-wrap: wrap;
  }
  .plans-video {
    width: 100%;
  }
  .video {
    width: 80%;
    margin: 0 auto 32px auto;
  }
  .plans-content {
    width: 100%;
    margin-left: 0px;
  }
}

@media (max-width: 991px) {
  .video {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .plans-header h2 {
    font-size: 48px;
  }
  .plans-header h3 {
    font-size: 28px;
  }
  .plans-header p {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .plans-infoBox {
    padding: 12px;
  }
  .plans-infoBox li {
    font-size: 16px;
  }
}

/* --------------------------- */
/* STUDYTRIP-PLANS */
/* --------------------------- */
.plans-feature-area {
  padding: 100px 0;
  background: linear-gradient(
    150deg,
    rgb(246 50 50 / 85%),
    rgb(223 16 16 / 70%),
    rgb(255 76 76 / 85%)
  );
}

.plans-feature-content .chapter-title {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 56px;
  color: rgb(255, 251, 20);
  text-align: center;
  letter-spacing: 2.5px;
  margin-bottom: 48px;
}

.plans-feature-box {
  background-color: rgb(255 255 255 / 90%);
  padding: 180px 32px 20px 32px;
  border-radius: 12px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.plans-feature-box img {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
}

.plans-feature-intro h3 {
  font-size: 24px;
  font-weight: 600;
}

@media (max-width: 991px) {
  .plans-feature-area {
    padding: 60px 0;
  }
  .count-area {
    padding: 48px 0 100px 0;
  }
}

@media (max-width: 576px) {
  .plans-feature-intro h3 {
    font-size: 20px;
  }
}

/* --------------------------- */
/* ACCOMMODATION */
/* --------------------------- */
.accommodation-area {
  padding: 100px 0;
  background-image: url(../img/accommodation-bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.accommodation-area .chapterTitle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.accommodation-area .chapterTitle h2 {
  color: #ffffff;
}

.accommodation-area .chapterTitle p {
  font-size: 24px;
  color: #ffff00;
}

.accommodation-img-box {
  background-color: #eee;
  overflow: hidden;
  border-radius: 16px; /* 改成圓角方塊 */
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.08);
  transition: transform 0.3s ease;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accommodation-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.accommodation-img-box:hover {
  transform: scale(1.05);
}

.accommodation-intro {
  padding: 28px 32px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 1px 1px 7px rgba(49, 49, 49, 0.2);
}

.accommodation-intro h3 {
  font-size: 28px;
}
.accommodation-intro h4 {
  font-size: 20px;
  color: #e50012;
}

.accommodation-description {
  border-top: 1px solid #b4b4b4;
  padding: 12px 0 0 0;
  margin: 12px 0 0 0;
}

@media (max-width: 576px) {
  .accommodation-area .chapterTitle p {
    font-size: 18px;
  }
  .accommodation-intro {
    padding: 24px 20px;
  }
  .accommodation-intro h3 {
    font-size: 24px;
  }
}

/* --------------------------- */
/* ACCOMMODATION */
/* --------------------------- */
