/* 100blogs v2 共通CSS — 色はbase.htmlの:rootでジャンルごとに上書き（genre-data.json design） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
    --primary: #1A202C;
    --accent: #4FD1C5;
    --bg-light: #F7FAFC;
    --primary-dark: #11151b;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #ffffff;
    --border: #E5E7EB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--primary); }

/* Header */
.site-header {
    background: white;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    padding: 0.9rem 0;
    position: sticky; top: 0; z-index: 100;
}
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.site-brand {
    font-size: 1.4rem; font-weight: 900; color: var(--text);
    text-decoration: none; display: flex; align-items: center; gap: 0.4rem;
}
.nav-links { display: flex; gap: 0.5rem 1rem; flex-wrap: wrap; }
.nav-link { color: var(--text-light); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav-link:hover { color: var(--primary); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; padding: 3.5rem 0; text-align: center;
}
.hero h1 { font-size: 2rem; font-weight: 900; }

/* Articles grid */
.articles-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem; padding: 2.5rem 0;
}
.article-card {
    background: white; border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; text-decoration: none; color: inherit;
    transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.13); }
.article-image {
    height: 140px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem;
}
.article-content { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; gap: 0.6rem; align-items: center; font-size: 0.78rem; margin-bottom: 0.5rem; }
.article-meta .date { color: var(--text-light); }
.article-meta .category {
    background: var(--bg-light); color: var(--primary);
    padding: 0.1rem 0.6rem; border-radius: 999px; font-weight: 500;
}
.article-title { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; }
.article-excerpt { font-size: 0.88rem; color: var(--text-light); flex: 1; }
.read-more { margin-top: 0.8rem; color: var(--primary); font-size: 0.85rem; font-weight: 700; }
.empty-state { color: var(--text-light); padding: 2rem 0; }

/* Article detail */
.article-layout {
    display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 2.5rem;
    max-width: 1140px; margin: 2.5rem auto; padding: 0 1.25rem;
}
.article-detail .container { padding: 0; max-width: none; }
.article-header { margin-bottom: 2rem; text-align: center; }
.article-header h1 { font-size: 1.75rem; font-weight: 900; line-height: 1.45; }
.article-body { font-size: 1.02rem; }
.article-body h2 {
    font-size: 1.4rem; font-weight: 700; margin: 2.2rem 0 1rem;
    padding-left: 0.8rem; border-left: 5px solid var(--primary);
}
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.6rem 0 0.8rem; }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.4rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.92rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }
.article-body th { background: var(--bg-light); font-weight: 700; }
.article-body strong { color: var(--primary); }
.ad-disclosure { font-size: 0.78rem; color: var(--text-light); margin: 1.5rem 0; padding: 0.8rem; background: var(--bg-light); border-radius: 8px; }

/* Related blogs (hub & spoke) */
.related-blogs {
    margin-top: 2.5rem; padding: 1.5rem; border-radius: 14px;
    background: var(--bg-light); border: 1px solid var(--border);
}

/* Sidebar */
.sidebar-section {
    background: white; border: 1px solid var(--border); border-radius: 14px;
    padding: 1.2rem; margin-bottom: 1.2rem;
}
.sidebar-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.7rem; color: var(--primary); }
.sidebar-text { font-size: 0.86rem; color: var(--text-light); }
.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 0.5rem; font-size: 0.88rem; }
.sidebar-list a { color: var(--text); text-decoration: none; }
.sidebar-list a:hover { color: var(--primary); }

/* Footer */
footer {
    background: var(--primary); color: rgba(255,255,255,0.85);
    text-align: center; padding: 2.5rem 0; margin-top: 3rem; font-size: 0.9rem;
}
footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { color: white; }
.footer-cta-line { font-weight: 700; color: white; margin-bottom: 0.8rem; }

/* Responsive */
@media (max-width: 880px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .hero h1 { font-size: 1.6rem; }
    .nav-links { font-size: 0.85rem; }
}
