/* Styles for the new News Archive Layout */
/* @media ((min-width: 1600px) and (max-width: 1600px)) {
  body {
    background-image: url('../images/bg/bg_archive_news_pc.png');
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    height: 100000px;
  }
} */

/* @media ((min-width: 400px) and (max-width: 400px)) {
    body {
        background-image: url('../images/bg/bg_archive_news_sp.png');
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
        height: 100000px;
    }
} */

#news-archive {
    padding: 230px 0 80px;
}

@media screen and (max-width: 768px) {
    #news-archive {
        padding-top: 110px;
    }
}

#news-archive .container {
    width: 63.75%;
    max-width: 1020px;
    margin: 0 auto;
}

#news-archive .news-section-inner {
    display: block;
}

#news-archive .news-section-right {
    width: 100%;
}

#news-archive .news-header {
    margin-bottom: 40px;
}

#news-archive .news-filter {
    display: flex;
    align-items: center;
    gap: 2.451%;
    margin-bottom: 7.8125rem;
}

#news-archive .filter-item {
    font-family: "dnp-shuei-gothic-gin-std", sans-serif;
    font-size: 16px;
    cursor: pointer;
    color: var(--color-accent);
    transition: color 0.2s;
    font-weight: 400;
}

#news-archive .filter-item.active,
#news-archive .filter-item:hover {
    color: var(--color-primary);
}

#news-archive .filter-divider {
    color: var(--color-accent);
}

#news-archive .news-grid {
    display: grid;
    /* 3列の固定レイアウト */
    grid-template-columns: repeat(3, 1fr);
    row-gap: 92px;
    column-gap: 60px;
    margin-top: 115px;
}

#news-archive .news-item {
    transition: opacity 0.2s;
}

#news-archive .news-item:hover {
    opacity: 0.8;
}

#news-archive .news-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

#news-archive .news-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

#news-archive .news-image img,
#news-archive .news-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: var(--color-primary);
    /* プレースホルダーの背景色 */
}

#news-archive .news-content {
    padding: 0;
    margin-top: 28px;
    text-align: left;
}

#news-archive .news-date {
    font-family: "tt-commons-pro", sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 13px;
    display: block;
}

#news-archive .news-title {
    font-family: "dnp-shuei-gothic-gin-std", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    letter-spacing: 1px;
}

@media screen and (max-width: 768px) {
    #news-archive .news-content {
        padding: 0;
        margin-top: 9px;
    }

    #news-archive .news-date {
        font-size: 10px;
        letter-spacing: 0.5px;
        margin-bottom: 0px;
    }

    #news-archive .news-title {
        margin-top: 5px;
    }
}

/* Responsive Grid Layout */
@media screen and (max-width: 768px) {
    #news-archive .container {
        width: 100%;
        max-width: none;
    }

    #news-archive .news-grid {
        margin-top: 74px;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1.5rem;
        column-gap: 16px;
    }

    #news-archive .news-title {
        font-size: 0.8rem;
    }

    #news-archive .news-filter {
        margin-bottom: 5rem;
    }

    .pagination-container {
        width: 95%;
    }
}

.pagination-container {
    padding: 140px 0 180px;
}

.pagination-container .pagination {
    display: flex !important;
    align-items: center !important;
}

.pagination-container .pagination-left,
.pagination-container .pagination-right,
.pagination-container .pagination-center {
    flex: 1 1 0% !important;
    width: auto !important;
}

.pagination-container .pagination-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}