@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.jpg);
  background-repeat: repeat;
}

.webp body {
  background-image: url(../img/bg.webp);
  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 {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

.chapterTitle h2 {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 3px;
}

.chapterTitle h3 {
  color: #0837ac;
  font-size: 32px;
  font-family: "Noto Serif JP", serif;
  font-weight: 800;
  text-align: center;
}

.chapterTitle p {
  color: #666666;
  text-align: center;
  margin: 20px 0 0 0;
}

@media (max-width: 767px) {
  .chapterTitle h2 {
    font-size: 36px;
  }

  .chapterTitle h3 {
    font-size: 24px;
  }

  .chapterTitle p {
    font-size: 18px;
  }
}
.color-red {
  color: #e50012 !important;
}

.color-w {
  color: #ffffff !important;
}
.color-blue {
  color: #0837ac !important;
}
.color-lightgreen {
  color: #dcff3f !important;
}

.bg-blue {
  background-color: #0837ac !important;
}

.banner-btnbox .br-blue {
  border: 2px#0837ac solid;
}

/* --------------------------- */
/* NAVBAR */
/* --------------------------- */
.navbar-custom {
  height: 100px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(1.5px);
}

@media (max-width: 991px) {
  .navbar-custom {
    height: auto;
    background-color: #ffffff;
    border-radius: 0 0 0 0;
  }
}

.navbar-brand img {
  height: 32px;
}

@media (max-width: 991px) {
  .navbar-brand img {
    height: 50px;
  }
}

@media (max-width: 767px) {
  .navbar-brand img {
    height: 28px;
  }
}
.navbar-nav {
  margin: 0 0 0 auto;
}

.navbar .nav-link {
  font-family: "Noto Serif JP", serif;
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  margin: 0 4px;
  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: #3d3d3d;
    font-size: 20px;
    margin: 3px 0 3px 20px;
  }
}

.navbar .nav-link:hover {
  color: #e50012;
  transform: scale(1.05);
}

.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: rgba(255, 255, 255, 0.815);
  border: 0px;
}

.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;
  font-family: "Noto Serif JP", serif;
  font-weight: 800;
}

@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: 2px solid #ffffff;
}

@media (max-width: 991px) {
  .sidemenu-form {
    padding: 10px 0;
    width: 60vw;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  }
}

.sidemenu-form:hover {
  padding: 28px 28px 28px 16px;
  transition: ease-in-out 0.5s;
  color: #dcff3f;
  border: 2px solid #dcff3f;
}

/* --------------------------- */
/* SIDEMENU */
/* --------------------------- */

/* --------------------------- */
/* BANNER */
/* --------------------------- */
.banner-area {
  padding-top: 100px;
}
.banner-bg {
  background-position: top;
  background-image: url("../img/bannerbg.png");
  background-repeat: no-repeat;
  height: 800px;
}

.banner-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 60px 0 0 0;
  gap: 20px;
}

.banner-content-m {
  display: none;
}

.banner-info-box {
  display: inline-block;
}

.banner-info-box h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 72px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
  background-color: #000000;
  padding: 20px 36px;
  display: inline-block;
}
.banner-info-h3box {
  margin: 60px 0 0 48px;
}
.banner-info-box h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  letter-spacing: 1.8px;
}
.banner-btnbox {
  display: flex;
  gap: 48px;
  margin: 60px 0 0 48px;
}
.banner-btnbox .cta-btn-box {
  margin-top: 0;
}

/* banner 裝飾圖 */
.banner-decbox {
  position: relative;
  width: 580px;
  height: 580px;
}
.banner-decbox img {
  width: 100%;
  height: auto;
}

.banner-img {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}
.banner-dec-ani-1 {
  animation-name: bannerDecAni1;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.banner-dec-ani-2 {
  animation-name: bannerDecAni2;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

@keyframes bannerDecAni1 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.25;
  }
}

@keyframes bannerDecAni2 {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }

  100% {
    opacity: 1;
  }
}
@media (max-width: 1399px) {
  .banner-info-box h2 {
    font-size: 52px;
  }
  .banner-info-h3box {
    margin: 36px 0 0 28px;
  }
  .banner-btnbox {
    margin: 28px 0 0 28px;
  }
  .banner-btnbox .cta-btn {
    padding: 18px 36px 18px 24px;
  }
  .banner-decbox {
    width: 570px;
    height: 570px;
  }
}

