/* 背景固定用 */
body.is-fixed {
position: fixed;
left: 0;
right: 0;
width: 100%;
top: var(--lock-scroll-y, 0);
}
#g-nav{
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: absolute;
  z-index: 999;
  /*ナビのスタート位置と形状*/
top:0;
  right: -120%;
width:40%;
min-width: 430px;
  height: 100vh;
background:#444;
  /*動き*/
transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive{
  right: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav-list {
  overflow: auto;
  width: 100%;
  height: 100%;/*表示する高さ*/
  padding: 80px 40px 100px;
}
#g-nav.panelactive #g-nav-list{
  /*ナビの数が増えた場合縦スクロール*/
  position: absolute;
  z-index: 999;
  /* overflow: auto; */
  -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
.parent-list {
  /*ナビゲーション天地中央揃え*/
  /* position: absolute;
  z-index: 999;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%); */
}

/*リストのレイアウト設定*/

.parent-item {
list-style: none;
text-align: left;
}

.parent-item a {
color: #fff;
text-decoration: none;
padding:4px 0;
display: block;
letter-spacing: 0.1em;
font-weight: bold;
text-decoration: underline;
}
.parent-item a:hover {
  opacity: 0.7;
}
.child-list {
  margin: 0 0 0 2em;
}
.child-item a{
  text-decoration: none;
}

@media screen and (max-width:768px) {
  #g-nav {
    width: 90%;
    min-width: auto;
    position: fixed;
    top: 0;
  }
  #g-nav-list {
    padding: 80px 15px 100px;
  }
}

/*========= ボタンのためのCSS ===============*/
.openbtn{
  position: fixed;
  background: #000;
  z-index: 9999;/*ボタンを最前面に*/
top:10px;
right: 10px;
cursor: pointer;
  width: 50px;
  height:50px;
}

/*×に変化*/	
.openbtn span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 15%;
  height: 3px;
  border-radius: 2px;
background-color: #fff;
  width: 70%;
}

.openbtn span:nth-of-type(1) {
top:12px;	
}

.openbtn span:nth-of-type(2) {
top:23px;
}

.openbtn span:nth-of-type(2)::after {
	content:"Menu";/*3つ目の要素のafterにMenu表示を指定*/
	position: absolute;
	top:5px;
	left:50%;
  transform: translateX(-50%);
	color: #fff;
	text-transform: uppercase;
}
.openbtn.active span:nth-of-type(2)::after {
	content:"Close";/*3つ目の要素のafterにClose表示を指定*/
    transform: translate(-15%,6%) rotate(-45deg);
	top:5px;
	left:50%;
}

.openbtn.active span:nth-of-type(1) {
  top: 13px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.openbtn.active span:nth-of-type(2){
  top: 25px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

.header__logo {
  position: fixed;
  width: 130px;
  left: 10px;
  top: 20px;
  z-index: 100;
}
@media screen and (max-width: 768px) {
  .header__logo {
    width: 100px;
  }
}