/* ===== common_pc_v2.css — Birch & Linen Nordic Design ===== */

/* --- CSS Variables --- */
:root {
    --bg: #F5F0EB;
    --card-bg: #FFFFFF;
    --text: #3D3530;
    --text-light: #8A7D74;
    --accent: #8B7355;
    --accent-light: #C4A882;
    --border: #E2D9CF;
    --footer-bg: #EDE6DE;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Noto Sans JP', '游ゴシック体', 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック', 'Hiragino Sans', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.03em;
    color: var(--text);
    background: var(--bg);
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cpath d='M-200,100 C100,0 350,250 700,180 C1050,110 1300,350 1700,250 L1700,500 C1300,600 1050,360 700,430 C350,500 100,250 -200,350 Z' fill='%23EAE1D6' fill-opacity='0.45'/%3E%3Cpath d='M-200,500 C150,400 400,650 750,570 C1100,490 1350,730 1700,640 L1700,900 C1350,830 1100,590 750,670 C400,750 150,500 -200,600 Z' fill='%23E5DACE' fill-opacity='0.35'/%3E%3C/svg%3E");
    background-size: 120% 100%;
    background-position: center;
    background-repeat: no-repeat;
}
body > * { position: relative; z-index: 1; }
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1, h2, h3 {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
    font-weight: 600;
    line-height: 1.4;
}

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.header {
    padding: 28px 0 0;
    text-align: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.header-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.08em;
}
.header-logo span {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.1em;
    margin-top: 4px;
}
.nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 0;
    margin-top: 16px;
}
.nav a {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); opacity: 1; }

/* --- Hero --- */
.hero {
    position: relative;
    margin: 32px auto;
    max-width: 1100px;
    border-radius: 12px;
    overflow: hidden;
}
.hero img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 60px 48px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    color: #fff;
}
.hero-overlay h1 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-overlay p {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.9;
    font-weight: 300;
}

/* --- Section Heading --- */
.section-heading {
    text-align: center;
    margin: 56px 0 32px;
}
.section-heading h2 {
    font-size: 24px;
    color: var(--text);
    position: relative;
    display: inline-block;
}
.section-heading h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 12px auto 0;
}

/* --- Tag Navigation --- */
.tag-section { margin-bottom: 40px; }
.tag-section h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px; font-weight: 500; color: var(--text);
    margin-bottom: 14px; padding-left: 14px; border-left: 3px solid var(--accent);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a {
    display: inline-block; font-size: 11px; color: var(--text);
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 5px 14px; border-radius: 20px; transition: all 0.2s; text-decoration: none;
}
.tag-list a:hover { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; }
.brand-list { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-list a {
    display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; color: var(--text);
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 7px 18px; border-radius: 8px; transition: all 0.2s; text-decoration: none;
}
.brand-list a:hover { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; }
.coord-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.coord-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 18px 16px; text-align: center; font-size: 11px; font-weight: 500;
    color: var(--text); transition: all 0.2s; text-decoration: none; display: block;
}
.coord-card:hover { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; }

/* --- Category Cards --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.category-card img { width: 100%; height: 100%; object-fit: cover; }
.category-card .label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 16px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* --- Single-Column Layout --- */
.two-col { display: block; margin-bottom: 48px; }
.two-col .main { width: 100%; }
.two-col .sidebar { width: 100%; margin-top: 48px; }

/* Legacy right column wrapper - single column */
.wrapper_right { width: 100% !important; float: none !important; padding: 0; margin-top: 48px; clear: both; max-width: 1100px; margin-left: auto; margin-right: auto; }
.aff-right { float: none !important; width: 100% !important; margin: 20px 0 !important; }
.aff-right-fixed { float: none !important; width: 100% !important; position: static !important; }
.right_ad_bigrect { text-align: center; }
ins.adsbygoogle { display: block !important; margin: 0 auto; }

