header {
  position: fixed;
  width: 100%;
  z-index: 4;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
header.visible {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}
header .header-content {
  background-color: #ffffff;
  border-left: 2px solid #004bc8;
  border-right: 2px solid #004bc8;
  bottom: 2px solid #004bc8;
  padding: 0 40px 0 50px;
}
header .header-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 140px;
}
header .header-logo-content {
  display: block;
  width: 100%;
  max-width: 270px;
}
header .header-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  max-width: 684px;
}
header .header-nav-content .line {
  padding-bottom: 3px;
  position: relative;
}
header .header-nav-content .line::before {
  background: #004bc8;
  content: "";
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
  -webkit-transform-origin: right top;
          transform-origin: right top;
  -webkit-transform: scale(0, 1);
          transform: scale(0, 1);
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}
header .header-nav-content .line:hover::before {
  -webkit-transform-origin: left top;
          transform-origin: left top;
  -webkit-transform: scale(1, 1);
          transform: scale(1, 1);
}
header .header-nav-content a {
  font-size: 16px;
  color: #004bc8;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.05em;
}
header .header-nav-content-contact {
  background-color: #004bc8;
  border-radius: 50%;
  width: 100%;
  max-width: 105px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  border: 1px solid #004bc8;
}
header .header-nav-content-contact:hover {
  background-color: #fff;
  border: 1px solid #004bc8;
}
header .header-nav-content-contact:hover a {
  color: #004bc8;
}
header .header-nav-content-contact a {
  font-size: 14px;
  color: #fff;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.05em;
  height: 105px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
header .link-item.current {
  position: relative;
}
header .link-item.current::after {
  content: "";
  display: block;
  background-color: #004bc8;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  position: absolute;
  right: 0;
  left: 0;
  top: -18px;
  margin: auto;
}
@media screen and (max-width: 1100px) {
  header .header-content {
    padding: 0 30px 0 30px;
  }
  header .header-logo-content {
    display: block;
    width: 100%;
    max-width: 200px;
  }
  header .header-nav {
    max-width: 600px;
  }
}
@media screen and (max-width: 890px) {
  header .header-nav {
    max-width: 500px;
  }
  header .header-nav-content a {
    font-size: 14px;
  }
  header .header-nav-content-contact {
    max-width: 80px;
  }
  header .header-nav-content-contact a {
    font-size: 12px;
    height: 80px;
  }
}
@media screen and (max-width: 767px) {
  header .header-content {
    background-color: #004bc8;
    border-left: unset;
    border-right: unset;
    padding: 0 15px;
  }
  header .header-flex {
    height: 64px;
  }
  header .header-logo-content {
    max-width: 154px;
  }
  header #g-nav {
    position: fixed;
    z-index: 5;
    top: 0;
    right: -120%;
    width: 80%;
    height: 100vh;
    background: #fff;
    border-left: 2px solid #004bc8;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
    overflow: scroll;
  }
  header .header-nav {
    display: block;
    position: relative;
    z-index: 6;
    margin-top: 60px;
    max-width: 100%;
  }
  header .header-gnav-logo {
    margin-top: 30px;
    padding-left: 25px;
  }
  header .header-nav-content {
    border-bottom: 2px solid #004bc8;
    padding: 15px 0 15px 25px;
    position: relative;
  }
  header .header-nav-content::after {
    content: "";
    width: 10px;
    height: 10px;
    border: 0;
    border-top: solid 2px #004bc8;
    border-right: solid 2px #004bc8;
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 30px;
  }
  header .header-nav-content a {
    display: block;
    color: #004bc8;
    font-size: 16px;
    line-height: 1;
  }
  header .header-nav-content-contact {
    border-radius: 22px;
    max-width: 188px;
    margin: 30px 0 0 25px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    border: 1px solid #004bc8;
    position: relative;
  }
  header .header-nav-content-contact::after {
    content: "";
    width: 10px;
    height: 10px;
    border: 0;
    border-top: solid 2px #fff;
    border-right: solid 2px #fff;
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 15px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  header .header-nav-content-contact:hover {
    background-color: #fff;
    border: 1px solid #004bc8;
  }
  header .header-nav-content-contact:hover::after {
    border-top: solid 2px #004bc8;
    border-right: solid 2px #004bc8;
  }
  header .header-nav-content-contact:hover a {
    color: #004bc8;
  }
  header .header-nav-content-contact a {
    font-size: 15px;
    height: 44px;
  }
  header #g-nav.panelactive {
    right: 0;
  }
  header .openbtn {
    position: relative;
    width: 25px;
    height: 25px;
    z-index: 6;
    cursor: pointer;
  }
  header .openbtn span {
    display: inline-block;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
    position: absolute;
    right: 0;
    height: 2px;
    background-color: #fff;
  }
  header .openbtn.openbtn.active span {
    background-color: #004bc8;
  }
  header .openbtn span:nth-of-type(1) {
    top: -10px;
    bottom: 0;
    margin: auto;
    width: 24px;
  }
  header .openbtn span:nth-of-type(2) {
    top: 0;
    bottom: -10px;
    margin: auto;
    width: 24px;
  }
  header .openbtn.active span:nth-of-type(1) {
    -webkit-transform: translateY(6px) rotate(-45deg);
            transform: translateY(6px) rotate(-45deg);
    width: 24px;
  }
  header .openbtn.active span:nth-of-type(2) {
    -webkit-transform: translateY(-4px) rotate(45deg);
            transform: translateY(-4px) rotate(45deg);
    width: 24px;
  }
}

@media screen and (max-width: 767px) {
  header.active .header-content {
    background-color: #ffffff;
    border-left: unset;
    border-right: unset;
  }
  header.active .header-logo-content {
    -webkit-filter: brightness(0) saturate(100%) invert(19%) sepia(89%) saturate(2565%) hue-rotate(211deg) brightness(96%) contrast(107%);
            filter: brightness(0) saturate(100%) invert(19%) sepia(89%) saturate(2565%) hue-rotate(211deg) brightness(96%) contrast(107%);
  }
  header.active .openbtn span {
    display: inline-block;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
    position: absolute;
    right: 0;
    height: 2px;
    background-color: #004bc8;
  }
}