@charset "utf-8";
/* 皆んなの役に立ちたい｜NEWSと雑学【CSS】（Ver.013） */

/* =========================================
   0. デザインの基本設定（色・書体・幅）
   ここだけ変えれば、サイト全体の色や幅が変わります
========================================= */
:root {
    --ink: #212121;          /* メインカラー（黒） */
    --text: #1b1b1b;
    --muted: #6c6860;
    --line: #d8d4cc;
    --line-soft: #ebe8e1;
    --paper: #ffffff;        /* ページの背景（白） */
    --card: #ffffff;

    --news: #d93a22;         /* NEWS の色（朱） */
    --news-soft: #fbebe8;
    --trivia: #0b7f73;       /* 雑学 の色（青緑） */
    --trivia-soft: #e3f2f0;

    --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
    --sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;

    --maxw: 1360px;          /* サイト全体の最大幅 */
    --side: 320px;           /* サイドバーの幅 */
    --gap: 40px;
}

/* 記事ページでは、NEWS／雑学に合わせて強調色が変わる */
body { --accent: var(--ink); --accent-soft: #ececec; }
body.type-news { --accent: var(--news); --accent-soft: var(--news-soft); }
body.type-trivia { --accent: var(--trivia); --accent-soft: var(--trivia-soft); }

/* =========================================
   1. AdSense（手動で挿入する広告の上下の余白）
========================================= */
.googleAD { padding-top: 12px; padding-bottom: 12px; }

/* =========================================
   2. はてなブログ標準の不要な要素を非表示
========================================= */
#blog-title, #title-editarea, h1#title, .header-title-inner,
.header-image-enable h1#title, .hatena-notify, .hatena-system-notice,
.system-notice-container, .hatena-message-frame {
    display: none !important; font-size: 0 !important; opacity: 0 !important;
    height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important;
}
body .leave-comment-title, body .comment-box, body .hatena-star-container,
body .hatena-star-star-container, body .social-buttons, body .hatena-module-profile,
body #globalheader-container, body .entry-footer .author, body .entry-footer-time,
body .entry-footer .date, body .entry-thumb,
body .entry-thumb-link, body .urllist-image, body .page-archive .entry-feature-wrapper,
body .entry-content img, body #box1 {
    display: none !important;
}
.mobile-only-search, .sp-only { display: none !important; }
/* トップページは、スクリプトで作った一覧に置き換わるあいだだけ、標準の一覧を隠す（失敗したときは標準の一覧が見える） */
body.page-index.top-ready #main-inner, body.page-index.top-loading #main-inner { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.top-loading-note { padding: 40px 0; text-align: center; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.1em; }

/* =========================================
   3. ベース
========================================= */
html { -webkit-text-size-adjust: 100%; }
html, body { width: 100% !important; max-width: 100% !important; height: auto !important; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.02em;
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent, var(--ink)); outline-offset: 2px; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* =========================================
   4. PCレイアウト（本文＋サイドバー）
========================================= */
body #container, body #container-inner, body #content-inner, body #wrapper, body #main, body #box2 { overflow: visible !important; }
body #container, body #container-inner { width: 100% !important; max-width: 100% !important; }
body #content { width: auto !important; max-width: var(--maxw) !important; margin: 32px auto 0 !important; padding: 0 24px; }
body #content-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--side);
    column-gap: var(--gap);
    align-items: start;
    width: 100% !important;
}
body #wrapper {
    grid-column: 1; grid-row: 1;
    width: auto !important; float: none !important; margin: 0 !important;
    background: var(--card); border: 1px solid var(--line);
    padding: 44px 56px 36px;
    min-width: 0;
}
body #box2 { grid-column: 2; grid-row: 1; width: auto !important; float: none !important; margin: 0 !important; min-width: 0; }
.entry { margin-bottom: 40px; }

/* トップページ：一覧が組み上がったら、本文を全幅にしてサイドバーを隠す */
body.page-index.top-ready #content-inner { grid-template-columns: minmax(0, 1fr); }
body.page-index.top-ready #wrapper { background: transparent; border: none; padding: 0; }
body.page-index.top-ready #box2 { display: none !important; }

