.bg1 {
  margin-top: 162.5px;
}
.header {
  position: fixed;
  z-index: 100;
  background-image: url(../images/header.jpg);
  height: 105px;
  max-width: 1000px;
  width: 100%;
  overflow: hidden;
  font-family: "Noto Sans TC", sans-serif;
  display: flex;
  justify-content: right;
}
.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 {
  opacity: 0.9;
}
.header a:last-child {
  margin-right: 20px;
  color: #ffff00;
  border-right: unset;
}
.navbuttons {
  display: flex;
  align-items: center;
}
.hamburger-wrapper {
  display: none;
}
.navbuttons_open {
  height: auto !important;
  transition: .5s;
}
@media screen and (max-width: 768px) {
  .bg1 {
    margin-top: 89.25px;
  }
  .header {
    display: block;
    overflow: hidden;
    background-size: 180%;
    height: auto;
  }
  .header .navbuttons {
    display: block;
    margin-top: 60px;
    height: 0;
    transition: max-height 0.3s ease-in-out;
  }
  .header .navbuttons a {
    font-size: 1rem;
    background-color: #024096;
    border-right: unset;
  }
  .header .navbuttons a {
    height: 40px;
    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;
  }

  #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;
  }
}