@charset "utf-8";

/*========= ナビゲーションのためのCSS ===============*/

#g-nav{
    position:fixed;
    z-index: 999;
	top:0;
    right: -120%;
	width:100%;
    height: 100vh;/*ナビの高さ*/
	background:rgba(0, 0, 0, .9);
	transition: all 0.6s ease-out;
}

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

/*ナビゲーション*/
#g-nav ul {
    width: 20vw;
    margin: 0 auto;
}

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

#g-nav li{
	list-style: none;
    text-align: center;
    line-height: 3.5;
}
#g-nav li a{
	color: var(--Color2);
	display: block;
	letter-spacing: 0.1em;
}
#g-nav ul.lang {
    width: 100%;
}
#g-nav ul.lang-list {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: auto;
}
#g-nav ul li a:hover {
  text-decoration: underline;
  text-underline-offset:1vw;
}
#g-nav .menu_logo {
    width: 20vw;
    margin: 5vw auto;
}



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


.openbtn{
    position:absolute;
    z-index: 9999;/*ボタンを最前面に*/
    top:0;
    right: 2vw;
    cursor: pointer;
    width: 4vw;
    height:8vw;
}
.openbtn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    height: .3vw;
    border-radius: .1vw;
    background-color: var(--Color7);
    width: 100%;
}
.openbtn span:nth-of-type(1) {
    top:2vw;
}
.openbtn span:nth-of-type(2) {
    top:3.5vw;
}
.openbtn span:nth-of-type(3) {
    top:5vw;
}
.openbtn.active span:nth-of-type(1) {
    top: 3vw;
    left: 1vw;
    transform: translateY(.5vw) rotate(-45deg);
    width: 80%;
}
.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}
.openbtn.active span:nth-of-type(3){
    top: 4vw;
    left: 1vw;
    transform: translateY(-.5vw) rotate(45deg);
    width: 80%;
}


/* --------------------- */
/* SP */
/* --------------------- */
@media screen and (max-width: 767px) {

#g-nav ul {
    width: 40vw;
}
.openbtn{
    width: 8vw;
    height:12vw;
}
.openbtn span:nth-of-type(1) {
    top:3vw;
}
.openbtn span:nth-of-type(2) {
    top:5vw;
}
.openbtn span:nth-of-type(3) {
    top:7vw;
}
.openbtn.active span:nth-of-type(1) {
    top: 5vw;
}
.openbtn.active span:nth-of-type(3){
    top: 6vw;
}

}