@charset "utf-8";

#g_navi{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height: 140px;
  z-index: 1400;
}
.header{
  position: absolute;
  z-index:10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.header__inner{
  width: 1500px;
  max-width: 95%;
  display:flex;
  align-items: center;
  margin:auto;
  padding-bottom: 25px;
}
.header__logo{
  width:380px;
  flex-shrink: 1;
}
.globalNavi{
  width:800px;
  max-width:100%;
  flex-shrink: 2;
}
.globalNavi ul{
  display:flex;
  flex-wrap:wrap;
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin: auto 1vw auto 3vw;
}
@media screen and (min-width:1200px){
  .globalNavi ul{margin-left: 3em;}
}
.globalNavi ul li{
  margin-right:1em;
}
.globalNavi li a{
  font-family:"04B_19";
  color:#fff;
  text-decoration:none;
  display: block;
  position:relative;
}
.globalNavi li a.crt,
.globalNavi li a:hover{
  color:#ffd900;
  opacity:1;
}
.globalNavi li a::after{
  content:"";
  position:absolute;
  display: block;
  width: 0;
  height: 6px;
  right: -0.5em;
  bottom:0;
  background-image: radial-gradient(#ffd900 2px, transparent 3px);
  background-position: right center;
  background-size: 0.5em 0.5em;
  background-repeat: repeat-x;
  transition:.5s ,background 0s;
}
.globalNavi li a.crt::after,
.globalNavi li a:hover::after{
  width: calc(100% + 1em);
  right: auto;
  left: -0.5em;
  opacity:1;
  background-position: left center;
}
.socialList{
  display:flex;
  width:90px;
  justify-content:space-between;
  align-items:center;
  flex-shrink: 0;
}
.globalNavi li, .socialList{
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.06));
}
.navOverlay{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: url(../../images/main/common/gnaviBg.png)center bottom / 240px auto repeat-x;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.06));
  transition: .7s;
}

@media screen and (max-width:899px) {
  #g_navi{
    height: auto;
    min-height:70px;
    transition: .7s;
  }
  .header{
    position:relative;
    height: 90px;
    transition: .7s;
  }
  .navOverlay{height:90px;max-height: 600px;}
  .header__inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    height: 90px;
    max-height: 100vh;
    padding-top: 70px;
  }
  .is-open .header__inner{display:block;}
  .header__logo{
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    max-width: calc(100% - 80px);
    margin: auto;
    text-align: center;
    z-index: 10;
  }
  .header__logo img{
    max-height: 40px;
  }
  .globalNavi,
  .socialList{
    opacity:0;
    visibility: hidden;
    transform: translateY(-80vh);
    transition:0.5s;
    margin: auto;
    pointer-event:none;
  }
  .globalNavi ul{justify-content: flex-start;}
  .globalNavi ul li{
    width:50%;
    text-align:center;
    margin:0.5em 0;
  }
  .globalNavi ul li a{
    display:inline-block;
    margin:auto;
  }
  .menuButton {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1400;
  }

  .menuButton:hover {
    opacity: 1;
  }

  .menuIcon {
    width: 50px;
    height: 30px;
  }

  .menuIcon__line {
    position: absolute;
    width: 100%;
    height: 6px;
    left: 0;
    background: #fff;
    transition: .4s;
  }

  .menuIcon__line:nth-child(1) {top: 0;}
  .menuIcon__line:nth-child(2) {top: calc(50% - 3px);}
  .menuIcon__line:nth-child(3) {bottom: 0;}

  .is-open .menuIcon__line:nth-child(1) {
    top: calc(50% - 3px);
    transform: rotate(45deg)
  }

  .is-open .menuIcon__line:nth-child(2) {
    transform: scale(0)
  }

  .is-open .menuIcon__line:nth-child(3) {
    bottom: calc(50% - 3px);
    transform: rotate(-45deg)
  }
  #g_navi.is-open {height: calc(100vh + 25px);max-height: 600px;}
  .is-open .navOverlay{height: calc(100vh + 25px);}
  .is-open .globalNavi,
  .is-open .socialList{
    opacity:1;
    visibility: visible;
    transform:translateY(0);
    height: auto;
    pointer-event:auto;
  }
}
@media screen and (max-width:600px) {
  #g_navi,.navOverlay{
    height: 80px;
  }
  .menuButton{
    top:15px;
    right:5px;
  }
  .menuIcon{width:30px;height: 22px;}
  .menuIcon__line{height:4px;}
  .menuIcon__line:nth-child(1) {top: 0;}
  .menuIcon__line:nth-child(2) {top: calc(50% - 2px);}
  .menuIcon__line:nth-child(3) {bottom: 0;}

  .is-open .menuIcon__line:nth-child(1) {
    top: calc(50% - 2px);
  }
  .is-open .menuIcon__line:nth-child(3) {
    bottom: calc(50% - 2px);
  }
}