#g-nav{
 
   /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
   position:fixed;
   z-index: 10;
   /*ナビのスタート位置と形状*/
   top:-100%;
   left:0;
   width:100%;
   height: 80vh;/*ナビの高さ*/
   background:#F8F8F8;
   /*動き*/
   transition: all 1s;
   margin-left: auto;
   margin-right: auto;
  

}
 

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive{
    top: 0px;
}




/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 9999; 
    width: 100%;
    height: 100vh;/*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    
}


/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 99999;
    top: 30%;
    left: 50%;
    transform: translate(-50%,-50%);
    margin: auto;
    text-align: left;
    width: 100%;

}

/*リストのレイアウト設定*/

#g-nav li{
	list-style: none;
    text-align: left; 
    border-bottom: 1px solid #D5D5D5;
    padding-left: 20px;
 
    
   
}

#g-nav li a{
	color: #3B3B3B;
	text-decoration: none;
	padding: 10px;
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: bold;
    font-family:yu-gothic-pr6n, sans-serif ;
    text-decoration: none;


    
    


}

#g-nav li .img{
    width:  30px;
    height: 30px;
    margin-top: 10px;
    background-image: url("../img/sp_arrow.svg");
    background-repeat: no-repeat;
     float: right;
     margin-right: 5%;
    }


/*========= ボタン ===============*/
.openbtn{
	position:absolute;
    z-index: 9999;/*ボタンを最前面に*/
	top: 8px;
	right: 0px;
	cursor: pointer;
    width: 38px;
    height:38px;
    background-image: linear-gradient(to right, #ee9404, #e9cd0e);
    border-radius: 25px;
    margin-right: 15px;
 


}
	
/*×に変化*/	
.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 10px;
    height: 3px;
    border-radius: 2px;
	background-color: #fff;
  	width: 50%;

  }

.openbtn span:nth-of-type(1) {
	top: 12px;	
}

.openbtn span:nth-of-type(2) {
	top: 18px;
}

.openbtn span:nth-of-type(3) {
	top:25px;
}

.openbtn.active span:nth-of-type(1) {
    top: 14px;
    left: 11px;
    transform: translateY(6px) rotate(-45deg);
    width: 45%;
}

.openbtn.active span:nth-of-type(2) {
	opacity: 0;
}

.openbtn.active span:nth-of-type(3){
    top: 26px;
    left: 11px;
    transform: translateY(-6px) rotate(45deg);
    width: 45%;
}