@media (max-width: 1199px) {
  .banner-bg {
    height: 680px;
    background-position: bottom;
  }
  .banner-info-box h2 {
    font-size: 40px;
  }
  .banner-info-h3box {
    margin: 36px 0 0 14px;
  }
  .banner-info-box h3 {
    font-size: 20px;
  }
  .banner-decbox {
    width: 480px;
    height: 480px;
  }
  .banner-btnbox .cta-btn {
    font-size: 18px;
    padding: 14px 18px;
  }
}

@media (max-width: 991px) {
  .banner-bg {
    height: 800px;
  }
  .banner-area {
    padding-top: 60px;
    position: relative;
  }
  .banner-content {
    display: none;
  }
  .banner-content-m {
    display: block;
  }
  .banner-content-m img {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .banner-bg {
    background-image: url(../img/bannerbg-m.png);
    width: 100%;
    height: auto;
    display: block;
    background-size: cover;
  }

  .banner-content-m img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* --------------------------- */
/* BANNER */
/* --------------------------- */

/* --------------------------- */
/* FEATURE */
/* --------------------------- */
.feature-area {
  padding: 20px 0 0 0;
  position: relative;
}
@media (max-width: 499px) {
  .feature-area .chapterTitle h2 {
    font-size: 6.5vw;
  }
}

.feature-content {
  display: flex;
  flex-wrap: wrap;
  font-size: 20px;
  position: relative;
  width: 70%;
  margin: 60px auto;
}
.feature-decg {
  position: absolute;
  bottom: 0;
  left: -180px;
}
.feature-decb {
  position: absolute;
  top: 0;
  right: -180px;
}

.feature-box {
  width: 50%;
  text-align: center;
}
.feature-box:nth-child(even) {
  padding: 48px 0 0 0;
}

.feature-q {
  position: relative;
  display: inline-block;
  padding: 16px 23px;
  color: #fff;
  font-weight: bold;
  font-size: 1.25rem;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: rotate(-1deg);
}

/* 黑色：極度不規則多邊形 */
.q-black-alt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 110' preserveAspectRatio='none'%3E%3Cpath d='M8 22 L150 5 L310 12 L315 50 L308 95 L160 105 L15 98 L5 55 Z' fill='black'/%3E%3C/svg%3E");
}

/* 紅色：另一種歪斜路徑，避免視覺重複 */
.q-red-alt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 110' preserveAspectRatio='none'%3E%3Cpath d='M15 10 L165 2 L305 15 L315 65 L295 102 L140 92 L25 108 L2 45 Z' fill='%23e50012'/%3E%3C/svg%3E");
}

/* 答案區塊 */
.feature-a {
  padding: 10px 0 0 20px;
  font-size: 20px;
  line-height: 1.7;
  color: #333;
}

.text-blue {
  color: #0837ac;
  font-weight: bold;
}

.shake-animation:hover {
  animation: shake-animation 0.6s infinite linear;
}

