@charset "UTF-8";
/* CSS Document */
/*開閉ボタン*/
.openbtn {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  cursor: pointer;
  width: 50px;
  height: 50px;
  background: #00005B;
  opacity: 0.5;
}
.openbtn:hover {
  background-color: #89C49F;
  opacity: 1;
}
.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  width: 45%;
}
.openbtn span:nth-of-type(1) {
  top: 15px;
}
.openbtn span:nth-of-type(2) {
  top: 23px;
}
.openbtn span:nth-of-type(3) {
  top: 31px;
}
/*開いている状態*/
.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}
.openbtn.active span:nth-of-type(2) {
  opacity: 0; /*非表示*/
}
.openbtn.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}
/*メニュー画面*/
#g-nav {
  position: fixed;
  z-index: 999;
  top: 0;
  right: -120%;
  width: 25%;
  min-width: 300px;
  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: 300px;
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#g-nav ul {
  position: absolute;
  z-index: 999;
  top: 70px;
}
#g-nav-list ul {
  text-align: center;
}
#g-nav-list ul li {
  display: block;
  background: #E5DECA;
  min-width: 300px;
  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;
}
@media only screen and (min-width:767px) {
  .openbtn {
    position: fixed;
    top: 10px;
    right: 10px;
  }
} /*768px以上*/