@charset "UTF-8";
/* news.css — お知らせ一覧（home.php / section#page-news 配下） */

section#page-news {

    hgroup.common-cover{
        background-image: url(../img/news_cover.jpg);
    }

    div#news-archive {
        max-width: calc(var(--bw) + 48px);
        margin-inline: auto;
        padding: 80px 24px;

        @media (max-width: 768px) {
            padding: 56px 16px;
        }

        ul {
            display: flex;
            flex-direction: column;

            li {
                border-bottom: 1px solid var(--c-grey);

                a {
                    display: flex;
                    align-items: center;
                    gap: 24px;
                    padding: 20px 4px;
                    transition: opacity .2s;

                    &:hover {
                        opacity: .65;
                    }

                    @media (max-width: 480px) {
                        gap: 16px;
                    }
                }
            }

            img {
                display: block;
                margin: 0;
                width: 100%;
                max-width: 320px;
                flex-shrink: 0;
                aspect-ratio: 320 / 180;
                overflow: hidden;
                border-radius: 8px;
                object-fit: cover;

                @media (max-width: 768px) {
                    max-width: 160px;
                }

                @media (max-width: 480px) {
                    border-radius: 4px;
                    max-width: 120px;
                }
            }

            div {
                time {
                    font-weight: 500;

                    @media (max-width: 480px) {
                        font-size: 0.875rem;
                    }
                }

                h3 {
                    font-size: 1.25rem;
                    font-weight: 600;
                    line-height: 1.5;

                    @media (max-width: 480px) {
                        font-size: 1rem;
                    }
                }
            }
        }

        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;          /* PREV/NEXTと数字の縦位置を揃える */
            gap: 8px;
            margin-top: 48px;

            @media (max-width: 768px) {
                gap: 6px;
                margin-top: 36px;
            }

            .page-numbers {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                box-sizing: border-box;
                min-width: 40px;
                height: 40px;
                padding: 0 8px;
                border: 2px solid var(--c-navy);
                border-radius: 999px;
                font-family: var(--ff-en);
                font-size: 1.25rem;
                line-height: 1;           /* フォント差による縦ズレ防止 */
                color: var(--c-navy);

                @media (max-width: 768px) {
                    min-width: 32px;
                    height: 32px;
                    font-size: 1rem;
                }

                @media (max-width: 480px) {
                    min-width: 28px;
                    height: 28px;
                    font-size: 1rem;
                }

                &.current {
                    background: var(--c-navy);
                    color: #fff;
                    border-color: var(--c-navy);
                }

                &.next,
                &.prev {
                    font-weight: 600;
                    padding: 0 12px;
                }

                &.dots{
                    border:none;
                }
            }
        }
    }
}