@keyframes shake-animation {
  0% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-2px, -2px);
  }
  20% {
    transform: translate(2px, -1px);
  }
  30% {
    transform: translate(-3px, 1px);
  }
  40% {
    transform: translate(3px, 2px);
  }
  50% {
    transform: translate(-1px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  70% {
    transform: translate(-2px, 1px);
  }
  80% {
    transform: translate(3px, -2px);
  }
  90% {
    transform: translate(-1px, 2px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@media (max-width: 991px) {
  .feature-content {
    width: 100%;
  }
  .feature-decb {
    top: -140px;
    right: -120px;
  }
  .feature-decg {
    bottom: -80px;
    left: -120px;
  }
}

@media (max-width: 767px) {
  .feature-content {
    margin: 20px auto;
  }
  .feature-box {
    width: 100%;
  }
  .feature-decb {
    top: -60px;
  }
  .feature-box:nth-child(odd) {
    padding: 16px 0;
  }
  .feature-box:nth-child(even) {
    padding: 16px 0;
  }
}
@media (max-width: 576px) {
  .feature-decg {
    display: none;
  }
  .feature-decb {
    display: none;
  }
}
/* --------------------------- */
/* FEATURE */
/* --------------------------- */

/* --------------------------- */
/* COURSE */
/* --------------------------- */
.course-area {
  padding: 100px 0;
  background-color: rgb(0 0 0 / 12%);
}

/* 舊的課程顯示 */

/* .course-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start; 
  gap: 20px;
  margin-top: 80px;
}

.course-card {
  background: #fff;
  padding: 40px 30px 12px 30px;
  width: 240px;
  border: 1px solid #ddd;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.course-card.is-featured {
  border: 4px solid #d4ff00;
  z-index: 10;
  transform: scale(1.05); 
}

.badge-red {
  display: inline-block;
  background: #e50012;
  color: #fff;
  padding: 4px 15px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.course-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  color: #333;
  margin-bottom: 0px;
  font-family: "Noto Serif JP", serif;
}

.course-title .plus {
  color: #e50012;
}

.course-desc {
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 800;
  color: #0837ac;
  line-height: 1.4;
  margin: 8px 0;
}

.course-tag {
  font-size: 42px;
  font-weight: 900;
  color: #e50012;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.course-tag span {
  font-size: 20px;
  position: absolute;
  top: 14px;
  left: -20px;
}

.detail-divider {
  border-top: 1px solid #0837ac;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  justify-content: center;
}

.detail-divider span {
  background: #fff;
  padding: 0 10px;
  position: relative;
  top: -12px;
  color: #0837ac;
  font-size: 14px;
}

.course-detail ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.course-detail li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: #666;
  font-size: 14px;
}

.popular-tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #d4ff00;
  padding: 8px 25px;
  font-weight: bold;
  border-radius: 5px;
}

.popular-tag::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #d4ff00;
}

@media (max-width: 1024px) {
  .course-grid {
    align-items: stretch; 
    gap: 15px;
  }

  .course-card.is-featured {
    transform: scale(1.02); 
  }

  .course-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .course-grid {
    flex-direction: column;
    align-items: center;
    gap: 60px; 
  }

  .course-card {
    width: 100%;
    max-width: 450px;
    padding: 20px 20px 12px 20px;
  }

  .course-card.is-featured {
    transform: scale(1); 
    order: -1; 
  }

  .popular-tag {
    top: -40px; 
  }

  .course-tag {
    font-size: 36px;
  }
}

@media (max-width: 575px) {
  .course-title {
    font-size: 28px;
  }
  .course-card {
    padding: 20px 20px 12px 20px;
  }
} */
/* 舊的課程顯示 */

/* 新的課程顯示 */
.course-grid {
  display: flex;
  background-color: #dd0000;
  padding: 24px;
  position: relative;
  margin-top: 136px;
}
.course-hot {
  position: absolute;
  top:-122px;
  left: -32px;
  transform: rotate(-12deg);
  font-size: 24px;
  font-weight: 800;
  color: #dd0000;
}
.course-tag {
  position: absolute;
  top: -76px;
  left: 0;
  background: #dd0000;
  padding: 16px 40px 12px 24px;
  color: #ffffff;
  clip-path: polygon(0 0, 90% 0%, 100% 100%, 0% 100%);
}
.course-tag2 {
  position: absolute;
  top: -100px;
  right: -16px;
  background: #d4ff00;
  padding: 16px 24px 12px 56px;
  color: #dd0000;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  text-align: center;
  white-space:nowrap;
}
.course-tag2m {
  display: none;
}
.course-tag h2 {
  color: #FFF100;
  font-weight: 600;
  letter-spacing: 1.2px;
}
.course-tag span {
  text-decoration: line-through;
  margin-right: 12px;
}
.course-tag p, .course-tag2 p, .course-tag2m p {
  margin-bottom: 0;
  font-weight: 800;
}
.course-tag2 h2, .course-tag2m h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.course-tag2 span, .course-tag2m span {
  text-decoration: line-through;
  margin-right: 12px;
}
.course-tag2 p, .course-tag2m p {
  color: #000000;
}
.course-box {
  width: 25%;
  background-color: #ffffff;
  padding: 36px 24px;
  border: 12px solid #dd0000;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.course-box-mark {
  border-top: 16px solid #d4ff00;
  border-right: 8px solid #d4ff00;
  border-left: 8px solid #d4ff00;
  border-bottom: 16px solid #d4ff00;
}
.course-box-markL {
  border-left: 16px solid #d4ff00;
}
.course-box-markR {
  border-right: 16px solid #d4ff00;
}
.course-box h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 800;
}
.course-box h4 {
  font-size: 20px;
  font-weight: 600;
}
.course-box p {
  margin-bottom: 0px;
}

.course-infoCta {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.course-ctaBox {
  display: flex;
  gap: 32px;
  padding-right: 24px;
}
.course-ctaBox .cta-btn {
  background-color: #0837ac;
  border: 2px solid #0837ac;
}
.course-ctaBox .cta-btn:hover {
  background-color: #072d8f;
}


@media (max-width: 991px) {
  .course-grid {
    flex-wrap: wrap;
  }
  .course-box {
    width: 100%;
  }
  .course-tag2 {
    display: none;
  }
  .course-tag2m {
    display: block;  
    position: absolute;
    top: -100px;
    right: -16px;
    background: #d4ff00;
    padding: 16px 24px 12px 56px;
    color: #dd0000;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    text-align: center;
    white-space:nowrap;
  }
  .course-box-mark {
    border: 16px solid #d4ff00;
  }
  .course-box-markL {
    border-bottom: 0px;
  }
  .course-box-markR {
    border-top: 0px;
  }
  .course-infoCta {
    flex-direction: column;
  }
}
@media (max-width: 575px) {
  .course-infoCta .cta-btn {
    font-size: 18px;
    padding: 8px 20px 8px 20px;
  }
  .course-infoCta .cta-btn .arrow-svg {
    width: 32px;
    right: -16px;
  }
  .course-infoCta p {
    font-size: 14px;
    text-align: center;
  }
  .course-hot {
    left: 4px;
    transform: rotate(0deg);
  }
}
@media (max-width: 475px) {
  .course-grid {
    margin-top: 96px;
  }
  .course-tag {
    top: -56px;
  }
  .course-tag2m {
    top: -80px;
  }
  .course-hot {
    top: -92px;
  }
  .course-tag h2, .course-tag2m h2 {
    font-size: 18px;
  }
  .course-tag p, .course-tag2m p {
    font-size: 12px;
  }
  .course-tag span, .course-tag2m span {
    margin-right: 6px;
  }
  .course-tag {
    padding: 16px 42px 12px 18px;
  }
  .course-tag2m {
    padding: 16px 18px 12px 42px;
  }
}
@media (max-width: 370px) {
  .course-ctaBox {
    flex-direction: column;
    gap: 12px;
  }
}

/* 新的課程顯示 */

/* 單科課程 */

.planSwiper {
  margin-top: 60px;
}

.single-plan-card {
  background-color: #e50012;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  text-align: left;
}

/* 標籤設計 */
.plan-tag {
  font-family: "Noto Serif JP", serif;
  display: inline-block;
  padding: 4px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  align-self: flex-start;
  margin-bottom: 0px;
  background-color: #d4ff00;
  color: #000000;
}

.plan-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 8px 0;
}

.plan-name {
  font-family: "Noto Serif JP", serif;
  font-size: 26px;
  font-weight: bold;
  margin: 0;
  letter-spacing: 1.2px;
}

.plan-price {
  font-size: 36px;
  font-weight: bold;
  color: #d4ff00;
  position: relative;
}
.plan-price span {
  font-size: 18px;
  position: absolute;
  top: 10px;
  left: -20px;
}
.plan-priceinfo {
  top: auto !important;
  left: auto !important;
  right: 4px;
  bottom: 4px;
}

.plan-info {
  margin: 0 0 0 6px;
  font-size: 14px;
  opacity: 0.9;
}

@media (max-width: 575px) {
  .plan-name {
    font-size: 20px;
  }
  .plan-price {
    font-size: 28px;
  }
  .plan-price span {
    left: -14px;
  }
}

/* --------------------------- */
/* COURSE */
/* --------------------------- */

/* --------------------------- */
/* CLASS */
/* --------------------------- */
.class-area {
  padding: 100px 0 0 0;
}

.class-card-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.class-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  margin: 32px 0;
}

.class-card-inner {
  background: #fff;
  padding: 32px 20px 20px 20px;
  box-shadow: 0 2px 20px rgba(75, 75, 75, 0.253);
  border: 2px #ffffff solid;
}

.class-tag {
  background: #e50012;
  color: #fff;
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.class-title {
  font-family: "Noto Serif JP", serif;
  font-size: 32px;
  font-weight: 800;
  padding: 20px 0;
  color: #000;
  letter-spacing: 1px;
  margin-bottom: 0;
}

.class-days {
  color: #0837ac;
  padding: 12px 32px 20px 32px;
  font-weight: 500;
}

/* --- 日期佈局 --- */
.date-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.date-label {
  display: inline-block;
  background: #ebebeb;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  color: #333;
  margin-bottom: 10px;
}

.date-main .year {
  font-size: 14px;
  color: #666666;
  margin-bottom: 0;
}

.day-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.date-num {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #000000;
}

/* 星期標籤 */
.day-tag {
  font-size: 12px;
  transform: rotate(90deg);
  padding: 0 0 8px 0;
  border-bottom: 1px solid #ccc;
  line-height: 1;
  color: #0837ac;
  font-weight: 800;
}
.off-info {
  font-size: 14px;
  color: #666;
}
.class-card-inner:hover {
  border: 2px solid #dcff3f;
  transform: scale(1.05);
  transition-duration: 1s;
}

.class-card .cta-btn {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  letter-spacing: 1.3px;
  padding: 8px 36px;
  font-size: 18px;
  border: 0px solid #e50012;
}

.class-card:hover .cta-btn {
  background: #e50012; /* 稍微變亮 */
  border: 0px solid #ffffff;
  padding: 8px 36px;
  transform: scale(1);
}

@media (max-width: 575px) {
  .class-card {
    margin: 12px 0;
  }
  .class-title {
    font-size: 28px;
  }
}

/* --------------------------- */
/* CLASS */
/* --------------------------- */

/* --------------------------- */
/* TRIAL */
/* --------------------------- */
.trial-area {
  padding: 100px 0 60px 0;
  position: relative;
}
.trial-area::after {
  content: "";
  background-color: #000000;
  width: 100%;
  height: 280px;
  position: absolute;
  bottom: 0;
  left: 0;
}
.trial-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  z-index: 2;
  position: relative;
}

.trial-content .cta-btn-box {
  text-align: start;
}
.trial-cardbox {
  width: 860px;
  max-width: 100%;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  /* 修正：自動輪播時用 mandatory 會跟 JS 打架，改用 proximity */
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
}

.trial-card {
  width: 280px;
  padding: 30px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: url(../img/trial-cardbg.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  flex: 0 0 280px;
  scroll-snap-align: center;
  user-select: none;
}

@media (max-width: 1399px) {
  .trial-cardbox {
    width: 580px;
  }
}

@media (max-width: 991px) {
  .trial-cardbox {
    width: 360px;
  }
}

/* 移除副本可能帶有的隱藏屬性 */
.trial-card[data-aos] {
  transition: opacity 0.5s, transform 0.5s;
}

.divider {
  width: 90%;
  border: 0;
  border-top: 1px #2e2e2e solid;
  margin: 0 auto;
}

.trial-card .class-title {
  padding: 8px 0 12px 0;
}

.trial-card .year {
  margin-top: 20px;
}

.trial-card .date-num {
  font-size: 36px;
}

.trial-card .divider {
  width: 70%;
}

/* 底部時間 */
.time-range {
  font-size: 24px;
  color: #888888;
  margin: 0;
  font-weight: 600;
}

/* 額滿、過期 */
.trial-over {
  position: relative;
}
.trial-over::before {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  color: #e50012;
  z-index: 99;
  content: "已結束";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.trial-over::after {
  z-index: 98;
  content: "";
  width: 220px;
  height: 240px;
  background-color: #ffffff9f;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(1.5px);
}

/* 輪播 */

.trial-cardbox::-webkit-scrollbar {
  display: none;
}

/* 關鍵：重置瞬間強制取消動畫 */
.trial-cardbox.no-smooth {
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}

.trial-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
}

.cta-btn-box-m {
  display: none;
}

@media (max-width: 767px) {
  .trial-area::after {
    height: 620px;
  }
  .trial-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .trial-content .cta-btn-box {
    display: none;
  }
  .trial-cardbox {
    width: 90vw;
  }
  .trial-area .cta-btn-box-m {
    display: block;
    margin: 32px 0 0 0;
  }
}

.trial-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}
.nav-btn svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  fill: #000000;
  background-color: #dcff3f;
  padding: 12px;
  border-radius: 20px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.prev-btn {
  left: -50px;
}
.next-btn {
  right: -50px;
}

/* RWD: 當空間不足時，將箭頭移入容器邊緣 */
@media (max-width: 1399px) {
  .prev-btn {
    left: -20px;
  }
  .next-btn {
    right: -20px;
  }
}

/* 1400px 以上如果你的佈局是不滾動的，就隱藏箭頭 */
/* @media (min-width: 1400px) {
  .nav-btn {
    display: none;
  }
} */

/* --------------------------- */
/* TRIAL */
/* --------------------------- */

/* --------------------------- */
/* WORKFLOW */
/* --------------------------- */

.workflow-container {
  padding: 100px 0;
  overflow: hidden;
  background-image: url(../img/workflow-bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 時間軸容器 */
.workflow-workflow-line {
  position: relative;
  max-width: 900px;
  margin: 50px auto 0;
}

/* 中間那條白線 */
.workflow-line-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ffffff;
  transform: translateX(-50%);
}

/* 每一行的容器 */
.workflow-line-item {
  display: flex;
  width: 100%;
  position: relative;
}

/* 內容區塊 */
.workflow-line-content {
  width: 45%;
}

/* 圓點與箭頭容器 */
.workflow-line-dot {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 16px;
  height: 16px;
  background-color: #0837ac;
  border: 3px solid #0837ac;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 99;
}

/* 箭頭樣式 */
.dot-arrow {
  position: absolute;
  top: -24px;
  font-size: 35px;
  color: #ffffff;
}

/* 左側項目樣式 */
.left-item {
  justify-content: flex-start;
  text-align: right;
}
.left-item .dot-arrow {
  left: -30px;
}

/* 右側項目樣式 */
.right-item {
  justify-content: flex-end;
  text-align: left;
}
.right-item .dot-arrow {
  right: -30px;
}

/* 內部文字樣式 */
.workflow-step {
  font-size: 16px;
  font-weight: 600;
  background-color: #dcff3f;
  color: #000000;
  border-radius: 32px;
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 8px;
}

.workflow-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  font-family: "Noto Serif JP", serif;
}

.workflow-text {
  color: #fff39c;
  letter-spacing: 1.2px;
}

/* RWD 手機版優化 */
@media (max-width: 991px) {
  .workflow-line-line {
    left: 20px; /* 線條移到左邊 */
  }
  .workflow-line-item {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 50px;
  }
  .workflow-line-content {
    width: 100%;
  }
  .workflow-line-dot {
    left: 20px;
  }
  .dot-arrow {
    display: none; /* 手機版建議隱藏橫向箭頭，避免畫面太亂 */
  }
}

/* --------------------------- */
/* WORKFLOW */
/* --------------------------- */

/* --------------------------- */
/* TIMELINE */
/* --------------------------- */

.timeline-area {
  padding: 100px 0 0 0;
}
.timeline-content {
  position: relative;
}
.timeline-btnbox {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 48px 0 36px 0;
}
.timeline-btn {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 600;
  padding: 8px 20px;
  color: #b3b3b3;
  background-color: #d2d2d2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-btn:hover {
  transform: scale(1.15);
}
.timeline-btn.active {
  color: #ffffff;
  background-color: #e50012;
}
.timeline-u-pc img,
.timeline-l-pc img {
  width: 100%;
  display: block;
}
/* PC 端維持原本樣式 */
.timeline-content {
  width: 100%;
  overflow: hidden; /* 防止 AOS 動畫造成溢出 */
}

.timeline-u-pc img,
.timeline-l-pc img {
  width: 100%;
  height: auto;
  display: block;
}

/* 767px 以下 RWD 設定 */
@media (max-width: 767px) {
  .timeline-u-pc,
  .timeline-l-pc {
    width: 100%;
    overflow-x: auto; /* 開啟橫向滾動 */
    -webkit-overflow-scrolling: touch; /* 讓 iOS 滑動更順暢 */
    padding-bottom: 15px; /* 留一點空間給滾動條，或隱藏滾動條 */
    scroll-snap-type: x proximity;
  }

  /* 針對圖片的處理 */
  .timeline-u-pc img,
  .timeline-l-pc img {
    /* 強制圖片寬度，讓它可以被滑動。
       1833x667 比例下，建議寬度設為 800px ~ 1000px 左右文字才清晰 */
    width: auto;
    max-width: none;
    height: 480px; /* 固定一個適合手機看的高度 */
  }

  /* 隱藏捲軸 (美觀用) */
  /* .timeline-u-pc::-webkit-scrollbar,
  .timeline-l-pc::-webkit-scrollbar {
    display: none;
  }
  .timeline-u-pc,
  .timeline-l-pc {
    scrollbar-width: none; 
  } */
}
/* --------------------------- */
/* TIMELINE */
/* --------------------------- */

/* --------------------------- */
/* FAQ */
/* --------------------------- */

.faq-area {
  padding: 100px 0;
}

.faq-content {
  margin: 80px auto 0;
}

.faq-item {
  background: #ffffff;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 移除預設的小箭頭 */
summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  padding: 8px 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* 移除箭頭標準寫法 */
  font-size: 20px;
  margin-bottom: 0;
}

.faq-question:hover {
  background-color: #fff5f5;
  color: #e50012;
}

/* 自定義右側圖案 (+) */
.faq-icon::before {
  content: "+";
  font-size: 24px;
  color: #e50012;
}

/* 當展開時的樣式變化 */
details[open] .faq-question {
  background-color: #e50012;
  color: #ffffff;
}

details[open] .faq-icon::before {
  content: "-";
  color: #ffffff;
}

.faq-answer {
  padding: 20px 24px;
  line-height: 1.6;
  border-top: 1px solid #eee;
  color: #444;
}

.faq-answer p {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .faq-question {
    font-size: 18px;
  }
}
/* --------------------------- */
/* FAQ */
/* --------------------------- */

/* --------------------------- */
/* ADDONS */
/* --------------------------- */
.addons-area {
  padding: 100px 0;
  text-align: center;
  background-color: #e50012;
}

.sub-title {
  color: #0837ac; /* 藍色小標 */
  font-weight: bold;
  margin-bottom: 5px;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 橫向 6 個 */
  gap: 15px;
  margin: 40px 0;
}

.addons-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 30px 15px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* 順滑曲線 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 250px;
}

.addons-card img {
  width: 100%;
  max-width: 120px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.addons-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

/* --- 互動效果 --- */

.addons-card:hover {
  transform: translateY(-10px); /* 向上浮起 */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* 增加陰影感 */
}

.addons-card:hover img {
  transform: scale(1.1); /* 圖片微放大 */
}

/* 手機版適應：改為 2 欄或 3 欄 */
@media (max-width: 992px) {
  .addons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 576px) {
  .addons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.addons-area .cta-btn {
  background-color: #000000;
  border: 2px solid #000000;
}
.addons-area .cta-btn:hover {
  background-color: #000000;
  border: 2px solid #ffffff;
}

/* --------------------------- */
/* ADDONS */
/* --------------------------- */
.cta-btn-box {
  text-align: center;
  margin-top: 40px;
}

.cta-btn {
  font-family: "Noto Serif JP", serif;
  letter-spacing: 1.3px;
  display: inline-flex; /* 使用 flex 讓文字對齊更精準 */
  align-items: center;
  background: #e50012;
  color: #fff;
  padding: 18px 36px 18px 36px; /* 右側留空間給箭頭 */
  font-size: 24px;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 增加回彈感 */
  border: 2px solid #e50012;
  cursor: pointer;
}

.arrow-svg {
  position: absolute;
  width: 50px; /* 稍微加大 */
  height: 20px;
  color: #d4ff00; /* 亮黃綠色 */
  top: 50%;
  transform: translateY(-50%); /* 垂直置中 */
  right: -20px; /* 初始位置縮進一點 */
  transition: all 0.3s ease;
}

/* --- 強化後的互動效果 --- */

.cta-btn:hover {
  background: #e50012; /* 稍微變亮 */
  transform: scale(1.05); /* 按鈕整體放大 */
  border: 2px solid #ffffff;
}

.cta-btn:hover .arrow-svg {
  animation: arrow-slide 0.5s infinite alternate;
}

/* 箭頭不僅位移，還帶一點縮放動畫 */
@keyframes arrow-slide {
  from {
    right: -20px;
    transform: translateY(-50%) scale(1);
  }
  to {
    right: -28px;
    transform: translateY(-50%) scale(1.1);
  }
}



/* --------------------------- */
/* CANAAN */
/* --------------------------- */

.canaan-area {
  padding: 100px 0;
}
.canaan-content {
  margin: 80px auto 0;
}
.canaan-content p,
.canaan-content div,
.canaan-content ul {
    font-size: 20px;
}
.canaan-feature-t {
    border: 2px solid #1c2857;
    text-align: center;
    width: 200px;
    color: #1c2857;
    margin: 30px 0 10px;
    padding: 5px 0;
}
.canaan-content ul {
    line-height: 35px;
}
.canaan-content ul span {
    margin-left: 20px;
    color: darkslategray;
    font-size: 16px;
}
.canaan-logo {
    text-align: center;
    margin-bottom: 10px;
}