@charset "UTF-8";

#contents {
    position: relative;
    z-index: 2;
    margin-top: 8rem;
    margin-bottom: 30rem;

    @media screen and (max-width: 767px) {
        margin-top: 0;
        margin-bottom: 10rem;
    }


    &::before {
        content: "";
        position: absolute;
        top: -80rem;
        right: 0;
        left: 0;
        bottom: 30rem;
        z-index: 1;
        background-color: #fff2d9;
    }

    &::after {
        content: "";
        position: absolute;
        bottom: -30rem;
        left: -10rem;
        right: -20rem;
        z-index: 1;
        height: 90rem;
        border-radius: 0 0 60% 40%;
        background-color: #fff2d9;
    }

    @media screen and (max-width: 767px) {
        &::after {
            bottom: -7rem;
            left: -20rem;
            right: -30rem;
            z-index: 1;
            height: 50rem;
            border-radius: 0 0 60% 40%;
            background-color: #fff2d9;
        }
    }

    .wrapper {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 138rem;

        @media screen and (max-width: 767px) {
            width: calc(100% - 40px);
        }
    }

    .common-list.archive-category {
        display: flex;
        align-items: center;

        @media screen and (max-width: 767px) {
            position: relative;
            top: -1rem;
            left: -1rem;
            flex-wrap: wrap;
        }

        & li {
            padding: 0.3rem 1rem;
            border-radius: 3.2rem;
            border: 1px solid #838383;

            @media screen and (max-width: 767px) {
                margin-top: 1rem;
                margin-left: 1rem;
            }



            & a {
                font-family: 'Zen Kaku Gothic New';
                font-weight: 700;
                font-size: 1.6rem;
                line-height: 2.4rem;
                letter-spacing: 0.05em;
                color: #838383;

                @media screen and (max-width: 767px) {
                    font-size: 1.4rem;
                    line-height: 2.2rem;
                }
            }



            &.active {
                border-color: #009143;

                & a {
                    color: #009143;
                }
            }

            &:not(:first-child) {
                margin-left: 1.6rem;
            }

            @media screen and (max-width: 767px) {
                &:not(:first-child) {
                    margin-left: 1rem;
                }
            }
        }

        @media (hover: hover) and (pointer: fine){
            & li:hover {
                border-color: #009143;

                & a {
                    color: #009143;
                }
            }
        }
    }

    .news-list {
        margin-top: 5.4rem;
        display: flex;
        flex-wrap: wrap;

        @media screen and (max-width: 767px) {
            margin-top: 2.5rem;
            flex-wrap: nowrap;
            flex-direction: column;
            align-items: center;
        }

        & li {
            width: calc((100% - (6rem * 2)) / 3);

            @media screen and (max-width: 767px) {
                width: 100%;
                max-width: 500px;
            }

            & a {
                width: 100%;

                .thumbnail {
                    width: 100%;
                    aspect-ratio: 695/464;
                    border-radius: 6rem;
                    overflow: hidden;

                    @media screen and (max-width: 767px) {
                        border-radius: 4rem;
                    }

                    & img {
                        width: 100%;
                        transition: transform 0.3s ease;
                    }
                }

                .list-date {
                    display: block;
                    margin-top: 2rem;
                    font-family: 'Zen Kaku Gothic New';
                    font-weight: 500;
                    font-size: 1.4rem;
                    line-height: 2.2rem;
                    letter-spacing: 0.11em;
                    color: #7A7A7A;

                    @media screen and (max-width: 767px) {
                        margin-top: 1.5rem;
                        font-size: 1.2rem;
                        line-height: 2rem;
                    }
                }

                .list-title {
                    margin-top: 2rem;
                    font-family: 'Zen Kaku Gothic New';
                    font-weight: 500;
                    font-size: 1.6rem;
                    line-height: 2.5rem;
                    letter-spacing: 0.11em;
                    color: #000000;

                    @media screen and (max-width: 767px) {
                        margin-top: 1.5rem;
                        font-size: 1.4rem;
                        line-height: 2.2rem;
                    }
                }

                .list-category {
                    display: flex;
                    flex-wrap: wrap;
                    margin-top: 0.7rem;
                    margin-left: -1rem;

                    & span {
                        display: inline-block;
                        padding: 0.3rem 1rem;
                        margin-top: 1rem;
                        margin-left: 1rem;
                        font-family: 'Zen Kaku Gothic New';
                        font-weight: 500;
                        font-size: 1.4rem;
                        line-height: 2.2rem;
                        letter-spacing: 0.05em;
                        color: #009143;
                        border-radius: 3.2rem;
                        border: 1px solid #009143;

                        @media screen and (max-width: 767px) {
                            padding: 0.3rem 0.6rem;
                            font-size: 1.2rem;
                            line-height: 2rem;
                        }
                    }
                }
            }

            &:not(:nth-child(3n + 1)) {
                margin-left: 6rem;
            }

            &:nth-child(n + 4) {
                margin-top: 5rem;
            }

            @media screen and (max-width: 767px) {
                &:not(:nth-child(3n + 1)) {
                    margin-left: 0;
                }

                &:nth-child(n + 2) {
                    margin-top: 2rem;
                }
            }

            @media (hover: hover) and (pointer: fine) {
                & a:hover {
                    .thumbnail {

                        & img {
                            transform: scale(1.1,1.1);
                            transition: transform 0.3s ease;
                        }
                    }
                }
            }
        }
    }
}