/* リセット & ベーススタイル */
:root {
    --primary-color: #0d47a1; /* 日本のニュースらしい深い青 */
    --accent-color: #d32f2f;  /* 強調色の赤 */
    --text-color: #333;
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
}

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ヘッダー */
header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
    font-size: 14px;
    margin-left: 5px;
    vertical-align: middle;
    border: 1px solid var(--accent-color);
    padding: 2px 5px;
    border-radius: 3px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* メインコンテンツ */
main {
    padding: 30px 0 80px; /* 下部にボタン用の余白 */
}

/* ヒーローセクション (トップ記事) */
.hero {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
    }
    .hero-image-container {
        flex: 1.2;
        min-height: 300px;
    }
    .hero-text {
        flex: 1;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.hero-image-container {
    position: relative;
    height: 250px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 77, 128, 0.9);
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
}

.hero-text {
    padding: 25px;
}

.hero-text h2 {
    font-size: 26px;
    margin: 0 0 15px;
    line-height: 1.4;
}

.date {
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    margin-top: auto;
}

/* グリッドセクション */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.card-image-wrapper {
    height: 180px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    color: #fff;
}

.tag.economy { background-color: #2e7d32; }
.tag.culture { background-color: #c2185b; }
.tag.society { background-color: #f57c00; }

.news-card h3 {
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.5;
}

.news-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* フッター */
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 40px 0;
    font-size: 12px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
}

/* 🌟 浮動ボタン (Floating CTA) 🌟 */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff4081 0%, #d81b60 100%);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(216, 27, 96, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid white;
}

.floating-cta:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 25px rgba(216, 27, 96, 0.6);
}

.cta-icon {
    font-size: 20px;
}

.cta-text {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* モバイル対応 */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
    }
    nav ul {
        margin-top: 15px;
    }
    .floating-cta {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        width: 80%;
        justify-content: center;
    }
    .floating-cta:hover {
        transform: translateX(50%) scale(1.05);
    }
}