@charset "UTF-8";

#news {
    padding: 28rem 0;

    @media screen and (max-width: 767px) {
        padding: 6.4rem 0;
    }

    .inner {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 12rem;

        @media screen and (max-width: 767px) {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .right-area {
            .news-filter {
                padding-bottom: 4rem;
                display: flex;
                flex-wrap: wrap;
                gap: 4rem;

                @media screen and (max-width: 767px) {
                    padding-bottom: 2.4rem;
                    gap: 2rem 2.4rem;
                }

                a {
                    position: relative;
                    padding: 0.5em 0;
                    font-weight: 500;
                    font-size: 1.8rem;
                    line-height: 150%;
                    letter-spacing: 0.05em;
                    color: #000000;
                    text-decoration: none;

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

                    &.is-active::after {
                        content: '';
                        position: absolute;
                        bottom: -0.2em;
                        left: 50%;
                        transform: translateX(-50%);
                        width: 100%;
                        height: 0.2em;
                        background-color: var(--color-primary);
                    }
                }
            }

            .news-list {
                border-top: 0.1rem solid #d1d5db;

                .news-item {
                    padding: 3.2rem 2.4rem;
                    border-bottom: 0.1rem solid #d1d5db;
                    display: grid;
                    grid-template-columns: auto auto 1fr;
                    align-items: center;
                    gap: 2.4rem;

                    @media screen and (max-width: 767px) {
                        grid-template-columns: auto 1fr;
                        grid-template-rows: auto auto;
                        gap: 0.8rem 1.2rem;
                        padding: 2.4rem 0;
                    }

                    .date {
                        font-family: 'Montserrat';
                        font-weight: 600;
                        font-size: 1.6rem;
                        line-height: 100%;
                        letter-spacing: 0.05em;

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

                    .category {
                        background-color: var(--color-bg-muted);
                        width: 12rem;
                        font-weight: 500;
                        font-size: 1.4rem;
                        line-height: 150%;
                        text-align: center;
                        letter-spacing: 0.05em;

                        @media screen and (max-width: 767px) {
                            width: fit-content;
                            min-width: 8rem;
                            padding: 0.2rem 0.8rem;
                            font-size: 1.2rem;
                            line-height: 1;
                            display: inline-block;
                        }
                    }

                    .title {
                        font-weight: 500;
                        font-size: 1.8rem;
                        line-height: 180%;
                        letter-spacing: 0.05em;
                        display: -webkit-box;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 2;
                        overflow: hidden;
                        text-overflow: ellipsis;

                        @media screen and (max-width: 767px) {
                            grid-column: 1 / -1;
                            font-size: 1.4rem;
                            line-height: 160%;
                        }
                    }
                }

                .news-empty {
                    padding: 4.8rem 2.4rem;
                    font-weight: 500;
                    font-size: 1.6rem;
                    line-height: 180%;
                    letter-spacing: 0.05em;

                    @media screen and (max-width: 767px) {
                        padding: 3.2rem 0;
                        font-size: 1.4rem;
                    }
                }
            }

            .pagination {
                margin-top: 6.4rem;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                gap: 0.8rem;

                @media screen and (max-width: 767px) {
                    margin-top: 3.2rem;
                    gap: 0.6rem;
                }

                & a,
                & span {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    min-width: 4.4rem;
                    height: 4.4rem;
                    padding: 0 1.2rem;
                    border: 0.1rem solid var(--color-primary);
                    font-family: 'Montserrat', sans-serif;
                    font-weight: 600;
                    font-size: 1.4rem;
                    line-height: 100%;
                    letter-spacing: 0.05em;
                    color: var(--color-primary);
                    text-decoration: none;

                    @media screen and (max-width: 767px) {
                        min-width: 3.6rem;
                        height: 3.6rem;
                        padding: 0 0.8rem;
                        font-size: 1.2rem;
                    }
                }

                & .current {
                    color: #ffffff;
                    background-color: var(--color-primary);
                }

                & a:hover {
                    color: #ffffff;
                    background-color: var(--color-primary);
                }

                & .prev,
                & .next {
                    min-width: auto;
                    padding: 0 2rem;

                    @media screen and (max-width: 767px) {
                        padding: 0 1.2rem;
                        font-size: 1.2rem;
                    }
                }
            }
        }
    }
}
