/* ===== 基本スタイル ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", "Yu Gothic", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* ===== ヘッダー ===== */
header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
}

header h1 {
    font-size: 2rem;
    letter-spacing: 0.1em;
}

header .subtitle {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #adb5bd;
}

/* ===== ソースフィルター ===== */
.source-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
}

.source-filter a {
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    color: #495057;
    background: #e9ecef;
    transition: all 0.2s;
}

.source-filter a:hover {
    background: #dee2e6;
}

.source-filter a.active {
    background: #1a1a2e;
    color: #fff;
}

/* ===== メインコンテンツ ===== */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.no-items {
    text-align: center;
    padding: 3rem;
    color: #868e96;
}

/* ===== ニュースリスト ===== */
.news-list {
    list-style: none;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.news-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* ソースバッジ */
.source-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    color: #fff;
    background: #868e96;
    flex-shrink: 0;
}

.source-bbc-news { background: #b80000; }
.source-al-jazeera { background: #006699; }
.source-rt { background: #0a6e31; }
.source-cna { background: #e4002b; }

/* ヘッドラインリンク */
.headline-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    flex: 1;
    min-width: 200px;
}

.headline-link:hover {
    color: #1971c2;
    text-decoration: underline;
}

/* 原文（小さく表示） */
.original-title {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    color: #868e96;
    margin-top: 0.25rem;
}

/* 公開日時 */
.published-date {
    font-size: 0.8rem;
    color: #adb5bd;
    flex-shrink: 0;
}

/* ===== フッター ===== */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #868e96;
    font-size: 0.85rem;
}

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    .news-item {
        padding: 1rem;
    }

    .headline-link {
        font-size: 0.95rem;
    }
}