/* =========================================
   5. ロゴ・PC用グローバルヘッダー
========================================= */
.site-logo-svg { display: block; width: 100%; height: auto; color: var(--ink); --logo-knock: #ffffff; overflow: visible; }
a.header-logo-link:hover .site-logo-svg, .pc-header-logo a:hover .site-logo-svg { opacity: 0.75; }

#pc-global-header {
    background-color: var(--ink);
    color: #ffffff;
    width: 100%;
    position: -webkit-sticky; position: sticky; top: 0;
    z-index: 1050;
}
.pc-header-inner {
    display: flex; justify-content: space-between; align-items: center;
    max-width: var(--maxw); margin: 0 auto; padding: 10px 24px;
}
.pc-header-logo { width: 232px; flex-shrink: 0; }
.pc-header-logo .site-logo-svg { color: #ffffff; --logo-knock: var(--ink); }

.pc-header-nav .pc-nav-list { display: flex; gap: 6px; align-items: center; }
.pc-header-nav .pc-nav-list > li { position: relative; }
.pc-header-nav .pc-nav-list > li > a {
    display: block; padding: 18px 16px;
    color: #ffffff; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em;
    border-bottom: 3px solid transparent;
}
.pc-header-nav .pc-nav-list > li > a:hover,
.pc-header-nav .pc-nav-list > li:focus-within > a { border-bottom-color: #ffffff; }
.pc-header-nav .pc-nav-list li.has-child > a::after { content: "▾"; font-size: 0.7em; margin-left: 6px; opacity: 0.7; }

.pc-sub-menu {
    position: absolute; top: 100%; right: 0; min-width: 240px;
    background: #ffffff; color: var(--text);
    border-top: 3px solid var(--ink);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1060;
}
.pc-header-nav .pc-nav-list li.has-child:hover .pc-sub-menu,
.pc-header-nav .pc-nav-list li.has-child:focus-within .pc-sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.pc-sub-menu li { border-bottom: 1px solid var(--line-soft); }
.pc-sub-menu li:last-child { border-bottom: none; }
.pc-sub-menu li a { display: block; padding: 12px 20px; font-size: 0.9rem; font-weight: 500; color: var(--text); }
.pc-sub-menu li a:hover { background: #f1f1f1; padding-left: 24px; }

/* 日付・キャッチコピーの帯 */
#masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 9px 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-size: 0.8rem; color: var(--muted); letter-spacing: 0.05em;
}
.masthead-date { font-variant-numeric: tabular-nums; }
.masthead-tagline { font-weight: 500; }

/* スマホ用ナビの土台（PCでは非表示） */
#nav-toggle { display: none; }
.custom-sp-search { display: none; }

/* =========================================
   6. トップページ
========================================= */
#custom-top-page { width: 100%; }

/* --- 6.1 最新のNEWS／雑学（大きなカード） --- */
.top-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.top-lead.single { grid-template-columns: 1fr; }
.lead-card {
    --c: var(--ink); --c-soft: #ececec;
    display: flex; flex-direction: column; gap: 14px;
    background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--c);
    padding: 26px 30px 24px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.lead-card.news { --c: var(--news); --c-soft: var(--news-soft); }
.lead-card.trivia { --c: var(--trivia); --c-soft: var(--trivia-soft); }
.lead-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.10); transform: translateY(-2px); }
.lead-label { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; color: var(--c); }
.lead-title { font-family: var(--serif); font-weight: 900; font-size: 1.55rem; line-height: 1.5; color: var(--text); }
.lead-card:hover .lead-title { color: var(--c); }
.lead-excerpt { font-size: 0.95rem; color: #444; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 「！」「？」の箱（ロゴの箱のならび） */
.mark-cell {
    --c: var(--ink);
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    font-family: var(--serif); font-weight: 900; font-size: 1.5rem; line-height: 1;
    color: var(--c); border: 2px solid var(--c); background: transparent;
}
.mark-cell.news { --c: var(--news); }
.mark-cell.trivia { --c: var(--trivia); }

/* --- 6.2 メインとサイドの2カラム --- */
.top-content-flex { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: var(--gap); align-items: start; }
.top-main-column { background: var(--card); border: 1px solid var(--line); padding: 28px 36px 12px; min-width: 0; }
.top-side-column { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 0; margin-bottom: 4px; }
.list-head h2 { font-family: var(--serif); font-weight: 900; font-size: 1.4rem; padding-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.list-head h2::before { content: ""; width: 12px; height: 12px; background: var(--ink); }
.list-tabs { display: flex; gap: 4px; }
.list-tab {
    appearance: none; background: none; border: none; cursor: pointer;
    padding: 10px 16px; font-size: 0.9rem; font-weight: 700; color: var(--muted);
    border-bottom: 4px solid transparent; margin-bottom: -2px;
}
.list-tab:hover { color: var(--text); }
.list-tab[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--ink); }
.list-tab[data-type="news"][aria-pressed="true"] { border-bottom-color: var(--news); }
.list-tab[data-type="trivia"][aria-pressed="true"] { border-bottom-color: var(--trivia); }

/* --- 6.3 記事の一覧 --- */
.article-list { margin: 0; }
.article-item { border-bottom: 1px solid var(--line-soft); }
.article-item:last-child { border-bottom: none; }
.article-item[hidden] { display: none; }
.article-link { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 24px 0; }
.article-link .mark-cell { width: 48px; height: 48px; font-size: 1.7rem; }
.article-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.article-title { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.55; color: var(--text); }
.article-link:hover .article-title { color: var(--accent-c, var(--ink)); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.article-link:hover { --accent-c: var(--ink); }
.article-item.news .article-link:hover { --accent-c: var(--news); }
.article-item.trivia .article-link:hover { --accent-c: var(--trivia); }
.article-excerpt { font-size: 0.9rem; color: #555; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.78rem; color: var(--muted); }
.item-date { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.item-cat { display: flex; flex-wrap: wrap; gap: 6px; }
.item-cat-label { padding: 1px 9px; border: 1px solid var(--line); font-size: 0.74rem; color: #555; background: #fafaf8; white-space: nowrap; }
.item-reaction { padding: 1px 9px; font-size: 0.74rem; font-weight: 700; color: #fff; background: var(--trivia); }
.list-more { text-align: center; padding: 26px 0 22px; border-top: 1px solid var(--line-soft); }
.list-more a { display: inline-block; padding: 13px 40px; font-weight: 700; font-size: 0.92rem; border: 2px solid var(--ink); }
.list-more a:hover { background: var(--ink); color: #ffffff; }
.list-empty { padding: 30px 0; color: var(--muted); }

/* --- 6.4 サイドのウィジェット --- */
.side-widget, #box2 .hatena-module {
    background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ink);
    padding: 22px 20px 20px; margin-bottom: 24px;
}
.top-side-column .side-widget { margin-bottom: 0; }
.widget-title, #box2 .hatena-module-title {
    font-family: var(--serif); font-weight: 900; font-size: 1.05rem; line-height: 1.4;
    display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--text);
}
.widget-title::before, #box2 .hatena-module-title::before { content: ""; width: 9px; height: 9px; background: var(--ink); flex-shrink: 0; }

.cat-group-title { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; margin: 4px 0 10px; }
.cat-group-title .mark-cell { width: 22px; height: 22px; font-size: 0.85rem; border-width: 1.5px; }
.cat-group + .cat-group { margin-top: 20px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cat-grid a { display: block; padding: 10px 8px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0; text-align: center; word-break: keep-all; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; line-height: 1.45; }
.cat-grid a:hover { background: var(--ink); color: #ffffff; }
.cat-group.news .cat-grid a:hover { background: var(--news); }
.cat-group.trivia .cat-grid a:hover { background: var(--trivia); }

.about-widget p { font-size: 0.86rem; line-height: 1.85; color: #444; }
.about-widget ul { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; }
.about-widget ul a { font-size: 0.84rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.about-widget ul a:hover { color: var(--news); }

/* 検索 */
.search-form { width: 100%; display: flex; align-items: stretch; }
.search-module-input, .hatena-module-search-box .search-module-input {
    flex: 1 1 auto; min-width: 0 !important; width: calc(100% - 72px) !important;
    padding: 11px 12px; border: 2px solid var(--ink); border-right: none; border-radius: 0;
    font-size: 1rem; background: #fff; outline: none; font-family: var(--sans);
}
.search-module-button, .hatena-module-search-box .search-module-button {
    flex: 0 0 72px !important; width: 72px !important; background: var(--ink); color: #ffffff;
    border: 2px solid var(--ink); border-radius: 0; padding: 0; cursor: pointer; font-size: 0.9rem; font-weight: 700;
}
.search-module-button:hover { opacity: 0.85; }
.hatena-module-search-box .hatena-module-title { display: none !important; }

/* =========================================
   7. 記事一覧ページ（カテゴリー・アーカイブ・検索結果）
========================================= */
.archive-entry, .page-archive .archive-entry { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.archive-entry:last-child { border-bottom: none; }
.archive-entry .entry-title, .archive-entry-header .entry-title { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.55; margin: 0 0 8px; }
.archive-entry .entry-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.archive-entry .entry-description, .archive-entry-body p { font-size: 0.9rem; color: #555; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.archive-entry .archive-date, .archive-entry .date { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.archive-entry .categories, .archive-entry .entry-categories { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.archive-entry .categories a, .archive-entry .entry-categories a { padding: 1px 9px; border: 1px solid var(--line); font-size: 0.74rem; color: #555; background: #fafaf8; }
.page-archive .archive-heading, .page-archive h2.page-heading, .page-archive .page-title { font-family: var(--serif); font-weight: 900; font-size: 1.6rem; line-height: 1.4; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }

/* ページ送り（前へ／次へ） */
.pager { display: flex; justify-content: space-between; gap: 16px; margin: 40px 0 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager .pager-prev, .pager .pager-next { flex: 1; display: flex; width: 50%; }
.pager a {
    display: flex; flex-direction: column; justify-content: center; width: 100%;
    background: #fafaf8; border: 1px solid var(--line); padding: 18px 20px;
    font-size: 0.92rem; font-weight: 700; line-height: 1.6; white-space: normal; word-break: break-word;
}
.pager a:hover { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.pager .pager-arrow { display: none !important; }
body.page-entry .pager .pager-prev a::before { content: "← 前の記事"; display: block; font-size: 0.74rem; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.08em; }
body.page-entry .pager .pager-next a::before { content: "次の記事 →"; display: block; font-size: 0.74rem; color: var(--muted); margin-bottom: 6px; text-align: right; letter-spacing: 0.08em; }
body.page-entry .pager a:hover::before { color: #cccccc; }
body.page-entry .pager .pager-next a { text-align: right; }

/* =========================================
   8. 記事ページ
========================================= */
/* --- 8.1 記事のヘッダー --- */
.entry-type { margin-bottom: 14px; }
.type-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); }
.type-badge .mark-cell { width: 26px; height: 26px; font-size: 1rem; border-width: 1.5px; }

.entry-date { display: block; margin-bottom: 10px; }
.entry-date a { display: inline-block; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.entry-date a:hover { color: var(--text); }
header.entry-header .entry-title {
    font-family: var(--serif); font-weight: 900;
    font-size: clamp(1.6rem, 3.1vw, 2.2rem); line-height: 1.5; letter-spacing: 0.01em;
    margin-bottom: 16px; color: var(--text);
}
.entry-categories { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 28px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.entry-categories a, .hatena-module-category .hatena-module-body li a {
    display: block; padding: 3px 12px; font-size: 0.78rem; font-weight: 500;
    color: var(--text); background: #fafaf8; border: 1px solid var(--line); margin: 0;
}
.entry-categories a:hover, .hatena-module-category .hatena-module-body li a:hover { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.hatena-module-category .hatena-module-body ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.hatena-module-category .hatena-module-body li { margin: 0 !important; }

/* --- 8.2 本文の文字組み --- */
.entry-content { word-break: break-word; overflow-wrap: break-word; counter-reset: sec; }
.entry-content p { line-height: 2; margin-bottom: 1.9em; font-size: 1.06rem; }
.entry-content strong { font-weight: 700; background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.entry-content a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.entry-content a:hover { color: var(--accent); }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { color: var(--text); line-height: 1.55; }
.entry-content h2 { margin: 3em 0 1em; font-family: var(--serif); font-weight: 900; font-size: 1.5rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.5em; }
.entry-content h3 {
    clear: both; margin: 3.4em 0 1.1em; padding-top: 18px; border-top: 3px solid var(--ink);
    font-family: var(--serif); font-weight: 900; font-size: 1.45rem; counter-increment: sec;
}
.entry-content h3::before {
    content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 4px;
    font-family: var(--sans); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.24em; color: var(--accent);
}
.entry-content h4 { margin: 2.6em 0 0.9em; padding-left: 12px; border-left: 4px solid var(--accent); font-size: 1.12rem; font-weight: 700; }
.entry-content ul:not(.table-of-contents), .entry-content ol { margin: 0 0 2.2em; padding: 0; }
.entry-content ul:not(.table-of-contents) li, .entry-content ol li { position: relative; padding-left: 1.5em; margin-bottom: 0.8em; line-height: 1.9; font-size: 1.04rem; }
.entry-content ul:not(.table-of-contents) li::before { content: ""; position: absolute; left: 0.15em; top: 0.8em; width: 0.5em; height: 0.5em; background: var(--accent); }
.entry-content ol { counter-reset: ol; }
.entry-content ol li { counter-increment: ol; }
.entry-content ol li::before { content: counter(ol); position: absolute; left: 0; top: 0.05em; font-weight: 700; color: var(--accent); }
.entry-content table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin-bottom: 2em; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; font-size: 0.95rem; }
.entry-content iframe, .entry-content pre { max-width: 100%; height: auto; }
.entry-content pre { white-space: pre-wrap; overflow-x: auto; }

/* 事実の引用ボックス */
.entry-content blockquote {
    position: relative; margin: 0 0 2.2em; padding: 20px 24px 6px;
    background: #faf9f6; border: 1px solid var(--line); border-left: 5px solid var(--ink);
}
.entry-content blockquote::before { content: "FACT"; display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.28em; color: var(--muted); }
.entry-content blockquote p { font-size: 1rem; margin-bottom: 1.2em; }

/* 目次 */
.entry-content .table-of-contents {
    clear: both; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink);
    padding: 20px 26px 16px; margin: 10px 0 36px; list-style-type: none;
}
.entry-content .table-of-contents::before { content: "目次"; display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 900; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.entry-content .table-of-contents li { margin: 0 0 8px; padding: 0; font-size: 0.95rem; font-weight: 500; line-height: 1.6; }
.entry-content .table-of-contents li::before { display: none; }
.entry-content .table-of-contents li:last-child { margin-bottom: 0; }
.entry-content .table-of-contents li a { color: var(--text); text-decoration: none; position: relative; padding-left: 1.3em; display: inline-block; }
.entry-content .table-of-contents li a::before { content: "■"; position: absolute; left: 0; top: 0.05em; color: var(--accent); font-size: 0.6em; line-height: 2.6; }
.entry-content .table-of-contents li a:hover { color: var(--accent); }
.entry-content .table-of-contents ul { list-style-type: none; padding-left: 18px; margin: 6px 0 0; }
.entry-content .table-of-contents ul li { font-weight: 400; font-size: 0.9rem; }

/* --- 8.3 要約ボックス（NEWS）と「ひとことで言うと」（雑学） --- */
.article-summary-box { clear: both; margin: 10px 0 40px; border: 2px solid var(--ink); background: #fff; overflow: hidden; }
.article-summary-box .summary-header { background: var(--ink); color: #ffffff; padding: 9px 16px; display: flex; align-items: center; gap: 8px; margin: 0; }
.article-summary-box .summary-icon { width: 20px; height: 20px; flex-shrink: 0; }
.article-summary-box .summary-heading { font-size: 0.92rem; font-weight: 700; color: #ffffff; border: none; margin: 0; padding: 0; letter-spacing: 0.1em; font-family: var(--sans); }
.entry-content h2.summary-heading::before { display: none; }
.article-summary-box .summary-body { padding: 20px 26px; font-family: var(--serif); font-size: 1.08rem; font-weight: 700; line-height: 1.95; color: var(--text); }

.trivia-lead { clear: both; margin: 10px 0 40px; padding: 20px 26px 22px; background: var(--trivia-soft); border-left: 6px solid var(--trivia); }
.trivia-lead-label { display: inline-block; margin-bottom: 8px; padding: 2px 12px; background: var(--trivia); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; }
.trivia-lead-text { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; line-height: 1.95; color: var(--text); }

/* --- 8.4 リアクションのスタンプ（雑学） --- */
.reaction-stamp {
    --stamp: #1f56c4;
    float: right; margin: 4px 0 14px 22px; padding: 9px 16px 7px; text-align: center;
    transform: rotate(-5deg); background: #fff; color: var(--stamp);
    border: 3px double var(--stamp); border-radius: 6px; font-family: var(--serif); line-height: 1.1;
}
.reaction-stamp-label { display: block; margin-bottom: 5px; font-family: var(--sans); font-weight: 700; font-size: 0.56rem; letter-spacing: 0.34em; }
.reaction-stamp-text { display: block; font-weight: 900; font-size: 1.55rem; letter-spacing: 0.02em; white-space: nowrap; }
.reaction-omoshiro { --stamp: #e07b00; }
.reaction-naruhodo { --stamp: #1f56c4; }
.reaction-hee { --stamp: #1f8f4d; }
.reaction-e { --stamp: #d12f2f; }
.reaction-fushigi { --stamp: #7a3fb8; }

/* --- 8.5 参考にした情報源・注記 --- */
.article-sources { clear: both; margin: 3em 0 1.6em; padding: 18px 22px 8px; background: #faf9f6; border: 1px solid var(--line); }
.article-sources .sources-heading { margin: 0 0 10px; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.26em; color: var(--muted); }
.entry-content .article-sources ul { margin: 0 0 0.6em; }
.entry-content .article-sources li { font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.5em; color: #444; }
.entry-content .article-sources li::before { top: 0.65em; width: 0.38em; height: 0.38em; background: var(--muted); }
.entry-content .article-sources a { font-weight: 500; }
.entry-content .article-note { margin: 0 0 1em; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 0.82rem; line-height: 1.8; color: var(--muted); }

/* --- 8.6 関連記事 --- */
.custom-related-entries { margin-top: 48px; padding-top: 6px; border-top: 3px solid var(--ink); }
.custom-related-entries .hatena-module-title { font-family: var(--serif); font-weight: 900; font-size: 1.25rem; padding: 16px 0 6px; margin: 0; color: var(--text); }
.custom-related-entries .hatena-module-title::before { display: none; }
.custom-related-entries .related-entries-list { margin: 0; }
.custom-related-entries .related-entries-item { border-bottom: 1px solid var(--line-soft); padding: 16px 0; display: flex; flex-direction: column; gap: 4px; }
.custom-related-entries .related-entries-item:last-child { border-bottom: none; }
.custom-related-entries .related-entries-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.custom-related-entries .related-entries-date { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.custom-related-entries .related-entries-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.custom-related-entries .related-cat-link { padding: 1px 9px; border: 1px solid var(--line); font-size: 0.72rem; color: #555; background: #fafaf8; }
.custom-related-entries .urllist-title-link { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.55; color: var(--text); }
.custom-related-entries .urllist-title-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hatena-module-related-entries:not(.custom-related-entries) { display: none !important; }
.page-page .entry-title { display: none !important; }

/* =========================================
   9. サイドバー（記事ページ等）
========================================= */
#box2 .hatena-module .hatena-module-body ul { list-style: none; padding-left: 0; }
#box2 .hatena-module .hatena-module-body li { margin-bottom: 12px; line-height: 1.5; font-size: 0.9rem; }
#box2 .hatena-module .hatena-module-body a:hover { color: var(--news); }
.hatena-module .urllist-date-link a { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 2px; }
.sidebar-cat-link { display: inline-block; font-size: 0.72rem; color: #555; background: #fafaf8; border: 1px solid var(--line); padding: 1px 8px; margin: 3px 5px 3px 0; }
.sidebar-cat-link:hover { background: var(--ink); color: #fff; }
#random-today-news a.sidebar-news-title { font-weight: 700; color: var(--text); display: block; }
#random-today-news a.sidebar-news-title:hover { color: var(--news); }

/* 検索窓（サイドバー） */
.hatena-module-search-box .search-form { margin-bottom: 0; }

/* =========================================
   10. パンくずリスト
========================================= */
#breadcrumb, .breadcrumb, .page-archive #breadcrumb {
    font-size: 0.8rem; color: var(--muted); margin: 0 0 22px !important; padding: 0 !important; line-height: 1.6; letter-spacing: 0.04em;
}
#breadcrumb a, .breadcrumb a, .page-archive #breadcrumb a { color: var(--text); font-weight: 700; }
#breadcrumb a:hover, .breadcrumb a:hover { color: var(--news); }
.breadcrumb-child { margin: 0 6px; color: #aaa; }

/* =========================================
   11. フッター
========================================= */
#custom-footer { background: var(--ink); color: #ffffff; margin-top: 48px; }
#custom-footer a { color: #ffffff; }
#custom-footer a:hover { opacity: 0.65; }
.footer-band { border-bottom: 1px solid #444; }
.footer-band p { max-width: var(--maxw); margin: 0 auto; padding: 28px 24px; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.12em; }
.footer-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 44px 24px 36px;
    display: grid; grid-template-columns: 200px minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px;
}
.footer-block-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em; }
.footer-block-title .mark-cell { width: 28px; height: 28px; font-size: 1rem; border-width: 1.5px; }
.footer-about .footer-link-list li { margin-bottom: 12px; font-size: 0.88rem; }
.footer-cat-grid { column-count: 2; column-gap: 36px; }
.footer-cat-group { break-inside: avoid; margin-bottom: 26px; }
.footer-cat-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; padding-left: 10px; border-left: 3px solid var(--c, #fff); }
.footer-news { --c: var(--news); }
.footer-trivia { --c: var(--trivia); }
.footer-trivia .footer-cat-grid { column-count: 1; }
.footer-toggle { display: none; }
.footer-sub-list { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-sub-list li { font-size: 0.82rem; line-height: 1.7; color: #d4d0c8; }
.footer-sub-list a { color: #d4d0c8 !important; }
.footer-copyright { background: #111111; color: #bbbbbb; border-top: 1px solid #444; text-align: center; padding: 16px 10px; font-size: 0.78rem; letter-spacing: 0.05em; }

/* =========================================
   12. スマホ表示（768px以下）
========================================= */
@media screen and (max-width: 768px), screen and (max-device-width: 768px) {
    .pc-only { display: none !important; }
    .sp-only { display: block !important; }

    /* 上から：ロゴ → 検索 → メニュー → 日付帯 → 本文 */
    .sp-logo-area { padding: 18px 20px 14px; text-align: center; background: #ffffff; border-bottom: 1px solid var(--line); width: 100%; }
    .sp-logo-area .header-logo-link { display: block; width: 78%; max-width: 260px; margin: 0 auto; }
    .custom-sp-search { display: block !important; width: 100%; margin: 0; padding: 14px 20px 16px; background: #ffffff; }
    .custom-sp-search .search-form { display: flex; width: 100%; max-width: 420px; margin: 0 auto; }
    .custom-sp-search .search-module-input { height: 44px; padding: 10px 12px; font-size: 16px; -webkit-appearance: none; }
    .custom-sp-search .search-module-button { height: 44px; font-size: 15px; -webkit-appearance: none; }
    .hatena-module-search-box { display: none !important; }

    #global-nav {
        position: -webkit-sticky; position: sticky; top: 0; z-index: 1000;
        height: 52px; width: 100%; margin: 0;
        background: var(--ink); color: #ffffff;
        display: flex !important; justify-content: flex-end; align-items: center; padding: 0 12px;
    }
    #global-nav::before { content: "MENU"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.3em; color: #ffffff; }
    #nav-toggle.sp-only {
        display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
        width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; padding: 0; position: relative; z-index: 2000;
    }
    #nav-toggle span { display: block; width: 24px; height: 2px; background: #ffffff; transition: all 0.3s ease; }
    #nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #nav-toggle.is-active span:nth-child(2) { opacity: 0; }
    #nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-list { position: absolute; top: 52px; left: 0; width: 100%; max-height: calc(100vh - 56px); overflow-y: auto; display: none !important; flex-direction: column; background: #ffffff; border-top: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0,0,0,0.2); z-index: 1999; }
    .nav-list.is-active { display: flex !important; }
    .nav-item { display: flex; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line-soft); width: 100%; }
    .nav-item:last-child { border-bottom: none; }
    .nav-item > a { display: flex; align-items: center; padding: 16px 20px; font-size: 1rem; font-weight: 700; color: var(--text); width: 100%; }
    .nav-icon { width: 18px; height: 18px; margin-right: 10px; flex-shrink: 0; }
    .nav-item.has-child > a::after { content: "▾"; margin-left: auto; font-size: 0.8em; color: var(--muted); transition: transform 0.3s ease; }
    .nav-item.has-child.is-open > a::after { transform: rotate(180deg); }
    .sub-menu { display: none; background: #f6f6f6; border-top: 1px dashed var(--line); }
    .sub-menu.is-active { display: block; }
    .sub-menu li a { display: block; padding: 13px 20px 13px 48px; font-size: 0.95rem; font-weight: 500; color: var(--text); }

    .masthead-inner { padding: 8px 16px; justify-content: center; text-align: center; }
    .masthead-date { display: none; }
    .masthead-tagline { font-size: 0.74rem; letter-spacing: 0.03em; }

    /* ページの骨組み（元の構成を維持：ヘッダー → 本文 → サイドバー） */
    body #container { display: flex !important; flex-direction: column !important; width: 100% !important; overflow: visible !important; }
    body #top-editarea { order: 1 !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    #global-nav { order: 2 !important; }
    #masthead { order: 2 !important; }
    body #content { order: 3 !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    body #content-inner { display: flex !important; flex-direction: column !important; width: 100% !important; }
    body #wrapper { order: 1 !important; width: 100% !important; margin: 0 0 16px !important; padding: 26px 18px 22px !important; border-left: none; border-right: none; }
    body #box2 { order: 2 !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    #box2 .hatena-module { margin: 0 0 16px; padding: 22px 18px 18px; border-left: none; border-right: none; }

    /* トップページ */
    body.page-index.top-ready #wrapper { padding: 0 !important; margin: 0 !important; }
    #custom-top-page { padding: 20px 14px 0; }
    .top-lead { grid-template-columns: 1fr; gap: 14px; margin-bottom: 26px; }
    .lead-card { padding: 20px 20px 18px; }
    .lead-title { font-size: 1.28rem; }
    .top-content-flex { grid-template-columns: 1fr; gap: 26px; }
    .top-main-column { padding: 20px 18px 6px; }
    .list-head h2 { font-size: 1.2rem; }
    .list-tab { padding: 10px 12px; font-size: 0.86rem; }
    .article-link { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 20px 0; }
    .article-link .mark-cell { width: 38px; height: 38px; font-size: 1.3rem; }
    .article-title { font-size: 1.08rem; }
    .cat-grid a { padding: 11px 10px; font-size: 0.82rem; }

    /* 記事ページ */
    .entry-title { font-size: 1.45rem !important; line-height: 1.5 !important; }
    .entry-content p { font-size: 1rem !important; line-height: 1.95 !important; margin-bottom: 1.8em !important; }
    .entry-content ul:not(.table-of-contents) li, .entry-content ol li { font-size: 1rem; }
    .entry-content h3 { font-size: 1.28rem; margin-top: 3em; }
    .entry-content blockquote { padding: 16px 16px 4px; }
    .entry-content .table-of-contents { padding: 16px 16px 12px; }
    .article-summary-box .summary-body, .trivia-lead { padding: 16px 18px; }
    .article-summary-box .summary-body { font-size: 1rem; }
    .trivia-lead-text { font-size: 1.02rem; }
    .reaction-stamp { margin-left: 14px; padding: 7px 12px 5px; }
    .reaction-stamp-text { font-size: 1.25rem; }
    .article-sources { padding: 16px 16px 6px; }
    body.page-entry .pager { flex-direction: column; margin: 34px 0 16px; padding-top: 22px; }
    body.page-entry .pager .pager-prev, body.page-entry .pager .pager-next { width: 100%; }
    #breadcrumb, .breadcrumb, .page-archive #breadcrumb { font-size: 0.76rem; margin-bottom: 16px !important; }

    /* フッター */
    .footer-band p { font-size: 0.95rem; padding: 22px 16px; letter-spacing: 0.06em; }
    .footer-inner { grid-template-columns: 1fr; gap: 34px; padding: 34px 20px 24px; }
    .footer-cat-grid { column-count: 1; }
    .footer-cat-group { margin-bottom: 14px; }
    .footer-cat-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; padding: 4px 0 4px 10px; }
    .footer-toggle {
        display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
        width: 36px; height: 32px; background: transparent; color: #ffffff;
        border: 1px solid #666; cursor: pointer; font-size: 1rem; line-height: 1;
    }
    .footer-sub-list { display: none; margin-top: 10px; padding-left: 13px; }
    .footer-cat-group.is-open .footer-sub-list { display: flex; }
}

/* 動きを減らす設定の人には、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
