@charset "utf-8";
/* header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: background-color 0.3s;
  z-index: 6;
}
header.active {
  background-color: #fff;
}
header.active .logo {
  background-color: #fff;
  background: url(../img/logo_b.png) no-repeat top / 100%;
}
header.active .menu {
  border: solid 1px #27aae0;
}
header.active .menu span {
  background-color: #27aae0;
}
.header_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 26px 2% 26px 6%;
}
.header_wrap .logo {
  display: block;
  width: 80px;
  padding-top: 27px;
  background: url(../img/logo_b.png) no-repeat top / 100%;
  transition: 0.3s;
}
.header_wrap .logo img {
  vertical-align: middle;
}
nav {
  display: flex;
  align-items: center;
}
nav > a, nav > div {
  cursor: pointer;
  position: relative;
  padding: 0 20px;
  border-right: solid 1px #ff0000;
  transition: 0.3s;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.5px;
  font-family: 'Noto Sans TC','sans-serif';
  color: #000;
}
nav > a:nth-last-child(2), nav > a:last-child, nav > div:nth-last-child(2), nav > div:last-child {
  border-right: none;
}
nav > a.langauge {
  width: 34px;
  height: 34px;
  padding: 0;
  border: solid 1px #000;
  border-radius: 50%;
  position: relative;
}
nav > a.langauge span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 14px;
}
nav > a.langauge:hover {
  border: solid 1px #ff0000;
}
nav > a:hover, nav > div:hover {
  color: #ff0000;
}
nav > div.active {
  color: #ff0000;
}
nav > div .box {
  display: none;
  background-color: #fff;
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}
nav > div .box a {
  color: #808080;
  padding: 14px 10px;
  display: block;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}
nav > div .box a ~ a {
  border-top: solid 1px #808080;
}
nav > div .box a:hover {
  color: #ff0000;
}
.menu {
  width: 44px;
  height: 40px;
  border: solid 1px #fff;
  position: absolute;
  top: 19px;
  right: 5%;
  display: none;
  transition: 0.3s;
}
.menu span {
  position: absolute;
  height: 2px;
  width: 26px;
  left: 8px;
  background-color: #fff;
  transition: 0.3s;
}
.menu span:nth-child(1) {
  top: 10px;
}
.menu span:nth-child(2) {
  top: 18px;
}
.menu span:nth-child(3) {
  top: 26px;
}
.menu.active {
  border: solid 1px #000!important;
}
.menu.active span {
  background-color: #000!important;
}
.menu.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 18px;
}
.menu.active span:nth-child(2) {
  opacity: 0;
}
.menu.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 18px;
}
header.open .logo {
  background: url(../img/logo_b.png) no-repeat top / 100%;
}
header.open .menu {
  border: solid 1px #000!important;
}
header.open .menu span {
  background-color: #000!important;
}
header.open .menu span:nth-child(1) {
  transform: rotate(45deg);
  top: 18px;
}
header.open .menu span:nth-child(2) {
  opacity: 0;
}
header.open .menu span:nth-child(3) {
  transform: rotate(-45deg);
  top: 18px;
}
@media (max-width: 980px) {
  nav > a, nav > div {
    padding: 0 15px;
    font-size: 14px;
  }
  nav > a.langauge{
    width: 30px;
    height: 30px;
  }
  nav > a.langauge span{
    font-size: 12px;
  }
  nav > div .box {
    width: 185px;
  }
  nav > div .box a {
    font-size: 12px;
    padding: 10px;
  }
}
@media (max-width: 768px) {
  .header_wrap {
    display: block;
    padding: 40px 6%;
    position: relative;
  }
  .header_wrap .logo {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
  }
  nav {
    display: block;
    position: fixed;
    top: 0;
    left: 100%;
    background-color: #fff;
    height: 100%;
    width: 100%;
    padding: 10% 0 0 12%;
    transition: left 0.5s;
  }
  nav > a, nav > div{
    display: block;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    margin: 60px 0;
    padding: 0 8%;
    border-right: none;
    border-left: solid 2px #ff0000;
  }
  nav a.langauge{
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
  nav a.langauge span{
    font-size: 16px;
  }
  nav > div{
    border-left: none;
  }
  nav > div .box{
    display: block;
    width: auto;
    position: static;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    margin-top: 10px;
  }
  nav > div .box::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 28.59px;
    background-color: #ff0000;
  }
  nav > div .box a{
    text-align: left;
    font-size: 16px;
    padding: 6px 0;
  }
  nav > div .box a ~ a{
    border-top: none;
  }
  header.open nav {
    left: 0;
  }
  .menu {
    display: block;
  }
}
