#g-nav{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: 0;
    left: -120%;
    width: 300px;
    height: 100vh;/*ナビの高さ*/
    box-shadow: 0 10px 100px 0 rgba(0, 0, 0, .5);
    background-color: #ffffff;

    /*動き*/
    transition: all 0.6s;
}

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


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

}



/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 320px;
    transform: translate(-50%,-50%);
    left: 120px;
    text-align: left;   
}

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

#g-nav li{
    color: #4c3c31;
    text-decoration: none;
    display: block;
    text-transform: capitalize;
    letter-spacing: 0.1em;
    font-weight: bold;
    padding-top: 10px;
    padding-right: 0px;
    padding-left: 0px;
    border-bottom: 100% solid #fff;
    font-family: 'Poppins', sans-serif;
}

#g-nav li a{
    color: #4c3c31;
    text-decoration: none;
    padding: 0px;
    display: block;
    text-transform: capitalize;
    letter-spacing: 0.1em;
    font-family: 'Poppins', sans-serif;
}


#g-nav li a:hover {
    color: #4c3c31;
    text-decoration: underline;
}

/*========= ボタンのためのCSS ===============*/









.openbtn {
   position: absolute;
    z-index: 9999;/*ボタンを最前面に*/
    top: 38px;

    cursor: pointer;
    width: 100px;
    height: 50px;
    margin-bottom: 20px;
    float: left;    
    
  }

@media screen and (max-width: 768px) {
/* 768pxまでの幅の場合に適応される */
     .openbtn {
        position: absolute;
    z-index: 9999;/*ボタンを最前面に*/
    top: 38px;
         left: 1%;
    cursor: pointer;
    width: 100px;
    height: 50px;
    margin-bottom: 20px;
    float: left;
    }
}





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

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





.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%;
}
