@charset "UTF-8";

/* filter.cssのカスタマイズ */
.filter__label.match {
    --filter-color: var(--color-red);
}

.filter__label.event {
    --filter-color: var(--color-event);
}

.filter__label.notice {
    --filter-color: var(--color-notice);
}

.filter__label.daily {
    --filter-color: var(--color-daily);
}

.filter__label.others {
    --filter-color: var(--color-others);
}

/* ニュースセクション全体 */
.news {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 50px;
}

/* 各記事のアイテム */
.news__item {
    display: flex;
    text-decoration: none;
    color: inherit;
    padding: 30px 15px;
    border-bottom: var(--divider-section);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.news__item.is-hidden {
    display: none;
}

.news__item.is-entering {
    opacity: 0;
    transform: translateY(10px);
}

.news__item.is-last-visible {
    border-bottom: none;
}

.news__item:hover {
    opacity: 0.8;
}

/* 写真領域 */
.news__image {
    flex: 0 0 clamp(200px, 20vw, 280px);
    margin-right: 25px;
}

.news__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    overflow: hidden;
    background-color: black;
}

/* info領域 */
.news__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
	margin-top: 3px
}

/* 日付 */
.news__date {
    font-size: clamp(13px, 2.3vw, 16px);
    font-weight: 400;
    color: var(--text-main);
    margin: 3px 0 5px 0;
}

/* タイトル */
.news__title {
    font-size: clamp(14px, 2.3vw, 17.5px);
    font-weight: 500;
    color: var(--text-main);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* 本文の一部 */
.news__excerpt {
    font-size: clamp(13px, 2.3vw, 14px);
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.6;
    padding-left: 30px;
    /* 4行程度で省略 */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news__pagination {
    --news-pagination-gap: 15px;
    --news-pagination-dots-tighten: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--news-pagination-gap);
    margin: 150px 0 0 0;
}

.news__pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    font-size: clamp(16px, 2.3vw, 20px);
    font-weight: 500;
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    border-radius: 50%;
    border: none;
    background-color: transparent;
    padding-bottom: 2px;
    margin: 0;
    transition: opacity 0.3s ease;
}

/* 現在のページ */
.news__pagination .page-numbers.current {
    border: 1.5px solid black;
    pointer-events: none;
}

.news__pagination a.page-numbers:hover {
    opacity: 0.5;
}

/* ... */
.news__pagination .page-numbers.dots {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-main);
    letter-spacing: 2px;
    width: auto;
    height: auto;
    border: none;
    background: none;
    opacity: 1;
	margin-inline: calc(var(--news-pagination-dots-tighten) / -2);
}

@media screen and (max-width: 1000px) {
    .news__excerpt {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media screen and (max-width: 650px) {
    .news__item {
        gap: 15px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .news__image {
        flex: 0 0 clamp(100px, 20vw, 150px);
        width: 20%;
        margin: 0 auto;
    }

    .news__meta {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .news__date, .news-tag {
        margin: 0;
        margin-bottom: 5px;
    }

    .news__info {
        padding-left: 0;
    }

    .news__excerpt {
        display: none;
    }

    .news__pagination {
        --news-pagination-gap: 5px;
        --news-pagination-dots-tighten: 1px;
    }

    .news__pagination .page-number {
        width: 40px;
        height: 40px;
    }
}
