@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

.navContainer {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  margin: 0 auto;
  max-width: 1000px;
}

.logo {
    width: 30%;
    position: absolute;
    left: 0%;
    top: 30%;
}

.navList {
    display: flex;
width: 60%;
}

.navItem {
    width: 33.3333%;
}



.navLink {
    font-size: 1.75rem;
    font-weight: bold;
    display: block;
    text-align: center;
    padding:  4% 0;

    transition: all .3s;
    color: #fff;
}

.navLink:hover {
    /* background-color: #881344; */
    opacity: 0.8;
}


.txt_yellow {
    color: #F7FAAB;
}

.SP_show {
    display: none;
}

@media (max-width:768px) {
    .navList {
        flex-direction: column;
        clip-path: inset(0 0 100% 0);
        position: absolute;
        top: 100%;
        width: 100%;
        background-color: #805620;
        transition: all .3s;
    }

    .navList--active {
        clip-path: inset(0 0 0% 0);
    }

    .navItem {
        width: 100%;
        border: none;
        border-top: 2px dashed #fff;
    }

    .navItem:nth-child(1) {
        border-radius: 0 0 0 0;
    }

    .navItem:nth-child(3) {
        border-radius: 0 0 0 0;
    }

    .navLink {
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: 1.5px;
    }

    .SP_show {
        display: block;
    }

    .navConrtol_SP {
        background-color: #C53675;
       
    }
    .header_open .logo {
        top: 5%;
    }
    .logo {
        width: 45%;
        margin-left: 2%;
        padding: 2.5% 0;
        top: 15%;
    }

    .SP_btn {
        position: absolute;
        width: 30px;
        height: 30px;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .SP_btn span {
        position: absolute;
        width: 100%;
        height: 7.5%;
        background-color: #fff;
        border-radius: 5px;
        transition: all .3s;
    }

    .SP_btn span:nth-child(1) {
        top: 19%;
    }

    .SP_btn span:nth-child(2) {
        top: 46%;
    }

    .SP_btn span:nth-child(3) {
        top: 76%;
    }

    .SP_btn--active span:nth-child(1) {
        top: 50%;
        rotate: 225deg;
    }

    .SP_btn--active span:nth-child(2) {
        opacity: 0;
    }

    .SP_btn--active span:nth-child(3) {
        top: 50%;
        rotate: -225deg;
    }
}
.navContainer {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  margin: 0 auto;
  max-width: 1000px;
}
.header {
  background-image: url(../images/header.jpg);
  background-image: url(../images/header.webp);
  height: 105px;
  max-width: 1000px;
  overflow: hidden;
  font-family: "Noto Sans TC", sans-serif;
  display: flex;
  justify-content: right;
  position: relative;
  background-color: #805620;
}
.header .navbuttons a {
  font-size: 1.8rem;
  font-weight: bold;
  display: block;
  text-align: center;
  padding: 3% 0 3% 0;
  color: #fff;
  padding: 0 15px 0 15px;
  border-right: 2px solid #fff;
}
.header .navbuttons a:hover {
  transform: translateY(5%);
  transition: .2s;
}
.header a:last-child {
  margin-right: 20px;
  color: #ffff00;
  border-right: unset;
}
.navbuttons {
  display: flex;
  align-items: center;
}
.hamburger-wrapper {
  display: none;
}
/* 抓高度調整 */
#ctaEnd{
  transform: translateY(-93px);
}
@media screen and (max-width: 768px) {
  .hamburger-wrapper {
    display: none;
  }
  .header_open{
    height: 210px !important;
  }
  #ctaEnd{
    transform: translateY(-60px);
  }
  .header .navbuttons > a:hover {
    transform: unset;
    transition: unset;
  }
  .header {
    display: block;
    overflow: hidden;
    background-size: 150%;
    height: 60px;
    transition: height 0.3s;
  }
  .header .navbuttons {
    display: block;
    margin-top: 60px;
    height: 120px;
  }
  .header .navbuttons a {
    font-size: 1.4rem;
    background: #805620 !important;
    border-right: unset;
    height: 50px;
    border-top: 2px dashed #fff;
    padding-top: 1%;
  }
  .header a:last-child {
    margin-right: unset;
    border-right: unset;
  }
  .hamburger-wrapper {
    display: block;
    cursor: pointer;
    position: absolute;
    right: 5%;
    top: 20px;
  }
  .header a:last-child {
    border-radius: 0;
  }

  #hamburger-toggle {
    display: none;
  }

  .hamburger {
    width: 30px;
    height: 20px;
    position: relative;
  }

  .hamburger span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    left: 0;
    transition: 0.3s;
    border-radius: 2px;
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger span:nth-child(3) {
    bottom: 0;
  }

  /* 點擊後變成 X */
  #hamburger-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
  }

  #hamburger-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #hamburger-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
  }
}
/* 平板 */
@media screen and (width: 768px) {
  .header {
    background-size: 100%;
  }
  .header .navbuttons > a {
    line-height: 1.4;
  }
}
