:root {
  --text-color: #2D2824;
  --text-en-color: #CBB386;
  --primary-color: #fff;
  --primary-color-hover: #EA4335;
  --secondary-color: #616266;
}

h1 {
  padding: 0;
  margin: 0;
}

body {
  user-select: none;
  font-family: 'Microsoft JhengHei', sans-serif;
  line-height: 1;
  font-size: 16px;
}


a {
  text-decoration: none;
}

#About,
#Dragon,
#Custom,
#Contact {
  margin-top: -50px;
  padding-top: 50px;
}

@media (min-width: 576px) {

  #About,
  #Dragon,
  #Custom,
  #Contact {
    margin-top: -100px;
    padding-top: 100px;
  }
}

/* 漢堡選單 */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .line {
  width: 25px;
  height: 2.5px;
  background: var(--primary-color);
  border-radius: 25%;
  margin: 6px 0;
  transition: all 0.3s ease-in-out;
}

.hamburger.active .line:nth-child(1) {
  transform: translateY(11.2px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 992px) {
  .hamburger {
    display: block;
  }
}

/* menu */
.navbar-toggler,
.navbar-toggler:focus {
  border: none;
  color: #fff;
  box-shadow: none;
}

.logo {
  width: 40px;
  height: 50px;
  background-image: url("../img/logo.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .logo {
    width: 60px;
    height: 70px;
  }
}

.nav-bg.sticky {
  background: linear-gradient(to right, #000000, #00000070), url("../img/bg-about.jpg") repeat center center/cover fixed;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transition: 0.5s;
  background: #000000e8;

}

nav {
  transition: all 0.2s ease;
}

nav img {
  width: 100px;
}

nav .scroll a {
  font-size: 18px;
  letter-spacing: 2.2px;
  outline: 0;
  padding: 15px;
  color: var(--primary-color);
  transition: all 0.2s ease;
  position: relative;
  opacity: 0.8;
}



nav .nav-item+.nav-item {
  margin-left: 0;
}



nav .scroll a:hover {
  opacity: 1;
  color: #fff;
  /* font-weight: bolder; */
}

nav .scroll a::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: auto;
  width: 75%;
  height: 1px;
  background: var(--primary-color-hover);
  opacity: 0;
  transform: translate(0, -50%);
  transition: all 0.2s ease;
}

nav .scroll a:hover:before {
  opacity: 1;
}

@media (min-width: 992px) {
  nav .scroll a {
    padding: 40px 15px;

  }

  nav .nav-item+.nav-item {
    margin-left: 30px;
  }

  nav .scroll a::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 50%;
    width: 1px;
    height: 30px;
    background: var(--primary-color-hover);
    opacity: 0;
    transform: translate(-50%);
    transition: all 0.2s ease;
  }
}

/* footer */
.footer {
  color: #fff;
  padding: 10px 0;
}


.footer .reserved {
  /* margin-top: 20px; */
  /* padding: 20px 0; */
  width: 100%;
  text-align: center;
  padding-left: 0;
}

.footer .reserved p {
  margin-bottom: 0;
  letter-spacing: 5;
}


@media (min-width: 768px) {
  .footer {
    padding: 20px 0;
  }


  .footer .reserved {
    margin-top: 0;
    padding-left: 30px;
    border-top: none;
    width: auto;
    font-size: 14px;
  }
}

