header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgb(255, 255, 255, 0.8);
  z-index: 9;
  transition: 0.4s ease-in-out;
}

header.bg {
  background: rgb(255, 255, 255, 1);
  box-shadow: 0 .2rem 0.25rem 0 rgb(4 0 0 / 15%);
}

@media only screen and (max-width: 1180px) {
  header:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2;
  }
}

@media only screen and (max-width: 1024px) {
  header {
    height: 60px;
    background: rgb(255, 255, 255, 0.6);
  }
}

header .content {
  position: relative;
  height: 100%;
  width: 94%;
  padding-left: 10vw;
  overflow: visible;
  margin: 0 auto;
  transition: all 0.3s;
}

@media only screen and (max-width: 1440px) {
  header .content {
    padding-left: 12vw;
  }
}

@media only screen and (max-width: 1024px) {
  header .content {
    width: 96%;
  }
}

@media only screen and (max-width: 1180px) {
  header .content {
    width: 90%;
    padding-left: 0;
  }
}

header #logo {
  position: fixed;
  width: 100%;
  max-width: 146px;
  top: 0%;
  left: 0%;
  z-index: 3;
  opacity: 0;
  transition: all 0.3s;
}

header.tiny #logo {
  top: 50%;
  left: 3%;
  max-width: 65px;
}

header #logo.on {
  opacity: 1;
}

header #logo img {
  position: relative;
  display: block;
  width: 85%;
  margin: 0 auto;
  margin-left: 4px;
}

header.tiny #logo img {
  padding: 0px;
}

header #logo::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #181C63;
  top: 0%;
  left: 0%;
  z-index: -1;
  border-radius: 0px 0vw 4vw 0px;
  box-shadow: 3px 2px 0px #fff;
}

header.tiny #logo::after {
  content: "";
  display: none;
}

header .right-link {
  display: inline-flex;
  position: absolute;
  right: 0%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

header .right-link a {
  display: flex;
  align-items: center;
  justify-content: center;
}

header .right-link a img {
  width: auto;
  height: 30px;
  margin-left: 10px;
}

header .right-link a img:hover {
  animation: parent-tab-image 0.5s linear;
}

header .right-link a:first-child img {
  margin-left: 0vw;
}

@media only screen and (max-width: 1180px) {
  header .right-link {
    right: 5vw;
    z-index: 10;
  }
}

@media only screen and (max-width: 767px) {
  header .right-link {
    right: 8vw;
    z-index: 10;
  }
}

@media only screen and (max-width: 414px) {
  header .right-link {
    right: 12vw;
    z-index: 10;
  }

  header .right-link a img {
    margin-left: 6px;
    height: 28px;
  }

  header #logo {
    max-width: 116px;
  }

  header #logo::after {
    border-radius: 0 0vw 12vw 0;
  }
}

header #memu_mask {
  position: fixed;
  display: none;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
}

@media only screen and (max-width: 1180px) {
  header #memu_mask {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
}

@media only screen and (max-width: 767px) {
  header #memu_mask {
    top: 60px;
    height: calc(100vh - 60px)
  }
}

header #menu {
  display: flex;
  height: 100%;
  align-items: center;
}

@media only screen and (max-width: 1180px) {
  header #menu {
    position: fixed;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 60px);
    top: 60px;
    left: 0;
    right: 0;
    padding: 10px 1%;
    background: rgb(245, 245, 245, 1);
    border-top: 2px solid #1e2b3f;
    flex-direction: column-reverse;
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.3s, transform 0.3s, -webkit-transform 0.3s, -moz-transform 0.3s, -o-transform 0.3s;
  }
}

@media only screen and (max-width: 767px) {
  header #menu {
    top: 60px;
  }
}

header ul.menu {
  -webkit-flex: 1;
  -ms-flex: 1;
  -moz-box-flex: 1;
  flex: 1;
  display: flex;
  width: auto;
  height: 100%;
  font-size: 1.06rem;
}

@media only screen and (max-width: 1180px) {
  header ul.menu {
    flex: none;
    font-size: 1.2rem !important;
    display: block;
    width: 100%;
  }

  header ul.menu>li::after {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  header ul.menu {
    font-size: 1.2rem !important;
  }
}

header ul.menu>li {
  position: relative;
  flex: none;
  text-align: center;
  padding: 0 14px;
}

header ul.menu>li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  background: #686868;
  width: 1px;
  height: 14px;
  transform: translateY(-50%);
}

header ul.menu>li:last-child::after {
  display: none;
}

@media only screen and (max-width: 1440px) {
  header ul.menu>li {
    padding: 0 1.2vw;
  }
}

@media only screen and (max-width: 1024px) {
  header ul.menu>li {
    padding: 0 1.1vw;
  }
}

@media only screen and (max-width: 1180px) {
  header ul.menu>li {
    display: block;
    padding: 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
  }

  header ul.menu>li:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }
}

header ul.menu>li>a {
  display: flex;
  cursor: pointer;
  height: 100%;
  align-items: center;
  transition: color 0.3s;
  font-weight: 500;
}

@media only screen and (max-width: 1180px) {
  header ul.menu>li>a {
    display: block;
    margin: 12px 0;
  }
}

header ul.menu>li>a:hover,
header ul.menu>li>a.on {
  color: #333333;
}

header ul.menu>li>a.on {
  font-weight: 700;
}

header ul.menu>li>span {
  display: flex;
  cursor: pointer;
  height: 100%;
  align-items: center;
  transition: color 0.3s;
  color: #181c62;
}

@media only screen and (max-width: 1180px) {
  header ul.menu>li>span {
    display: block;
    margin: 12px 0;
  }
}

