/* ==========================================================================
   page-news.css — お知らせ一覧ページ
   コンテナ: max-width 980px / padding 0 31px (PC) 0 32px (Tablet) 0 16px (SP)
   ========================================================================== */

/* ------------------------------------------------------------------
   ヒーロー
   ------------------------------------------------------------------ */
.nw-hero {
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 40px 0 0;
}

.nw-hero__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 31px;
    box-sizing: border-box;
}

.nw-hero__heading {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.1;
    color: #C0401A;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.nw-hero__sub {
    font-size: 18px;
    color: #C0401A;
    margin: 0 0 32px;
}

/* ------------------------------------------------------------------
   一覧セクション
   ------------------------------------------------------------------ */
.nw-list {
    padding: 48px 0 80px;
    background: #fff;
}

.nw-list__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 31px;
    box-sizing: border-box;
}

/* ------------------------------------------------------------------
   タブナビ
   ------------------------------------------------------------------ */
.nw-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.nw-tabs__btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #f3f3f3;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    line-height: 1.5;
}

.nw-tabs__btn:hover {
    background: #e8e8e8;
    color: #333;
}

.nw-tabs__btn.is-active {
    background-color: var(--tab-color, #C0401A);
    border-color: var(--tab-color, #C0401A);
    color: #fff;
}

/* 「すべて」タブのアクティブ色 */
.nw-tabs__btn:first-child.is-active {
    background-color: #333;
    border-color: #333;
}

/* ------------------------------------------------------------------
   カード一覧
   ------------------------------------------------------------------ */
.nw-card-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ------------------------------------------------------------------
   カード
   ------------------------------------------------------------------ */
.nw-card {
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
}

.nw-card:first-child {
    border-top: 1px solid #e8e8e8;
}

.nw-card__link {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    text-decoration: none;
    color: inherit;
}

.nw-card__link:hover {
    background-color: #fafafa;
}

/* サムネイル */
.nw-card__thumb {
    flex-shrink: 0;
    width: 160px;
    height: 107px;
    overflow: hidden;
    background: #f0f0f0;
}

.nw-card__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ボディ */
.nw-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.nw-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nw-card__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    line-height: 1.6;
    flex-shrink: 0;
}

.nw-card__date {
    font-size: 13px;
    color: #888;
}

.nw-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-card__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ------------------------------------------------------------------
   ページネーション
   ------------------------------------------------------------------ */
.nw-pagination {
    margin-top: 48px;
    text-align: center;
}

.nw-pagination .nav-links {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.nw-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border: 1px solid #e0e0e0;
    background: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.nw-pagination .page-numbers.current,
.nw-pagination .page-numbers:hover {
    background-color: #C0401A;
    border-color: #C0401A;
    color: #fff;
}

/* ------------------------------------------------------------------
   記事なし
   ------------------------------------------------------------------ */
.nw-no-posts {
    text-align: center;
    color: #888;
    font-size: 15px;
    padding: 64px 0;
}

/* ==========================================================================
   レスポンシブ: タブレット（〜1024px）
   ========================================================================== */
@media (max-width: 1024px) {
    .nw-hero__inner,
    .nw-list__inner {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* ==========================================================================
   レスポンシブ: モバイル（〜768px）
   ========================================================================== */
@media (max-width: 768px) {
    .nw-hero__inner,
    .nw-list__inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nw-hero__heading {
        font-size: 44px;
    }

    .nw-hero__sub {
        font-size: 16px;
    }

    .nw-tabs {
        gap: 6px;
        margin-bottom: 28px;
    }

    .nw-tabs__btn {
        font-size: 13px;
        padding: 7px 16px;
    }

    .nw-card__thumb {
        width: 100px;
        height: 67px;
    }

    .nw-card__title {
        font-size: 15px;
    }

    .nw-card__excerpt {
        display: none;
    }
}
