@charset "UTF-8";
/* >swiper 設定 =============================================*/
.swiper-banner.swiper {
  width: 100%;
  position: relative;
}
.swiper-banner.swiper .swiper-slide hgroup {
  position: absolute;
  width: 100%;
  top: 45%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 20;
}
.swiper-banner.swiper .swiper-slide hgroup h1 {
  text-align: center;
  font-weight: 100;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: 0.4rem;
  font-family: "Noto Sans TC";
  line-height: 1.4;
}

.txt-br br {
  display: none;
}
@media (max-width: 767px) {
  .txt-br br {
    display: block;
  }
}

.swiper-banner.swiper .swiper-slide hgroup p {
  text-align: center;
  font-size: clamp(16px, 2.5vw, 34px);
  letter-spacing: 0.1rem;
  font-family: "Pinyon Script", cursive;
}
.swiper-banner.swiper .swiper-slide img {
  display: block;
  width: 100%;
  min-height: 350px;
  -o-object-fit: cover;
  object-fit: cover;
}
.swiper-banner.swiper .swiper-slide-active img {
  animation: banner-fadein 5s linear forwards;
}

@keyframes banner-fadein {
  0% {
    transform: scale(1.2);
  }
  80%,
  100% {
    transform: scale(1);
  }
}
@media (max-width: 767px) {
  .swiper-banner.swiper .swiper-slide hgroup {
    top: 50%;
    margin: 0 4rem;
    width: calc(100% - 8rem);
  }
}

/*分頁設定*/
.swiper.swiper-banner .swiper-pagination {
  width: auto;
  top: 58%;
  transform: translateY(-50%);
  left: 0rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
}
.swiper.swiper-banner .swiper-pagination-bullet {
  width: -moz-max-content;
  width: max-content;
  height: -moz-max-content;
  height: max-content;
  background: transparent;
  color: #fff;
  opacity: 1;

  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.swiper.swiper-banner .swiper-pagination-bullet:hover,
.swiper.swiper-banner .swiper-pagination-bullet:focus {
  border: none;
  outline: none;
}
.swiper.swiper-banner .swiper-pagination h5 {
  font-size: clamp(16px, 2vw, 20px);
  transition: all 0.5s ease-in-out;
}
.swiper.swiper-banner .swiper-pagination span {
  order: -1;
  position: relative;
  display: inline-block;
  width: 0rem;
  height: 1px;
  background-color: #fff;
  transition: width 0.5s ease-in-out;
}
.swiper.swiper-banner .swiper-pagination span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  height: 100%;
  background-color: #6d81d7;
}
.swiper.swiper-banner .swiper-pagination-bullet-active span {
  width: 8rem;
}

@media (max-width: 767px) {
  .swiper.swiper-banner .swiper-pagination-bullet-active span {
    width: 4rem;
  }
}

@media (max-width: 575px) {
  .swiper.swiper-banner .swiper-pagination-bullet-active span {
    width: 2rem;
  }
}

.swiper.swiper-banner .swiper-pagination-bullet-active span::after {
  animation: width-0-100 13s linear forwards;
}

@keyframes width-0-100 {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
/*左右按鈕*/
.swiper-banner .swiper-button-next,
.swiper-banner .swiper-button-prev {
  display: none;

  z-index: 12;
  top: auto;
  bottom: 4.8rem;
  color: #fff;
  width: 80px;
  height: 80px;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.swiper-banner .swiper-button-next::before,
.swiper-banner .swiper-button-prev::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background-color: rgb(255, 174, 0);
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  z-index: -1;
}
.swiper-banner .swiper-button-next:hover::before,
.swiper-banner .swiper-button-prev:hover::before {
  transform: translate(-50%, -50%) scale(1);
}
.swiper-banner .swiper-button-prev {
  left: 5.6rem;
}
.swiper-banner .swiper-button-next {
  left: 16.8rem;
  right: auto;
}
@media (max-width: 767px) {
  .swiper-banner .swiper-button-next,
  .swiper-banner .swiper-button-prev {
    bottom: 11.2rem;
  }
}

/*底部裝飾*/

.swiper-banner::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: -2px;
  background: url(../../images//banner/banner__bottom.png) no-repeat bottom /
    contain;
  width: 100%;
  height: 420px;
}

@media (min-width: 1921px) {
  .swiper-banner::after {
    background: url(../../images//banner/banner__bottom.png) no-repeat bottom /
      cover;
    /* height: auto; */
  }

  .swiper-figure {
    display: none;
  }
}

.swiper-figure {
  position: absolute;
  z-index: 2;
  bottom: 0;
  right: 0;
}

.swiper-figure img {
  opacity: 0;
  animation:
    s-fadeInUp 1.6s calc(var(--i) * 0.2s) forwards
      cubic-bezier(0.68, -0.55, 0.27, 1.55),
    float-transform 5s calc(4.6s + var(--i) * 0.1s) infinite ease-in-out;
}
@keyframes float-transform {
  0%,
  30% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-4px);
  }
  40%,
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 1199px) {
  .swiper-figure {
    display: none;
  }

  .swiper-banner::after {
    background: url(../../images//banner/banner__bottom-s.png) no-repeat
      bottom / contain;
  }
}

@media (max-width: 767px) {
  .swiper-banner::after {
    background: url(../../images//banner/banner__bottom.png) no-repeat bottom /
      contain;
  }
}

.swiper-figure img:nth-child(1) {
  position: absolute;

  bottom: 6.5vw;
  right: 38vw;
}

.swiper-figure img:nth-child(2) {
  position: absolute;

  bottom: 7.2vw;
  right: 32.5vw;
}

.swiper-figure img:nth-child(3) {
  position: absolute;

  bottom: 6.1vw;
  right: 27vw;
}

.swiper-figure img:nth-child(4) {
  position: absolute;

  bottom: 6vw;
  right: 22vw;
}

.swiper-figure img:nth-child(5) {
  position: absolute;

  bottom: 8.5vw;
  right: 18vw;
}

.swiper-figure img:nth-child(6) {
  position: absolute;

  bottom: 10vw;
  right: 14vw;
}

.swiper-figure img:nth-child(7) {
  position: absolute;

  bottom: 10.5vw;
  right: 7vw;
}
