#g-nav {
    position: fixed;
    z-index: 999;
    top: -120%;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* 動的ビューポート高さ */
    background: #fff;
    transition: all 0.6s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#g-nav.panelactive {
    top: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list {
    position: relative;
    z-index: 999;
    width: 100%;
    height: auto;
    overflow-y: visible;
    background: #fff;
}

#g-nav-list .wrap {
    width: 87%;
    margin: 30px auto 10px;
}

/*========= ｇナビリスト開閉CSS ===============*/
#g-nav .accordion-area {
    z-index: 999;
    width: auto;
    margin: 30px auto 20px;
}

#g-nav .accordion-area-headlist {
    list-style: none;
}

#g-nav .accordion-area-headlist a {
    position: relative;
    color: #000;
    padding: 10px 30px;
    display: block;
    text-transform: uppercase;
    border-bottom: 1px solid #AEAFAE;
}

#g-nav .accordion-area-headlist:last-child a {
    padding: 10px;
}

#g-nav .accordion-area-headlist a::after {
    content: "";
    position: absolute;
    top: 15px;
    right: 10px;
    width: 12px;
    height: 15px;
    background: url(../assets/icon/arw_black.png) no-repeat;
    background-size: contain;
}

#g-nav-list .wrap .opening {
    margin-top: 30px;
    text-align: center;
    font-size: 22px;
}

.head-btm {
    margin-top: 30px;
    text-align: center;
    padding-bottom: 80px; /* スクロール用の余白 */
}

.head-btm .txt {
    font-size: 14px;
}

.head-btm .head-intel {
    margin: 15px 0;
    display: block;
    position: relative;
    font-size: 40px;
    font-weight: 600;
}

.head-btm .head-intel::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 45px;
    width: 23px;
    height: 32px;
    background: url(../assets/icon/tel-b.png) no-repeat;
    background-size: contain;
}

.head-btm .head-incontact-btn {
    display: block;
    width: 90%;
    height: 59px;
    line-height: 59px;
    margin: 0 auto;
    background-color: #2A7E3A;
    color: #fff;
    font-size: 15px;
}

.head-btm .privacy-btn {
    display: block;
    margin: 30px 0;
    font-size: 14px;
    font-weight: bold;
    text-decoration: underline;
}

.head-btm .copy {
    margin-bottom: 10px;
    font-size: 12px;
    color: #2A7E3A;
}

/*========= ハンバーガーボタンのためのCSS ===============*/
.hamburger-btn {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    cursor: pointer;
    width: 80px;
    height: 80px;
    background-color: #2A7E3A;
}

/*×に変化*/    
.hamburger-btn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 20px;
    height: 3px;
    border-radius: 2px;
    background-color: #fff;
    width: 55%;
}

.hamburger-btn span:nth-of-type(1) {
    top: 25px;    
}

.hamburger-btn span:nth-of-type(2) {
    top: 37px;
}

.hamburger-btn span:nth-of-type(3) {
    top: 50px;
}

.hamburger-btn.active span:nth-of-type(1) {
    top: 30px;
    left: 20px;
    transform: translateY(6px) rotate(-45deg);
    width: 55%;
}

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

.hamburger-btn.active span:nth-of-type(3) {
    top: 42px;
    left: 20px;
    transform: translateY(-6px) rotate(45deg);
    width: 55%;
}

/*========= ｇナビ内のアコーディオン開閉CSS ===============*/
.accordion-title {
    margin-top: 2px;
    position: relative;
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
    transition: all .5s ease;
    border-bottom: 1px solid #AEAFAE;
}

.accordion-box {
    padding: 0;
    line-height: 1.5;
    font-size: 16px;
}

/* メディアクエリ */
@media only screen and (max-width: 375px) {
    .hamburger-btn {
        width: 70px;
        height: 70px;
    }

    .hamburger-btn span {
        width: 48%;
    }

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

    .hamburger-btn span:nth-of-type(2) {
        top: 35px;
    }

    .hamburger-btn span:nth-of-type(3) {
        top: 47px;
    }

    .hamburger-btn.active span:nth-of-type(1) {
        top: 28px;
        width: 48%;
    }

    .hamburger-btn.active span:nth-of-type(3) {
        top: 40px;
        width: 48%;
    }

    #g-nav-list .wrap {
        width: 95%;
    }
    
    .head-btm .head-intel::before {
        left: 30px;
    }
}