@font-face {
    font-family: "NotoSerifJP";
    src: url(../assets/fonts/NotoSerifJP/NotoSerifJP-VariableFont_wght.woff);
}

@font-face {
    font-family: "SawarabiMincho";
    src: url(../assets/fonts/SawarabiMincho/SawarabiMincho-Regular.woff);
}

@font-face {
    font-family: "InriaSans";
    src: url(../assets/fonts/InriaSans/InriaSans-Regular.woff);
}

html {
    font-family: "NotoSerifJP";
    color: #1A1A1A;
    scroll-behavior: smooth;
    scroll-padding: 75px;
}

body {
    &.ban-scroll {
        overflow: hidden;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition-duration: 0.3s;
    font-style: normal;

    &::before,
    &::after {
        transition-duration: 0.3s;
    }
}

img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

button {
    background-color: #fff;
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.from-pc {
    display: none;
}

.clip-box {
    overflow: clip;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 900;

    a {
        display: flex;
        align-items: center;
    }

    .img-container {
        display: block;
        width: 41px;
        height: 41px;
        margin-right: 19px;
    }
}

.mailto {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0px 4px 4px 0px #00000040;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 325px;
    height: 58px;
    margin: 0 auto;
    border-radius: 31px;
    background-color: #0977E5;

    .img-container {
        width: 25px;
        height: 19px;
    }
}

.decorated {
    font-size: 48px;
    font-weight: 700;
    position: relative;
    padding: 10px 43px;
    border: 5px solid #0977E5;
    width: fit-content;
    margin: 0 auto;

    &::before,
    &::after {
        content: "";
        position: absolute;
        width: 36px;
        height: 31px;
        background-color: #0977E5;
    }

    &::before {
        top: -1px;
        left: -1px;
        clip-path: polygon(0 0, 100% 0, 0 100%);
    }

    &::after {
        bottom: -1px;
        right: -1px;
        clip-path: polygon(100% 100%, 0 100%, 100% 0);
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;

    .bg-white {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 75px;
        padding: 11px 29px 16px 12px;
        background-color: #fff;

        &:has(button.active) {
            &+#hamburger-content {
                top: 0;
                right: 0;
                border-radius: 0;
            }
        }

        #hamburger-button {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-self: center;
            width: 51px;
            height: 45px;
            padding: 13px;

            &.active {
                span {
                    &:first-child {
                        transform: translateY(8px) rotate(45deg) scaleX(150%);
                    }

                    &:nth-child(2) {
                        width: 0;
                    }

                    &:last-child {
                        transform: translateY(-8px) rotate(-45deg) scaleX(150%);
                    }
                }
            }

            span {
                display: block;
                width: 25px;
                height: 3px;
                margin: 0 auto;
                background-color: #0977E5;
                border-radius: 3px;
            }
        }
    }

    #hamburger-content {
        color: #fff;
        position: fixed;
        top: -100svh;
        right: -100%;
        z-index: -1;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
        height: 100svh;
        background-color: #0C386CCC;
        transition-duration: 1s;
        border-radius: 0 0 0 30px;

        ul {
            display: flex;
            flex-direction: column;
            gap: 31px;

            li {
                a {
                    font-size: 20px;
                    vertical-align: -2px;
                }
            }
        }
    }
}

footer {
    font-family: "InriaSans";
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #B3D6FF;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 94px;
}

main {
    margin-top: 75px;
}

#eye-catch {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100svh - 9px);

    .bg-blue {
        position: absolute;
        top: 0;
        right: 0;
        z-index: -2;
        background-color: #0977E5;
        width: calc(100% - 9.6%);
        height: calc(100svh - 130px);
    }

    .bg-img {
        position: absolute;
        top: 0;
        right: 0;
        z-index: -1;
        width: 100%;
        height: calc(100svh - 110px);
        background-image: linear-gradient(150.89deg, rgba(0, 0, 0, 0.2) 43.69%, rgba(0, 0, 0, 0) 98.57%), url(../assets/imgs/事務局元画像/デスクトップMacの写真.jpg);
        background-size: 250%;
        background-position: bottom right 60%;
        background-repeat: no-repeat;
        clip-path: polygon(50% 0, 100% 0, 100% 100%, 37.5% 100%);
    }

    .text-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        height: calc(100svh - 130px);
        margin-left: 9.6%;
        color: #fff;

        strong {
            font-family: "SawarabiMincho";
            font-size: 32px;
            font-weight: 400;
            line-height: 47px;
            padding-left: 4vw;

            span {
                font-size: 16px;
                letter-spacing: -0.05em;
            }
        }
    }
}

#about-corpo {
    text-align: center;
    padding: 57px 22px 100px;

    p {
        &:first-of-type {
            font-size: 20px;
            font-weight: 500;
            letter-spacing: 0.05em;
            line-height: 46px;
            margin-top: 35px;
            margin-bottom: 75px;
        }

        &:nth-of-type(2) {
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 0.05em;
            line-height: 54px;
            padding: 98px 39px;
            background-color: #fff;
            box-shadow: 0px 0px 30px 0px #0977E5;
        }
    }
}

