body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #042e3e;
}

a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}

img {
  display: block;
}

/*全部*/
.all {
  width: 100%;
  overflow: hidden;
}

/*頁面1*/
.main1 {
  width: 100%;
  height: 100vh;
  position: relative;
  box-sizing: border-box;
}

video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.video {
  width: 100%;
  height: 100%;
  position: relative;
  margin: auto;
  z-index: 98;
  margin-top: 0;
  /* animation: video-move 1s alternate; */
  animation-delay: 5s;
  transition-timing-function: ease-out;
  animation-fill-mode: forwards;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
}

@keyframes video-move {
  0% {
    width: 100%;
    height: 100%;
    /* transform: scale(1); */
    -webkit-backface-visibility: hidden;
  }

  100% {
    width: 97%;
    height: 92%;
    /* transform: scale(0.93,0.8); */
    -webkit-backface-visibility: hidden;
  }
}

.top-color {
  width: 100%;
  height: 0;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #042e3e;
  animation: colorT 4s alternate;
  animation-delay: 1.5s;
  transition-timing-function: ease-in;
  animation-fill-mode: forwards;
  z-index: 997;
}

.left-color {
  width: 0;
  height: 100vh;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #042e3e;
  animation: colorL 4s alternate;
  animation-delay: 1.5s;
  transition-timing-function: ease-in;
  animation-fill-mode: forwards;
  z-index: 997;
}

.right-color {
  width: 0;
  height: 100vh;
  position: absolute;
  right: 0;
  top: 0;
  background-color: #042e3e;
  animation: colorR 4s alternate;
  animation-delay: 1.5s;
  transition-timing-function: ease-in;
  animation-fill-mode: forwards;
  z-index: 997;
}

.bottom-color {
  width: 100%;
  height: 0;
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: #042e3e;
  animation: colorB 4s alternate;
  animation-delay: 1.5s;
  transition-timing-function: ease-in;
  animation-fill-mode: forwards;
  z-index: 997;
}

@keyframes colorT {
  0% {
    height: 0;
  }
  100% {
    height: 4.5vw;
  }
}

@keyframes colorL {
  0% {
    width: 0;
  }
  100% {
    width: 1.5%;
  }
}

@keyframes colorR {
  0% {
    width: 0;
  }
  100% {
    width: 1.5%;
  }
}

@keyframes colorB {
  0% {
    height: 0;
  }
  100% {
    height: 8%;
  }
}

/*提示滑動箭頭*/
.scroll-move {
  width: 2%;
  height: auto;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10%;
  animation: bling 0.6s infinite alternate;
  transition-timing-function: ease-out;
  z-index: 999;
  cursor: pointer;
}

.scroll-move2 {
  width: 2%;
  height: auto;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10%;
  animation: bling 0.6s infinite alternate;
  transition-timing-function: ease-out;
  z-index: 999;
  cursor: pointer;
}

@keyframes bling {
  0% {
    bottom: 13%;
  }
  100% {
    bottom: 11%;
  }
}

.scroll1,
.scroll2,
.scroll3 {
  width: 100%;
  height: auto;
  position: absolute;
  left: 0;
  top: 0;
}

/*頁面2*/
.main2 {
  width: 100%;
  height: auto;
  position: relative;
}

.main2-line1 {
  width: 1px;
  height: 0;
  position: absolute;
  background-color: #fff;
  top: 0;
  right: 6.5%;
  z-index: 2;
}

.main2-line2 {
  width: 0;
  height: 1px;
  position: absolute;
  background-color: #fff;
  top: 66.3%;
  left: 0;
  z-index: 2;
}

.main2-txt {
  position: absolute;
  left: 7.5%;
  top: 68%;
  color: #fff;
  z-index: 2;
}

.main2-txt h2 {
  margin: 1% 0 0 0;
  font-size: 2.2vw;
  font-family: "EBGaramond-VariableFont_wght";
  font-weight: 500;
  letter-spacing: 0.1vw;
  text-shadow: 0.1em 0.1em 0.1em #333;
}

.main2-txt h4 {
  margin: 0;
  letter-spacing: 0.1vw;
  font-size: 1.13vw;
  font-family: "Noto Serif TC", serif;
  font-weight: 500;
  text-shadow: 0.1em 0.1em 0.1em #333;
}

