/* ============================================================
   NEWS LIST LAYOUT (Grid & Cards)
   ============================================================ */

/* 一覧セクションのベース */
.news-list-section {
    max-width: 1200px;
    margin: 0 auto;
    /* ヘッダーとの間隔：newsupdateの余白感に合わせる */
    padding: 20px 20px 0; 
}

/* ニュースグリッド：4列配置 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px 0 80px;
}

/* 各ニュースカード */
.news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #ffffff;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: #ff00ff;
    box-shadow: 0 10px 20px rgba(255, 0, 255, 0.2);
}

/* アイキャッチ画像のコンテナ */
.card-eyecatch {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.card-eyecatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* ホバー時に画像を少しズーム */
.news-card:hover .card-eyecatch img {
    transform: scale(1.05);
}

/* カード内のテキストエリア */
.card-content {
    padding: 15px;
    flex-grow: 1;
}

.card-date {
    display: block;
    font-size: 0.75rem;
    color: #8e2de2;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* 2行制限の設定 */
.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    height: 3em; 
    overflow: hidden;
    display: block;
    color: #eee;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .news-grid { 
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .news-list-section { padding: 10px 15px 0; }
}