/* --- Article List --- */
.article-list-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.article-list-item .thumb {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.article-list-item .info { flex: 1; }
.article-list-item .info h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 8px;
}
.article-list-item .info h3 a { color: var(--text); }
.article-list-item .info h3 a:hover { color: var(--accent); opacity: 1; }
.article-list-item .info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 36px 0 48px;
    flex-wrap: wrap;
}
.pagination > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--card-bg);
}
.pagination > span a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 12px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}
.pagination > span a:hover { color: var(--accent); opacity: 1; }
.pagination > span:has(a):hover { background: var(--accent); border-color: var(--accent); }
.pagination > span:has(a):hover a { color: #fff; }
.pagination > span.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 500;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
}
/* Legacy pagination-inner */
.pagination-inner { display: contents; }

/* --- Sidebar --- */
.sidebar-section { margin-bottom: 32px; }
.sidebar-section h4 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 16px;
}
.sidebar-ranking { counter-reset: rank; }
.sidebar-ranking li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    counter-increment: rank;
    align-items: flex-start;
}
.sidebar-ranking li::before {
    content: counter(rank);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}
.sidebar-ranking li img { width: 70px; height: 50px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.sidebar-ranking li span { font-size: 12px; line-height: 1.5; color: var(--text); flex: 1; }
.sidebar-categories li a { display: block; font-size: 13px; color: var(--text-light); padding: 6px 0; border-bottom: 1px solid var(--border); }
.sidebar-categories li a:hover { color: var(--accent); opacity: 1; }

/* --- Article Detail Page --- */
.breadcrumb { font-size: 12px; color: var(--text-light); padding: 16px 0; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

.article-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-header .category-badge {
    display: inline-block; font-size: 11px; font-weight: 500; color: #fff;
    background: var(--accent); padding: 3px 12px; border-radius: 3px; margin-bottom: 12px;
}
.article-header h1 {
    font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
    font-size: 26px; font-weight: 600; line-height: 1.6; color: var(--text); margin-bottom: 12px;
}
.article-header .meta { font-size: 12px; color: var(--text-light); display: flex; gap: 16px; }

.article-eyecatch { width: 100%; border-radius: 10px; margin-bottom: 32px; }

.article-body { font-size: 15px; line-height: 2; color: var(--text); }
.article-body h2 {
    font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
    font-size: 22px; font-weight: 600; color: var(--text);
    margin: 48px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--accent);
}
.article-body h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px; font-weight: 500; color: var(--text);
    margin: 36px 0 16px; padding-left: 14px; border-left: 3px solid var(--accent-light);
}
.article-body p { margin-bottom: 20px; }
.article-body img { border-radius: 8px; margin: 16px 0; }
.article-background, .article-body .spec-box {
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    padding: 20px 24px; margin: 20px 0; font-size: 14px; line-height: 1.9;
}

/* --- Footer --- */
.footer {
    background: var(--footer-bg);
    padding: 48px 0 24px;
    margin-top: 64px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}
.footer-col h4 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 12px;
}
.footer-col a, .footer-col li {
    display: block; font-size: 12px; color: var(--text-light); padding: 4px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-light);
}

