/* ================================
   NEWS一覧（和モダンデザイン）
================================ */

.news-list-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

/* カード全体 */
.news-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 25px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* サムネイル */
.news-thumb img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.no-thumb {
    width: 140px;
    height: 100px;
    background: #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 12px;
}

/* テキスト部分 */
.news-info {
    flex: 1;
    width: calc(100% - 200px); /* サムネイル幅に合わせて調整 */
    display: inline-block;
    vertical-align: top;
}

/* 日付 */
.news-date {
    font-size: 0.9rem;
    color: #666;
}

/* カテゴリー */
.news-cat {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin: 6px 0 10px;
    font-weight: 600;
}

/* タイトル */
.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f4b2c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* NEWS一覧ページ：お知らせセクションを白背景の中央に配置 */
.news-section {
    display: flex;
    justify-content: center;   /* 横方向の中央 */
    align-items: center;       /* 縦方向の中央 */
    flex-direction: column;    /* タイトルを縦に並べる */
    height: 300px;             /* ← 白背景の高さを固定（調整可能） */
}

/* 中央からの微調整（プラスで下へ、マイナスで上へ） */
.news-section .container {
    transform: translateY(60px);  /* 10px 下へ。-10px なら上へ */
}

/* ページネーション */
.pagination {
    text-align: center;
    margin: 50px 0 80px;
    font-size: 16px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 6px;
    text-decoration: none;
    color: #1f4b2c;
    font-weight: 600;
    border: 1px solid #1f4b2c;
}

.pagination .current {
    background: #1f4b2c;
    color: #fff;
}

.pagination .disabled {
    color: #aaa;
    border-color: #ccc;
}

/* トップへ戻るボタンの下に余白を追加 */
.products-cta {
    margin-bottom: 60px;
}

/* スマホ */
@media (max-width: 600px) {
    .news-card {
        flex-direction: column;
    }

.news-thumb img,
.no-thumb {
        width: 100%;
        height: 180px;
    }
}

/* スマホ時はタイトルを省略しない */
@media (max-width: 768px) {
    .news-title {
        white-space: normal;   /* ← 折り返しを許可 */
        overflow: visible;     /* ← はみ出しを許可 */
        text-overflow: unset;  /* ← 省略記号を無効化 */
    }

    .news-info {
        width: 100% !important; /* ← スマホ時の幅不足を防ぐ */
    }
}
