/* 見出し */
.heading {
    width: 600px;
    margin: 0 auto 50px;
    border-top: 1px solid;
    border-bottom: 1px solid;
}

h2 {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 24px;
    padding: 20px 0;
    text-align: center;
}

h3 {
    font-size: 24px;

    & span {
        font-size: 72px;
        color: var(--color-red);
    }
}

header {
    display: grid;
    grid-template-columns: 1fr 5fr;
    position: fixed;
    width: 100%;
    height: 75px;
    border-bottom: solid 1px black;
    background-color: white;
    z-index: 999;

    & h1 {
        padding: 0px;
    }

    & img {
        width: 75px;
    }

    & nav {
        height: 75px;
    }

    & ul {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        text-align: center;
        line-height: 75px;
    }
}

/* top */
#top {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;

    & img {
        width: 350px;
        height: 350px;
        position: absolute;
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* about_me */
#about_me {
    background-color: var(--color-bg);
    width: 100%;
    padding: 100px 0;
    /* height: 80vh; */

    & img {
        display: block;
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    & .caption {
        width: 50%;
        margin: 0 auto;
        text-align: center;
    }

    & .text-container {
        width: 700px;
        margin: 50px auto;
    }
}

/* activity */
#activity {
    margin: 0 auto;
    padding: 100px 0;

    & .content {
        width: 1440px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 50px;
    }

    & .act {
        height: 100%;
        margin: 0 auto;
    }

    & .act1 {
        width: 100%;
        grid-column: 1 / 3;
    }

    .container {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        justify-items: center;

        & img {
            width: 90%;
        }

        & .text-box {
            width: 90%;

            & p {
                font-size: 18px;
                margin: 20px auto;
                text-align: left;
            }

            & .link-box {
                width: 80%;
                margin: 30px auto;
                text-align: center;
                /* border: solid 1px var(--color-font); */
                border-radius: 25px;
                padding: 10px 0;
                background-color: var(--color-red2);

                & span {
                    color: white;
                    font-size: 20px;
                    font-weight: bold;
                }
            }
        }
    }

    & .act2 {
        & span {
            color: var(--color-blue);
        }
    }

    & .act3 {
        & span {
            color: var(--color-green);
        }
    }
}

/* contact */
#contact {
    width: 80%;
    padding: 100px 0;
    height: 300px;
    margin: 0 auto;

    & p {
        text-align: center;
    }
}

/* banner */
#banner {
    & .link {
        width: 100%;
        padding: 0 0 100px 0;
        display: grid;
        text-align: center;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;

        & div {
            margin-bottom: 50px;
        }

        & div:nth-child(1) {
            grid-column: 1 / 2;
        }

        & div:nth-child(2) {
            grid-column: 2 / 3;
        }
    }

    & img {
        width: 300px;
    }
}

/* subcidy */
#subcidy {
    text-align: center;
}

/* supporter */
#supporter {
    & .text {
        padding: 0 0 100px 0;
        text-align: center;
    }
}

/* footer */
footer {
    padding: 50px 0 10px 0;
    text-align: center;

    & img {
        width: 10%;
    }

    & p {
        font-size: 12px;
    }
}

@media screen and (max-width: 767px) {
    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;

        & span {
            font-size: 48px;
        }
    }

    p {
        font-size: 14px;
    }

    header {
        display: none;
    }

    .heading {
        width: 90%;
    }

    #top {
        & img {
            width: 300px;
            height: 300px;
            top: 45%;
        }
    }

    #about_me {
        /* & img {
            width: 300px;
        } */

        & .text-container {
            width: 80%;
        }
    }

    #activity {
        & .content {
            width: 100%;
            display: block;

            & .container {
                display: block;
                text-align: center;

                & .text-box {
                    margin: 0 auto;
                    & p {
                        font-size: 14px;
                    }
                }

                & .link-box {
                    & span {
                        font-size: 18px;
                    }
                }
            }
        }

        & .act {
            width: 90%;
            margin: 0 auto;
        }
    }

    #banner {
        & .link {
            display: block;

            & div {
                margin-bottom: 20px;
            }
        }

        & img {
            width: 200px;
        }
    }

    footer {
        & img {
            width: 80px;
        }

        & p {
            font-size: 10px;
        }
    }
}
