@charset "UTF-8";
/* CSS Document */
/*開閉ボタン*/
.openbtn {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  cursor: pointer;
  width: 40px;
  height: 30px;
  background: #00005B;
  opacity: 0.4;
  transition: 0.3s;
}
.openbtn:hover {
  opacity: 1;
}
.openbtn span {
  display: inline-block;
  width: 25px;
  height: 3px;
  position: absolute;
  top:0px;
  left: 8px;
  border-radius: 2px;
  background: #fff;
  transition: all .4s;
}
.openbtn span:nth-of-type(1) {
  top: 2px;
}
.openbtn span:nth-of-type(2) {
  top: 8px;
}
.openbtn span:nth-of-type(3) {
  top: 14px;
}
.menu_txt {
    color:#fff;
    font-size:1.0rem;
    position:absolute;
    top: 14px;
    left:7px;
    z-index:999;
}
/*開いている状態*/
.openbtn.active span:nth-of-type(1) {
  top: 20px;
  left: 2px;
  transform: translateY(0) rotate(-45deg);
  width: 90%;
}
.openbtn.active span:nth-of-type(2) {
  opacity: 0; /*非表示*/
}
.openbtn.active span:nth-of-type(3) {
  top: 20px;
  left: 2px;
  transform: translateY(0) rotate(45deg);
  width: 90%;
}
/*メニュー画面*/
#g-nav {
  position: fixed;
  z-index: 999;
  top: 0;
  right: -100%;
  width: 40%; /*1920pxの20％ 384px*/
  min-width: 250px;
  max-width:385px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.6s;
}
#g-nav.panelactive {
  right: 0;
}
#g-nav.panelactive #g-nav-list {
  position: fixed;
  z-index: 999;
  min-width: 380px;
  height: 100vh;
  overflow: auto;
}
#g-nav ul {
  position: absolute;
  z-index: 999;
  top: 85px;
}
#g-nav-list ul {
  text-align: center;
}
#g-nav-list ul li {
  display: block;
  background: #E5DECA;
  width:100%;
  min-width: 380px;
  text-align: left;
}
#g-nav-list ul li + li {
  border-top: 2px dotted #22558A;
}
#g-nav-list ul li a {
  display: block;
  text-decoration: none;
  color: #00005B;
  padding: 10px;
}
#g-nav-list ul li a:hover {
  background: #22558A;
  color: #fff;
  transition: all .4s;
}
#g-nav-list img{
    width:100px;
    height:auto;
}
@media only screen and (min-width:767px), print {
  .openbtn {
    width: 50px;
    height: 50px;
  }
  .openbtn span {
    width: 40px;
    height: 4px;
    position: absolute;
    left: 5px;
    border-radius: 2px;
    background: #fff;
    transition: all .4s;
  }
  /*三本線*/
  .openbtn span:nth-of-type(1) {
    top: 10px;
  }
  .openbtn span:nth-of-type(2) {
    top: 22.5px;
  }
  .openbtn span:nth-of-type(3) {
    top: 35px;
  }
  /*開いている状態の三本線*/
  .openbtn.active span:nth-of-type(1) {
    top: 25px;
    left: 10px;
    width:30px;
    transform: translateY(0) rotate(-45deg);
  }
  .openbtn.active span:nth-of-type(2) {
    opacity: 0; /*非表示*/
  }
  .openbtn.active span:nth-of-type(3) {
    top: 25px;
    left: 10px;
    width:30px;
    transform: translateY(0) rotate(45deg);
  }
}
@media only screen and (min-width:1024px), print {
  .openbtn {
    width: 40px;
    height: 40px;
    opacity:1;
  }
  .openbtn span {
    width: 80%;
    height: 4px;
    border-radius: 2px;
    background: #fff;
    position: absolute;
    left: 5px;
    transition: all .4s;
  }
  /*三本線*/
  .openbtn span:nth-of-type(1) {
    top: 8px;
  }
  .openbtn span:nth-of-type(2) {
    top: 18px;
  }
  .openbtn span:nth-of-type(3) {
    top: 28px;
  }
  /*開いている状態の三本線*/
  .openbtn.active span:nth-of-type(1) {
    top: 14px;
    left: 5px;
    transform: translateY(0) rotate(-45deg);
    width: 80%;
  }
  .openbtn.active span:nth-of-type(2) {
    opacity: 0; /*非表示*/
  }
  .openbtn.active span:nth-of-type(3) {
    top: 14px;
    left: 5px;
    transform: translateY(0) rotate(45deg);
    width: 80%;
  }
    .menu_txt {
        color:#fff;
        font-size:1.0rem;
        position:absolute;
        top: 24px;
        left:7px;
        z-index:999;
    }
}