header ul.menu>li>span:hover,
header ul.menu>li>span.on {
  color: #000000;
}

header ul.menu>li>span:hover ol.sub {
  display: block;
}

@media only screen and (max-width: 1180px) {
  header ul.menu>li>span:hover ol.sub {
    display: none;
  }
}

header ul.menu>li>span>label {
  position: relative;
  display: block;
  cursor: pointer;
  font-weight: 500;
}

@media only screen and (max-width: 1180px) {
  header ul.menu>li>span>label:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2rem;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.5rem 0.5rem 0 0.5rem;
    border-color: #787878 transparent transparent transparent;
    transform: translateY(-50%) rotate(0deg);
    transition: all 0.3s;
  }
}

header ul.menu>li>span input {
  display: none;
}

@media only screen and (max-width: 1180px) {
  header ul.menu>li>span input:checked~ol.sub {
    display: flex !important;
  }
}

@media only screen and (max-width: 1180px) {
  header ul.menu>li>span input:checked~label:after {
    transform: translateY(-50%) rotate(180deg);
  }
}

header ul.menu>li>span ol.sub {
  display: none;
  position: absolute;
  min-width: 140px;
  top: 100%;
  left: 50%;
  text-align: center;
  padding: 0px;
  font-size: 1rem;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
}

@media only screen and (max-width: 1180px) {
  header ul.menu>li>span ol.sub {
    position: relative;
    padding: 0;
    background: none;
    font-size: 1rem;
    margin-top: 20px;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
}

@media only screen and (max-width: 767px) {
  header ul.menu>li>span ol.sub {
    font-size: 1.2rem;
  }
}

header ul.menu>li>span ol.sub li {
  display: block;
  margin-bottom: 3px;
}

@media only screen and (max-width: 1180px) {
  header ul.menu>li>span ol.sub li {
    position: relative;
    flex: none;
    width: 33%;
  }

  header ul.menu>li>span ol.sub li:after {
    content: "";
    position: absolute;
    right: 0;
    top: 30%;
    height: 40%;
    border-left: 1px solid #666;
  }

  header ul.menu>li>span ol.sub li:nth-of-type(3n):after,
  header ul.menu>li>span ol.sub li:last-of-type:after {
    display: none;
  }
}

header ul.menu>li>span ol.sub li.on>a {
  color: #fff;
  background: #1e2b3f;
}

header ul.menu>li>span ol.sub li>a {
  display: block;
  padding: 10px 0px;
  white-space: nowrap;
  color: #1e2b3f;
  font-size: .93rem;
}

@media only screen and (max-width: 1180px) {
  header ul.menu>li>span ol.sub li>a {
    width: 100%;
    margin: 0 auto;
    padding: 10px 2px;
    white-space: normal;
  }
}

header ul.menu>li>span ol.sub li>a:hover {
  color: #fff;
  background: #1e2b3f;
}

header #menu-ck {
  display: none;
}

header #menu-ck:checked~#memu_mask {
  opacity: 1;
  pointer-events: auto;
}

@media only screen and (max-width: 1180px) {
  header #menu-ck:checked~#menu {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: -moz-box;
    display: flex;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }
}

header #menu-ck:checked~label i,
header #menu-ck:checked~label o,
header #menu-ck:checked~label u {
  transition: top 0.2s,
    opacity 0.1s 0.2s,
    -webkit-transform 0.2s 0.2s;
  transition: top 0.2s,
    opacity 0.1s 0.2s,
    transform 0.2s 0.2s;
  transition: top 0.2s,
    opacity 0.1s 0.2s,
    transform 0.2s 0.2s,
    -webkit-transform 0.2s 0.2s,
    -moz-transform 0.2s 0.2s,
    -o-transform 0.2s 0.2s;
  transition: top 0.2s,
    opacity 0.1s 0.2s,
    transform 0.2s 0.2s,
    -webkit-transform 0.2s 0.2s,
    -moz-transform 0.2s 0.2s,
    -o-transform 0.2s 0.2s;
}

header #menu-ck:checked~label i {
  top: 15px;
  opacity: 1;
  transform: rotate(45deg);
}

header #menu-ck:checked~label o {
  top: 15px;
  opacity: 0;
}

header #menu-ck:checked~label u {
  top: 15px;
  opacity: 1;
  transform: rotate(-45deg);
}

header #menu-ck~label {
  display: none;
  position: absolute;
  width: 30px;
  height: 30px;
  right: 0;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
}

header #menu-ck~label i,
header #menu-ck~label o,
header #menu-ck~label u {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #1e2b3f;
  opacity: 1;
  transform: rotate(0deg);
  transition: top 0.2s 0.2s,
    opacity 0.1s 0.2s,
    -webkit-transform 0.2s;
  transition: top 0.2s 0.2s,
    opacity 0.1s 0.2s,
    transform 0.2s;
  transition: top 0.2s 0.2s,
    opacity 0.1s 0.2s,
    transform 0.2s,
    -webkit-transform 0.2s,
    -moz-transform 0.2s,
    -o-transform 0.2s;
  transition: top 0.2s 0.2s,
    opacity 0.1s 0.2s,
    transform 0.2s,
    -webkit-transform 0.2s,
    -moz-transform 0.2s,
    -o-transform 0.2s;
  transition: top 0.2s 0.2s,
    opacity 0.1s 0.2s,
    transform 0.2s,
    -webkit-transform 0.2s;
}

header #menu-ck~label i {
  top: 5px;
}

header #menu-ck~label o {
  top: 15px;
}

header #menu-ck~label u {
  top: 25px;
}

@media only screen and (max-width: 1180px) {
  header #menu-ck~label {
    display: block;
  }
}

header ul.menu>li:last-child a {
  position: relative;
}