/* ニュース一覧ページ専用スタイル */

.news-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    gap: 2rem;
}

.news-main {
    flex: 1;
    min-width: 0;
}

.news-main h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-content time {
    font-size: 0.85rem;
    color: #666;
}

.news-card-title {
    font-size: 1.25rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.news-card-summary {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-source {
    font-size: 0.85rem;
    color: #888;
}

.news-link {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}

.news-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-banner {
    margin-bottom: 1.5rem;
}

.sidebar-banner img {
    max-width: 100%;
    height: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-link {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination-link.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.pagination-link:hover:not(.active) {
    background: #f5f5f5;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
    }

    .news-main h1 {
        font-size: 1.5rem;
    }

    .news-card-title {
        font-size: 1.1rem;
    }
}
