@charset "utf-8";

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

#g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: 0;
    right: -120%;
    width: 100%;
    height: 50vh;
    /*ナビの高さ*/
    background: #065fa3;
    /*動き*/
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
}

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

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    padding: 0;
}

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

#g-nav li {
    list-style: none;
    text-align: center;
}

#g-nav li a {
    color: #fff;
    text-decoration: none;
    padding: 1.2rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 100;
}

/*========= ボタンのためのCSS ===============*/
.openbtn {
    position: fixed;
    z-index: 9999;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    background: #065fa3;
    display: flex;
    justify-content: center;
    align-items: center;
}



/*×に変化*/
.openbtn span {
    display: inline-block;
    -webkit-transition: all 0.4s;
    transition: all .4s;
    position: absolute;
    left: 32px;
    left: 27.5%;
    height: 1px;
    border-radius: 0px;
    background-color: #fff;
    width: 45%;
}

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

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

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

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

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

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

.openbtn::after {
    content: 'close';
    display: block;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 100;
    letter-spacing: 0.07em;
    font-size: 1.2rem;
    opacity: 0;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
}

.openbtn.active::after {
    opacity: 1;
}

@media screen and (min-width: 768px) {
    .openbtn {
        top: 0;
        right: 0;
        width: 120px;
        height: 120px;
    }

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

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

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

    #g-nav {
        width: 50%;
        height: 100vh;
    }
}

@media screen and (min-width: 1200px) {
    #g-nav {
        width: 30%;
        height: 100vh;
    }
}