@charset "utf-8";

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

#g-nav{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
	top:0;
    right: -120%;
	width:100%;
    height: 100vh;/*ナビの高さ*/
	background:rgba(77,77,77,0.6);
    /*動き*/
	-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;
    background-image: url(../img/bg_menu.jpg);
    background-size: cover;
}

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top:50%;
    left:70%;
    -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 {
        left:66%;
    }
    .menu_bottom_links{
        flex-direction: column;
        font-size: .8em;
    }
    .menu_bottom_links img{
        width: 22px;
        width: 22px;
    }
}

@media screen and (max-width: 426px) {
    #g-nav ul {
        width: 41%
    }
}

#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{display: none;}
}


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

#g-nav li{
	list-style: none;
    text-align: left;
    margin-bottom: 1rem
}

#g-nav li a{
	color: #FFF;
	text-decoration: none;
	padding:10px;
	display: block;
	letter-spacing: 0.1em;
	font-weight: bold;
}
@media screen and (max-width: 768px) {
#g-nav li a img{
    height: 45px;
}
}

/*========= ボタンのためのCSS ===============*/
.openbtn{
	position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
	top:0;
	right:0;
	cursor: pointer;
    width: 100px;
    height:100px;
    background-color: #000;
    background-image: url(../img/nav_menu.svg);
    background-size: 35%;
    background-position: bottom 24px center;
    background-repeat: no-repeat;
}
@media screen and (max-width: 768px) {
    .openbtn{
        top:0;right:0;
        width:70px;
        height:86px;
    }
}
	
/*×に変化*/	
.openbtn span{
    display: inline-block;
    -webkit-transition: all .4s;
    transition: all .4s;
    position: absolute;
    left: 33px;
    height: 1px;
    border-radius: 2px;
	background-color: #FFF;
  	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);
}


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

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

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

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


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


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