@charset "utf-8";

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Hiragino Mincho Pro', 'Yu Mincho', serif;
}

.menu {
    background-color: white;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    align-items: center;
    height: 75px;
    z-index: 999;
    padding: 0 15px;
    /* Added padding for better spacing */
}

.menu ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    width: 70%;
    margin: 0 auto;
    padding: 5px 5px;
    font-size: 18px;
    font-weight: bold;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.menu li {
    color: black;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: 0.3s;
}

.menu li:hover {
    color: #004e8e;
}

.menu li a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #004e8e;
    transition: 0.3s;
}

.menu li a:hover::before {
    width: 100%;
}

/* メインページ トップ */
main {
    width: 100%;
}

/* メインページ内容はここ */

/* footer */
footer {
    background-color: #020d16;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    padding-bottom: 25px;
}

footer .footer img {
    margin-top: 50px;
    object-fit: cover;
}

footer .footer p {
    margin-bottom: 5px;
    margin-top: 5px;
}

footer .footer h2 {
    margin-top: 51px;
    text-decoration: underline;
}

footer .footer .socialmedia a img {
    margin: 20px 20px;
    width: 30px;
    height: auto;
}

footer .footer ul {
    padding: 0% 10%;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

footer .footer ul li {
    width: 180px;
}

footer .footer ul li a {
    margin: 30px;
    display: inline-block;
    position: relative;
    /* 相対位置指定 */
    text-decoration: none;
    /* デフォルトのテキストの下線を消す */
}

footer .footer ul li a::after {
    background-color: #ffffff;
    /* 下線の色 */
    bottom: 2px;
    /* 要素の下端からの距離 */
    content: "";
    /* 要素に内容を追加 */
    height: 2px;
    /* 下線の高さ */
    left: 0;
    /* 要素の左端からの距離 */
    opacity: 0;
    /* 不透明度 */
    position: absolute;
    /* 絶対位置指定 */
    transition: all .3s;
    /* アニメーション効果を追加 */
    width: 100%;
    /* 要素の幅 */
}

footer .footer ul li a:hover::after {
    bottom: -4px;
    /* 下線を上から下に移動 */
    opacity: 1;
    /* 不透明度を変更してフェードイン */
}

/* 資料請求の固定メニュー */
/* .bottom-fixed-menu ul {
    background-color: #ffffff;
    width: 100%;
    display: flex;
    list-style: none;
    justify-content: center;
    position: fixed;
    bottom: 0;
    z-index: 100;
}

.bottom-fixed-menu ul li {
    margin: 20px;
}

.bottom-fixed-menu ul li a {
    text-decoration: none;
    background-color: #020d16;
    font-size: 1vw;
    color: #fff;
    display: flex;
    border-radius: 4px;
    width: 20vw;
    height: auto;
    text-align: center;
    padding: 5px 0px;
    align-items: center;
    justify-content: center;
}

.bottom-fixed-menu ul li a:hover {
    opacity: 0.8;
    transition: 0.3s;
} */

/* form below is for smartphone */
@media screen and (max-width: 840px) {

    html,
    body {
        /* 横にスクロールできないようにする */
        overflow-x: hidden;
    }

    body {
        margin: 0;
        padding: 0;
        width: 100vw;
        /* ビューポートの幅に合わせる */
        max-width: 100vw;
        /* 最大幅をビューポート幅に制限 */
        overflow-x: hidden;
        /* 横スクロールバーが出ないようにする */
        font-family: 'Hiragino Mincho Pro', 'Yu Mincho', serif;
    }

    /* ３本線のメニュー(ハンバーガーメニュー)のスタイル */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;

        position: fixed;
        top: 28px;
        right: 30px;

        width: 30px;
        height: 20px;
        cursor: pointer;
        transition: transform 0.3s;
    }

    /* ハンバーガーメニューのアイコンのスタイル */
    .hamburger-line {
        width: 100%;
        height: 2px;
        background-color: #333;
        margin-bottom: 4px;
        transition: background-color 0.3s;
    }

    /* activeクラスのスタイル */
    .active .hamburger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .active .hamburger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* クリック前のメニューのスタイル：非表示 */
    #menu-list {
        display: none;
        background-color: #333;
        padding: 10px;
    }

    /* activeクラスが付いたら表示 */
    #menu-list.active {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;

        width: 50vw;
        height: 80%;

        position: fixed;
        top: 75px;
        right: 0;
        box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
        z-index: 1000;
    }

    #menu-list.active a {
        display: block;
        text-decoration: none;
        color: #fff;
        font-size: 16px;
        padding: 1rem;
        transition-duration: 0.2s;
    }

    .menu li:hover {
        color: #b5dcff;
    }

    .menu li a::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 2px;
        background: #b5dcff;
        transition: 0.3s;
    }

    .menu li a:hover::before {
        width: 100%;
    }



    /* 
    .bottom-fixed-menu ul li {
        margin: 20px 5px;
    } 
    */
}