/*
    ===========================================
      ニュースフィードページ専用のスタイルシート (GNews対応版)
    ===========================================
*/

.news-feed-container {
    padding: 60px 20px;
    margin-top: -20px;
}

#news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 24px;
}

.news-article {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #e0e0e0;
}

/* ★★★ 新しいスタイル ★★★ */
/* 画像がない場合のプレースホルダー */
.article-image-placeholder {
    width: 100%;
    height: 180px;
    background-color: #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
}
.article-image-placeholder::after {
    content: 'No Image';
    font-size: 1em;
}
/* ★★★★★★★★★★★★★★★ */


.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 58px;
}

.article-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85em;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.article-source {
    font-weight: bold;
}

.loading-message, .error-message {
    text-align: center;
    font-size: 1.2em;
    padding: 50px;
}