.main2-txt h5 {
  margin: 0;
  letter-spacing: 0.3vw;
  font-size: 1.4vw;
  font-family: "Noto Serif TC", serif;
  font-weight: 500;
  text-shadow: 0.1em 0.1em 0.1em #333;
}

.read-more {
  width: 15vw;
  height: 1vw;
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  background-image: url("../img/index/read-more.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transition: all 0.5s;
  cursor: pointer;
}

.read-more:hover {
  background-image: url("../img/index/read-more2.png");
}

.main2-JUNYI{
  width: 30.2%;
  height: auto;
  position: absolute;
  right: 6.4%;
  top: 70.1%;
  z-index: 2;
}

.main2-pic-shadow {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-image: url("../img/index/main2-pic-shadow.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.main2-banner-txt {
  position: absolute;
  right: 1%;
  bottom: 1%;
  color: #fff;
  font-size: 1.1vw;
  font-family: "Noto Serif TC", serif;
}

/*頁面3*/
.main3 {
  width: 100%;
  height: auto;
  position: relative;
}

.main3-content {
  width: 80%;
  height: 34.5vw;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.main3-title {
  width: 5.5%;
  height: auto;
  position: absolute;
  left: 0;
  top: 0;
  display: block;
}

.main3-banner1 {
  width: 33%;
  height: 35.5vw;
  position: absolute;
  left: 14%;
  top: 0;
}

.main3-banner1-pic {
  width: 100%;
  position: relative;
}

.main3-banner2 {
  width: 47%;
  height: 100%;
  position: absolute;
  right: 0;
  top: -0.3vw;
}

.main3-banner2 .swiper-container {
  width: 100%;
  height: 100%;
  border-bottom: 1px solid #003f57;
  padding-bottom: 1%;
}

.main3-banner2 .swiper-container .swiper-slide {
  width: 100%;
  border-top: 0.5px solid #003f57;
  position: relative;
  cursor: pointer;
}

.main3-banner1-txt {
  width: 100%;
  height: auto;
}

.main3-banner1-txt h5 {
  margin: 3% 0 1% 0;
  font-family: "Noto Serif TC", serif;
  font-weight: 500;
  letter-spacing: 0.1vw;
  font-size: 1vw;
  color: #8a7363;
  padding-left: 1%;
  position: relative;
}

.main3-banner1-txt h5::before {
  content: "";
  width: 1px;
  height: 0.8vw;
  position: absolute;
  background-color: #8a7363;
  left: 0;
  top: 0.35vw;
}

.main3-banner1-txt h2 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-weight: 500;
  letter-spacing: 0.1vw;
  font-size: 1.4vw;
  color: #003f57;
}

.main3-banner1-txt h4 {
  width: 100%;
  margin: 2% 0 0 0;
  letter-spacing: 0.1vw;
  font-size: 1.13vw;
  font-family: "Noto Serif TC", serif;
  font-weight: 400;
  color: #333233;
  text-align: justify;
  text-justify: inter-ideograph;
}

.main3-banner1-date {
  margin-top: 9%;
  font-family: "EBGaramond-VariableFont_wght";
  color: #003f57;
  font-size: 0.85vw;
  letter-spacing: 0.1vw;
  padding-left: 2%;
  position: absolute;
  left: 0;
  bottom: 0;
}

.main3-banner1-date::before {
  content: "";
  width: 1px;
  height: 0.6vw;
  position: absolute;
  background-color: #003f57;
  left: 0;
  top: 0.35vw;
}

.main3-banner2-txt {
  width: 75%;
  height: auto;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.main3-banner2-txt h5 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-weight: 500;
  letter-spacing: 0.1vw;
  font-size: 1vw;
  color: #8a7363;
  padding-left: 1%;
  position: relative;
}

.main3-banner2-txt h5::before {
  content: "";
  width: 1px;
  height: 0.8vw;
  position: absolute;
  background-color: #8a7363;
  left: 0;
  top: 0.35vw;
}

.main3-banner2-txt h2 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-weight: 500;
  letter-spacing: 0.1vw;
  font-size: 1.2vw;
  color: #003f57;
}

.main3-banner2-txt h4 {
  width: 100%;
  margin: 1% 0 0 0;
  letter-spacing: 0.1vw;
  font-size: 1.1vw;
  font-family: "Noto Serif TC", serif;
  font-weight: 400;
  color: #333233;
  text-align: justify;
  text-justify: inter-ideograph;
}

.main3-banner2-date {
  width: 25%;
  height: auto;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  font-family: "EBGaramond-VariableFont_wght";
  letter-spacing: 0.1vw;
  color: #003f57;
  font-size: 1vw;
}

.main3-banner2-date-date {
  font-size: 3.2vw;
  font-weight: 500;
  line-height: 4vw;
}

.read-more-blue {
  width: 11vw;
  height: 0.65vw;
  position: absolute;
  right: 0;
  bottom: 1%;
  display: block;
  background-image: url("../img/index/read-more-blue.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transition: all 0.5s;
  cursor: pointer;
  z-index: 999;
}

.read-more-blue:hover {
  background-image: url("../img/index/read-more-blue2.png");
}

/*頁面4*/
.main4 {
  width: 100%;
  height: auto;
  position: relative;
}

.main4-content {
  width: 80%;
  height: 34.5vw;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.main4-title {
  width: 5.5%;
  height: auto;
  position: absolute;
  right: 0;
  top: 0;
  display: block;
}

.main4-banner1 {
  width: 58%;
  height: 34.4vw;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
}

.main4-banner2 {
  width: 53%;
  height: 34.4vw;
  position: absolute;
  top: 0;
  left: 14.5%;
  z-index: 3;
}

.main4-banner3 {
  width: 47%;
  height: 34.4vw;
  position: absolute;
  top: 0;
  left: 30%;
  z-index: 2;
}

.main4-banner4 {
  width: 41%;
  height: 34.4vw;
  position: absolute;
  top: 0;
  left: 45%;
  z-index: 1;
}

.main4-year {
  width: 17vw;
  position: absolute;
  left: -20%;
  bottom: 7.1vw;
  font-size: 7vw;
  color: rgba(207, 189, 175, 0.5);
  z-index: 5;
  transform: rotate(270deg);
  font-family: "Cinzel-Regular";
  text-align: left;
}

.main4-banner-txt {
  position: relative;
  margin: -7% 0 0 0;
  letter-spacing: 0.1vw;
  color: #003f57;
  font-family: "Noto Serif TC", serif;
  line-height: 3vw;
  font-weight: 600;
  z-index: 99;
}

.main4-banner-name {
  display: inline-block;
  font-size: 1.55vw;
  position: relative;
  padding-right: 1%;
}

.main4-banner-name::after {
  content: "";
  width: 1px;
  height: 1.1vw;
  position: absolute;
  background-color: #003f57;
  right: 0;
  top: 1.1vw;
}

.main4-banner-area {
  display: inline-block;
  font-size: 1.1vw;
}

.main4-banner2-year {
  width: 17vw;
  position: absolute;
  right: -17%;
  bottom: 13vw;
  font-size: 4.3vw;
  color: rgba(207, 189, 175, 0.5);
  z-index: 5;
  transform: rotate(270deg);
  font-family: "Cinzel-Regular";
  text-align: left;
}

.main4-banner2-year3 {
  right: -19.2%;
  bottom: 16.2vw;
}

.main4-banner2-year4 {
  right: -22.1%;
  bottom: 19.3vw;
}

.main4-banner2-name {
  position: relative;
  margin: 1% 0 0 0;
  letter-spacing: 0.1vw;
  color: #003f57;
  font-family: "Noto Serif TC", serif;
  line-height: 1vw;
  font-weight: 600;
  float: right;
  -ms-writing-mode: tb-lr !important;
  -webkit-writing-mode: vertical-lr !important;
  -moz-writing-mode: vertical-lr !important;
  -ms-writing-mode: vertical-lr !important;
  writing-mode: vertical-lr !important;
  font-size: 1.09vw;
  background-color: #f7f8f8;
}

.main4 .swiper-container {
  height: 34.4vw !important;
}

.main4 .swiper-slide {
  background-color: #f7f8f8 !important;
  height: 34.4vw !important;
  cursor: pointer;
}

.main4 .swiper-slide-active {
  opacity: 1 !important;
}

.main4 .swiper-slide-next {
  opacity: 0 !important;
}

.main4-banner-cover {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
