
/* #g-nav{
    position:fixed;
    z-index: 999;
	top:-120%;
    left:0;
	width:100%;
    height: 100vh;
	background:#fff;
	transition: all 0.6s;
} */
#g-nav{
    position:fixed;
    z-index: 999;
	top:-120%;
    left:0;
	width:100%;
    height: 100vh;
	background:#fff;
	transition: all 0.6s;
}

#g-nav.panelactive{
    top: 0;
}

#g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#g-nav ul {
    position: absolute;
    z-index: 999;
    width: 85%;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#g-nav li{
    border-bottom: 2px dotted #858585;
}

#g-nav li a{
    position: relative;
    color: #464646;
    padding: 20px 0 16px;
    display: block;
    letter-spacing: 0.1em;
    font-size: 1rem;
}
#g-nav li a::after{
    content: "";
    position: absolute;
    top: 45%;
    right: 3%;
    width: 0;
    height: 0;
    border-style: solid;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 8px solid #464646;
    border-right: 0;

}
.g-nav-img {
    position: absolute;
    bottom: 0;
}
/*========= ボタン ===============*/
.hamberger-btn {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    cursor: pointer;
    width: 50px;
    height: 50px;
}
	
/*×に変化*/	
.hamberger-btn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 1px;
    border-radius: 2px;
    background-color: #707070;
    width: 45%;
  }

.hamberger-btn span:nth-of-type(1) {
	top:16px;	
}

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

.hamberger-btn span:nth-of-type(3) {
	top:30px;
}

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

.hamberger-btn.active span:nth-of-type(2) {
	opacity: 0;
}

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