.header {
    display: flex;
    justify-content: space-between;
    position: fixed;
    align-items: center;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
}

.g-nav_list {
    display: flex;
    gap: 40px;
    margin-right: 16px;
}

.g-nav_list_item a {
    color: var(--main-color2);
    display: block;
}

.toTop {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
    color: var(--main-color1);
    width: 60px;
    height: 60px;
    border-radius: 4px;
    border: none;
    text-align: center;
    font-size: var(--fs12);
    cursor: pointer;
    position: fixed;
    right: 16px;
    bottom: 16px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s;
    z-index: 1000;
}



.toTop.show {
    opacity: 1;
    transform: none;
}

.toTop:hover {
    border-radius: 10px;
    transform: scale(0.8);
}

#f-nav {
    width: 100%;
    background-color: var(--sub-color1);
    color: var(--main-color2);
}

.f_container {
    width: 100%;
    display: flex;
    padding: 50px 16px 16px 16px;
    row-gap: 20px;
    box-sizing: border-box;
    justify-content: space-between;
}

.f_container_item_right,
.f_container_item_left {
    display: flex;
    flex-direction: column;
    width: calc((100% / 2) -20px);
}

.flex_container {
    display: flex;
    justify-content: space-between;
    width: calc(100% / 2);
}

.f_nav_title {
    margin-bottom: 16px;
    font-size: var(--fs18);
}

.f_container_item p {
    line-height: 1.8em;
}

.f_nav_link {
    display: block;
    margin-bottom: 8px;
    position: relative;
    /* 1. 下線の基準点にするために必須 */
    width: fit-content;
    /* 2. 文字の長さだけに線を限定する場合 */
    list-style: none;
}


.f_nav_link::after {
    background-color: var(--main-color2);
    /* 下線の色 */
    bottom: -8px;
    /* 要素の下端からの距離 */
    content: "";
    /* 要素に内容を追加 */
    height: 1px;
    /* 下線の高さ */
    left: 0;
    /* 要素の左端からの距離 */
    opacity: 0;
    /* 不透明度 */
    position: absolute;
    /* 絶対位置指定 */
    transition: all .3s;
    /* アニメーション効果を追加 */
    width: 100%;
    /* 要素の幅 */
}

/* リンクにホバーした際の下線の表示 */
.f_nav_link:hover::after {
    bottom: -4px;
    /* 下線を上から下に移動 */
    opacity: 1;
    /* 不透明度を変更してフェードイン */
}



@media (max-width: 767px) {
    .header {
        height: 40px;
    }

    .g-nav_list {
        gap: 16px;
        margin-right: 16px;
    }

    .toTop {
        width: 40px;
        height: 40px;
        border-radius: 5px;
        right: 3px;
        font-size: 8px;
    }

    .f_container {
        display: flex;
        row-gap: 40px;
        flex-direction: column;
    }

    .f_nav_title {
        margin-bottom: 10px;
        font-size: var(--fs14);
    }

    .f_container_item p {
        line-height: 1.8em;
        font-size: var(--fs12);
    }

    .f-nav_text {
        font-size: var(--fs12);
    }

    .f_container_item_left {
        width: 100%;
    }

    .flex_container {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }


}