* {
  min-height: 0vw;
  /* Safari clamp問題解法 */
}

/*====================================
# 主色調
==================================== */

:root {
  --main-color: #27cda7;
  --lightY: #FFE504;
}

/*====================================
# 共同設定
==================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-size: 17px;
  line-height: 1.8;
  color: #333333;
  font-weight: 400;
  font-family: 'Roboto', 'Noto Sans TC', Arial, '微軟正黑體', '新細明體', Helvetica, sans-serif;
}

section {
  padding: 6rem 1.5rem 5rem;
}

::selection {
  background-color: #C8FCEA;
}

a:hover {
  text-decoration: none;
}

.main-title {
  font-size: 2.4rem;
  font-weight: 500;
  padding-bottom: 2rem;
  color: #121212;
  text-align: center;
  position: relative;
}

.main-title::before,
.main-title::after {
  display: inline-block;
  content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='a' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 67 32'%3E%3Crect x='26.92' y='15.11' width='14.23' height='2.85' transform='translate(-1.72 28.9) rotate(-45)' fill='%23009673'/%3E%3Crect x='50.42' y='15.11' width='14.23' height='2.85' transform='translate(5.16 45.52) rotate(-45)' fill='%23009673'/%3E%3Crect x='3.42' y='15.11' width='14.23' height='2.85' transform='translate(-8.6 12.29) rotate(-45)' fill='%23009673'/%3E%3C/svg%3E");
  width: 80px;
  margin: 0 1rem;
}


@media (max-width:576px) {
  .main-title {
    letter-spacing: 0.2rem;
  }

  .main-title .en {
    display: block;
  }

  .en::before {
    transform: translate(230%, -20%);
  }

  .main-title::before,
  .main-title::after {
    width: 50px;
  }

}

/* ==========================================
    scrollbar
============================================ */
::-webkit-scrollbar {
  width: 15px;
  background-color: #E8F3F1;
}

::-webkit-scrollbar-track {
  border-radius: 3px;
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: var(--main-color);
  border: 1px solid #C8FCEA
}

/*====================================
# sec_top
==================================== */
.sec_top {
  position: relative;
  overflow: hidden;
}

.sec_top::before,
.sec_top::after {
  position: absolute;
  z-index: -1;
}

.sec_top::before {
  content: url(../img/deco_topa.png);
  bottom: -10rem;
  left: -10rem;
}

.sec_top::after {
  content: url(../img/deco_topb.png);
  right: -2rem;
  top: -3rem;
}

.sec_top h1 {
  font-weight: 600;
}

.sec_top h4 {
  position: relative;
  text-align: center;
  padding-bottom: 1rem;
}

.top-img {
  display: block;
  width: 100%;
  margin-bottom: 2rem;
}

.sec_top span {
  color: var(--lightY);
}

.top-box {
  text-align: center;
  background-color: var(--lightY);
  padding: 1.5rem 0 2.5rem;
}

.top-box .time {
  margin-bottom: 2rem;
  font-weight: 600;
  font-size: 1.5rem;
}


/*====================================
# sec_info
==================================== */
.sec_info {
  background-color: #e3e3e3;
}

.sec_info .info-title {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.4rem;
  -webkit-writing-mode: vertical-lr;
  writing-mode: vertical-lr;
  background-color: #ffffff;
  padding: 2rem 1rem;
  border-radius: 6px;
}

.sec_info h2 {
  color: #009673;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.sec_info h2 span {
  color: #B386EF;
  font-size: 3rem;
}

.info-list {
  padding-top: 1rem;
}

.info-list p {
  padding-left: 2rem;
  padding-bottom: 1rem;
}

@media (max-width:768px) {
  .sec_info .info-title {
    -webkit-writing-mode: initial;
    writing-mode: initial;
    padding: 0;
    text-align: center;
    margin-bottom: 2rem;
  }
}

/*====================================
# sec_gift
==================================== */
.sec_gift {
  background-image: url(../img/bg2.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-color: var(--main-color);
}

.gift-box {
  background-color: #ffffff;
  margin-bottom: 2rem;
  padding: 2rem;
  min-height: 431px;
  border-radius: 10px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.gift-box h5 {
  margin-top: 1.5rem;
}

.gift-img {
  display: block;
  max-width: 250px;
  border-radius: 10px;
  border: 1px solid #dfdfdf;
  margin: 0 auto;
}

.gift-img img {
  width: 100%;
}

/*====================================
# sec_partners
==================================== */
.sec_partners {
  text-align: center;
}

.level-title {
  font-size: 18px;
  margin: 1rem 0;
}

.logo-img {
  display: block;
  transition: all 0.3s;
}

.logo-img img {
  width: 90%;
}

.logo-img:hover {
  transform: translateY(-5px);
}

/*====================================
# sec_traffic
==================================== */
.sec_traffic {
  background-color: #e3e3e3;
}


.traffic-info p {
  padding-left: 2rem;
}

/*====================================
# page-top
==================================== */

#page-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  line-height: 60px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.6rem;
  transition: all 0.3s;
  background-color: #F9BF3D;
  opacity: 0.5;
}

#page-top a:hover {
  opacity: 1;
}

/* 箭頭 */
#page-top a::before {
  content: "";
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.25);
  height: 15px;
  width: 15px;
  border: 1px solid #ffffff;
  border-width: 2px 2px 0 0;
  transform: rotate(-45deg);
}

#page-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  opacity: 0;
  transform: translateY(100px);
}

#page-top.UpMove {
  animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


#page-top.DownMove {
  animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(100px);
  }
}