/* デスクトップ　ハンバーガー消える */
.openbtn {
    display: none;
}

.logo1 {
    display: none;
}

/* デスクトップのnav表示 */
#g-nav {
    display: block;
}

#g-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#g-nav li {
    margin-left: 20px;
}

#g-nav li a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

#g-nav li a:hover{
    color: #007BBB;
    text-decoration: none;
    font-weight: bold;
}

/* ハンバーガースタイル */
.openbtn {
    position: fixed;
    right: 10px;
    top: 12px;
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 9999; /*ボタンを最前面に*/
}

.navbar-brand.hitouka {
    color: #007BBB;
}

/* xに変化 */
.openbtn span {
    display: block;
    height: 3px;
    width: 100%;
    background: #007BBB;
    margin: 6px 0;
    transition: all .4s;
}

.openbtn.active span:nth-of-type(1) {
    transform: translateY(9px) rotate(45deg);
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* レスポンシブ */
@media screen and (max-width: 768px) {

    /* ハンバーガー現れる */
    .openbtn {
        display: block;
        padding-right: 10px;
    }

/* ハンバーガー基本隠れてる */
#g-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: none;
    opacity: 0;
    z-index: -1;    /* activeでは無いとき後ろに */
    transition: all 0.3s;
    align-items: center;
}


.navbar-brand hitouka a {
    color: #007BBB;
}

/* レスポンシブメニュー内のロゴ */
.logo1 {
    height: 40px;
    width: 80px;
    display: block;
    margin: 0 auto;
}

    /* active中 */
    #g-nav.panelactive {
        display: flex;
        opacity: 1;
        z-index: 999;
    }

    /* メニュー縦で設定 */
    #g-nav ul {
        flex-direction: column;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #g-nav li {
        margin: 15px 0;
    }

    #g-nav li a {
        color: #007BBB;
        font-size: 1.2rem;
    }
}
