/* =============================================
 * News Archive Page Styles (Final Rev. 3)
 * ============================================= */

 .news-archive-container {
    max-width: 1140px;
    margin: 0 auto;
    padding-top: 96px;
    padding-bottom: 137px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    padding: 24px 16px;
    border-bottom: 2px solid #EEEEEE;
    font-family: 'Inter', sans-serif;
}

.news-item:first-child {
    border-top: 2px solid #EEEEEE;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.news-date {
    font-size: 16px;
    color: #000;
    letter-spacing: 0.05em;
}

.news-category a {
    display: inline-block;
    background-color: #eef4ff;
    color: #0F58D5;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 16px;
    border-radius: 50px;
    text-decoration: none;
    line-height: 1.5;
}
.news-category a:hover {
    opacity: 0.8;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.7;
    letter-spacing: 0.03em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.news-title a {
    text-decoration: none;
    color: #000;
}
.news-title a:hover {
    color: #0F58D5;
}


/* =============================================
 * Pagination Styles (Final)
 * ============================================= */
.news-archive-container .pagination {
    margin-top: 48px;
}

.news-archive-container .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-family: 'Inter', sans-serif;
}

/* === Pagination spacing tweaks === */
.news-archive-container .nav-links{
    gap:4px; /* 基本は 4px */
}
/* 数字ブロックの内側余白 */
.news-archive-container .nav-links .page-numbers:not(.prev):not(.next){
    padding:0 12px 3px; /* 左右12px 下3px */
}
/* 矢印と数字の間を 8px に拡大 */
.news-archive-container .nav-links .prev + .page-numbers{
    margin-left:4px; /* gap4 + 4 = 8 */
}
.news-archive-container .nav-links .next{
    margin-left:4px; /* 手前の数字との距離 4(gap)+4=8 */
}

/* 全てのページ番号共通のスタイル */
.news-archive-container .nav-links .page-numbers {
    font-family: 'Inter', sans-serif;
    display: block;
    background: none;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
    color: #000;
    font-size: 16px;
    text-decoration: none;
    /* ▼▼▼ font-weightを400 (regular) に変更 ▼▼▼ */
    font-weight: 400;
}

/* 矢印ボタンだけに円のスタイルを再適用 */
.news-archive-container .nav-links .page-numbers.prev,
.news-archive-container .nav-links .page-numbers.next {
    width: 62px;
    height: 62px;
    border: 1px solid #EEEEEE;
    background-color : #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 現在いるページの番号のスタイル */
.news-archive-container .nav-links .page-numbers.current {
    color: #DDDDDD;
    font-weight: 400;
}

/* 移動できない矢印（非アクティブ状態）のスタイル */
.news-archive-container .nav-links span.page-numbers.prev,
.news-archive-container .nav-links span.page-numbers.next {
    background-color: #EEEEEE; /* 背景色を#DDDDDDに */
    color: #666666;             /* 矢印の色を#666666に */
    border-color: #EEEEEE;     /* 枠線の色を背景色と合わせる */
}

/* クリックできる数字のホバー効果 */
.news-archive-container .nav-links a.page-numbers:not(.prev):not(.next):hover {
    color: #0F58D5;
}

/* 「...」のスタイル */
.news-archive-container .nav-links .dots {
    color: #DDDDDD;
}


/* =============================================
 * Mobile Styles
 * ============================================= */
@media screen and (max-width: 767px) {
    .news-archive-container {
        padding-top: 64px;
        padding-bottom: 105px;
    }
    .news-title {
        font-size: 14px;
        /* --- モバイル: 4行まで表示し、省略 --- */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .news-archive-container .pagination{
        margin-top: 55px;
    }
    .news-date{
        font-size: 14px;
    }
}