/* 輪播 */
.carousel-item {
  object-fit: cover;
  /* height: 100vh; */
  height: 100vh;
  position: relative;
  /* margin-top: 118px; */
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators [data-bs-target] {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-left: 5px;
  margin-right: 5px;
}

.carousel-control-next,
.carousel-control-prev {
  top: 118px;
  width: 10%;
  display: none;
}

@media (min-width: 1200px) {

  .carousel-control-next,
  .carousel-control-prev {
    display: block;
  }
}

/* 主視覺 */
.main-bg1,
.main-bg2,
.main-bg3 {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  animation: main-bg 8.5s infinite ease-in-out;
  -moz-animation: main-bg 8.5s infinite ease-in-out;
  -webkit-animation: main-bg 8.5s infinite ease-in-out;
  will-change: background-size;
}

@keyframes main-bg {
  0% {
    background-size: auto 110vh;
  }

  100% {
    background-size: auto 100vh;

  }
}

@media (min-width: 1200px) {
  @keyframes main-bg {
    0% {
      background-size: 110vw auto;
    }

    100% {
      background-size: 100vw auto;

    }
  }
}

.main-bg1 {
  background: linear-gradient(to right, #24242496, #52372500), url("../img/banner-phone.jpg") no-repeat center bottom /cover scroll;
}

.main-bg2 {
  background: linear-gradient(to right, #24242496, #52372500), url("../img/banner2-phone.jpg") no-repeat center center /cover scroll;
}

.main-bg3 {
  background: linear-gradient(to right, #24242496, #52372500), url("../img/banner3-phone.jpg") no-repeat center center /cover scroll;
}


@media (min-width: 768px) {
  .main-bg1 {
    background: linear-gradient(to right, #24242496, #52372500), url("../img/banner.jpg") no-repeat center center / cover scroll;
  }

  .main-bg2 {
    background: linear-gradient(to right, #24242496, #52372500), url("../img/banner2.jpg") no-repeat center center / cover scroll;
  }

  .main-bg3 {
    background: linear-gradient(to right, #24242496, #52372500), url("../img/banner3.jpg") no-repeat center bottom /cover scroll;
  }

}


.slogan {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding-bottom: 40px;
  color: #fff;
  font-size: 22px;
  letter-spacing: 2.2px;
  line-height: 1.5;
  display: inline-block;
  z-index: 1;
}

.slogan::after {
  content: '';
  position: absolute;
  width: 300%;
  height: 1px;
  background-color: var(--primary-color-hover);
  left: -200%;
  bottom: 0;
}

.slogan::before {
  content: '';
  display: none;
  opacity: 0;
}

@media (min-width: 992px) {
  .slogan {
    font-size: 32px;
  }
}

h2 {
  font-size: 20px;
  font-weight: bolder;
  letter-spacing: 5px;
  position: relative;
  padding: 40px 0 20px;
  display: inline-block;
  color: #fff;
  margin-bottom: 30px;
  text-shadow: 0 0 0 #212529;
}


h2:before {
  content: '';
  position: absolute;
  width: 35px;
  height: 5px;
  background-color: #EA4335;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);

}

h2 span {
  display: block;
  font-size: 16px;
  letter-spacing: 5px;
  padding-top: 10px;
  text-transform: uppercase;
}

@media (min-width: 576px) {
  h2 {
    font-size: 35px;
    padding: 100px 0 20px;

  }
}

.section-advantage {
  background: linear-gradient(to bottom, #cfcfcfcb, #3f4261d0), url(../img/dragon.jpg) no-repeat center center/cover scroll;
}

@media (min-width: 576px) {
  .section-advantage {
    background: linear-gradient(to bottom, #cfcfcfcb, #3f4261d0), url(../img/dragon.jpg) no-repeat center center/cover fixed;
  }
}

.section-advantage .item {
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 200px;
  display: inline-block;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-spokesperson .item {
  overflow: hidden;
  display: inline-block;
  width: 100%;
  height: 150px;

}

.section-spokesperson img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.section-advantage img,
.section-spokesperson img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  -webkit-filter: grayscale(50%);
  -moz-filter: grayscale(50%);
  -ms-filter: grayscale(50%);
  -o-filter: grayscale(50%);
  filter: grayscale(50%);
  transition: all 1s ease-in-out;
}

.section-advantage .item:hover img,
.section-spokesperson .item:hover img {
  -webkit-filter: grayscale(0);
  -moz-filter: grayscale(0);
  -ms-filter: grayscale(0);
  -o-filter: grayscale(0);
  filter: grayscale(0);
}


.section-advantage .item h3 {
  font-size: 14px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000000a6;
  letter-spacing: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 15px 0;
  transition: all 0.4s ease-in-out;
  margin-bottom: 0;
  opacity: 1;
}

.section-advantage .item span {
  position: absolute;
  left: 0;
  bottom: -100%;
  right: 0;
  color: #fff;
  background: linear-gradient(#1f1714fd, #424242ec, #000000ec);
  z-index: 11;
  transition: all 0.2s ease-in-out;
  opacity: 0;
}

.section-advantage .item:hover h3 {
  opacity: 0;
}

.section-advantage .item:hover h3 {
  bottom: 0%;
  opacity: 1;

}


@media (min-width: 576px) {
  .section-advantage .item {
    height: 350px;
  }


  .section-advantage .item h3 {
    font-size: 24px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -100%;
    background: #000000a6;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 20px 0;
    transition: all 0.4s ease-in-out;
    margin-bottom: 0;
    opacity: 0;
  }
}

/* 關於我們 */
.section-about {
  background: linear-gradient(#000000c5, rgba(0, 0, 0, 0)), url(../img/bg-about.jpg) no-repeat left center/cover scroll;
  padding: 0;
}

.section-about .item {
  text-align: justify;
  color: #fff;
  font-size: 16px;
  line-height: 1.8;
  height: 100%;
  padding: 0 10px;
}



@media (min-width: 576px) {
  .section-about .item {
    font-size: 20px;
  }
}

@media (min-width: 1200px) {
  .section-about {
    padding: 160px 0;
  }

  .section-about .item {
    font-size: 24px;
    padding: 0 15px;
  }

}


/* 照片輪播 */
.section-spokesperson {
  background: url(../img/dragon.jpg) no-repeat center center/cover scroll;
}



.section-spokesperson .item {
  height: 200px;
}

.section-spokesperson h3 {
  font-size: 20px;
  font-weight: bolder;
  color: #555;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 20px;
}

@media (min-width: 576px) {
  .section-spokesperson {
    background: url(../img/dragon.jpg) no-repeat center center/cover fixed;
  }

  .section-spokesperson .item {
    height: 300px;
  }

  .section-spokesperson h3 {
    font-size: 28px;
    padding-top: 60px;
    padding-bottom: 40px;
  }
}

.section-contact {
  background: linear-gradient(#000000c5, #00000056), url(../img/banner22.jpg) no-repeat top center/cover scroll;
}


.section-contact .item {
  padding: 120px 15px;

}

.section-contact .item h3 {
  color: #fff;
  font-size: 20px;
  letter-spacing: 5px;
}

.section-contact .item a,
.section-contact .item p {
  color: #fff;
  padding: 10px 0;
  margin: 0;
}

.section-contact .item p {
  display: block;
}


@media (min-width: 576px) {
  .section-contact {
    background: linear-gradient(#000000c5, #00000056), url(../img/banner22.jpg) no-repeat top center/cover fixed;
  }

  .section-contact .item h3 {
    font-size: 24px;
  }
}