@charset "UTF-8";

html {
    scroll-behavior: smooth;
}

body {
    font-family: serif, 'Meiryo', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #ffffff;
    color: #333333;
    font-size: 18px;
}

header>div {
    text-align: center;
}


a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding-left: 0;
}


.burger {
    width: 40px;
    height: 40px;
    background-image: url(../img/menu.svg);
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    position: relative;
    z-index: 2;

}

.burger.is-active {
    background-image: url(../img/close.svg);
}

.sp_menu {
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: none;

}

.sp_menu.is-active {
    display: flex;
}

.sp_nav {
    display: none;
}


nav ul li {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

nav>div {
    text-align: left;
}

h1 img {
    width: 100%;
}

section {
    margin: 0 auto 100px;
    width: 60%;
    text-align: center;

    scroll-margin-top: 16px;
}

table {
    margin: 0 auto;
    border: 5px #9ccfc4 double;
    border-collapse: collapse;

}

th,
td {
    padding: 8px 16px;
    border: 5px double #9ccfc4;
}

td {
    text-align: left;
}


footer {
    text-align: center;
    background-color: black;
    color: #ffffff;
    padding: 20px 0;
}

footer p {
    margin: 5px 0;
}

#container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    word-break: break-all;
}

#main-contents {
    width: 85%;
    padding: 0;
}

#side-menu {
    width: 15%;
    padding: 20px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    padding: 20px;

}

#fixed {
    position: static;
}

#topImg p {
    font-size: 1.8rem;
    text-align: center;
    margin: 10px;
}

#topImg div {
    padding: 50px 0;
}

#topImg2 {
    display: flex;
    justify-content: center;
    text-align: center;
    padding-bottom: 80px;
}

.lineG {
    text-align: center;
}

.lineG h2 {
    margin: 8px 0 30px 0;
    padding: 8px 0 0;
    position: relative;
    display: inline-block;
}

.lineG h2::before {
    content: "";
    width: 300px;
    /* 線の長さ */
    height: 4px;
    /* 線の太さ */
    bottom: -2px;
    /* 線の縦の開始位置 */
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    background: #9ccfc4;
}

.button {
    height: 48px;
    border-radius: 4px;
    background: #9ccfc4;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity .3s linear;
}

.button:hover {
    opacity: .85;
}


@media(max-width: 959px) {


    #container {
        flex-direction: column;
        /* 縦並びにする（お好み） */
    }

    section {
        width: 80%;
    }

    #side-menu {
        width: 100%;
        height: auto;
        position: static;
        padding: 10px 20px;
    }

    #main-contents {
        width: 100%;
    }

    h1 img {
        display: none;
    }

    .pc_nav {
        display: none;
    }

    .sp_nav {
        display: flex;

    }

    .burger {
        position: fixed;
        top: 12px;
        left: 16px;
        z-index: 1002;
    }

    .sp_menu {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        background: #fff;

        display: flex;
        /* ← これで display:none を上書き */
        transform: translateX(-100%);
        /* 画面外に退避（見えない） */
        transition: transform .32s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .sp_menu.is-active {
        transform: translateX(0);
        /* 左からスライドイン */
    }

}

@media(max-width: 450px) {

    body {
        font-size: 16px;
    }

    #topImg p {
        font-size: 1.5rem;
    }
}