
/*==================================================
　5-2-9 3本線がジャンプして×に
===================================*/

.openbtn{
    position: fixed;
    top: 10px;
    right: 30px;
    background:#FFAC0C;
    cursor: pointer;
    width: 50px;
    height:50px;
    border-radius: 5px;
    overflow: hidden;/*ジャンプしてはみ出た要素を消す*/
    transition: .4s;
}
.openbtn:hover{
    background: #F9842F;
}
@media screen and (max-width:450px) {
.openbtn{
    right: 10px;
}
    }
    
/*ボタン内側*/

.openbtn .openbtn-area{
    transition: all .4s;/*アニメーションの設定*/
}

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


/*activeクラスが付与されると .openbtn-areaが360度回転し、
その中の線のtopの位置や形状が変化して×に*/

.openbtn.active .openbtn-area{
    transform: rotateX(360deg);
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-135deg);
    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(135deg);
    width: 30%;
}

/*==================================================
　ナビメニュー
===================================*/

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



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

#g-nav.panelactive #g-nav-list{
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;

}
@media screen and (max-width:1030px) {
    #g-nav{
    right: -120%;
    width:50%;
}
   #g-nav.panelactive #g-nav-list{
    width: 200%;
    left: 45%;
   }
}
@media screen and (max-width:450px) {
    #g-nav{
    right: -120%;
    width:100%;
}
   #g-nav.panelactive #g-nav-list{
    width: 200%;
    left: 25%;
   }
}


#g-nav ul {
    position: absolute;
    z-index: 999;
    top:52%;
    left: 15%;
    transform: translate(-50%,-50%);
    font-size: 20px;
}

#g-nav li{
    list-style: none;
    text-align: left;
    width: 200px;
    padding: 5px 0;
}
#g-nav li span{
    display: block;
    font-size: 12px;
    color: #B6A59B;
}
#g-nav li a{
    color: #3C1702;
    text-decoration: none;
    padding:10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    transition: .4s;

}
#g-nav li a:hover{
    background: #eee;
}

/*========= ボタンのためのCSS ===============*/
.openbtn{
    position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
    top:10px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height:50px;
}
    
/*×に変化*/    
.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #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%;
}


/*==================================================
　ジャンプトップ
===================================*/

.jump a {
    position: fixed;
    bottom: 166px;
    right: 30px;
    background: #508E01;
    cursor: pointer;
    width: 55px;
    height: 55px;
    border-radius: 5px;
    overflow: hidden;
    transition: .4s;
    border-radius: 100px;
}

.jump a:hover{
  color: #fff;
  text-decoration: none;
  background-color: #385C0B;
  transition: .3s;
}