/* --- Page Top Button --- */
.pagetop {
    position: fixed; bottom: 20px; right: 20px;
    width: 44px; height: 44px;
    background: var(--accent); color: #fff;
    border-radius: 50%; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    font-size: 12px; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.pagetop a { color: #fff; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* --- Legacy Layout Compatibility --- */
.wrapper { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.wrapper_left { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Legacy breadcrumb */
.bread { max-width: 1100px; margin: 0 auto; padding: 12px 20px; font-size: 12px; color: var(--text-light); }
.bread a { color: var(--text-light); }
.bread a:hover { color: var(--accent); }
.bread_ol { display: flex; flex-wrap: wrap; gap: 4px; }
.bread_ol li { display: inline; }

/* Legacy article detail */
.article_detail { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.article_detail + .wrapper_right { max-width: 1100px; margin-left: auto; margin-right: auto; padding: 0 20px; }
.article_detail_tags a {
    display: inline-block; font-size: 11px; color: #fff; background: var(--accent);
    padding: 2px 10px; border-radius: 3px; margin: 0 4px 8px 0;
}
.article_detail_tags a:hover { opacity: 0.8; }
.article_title_h_detail {
    font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
    font-size: 26px; font-weight: 600; line-height: 1.6; color: var(--text);
    margin: 12px 0 20px;
}
.article_detail_eye { margin-bottom: 24px; text-align: center; }
.article_detail_eye img { border-radius: 10px; max-width: 800px; margin: 0 auto; }
.ikea-source-eye { display: block; font-size: 10px; color: var(--text-light); text-align: right; margin-top: 4px; }
.article_detail_description {
    font-size: 15px; line-height: 2; color: var(--text); margin-bottom: 24px;
    padding: 20px 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
}
.article_detail_editor {
    display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border);
    font-size: 13px; line-height: 1.7; color: var(--text-light);
}
.article_detail_editor_img { width: 50px; flex-shrink: 0; }
.article_detail_editor_img img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.article_detail_editor_text { flex: 1; }
.article_detail_editor_text a { color: var(--accent); }

/* Legacy article body (two-column with right_column element) */
.article_datail_body { }
.article_detail_text { font-size: 15px; line-height: 2; color: var(--text); }
.article_detail_text_p { }
.article_detail_text h2 {
    font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
    font-size: 22px; font-weight: 600; color: var(--text);
    margin: 48px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--accent);
}
.article_detail_text h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px; font-weight: 500; color: var(--text);
    margin: 36px 0 16px; padding-left: 14px; border-left: 3px solid var(--accent-light);
}
.article_detail_text p { margin-bottom: 16px; }
.article_detail_text img { border-radius: 8px; margin: 12px auto; display: block; max-width: 800px !important; width: auto !important; }
.article-background {
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    padding: 20px 24px; margin: 20px 0; font-size: 14px; line-height: 1.9;
}
.ikea-source { display: block; font-size: 10px; color: var(--text-light); margin-top: 2px; }

/* Legacy right column wrapper */
.wrapper_right {
    width: 300px; float: right; padding: 0 20px 0 0;
}
.aff-right { float: right; width: 300px; margin: 20px 0 0 0; }
.right_header {
    font-family: 'Noto Sans JP', sans-serif; font-size: 14px; font-weight: 500;
    color: var(--text); padding: 8px 0; border-bottom: 2px solid var(--accent); margin: 24px 0 16px;
}
.right_tabs ul { display: flex; flex-wrap: wrap; gap: 8px; }
.right_tabs li { }
.right_tabs li a {
    display: inline-block; font-size: 11px; color: var(--text);
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 5px 16px; border-radius: 20px; transition: all 0.2s;
}
.right_tabs li a:hover { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; }
.right_tag { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; font-size: 0; color: transparent; }
.right_tag a {
    display: inline-block; font-size: 11px; color: var(--text-light);
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 4px 12px; border-radius: 20px; transition: all 0.2s;
}
.right_tag a:hover { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; }
.right_articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}
.right_articles > a {
    display: block;
    text-decoration: none;
}
.right_article {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.right_article:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.right_article_img { }
.right_article_img img { width: 100%; height: 150px; object-fit: cover; }
.right_article_title { font-size: 12px; line-height: 1.5; color: var(--text); padding: 10px 12px; }
.right_ad_bigrect { margin: 24px 0; }

/* Legacy articles list (search/category pages) */
.articles { }
.article {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto;
    gap: 0 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.article_title_h {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 8px;
}
.article_title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.6;
}
.article_title:hover { color: var(--accent); opacity: 1; }
.article_img {
    grid-column: 1;
    grid-row: 1 / 3;
    float: none;
    width: 200px;
}
.article_img img { width: 200px; height: 140px; object-fit: cover; border-radius: 8px; }
.article_text {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px; color: var(--text-light); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.readmore { font-size: 12px; color: var(--accent); }
.article_url { display: none; }

/* Legacy top h2 */
.top_h2 {
    font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
    font-size: 20px; font-weight: 600; color: var(--text);
    margin: 32px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent);
}

/* CV button */
.cv-btn-bottom { margin: 16px 0; }
.cv-btn-bottom a {
    display: inline-block; background: var(--accent); color: #fff;
    padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 500;
}
.cv-btn-bottom a:hover { opacity: 0.8; }

/* --- Table of Contents (mokuji) --- */
.mokuji {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 24px auto 32px;
    max-width: 600px;
}
.mokuji .title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    text-align: center;
}
.mokuji ul {
    list-style: none;
    counter-reset: toc;
}
.mokuji li {
    counter-increment: toc;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.6;
}
.mokuji li:last-child { border-bottom: none; }
.mokuji li::before {
    content: counter(toc) ".";
    color: var(--accent);
    font-weight: 500;
    margin-right: 8px;
}
.mokuji li a { color: var(--text); }
.mokuji li a:hover { color: var(--accent); opacity: 1; }

/* --- Article date --- */
.article_detail_created_at {
    font-size: 12px;
    color: var(--text-light);
    margin: 16px 0 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* --- Related Articles --- */
.rel_articles_title {
    font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}
.rel_articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}
.rel_articles > a {
    display: block;
    text-decoration: none;
}
.rel_article {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.rel_article:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.rel_article_img img { width: 100%; height: 130px; object-fit: cover; }
.rel_article_title {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    padding: 10px 12px 4px;
}
.rel_article_created_at {
    font-size: 10px;
    color: var(--text-light);
    padding: 0 12px 10px;
}

/* --- Same Category Articles (tag-style links) --- */
.rel_articles_tags { display: flex !important; flex-wrap: wrap; gap: 10px; grid-template-columns: none; }
.cat_news_div {
    display: inline-block;
}
.cat_news {
    display: inline-block;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}
.cat_news br { display: none; }
.cat_news:hover { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; }

/* --- Aff Bottom Text (shop cards) --- */
.aff-bottom-text {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px auto;
    max-width: 500px;
}
.aff-bottom-text-left { flex-shrink: 0; }
.aff-bottom-text-left img { max-height: 40px; width: auto; border-radius: 4px; }
.aff-bottom-text-right { }
.aff-bottom-text-right a {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--accent);
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.2s;
}
.aff-bottom-text-right a:hover { opacity: 0.8; }

/* --- Back to search link --- */
.back-to-search {
    margin: 32px 0;
    text-align: center;
}
.back-to-search a {
    display: inline-block;
    font-size: 13px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.2s;
}
.back-to-search a:hover { background: var(--accent); color: #fff; opacity: 1; }

/* --- Category / Search Page --- */
.category_title {
    text-align: center;
    margin: 40px 0 16px;
}
.category_title h1 {
    font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    display: inline-block;
}
.category_title h1::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 12px auto 0;
}
.category_description {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 28px;
}
.category_body {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-light);
    margin: 16px 0 32px;
    padding: 20px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.category_body:empty { display: none; }
.category-links {
    margin-bottom: 28px;
}
.category-links h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
}
.subgenre-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.subgenre-links a {
    display: inline-block;
    font-size: 11px;
    color: var(--text);
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    text-decoration: none;
}
.subgenre-links a:hover { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; }

/* Legacy pagination with 'red' class */
.pagination span.red, .pagination-inner span.red {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 500;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
}

/* --- Static Pages (about, privacy, contact) --- */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.page-content h1 {
    font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 32px;
}
.page-content h1::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 14px auto 0;
}
.page-content h2 {
    font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}
.page-content p, .page-content br + br { margin-bottom: 8px; }
.page-content {
    font-size: 15px;
    line-height: 2;
    color: var(--text);
}
.page-content .table-about {
    width: 100%;
    margin: 24px 0;
    border: none !important;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.8;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.page-content .table-about td,
.page-content .table-about th {
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 14px 20px;
    text-align: left;
    vertical-align: top;
}
.page-content .table-about th {
    background: var(--footer-bg) !important;
    font-weight: 500;
    color: var(--text);
    width: 140px;
}
.page-content .table-about tr:last-child td,
.page-content .table-about tr:last-child th {
    border-bottom: none !important;
}
.page-content .table-about a { color: var(--accent); }

/* --- Utility --- */
.promo-text { text-align: right; color: var(--text-light); font-size: 10px; line-height: 10px; }
.mb10 { margin-bottom: 10px; }
.tweet-btn { display: none; }
