#header {
    width: 100%;
    height: 60px;
}

.site-logo {
    width: 50px;
}

.site-logo_img {
    width: 100%;
}

/*ナビゲーション*/
.g-nav {
    text-align: center;
}

.g-nav_list_item a {
    color: var(--main-color1);
    padding: 12px;
    display: inline-block;
    font-size: var(--fs20);
    box-sizing: border-box;
}

.g-nav_list_item a:hover {
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 1px;
}

/* ------------------------
オーバーレイ
------------------------ */
.overlay {
    background: #fff;
    position: fixed;
    top: 0;
    right: 0;
    width: 90%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s;
    z-index: 99;
}

/* ------------------------
クラスshowがつくとオーバーレイ部分が表示される
------------------------ */
.overlay.show {
    opacity: 90%;
    transform: none;
}

/* ------------------------
ハンバーガーアイコン
------------------------ */
/* メニューボタン */
.menu-btn {
    width: 70px;
    height: 80px;
    /* 多角形の頂点を指定（左上、右上、右下、中央下、左下の順） */
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 82%, 0% 100%);
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--main-color2);
    position: fixed;
    top: 5px;
    right: 5px;
    cursor: pointer;
    z-index: 999;
}

/* 三本線の真ん中 */
.menu-line {
    background: var(--sub-color1);
    display: block;
    height: 2px;
    width: 30px;
    position: relative;
    transition: all 0.3s;
}

/* 三本線の上下 */
.menu-line::before,
.menu-line::after {
    content: "";
    display: block;
    height: 2px;
    width: 30px;
    position: absolute;
    transition: all 0.3s;
}

/* 三本線の上 */
.menu-line::before {
    background: var(--sub-color1);
    top: -10px;
}

/* 三本線の下 */
.menu-line::after {
    background: var(--sub-color1);
    top: 10px;
}

/* ------------------------
クラスactiveがつくとハンバーガーアイコンが「×」になる
------------------------ */
/* 三本線の真ん中にクラスactiveが付いたとき */
.menu-line.active {
    background: transparent;
}

/* 三本線の上にクラスactiveが付いたとき */
.menu-line.active::before {
    transform: rotate(45deg);
    top: 0;
}

/* 三本線の下にクラスactiveが付いたとき */
.menu-line.active::after {
    transform: rotate(-45deg);
    top: 0;
}

.toTop {
    background: var(--main-color1);
    width: 45px;
    height: 45px;
    border-radius: 30px;
    box-shadow: 0 0 3px 0 var(--sub-color3);
    font-size: var(--fs18);
    color: var(--main-color2);
    border: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.toTop.show {
    opacity: 1;
}

#footer {
    width: 100%;
    padding: 80px 50px 50px 50px;
    box-sizing: border-box;
}

#footer-text {
    line-height: 1.9em;
}

@media (max-width: 767px) {
    #header {
        padding: 5px;
    }

    .menu-btn {
        width: 40px;
        height: 50px;
        /* 多角形の頂点を指定（左上、右上、右下、中央下、左下の順） */
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 85%, 0% 100%);
    }

    .menu-line {
        width: 20px;
    }

    .menu-line::before {
        top: -7px;
        width: 20px;
    }

    /* 三本線の下 */
    .menu-line::after {
        top: 7px;
        width: 20px;
    }

    .g-nav_list_item a {
        font-size: var(--fs16);
        padding: 0.9em;
    }

    #footer {
        padding: 50px 0 20px 20px;
    }

    #footer-text {
        font-size: 8px;
        line-height: 1.6em;
    }
}