@charset "utf-8";

/*========= navigation===============*/

#g-nav{
    position:fixed;
    z-index: 999;
	top:0;
    right: -120%;
	width:100%;
    height: 100vh;/*ナビの高さ*/
	background:#000;
    /*動き*/
	-webkit-transition: all 0.6s;
	transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#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;
}

#g-nav ul {
    position: absolute;
    z-index: 999;
    top:40%;
    left:50%;
    padding-left: 20px;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    text-align: left;
}
.menu_bottom_links {display: flex;margin-top: 3rem;}

@media screen and (max-width: 849px) {
    .menu_bottom_links{
        flex-direction: column;
        font-size: .8em;
    }
}


@media screen and (max-width: 768px) {
    #g-nav ul {
       width: calc(  100% - 20px );
    }
    .menu_bottom_links{
        flex-direction: column;
        font-size: .8em;
    }
    .menu_bottom_links img{
        width: 22px;
        width: 22px;
    }
}


#g-nav-logo{
    position: absolute;
    z-index: 999;
    top:40%;
    left:30%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}
@media screen and (max-width: 768px) {
    #g-nav-logo{
        position: absolute;
        top: 20px;
        left: 20px;
        transform:none;
    }
}


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

#g-nav li{
	list-style: none;
    text-align: left;
    margin-bottom:0;
    font-size: 35px;
}

#g-nav li a{
	color: #FFF;
	text-decoration: none;
	padding:0;
	display: block;
	letter-spacing:normal;
	font-weight: bold;
}


@media screen and (max-width: 768px) {
    #g-nav li a{
        margin-bottom: 0;
    }
    #g-nav li a img{
    height: 45px;
    }
    
    #g-nav li.bottom_line_link{
    text-align: center;
        box-sizing: border-box;
    }
    #g-nav li.bottom_line_link a{
        padding: 10px;
        margin-right: 20px;
        margin-top: 40px;
        font-size: 25px;
    }
    .border--center{
        border:  1px solid #FFF;
    }
    .address {
        font-size: 9px;
        color: #FFF;
        position: absolute;
        left: 0;
        bottom: 40px;
        width: 100%;
        text-align: center;
    }
    
}

/*========= ボタンのためのCSS ===============*/
.openbtn{
	position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
	top:0;
	right:0;
	cursor: pointer;
    width: 100px;
    height:100px;
    background-color: #FFF;
}
@media screen and (max-width: 768px) {
    .openbtn{
        top:0;right:0;
        width:63px;
        height:63px;
    }
}
	
/*×に変化*/	
.openbtn span{
    display: inline-block;
    -webkit-transition: all .4s;
    transition: all .4s;
    position: absolute;
    left: 33px;
    height: 1px;
    border-radius: 2px;
	background-color: #000;
  	width: 33%;
  }

@media screen and (max-width: 768px) {
    .openbtn span{
        left: 24px;
    }
}

#page .openbtn span{background-color: #000;}

.openbtn.active {
    background-image: url(../img/nav_close.svg?01);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-color: transparent;
    background-size: 30px;
}


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

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

.openbtn span:nth-of-type(3) {
	top:37px;
}

.openbtn.active span:nth-of-type(1) {
    top: 30px;
    left:33px;
    -webkit-transform: translateY(6px) rotate(-45deg);
    transform: translateY(6px) rotate(-45deg);
    width: 50%;
    background-color: #FFF;
}


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

.openbtn.active span:nth-of-type(3){
    top: 43px;
    left: 33px;
    -webkit-transform: translateY(-6px) rotate(45deg);
    transform: translateY(-6px) rotate(45deg);
    width: 50%;
    background-color: #FFF;
}


@media screen and (max-width: 768px) {
    .openbtn.active span:nth-of-type(1) {
    top: 24px;
        left:16px;
    }
    .openbtn.active span:nth-of-type(3){
    top: 36px;
    left: 16px;
}