#explain {
    text-align: center;
    padding: 57px 22px 100px;

    .decorated {
        margin-bottom: 91px;
    }

    ol {
        text-align: left;
        list-style-position: inside;

        li {
            position: relative;
            counter-increment: count;
            border: 5px solid #0977E5;
            margin-bottom: 73px;

            &::before {
                content: "0" counter(count)".";
                font-size: 55px;
                font-weight: 700;
                position: absolute;
                top: 0;
                left: 0;
                transform: translateY(-60%);
            }

            &::marker {
                content: none;
            }

            p {
                display: flex;
                justify-content: center;
                align-items: center;
                height: 209px;
                padding: 0 1em;
                font-size: 17px;
                line-height: 36px;
                text-align: center;
            }
        }
    }
}

#about-service {
    text-align: center;
    padding: 70px 27px 59px;
    background-image: url(../assets/imgs/事務局元画像/事務局運営支援業務.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    h3 {
        font-size: 36px;
        font-weight: 900;
        color: #0977E5;
        line-height: 43.2px;
        margin-bottom: 80px;
    }

    dl {
        dt {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 0.05em;
            color: #fff;
            height: 257px;
            margin-bottom: 7px;
            background-color: #0977E5;
        }

        &:first-of-type {
            div {
                &:first-of-type {
                    .bg-img {
                        background-image: url(../assets/imgs/事務局元画像/素材画像/白いキーボードの写真tb.png);
                        background-position: left;
                        background-size: cover;
                        background-repeat: no-repeat;
                    }
                }

                &:last-of-type {
                    .bg-img {
                        background-image: url(../assets/imgs/事務局元画像/素材画像/クレヨンと紙とノートPCの写真tb.png);
                        background-position: center;
                        background-size: cover;
                        background-repeat: no-repeat;
                    }
                }
            }
        }

        &:last-of-type {
            div {
                &:first-of-type {
                    .bg-img {
                        background-image: url(../assets/imgs/事務局元画像/素材画像/白い机と黒い椅子の群れの写真tb.png);
                        background-position: center;
                        background-size: cover;
                        background-repeat: no-repeat;
                    }
                }

                &:last-of-type {
                    .bg-img {
                        background-image: url(../assets/imgs/事務局元画像/変わったトラックボールとミニシンセの写真pc.jpg);
                        background-position: center;
                        background-size: 200%;
                        background-repeat: no-repeat;
                        transform: scaleX(-1);
                    }
                }
            }
        }

        dd {
            &.bg-img {
                height: 230px;
                margin-bottom: 7px;
            }

            &:not(.bg-img) {
                line-height: 2em;
                letter-spacing: 0.08em;
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 47px 12px;
                background-color: #fff;
                margin-bottom: 64px;
            }
        }
    }
}

#other-works {
    text-align: center;
    padding: 22px 25px 81px;

    h2 {
        font-family: "InriaSans";
        font-size: 22px;
        font-weight: 400;
        color: #fff;
        line-height: 26.38px;
        letter-spacing: 0.06em;
        width: 323px;
        margin: 0 auto;
        padding: 6px 0;
        background-color: #0977E5;
    }

    dl {
        margin-top: 73px;

        dt {
            font-size: 24px;
            color: #191919;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 17px;
            width: 325px;
            height: 184px;
            margin: 0 auto 17px;
            border-radius: 50%;
            background-color: #B3D6FF;

            p {
                &:nth-child(2) {
                    font-size: 18px;
                    font-weight: 700;
                    line-height: 21.6px;
                }
            }
        }

        dd {
            text-align: left;
            font-size: 18px;
            font-weight: 300;
            letter-spacing: 0.03em;
            line-height: 29px;
            color: #1A1A1A;
        }
    }
}

#contact-us {
    text-align: center;
    height: 374px;
    padding-top: 88px;
    background-image: url(../assets/imgs/事務局元画像/素材画像/青く霞んだ遠景の写真tb.png);
    background-size: cover;
    background-position: top right 10%;

    strong {
        font-size: 20px;
        font-weight: 700;
        line-height: 24px;
    }

    a {
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        line-height: 24px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 225px;
        height: 107px;
        margin: 42px auto 0;
        background-color: #0977E5;
        border-radius: 8px;
    }
}

#overview {
    color: #fff;
    padding: 65px 16px 45px;
    background-image: linear-gradient(180deg, #5ED0E9 0%, #88D3F4 40.4%, #B3D6FF 100%);

    h2 {
        text-align: center;
        font-size: 56px;
        font-weight: 400;
        line-height: 67.2px;
        margin-bottom: 68px;
    }

    .dl-container {
        width: fit-content;
        margin: 0 auto 80px;

        dl {
            display: flex;
            gap: 1.5em;
            font-size: 16px;
            font-weight: 900;
            margin-bottom: 20px;

            &:last-of-type {
                dt {
                    letter-spacing: initial;
                }
            }

            dt {
                display: block;
                min-width: 51px;
                letter-spacing: 0.2em;
            }

            dd {
                display: inline-block;
                max-width: 259px;
            }
        }
    }

    .map {
        max-height: 315px;
        padding: 0 6px;

        img {
            object-fit: contain;
        }
    }

    #navigation {
        color: #fff;
        padding-top: 68px;
        margin: 0 auto;

        .logo {
            font-size: 24px;
            justify-content: center;
        }

        nav {
            font-size: 20px;
            font-weight: 900;
            margin: 44px auto 0;
            width: fit-content;

            ul {
                list-style-position: inside;

                li {
                    margin-bottom: 20px;

                    &::marker {
                        font-size: 16px;
                    }
                }
            }
        }
    }
}