/*
Theme Name: Omamori AI
Theme URI: https://omamori-ai.jp
Author: はてなベース株式会社 × Omamori AI 編集部
Description: 日本の大企業向けAIセキュリティメディア「Omamori AI」公式テーマ。画像を最小化し、硬派な文書性を重視。
Version: 0.3.0
License: Proprietary
Text Domain: omamori-ai
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ==========================================================================
   Omamori AI — 硬派でシンプルな編集メディア
   Fonts: Shippori Mincho B1 (heading) + Noto Sans JP (body)
   Colors: red #b01f1f as single accent, neutral greyscale base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:root {
  --red: #b01f1f;
  --red-dark: #8a1717;
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --muted: #707070;
  --line: #e0e0e0;
  --line-soft: #f0f0f0;
  --bg: #fefdfb;
  --bg-card: #f8f6f1;
  --link: #1d3557;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans:   "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.75; font-feature-settings: "palt" 1; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Screen-reader only helper (proper, focus-safe) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip-to-content link */
.skip-link {
  position: absolute; top: -40px; left: 8px; z-index: 9999;
  background: var(--ink); color: #fff; padding: 8px 14px; font-size: 13px;
}
.skip-link:focus { top: 8px; }

/* ===== Header (compact) ===== */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 100; }

.masthead { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 12px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand .amulet { width: 26px; height: 32px; flex-shrink: 0; }
.brand .wordmark { font-family: var(--sans); font-size: 19px; font-weight: 700; letter-spacing: 0.01em; line-height: 1; display: inline-flex; align-items: baseline; gap: 5px; }
.brand .wordmark .ai { color: var(--red); font-weight: 800; letter-spacing: 0.04em; }
.brand .tagline { display: block; font-family: var(--sans); font-size: 10px; color: var(--muted); letter-spacing: 3px; margin-top: 2px; font-weight: 500; }
.brand .brand-text { display: flex; flex-direction: column; }
.brand .issue-tag { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-left: 12px; border-left: 1px solid var(--line); padding-left: 12px; align-self: center; }

.masthead .spacer { flex: 1; }

.search-form { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--ink); padding: 4px 0; }
.search-form input[type="search"] { border: 0; outline: 0; font: inherit; font-size: 13px; width: 180px; background: transparent; padding: 2px 4px; }
.search-form button { background: transparent; border: 0; cursor: pointer; padding: 2px 4px; font-size: 14px; color: var(--ink); }

.menu-drawer { position: relative; }
.menu-drawer summary { cursor: pointer; list-style: none; padding: 6px 10px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--bg); display: inline-flex; align-items: center; gap: 6px; }
.menu-drawer summary::-webkit-details-marker { display: none; }
.menu-drawer[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-drawer .drawer-panel { position: absolute; right: 0; top: calc(100% + 6px); width: 280px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,0.06); padding: 12px 0; z-index: 50; }
.menu-drawer .drawer-panel ul { }
.menu-drawer .drawer-panel li a { display: block; padding: 10px 18px; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.menu-drawer .drawer-panel li:last-child a { border-bottom: 0; }
.menu-drawer .drawer-panel li a:hover { background: var(--bg-card); color: var(--red); }

/* Category nav (thin, uppercase-ish Japanese category labels) */
.category-nav { border-bottom: 1px solid var(--line); background: var(--bg); }
.category-nav .inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px; }
.category-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.category-nav li { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; }
.category-nav li a { padding: 4px 14px; display: inline-block; color: var(--ink-soft); }
.category-nav li + li { border-left: 1px solid var(--line); }
.category-nav li a:hover, .category-nav li.current a { color: var(--red); }
.category-nav li .count { color: var(--muted); font-size: 10px; margin-left: 4px; }

/* ===== Main layout (Newspaper grid: 12-col) ===== */
.site-main { max-width: 1240px; margin: 0 auto; padding: 28px 28px 48px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; row-gap: 0; }
.site-main > .content { grid-column: 1 / span 9; }
.site-main > .sidebar { grid-column: 10 / span 3; border-left: 1px solid var(--line); padding-left: 28px; }

/* ===== Newspaper dateline ===== */
.dateline-bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 14px; border-bottom: 2px solid var(--ink); margin-bottom: 20px; font-family: var(--mincho); }
.dateline-bar .date { font-size: 13px; color: var(--ink); letter-spacing: 0.05em; }
.dateline-bar .issue { font-size: 13px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.dateline-bar .motto { font-size: 13px; color: var(--muted); font-style: italic; }

/* ===== Omamori Index Widget ===== */
@media (max-width: 1024px) {
  .omamori-index { grid-template-columns: 1fr; gap: 12px; }
  .omamori-index .idx-action { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 10px; }
}

/* ===== Hero (Top 2-col: lead + 2 sub) ===== */
.hero-row { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.hero-row .lead-story { padding: 0; border: 0; margin: 0; }
.hero-row .lead-story .cat { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 10px; text-transform: uppercase; }
.hero-row .lead-story h1 { font-family: var(--mincho); font-size: 40px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.005em; color: var(--ink); }
.hero-row .lead-story h1 a:hover { color: var(--red); }
.hero-row .lead-story .deck { font-family: var(--mincho); font-size: 17px; font-weight: 400; font-style: italic; color: var(--ink-soft); line-height: 1.55; margin-bottom: 12px; }
.hero-row .lead-story .byline { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.hero-row .subleads { display: flex; flex-direction: column; }
.hero-row .subleads .sub-story { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.hero-row .subleads .sub-story:first-child { border-top: 0; padding-top: 0; }
.hero-row .sub-story .cat { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 6px; text-transform: uppercase; }
.hero-row .sub-story h3 { font-family: var(--mincho); font-size: 19px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.hero-row .sub-story .lede { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ===== News section (4-column grid) ===== */
.news-section { border-top: 0; padding-top: 0; padding-bottom: 0; margin-top: 36px; margin-bottom: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.news-section .section-title { font-family: var(--mincho); font-size: 14px; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.15em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; color: var(--ink); border-top: 1px solid var(--ink); padding-top: 12px; }
.news-section .section-title::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--red); }
.news-section .section-title a.more { font-family: var(--sans); font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: 0.08em; margin-left: auto; text-transform: uppercase; }

/* 4-col article grid (newspaper style) */
.article-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 28px; }
.article-list .article-card { padding: 0; border: 0; display: flex; flex-direction: column; position: relative; }
.article-list .article-card + .article-card::before { content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 1px; background: var(--line-soft); }
.article-list .article-card:nth-child(4n+1)::before { display: none; }
.article-card .thumb { width: 100%; height: 130px; background: var(--bg-card); overflow: hidden; margin-bottom: 10px; }
.article-card .thumb img, .article-card .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card .cat { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 6px; text-transform: uppercase; }
.article-card h3 { font-family: var(--mincho); font-size: 16px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; letter-spacing: -0.002em; }
.article-card h3 a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.article-card .lede { font-size: 12px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-row .lead-story .deck { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-row .sub-story .lede { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .meta { color: var(--muted); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.article-card.no-thumb { }
.article-card.no-thumb .thumb { display: none; }

/* Two-column grid for category pages (wider cards) */
.article-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.article-grid-2 .article-card { border-top: 1px solid var(--line-soft); padding-top: 18px; }
.article-grid-2 .article-card:first-child, .article-grid-2 .article-card:nth-child(2) { border-top: 0; padding-top: 0; }
.article-grid-2 .article-card .thumb { height: 180px; }

/* ===== Sidebar (Economist / hatenabase 風) ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; font-family: var(--sans); }

.side-block { padding-top: 14px; border-top: 1px solid var(--line); }
.side-block:first-child { border-top: 0; padding-top: 0; }
.side-block__title { font-family: var(--mincho); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: var(--ink); text-transform: uppercase; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }

/* 1. Search */
.side-search .search-form { display: flex; gap: 6px; }
.side-search input[type="search"] { flex: 1; padding: 8px 10px; border: 1px solid var(--line); font-size: 13px; background: #fff; }
.side-search input[type="search"]:focus { outline: 0; border-color: var(--ink); }
.side-search button, .side-search .search-submit { background: var(--ink); color: #fff; border: 0; padding: 8px 14px; font-size: 12px; font-weight: 600; cursor: pointer; }

/* 2. Table of Contents */
.side-toc__list { counter-reset: toc; padding-left: 0; }
.side-toc__item { counter-increment: toc; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; line-height: 1.5; }
.side-toc__item:last-child { border-bottom: 0; }
.side-toc__item--h3 { padding-left: 16px; font-size: 12px; color: var(--ink-soft); }
.side-toc__item a { display: block; transition: color 0.15s; }
.side-toc__item a:hover { color: var(--red); }
.side-toc__item--h2 a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--red); font-family: var(--mincho); font-weight: 700; }

/* 3. Most Read */
.side-most-read__list { counter-reset: mr; }
.side-most-read__item { counter-increment: mr; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.side-most-read__item:last-child { border-bottom: 0; }
.side-most-read__rank { font-family: var(--mincho); font-size: 28px; font-weight: 700; color: var(--red); line-height: 1; padding-top: 2px; }
.side-most-read__link { display: block; font-size: 13px; line-height: 1.45; }
.side-most-read__link:hover .side-most-read__title { color: var(--red); }
.side-most-read__cat { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.side-most-read__title { display: block; color: var(--ink); font-weight: 500; }

/* 4. Editor's Picks */
.side-picks__item { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.side-picks__item:last-child { border-bottom: 0; }
.side-picks__link { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; }
.side-picks__thumb { width: 64px; height: 64px; overflow: hidden; background: var(--bg-card); }
.side-picks__thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-picks__body { font-size: 12px; line-height: 1.45; }
.side-picks__cat { display: block; font-size: 10px; color: var(--red); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.side-picks__title { display: block; color: var(--ink); font-weight: 500; }
.side-picks__link:hover .side-picks__title { color: var(--red); }

/* 5. Categories */
.side-cats__item { border-bottom: 1px solid var(--line-soft); }
.side-cats__item:last-child { border-bottom: 0; }
.side-cats__link { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 13px; transition: color 0.15s; }
.side-cats__link:hover { color: var(--red); }
.side-cats__name { font-weight: 500; }
.side-cats__count { font-size: 11px; color: var(--muted); background: var(--line-soft); padding: 1px 8px; border-radius: 10px; }

/* 6. CTA */
.side-cta { display: flex; flex-direction: column; gap: 0; }
.side-cta__item { display: block; padding: 14px 14px; border: 1px solid var(--line); border-bottom: 0; transition: background 0.15s; }
.side-cta__item:last-child { border-bottom: 1px solid var(--line); }
.side-cta__item:hover { background: var(--bg-card); }
.side-cta__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.side-cta__label { display: inline-block; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; letter-spacing: 0.05em; }
.side-cta__label--paid { background: var(--ink); }
.side-cta__title { font-family: var(--mincho); font-size: 16px; font-weight: 600; color: var(--ink); }
.side-cta__desc { display: block; font-size: 11px; color: var(--ink-soft); line-height: 1.45; }

/* 7. Related Seminar */
.side-promo { border-top: 2px solid var(--ink); padding-top: 14px; }
.side-promo__label { font-size: 10px; color: var(--muted); letter-spacing: 0.25em; margin-bottom: 10px; font-weight: 600; }
.side-promo__title { font-family: var(--mincho); font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.side-promo__desc { font-size: 12px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 10px; }
.side-promo__when { font-size: 12px; color: var(--ink); margin-bottom: 14px; line-height: 1.6; }
.side-promo__button { display: inline-block; background: var(--red); color: #fff; padding: 10px 20px; font-size: 13px; font-weight: 600; transition: background 0.15s; }
.side-promo__button:hover { background: var(--red-dark); }

/* 8. Tags */
.side-tags__list { display: flex; flex-wrap: wrap; gap: 6px; }
.side-tags__chip { display: inline-block; padding: 3px 10px; font-size: 11px; background: var(--line-soft); color: var(--ink-soft); transition: all 0.15s; }
.side-tags__chip:hover { background: var(--ink); color: #fff; }

/* ===== Single article (NYT-style centered column) ===== */
.article-page { max-width: 1240px; margin: 0 auto; padding: 28px 28px 48px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
.article-body { grid-column: 3 / span 7; max-width: 680px; margin: 0 auto; width: 100%; }
.article-page > .sidebar { grid-column: 10 / span 3; border-left: 1px solid var(--line); padding-left: 28px; }
.article-body .cat { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 14px; text-transform: uppercase; }
.article-body h1.article-title { font-family: var(--mincho); font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 14px; letter-spacing: -0.01em; text-align: left; }
.article-body .subtitle { font-family: var(--mincho); font-size: 19px; color: var(--ink-soft); font-weight: 400; font-style: italic; line-height: 1.55; margin-bottom: 18px; }
.article-body .byline { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 24px; text-transform: uppercase; }
.article-body .eyecatch { margin-bottom: 24px; }
.article-body .content p { font-family: var(--mincho); font-size: 17px; line-height: 1.9; margin-bottom: 18px; }
.article-body .content p:first-of-type::first-letter { font-family: var(--mincho); font-size: 56px; float: left; line-height: 1; padding: 4px 10px 0 0; font-weight: 700; color: var(--ink); }
.article-body .content h2 { font-family: var(--mincho); font-size: 24px; font-weight: 700; margin: 32px 0 12px; letter-spacing: -0.005em; }
.article-body .content h3 { font-family: var(--mincho); font-size: 19px; font-weight: 600; margin: 24px 0 10px; }
.article-body .content ul, .article-body .content ol { margin: 0 0 18px 28px; font-family: var(--mincho); }
.article-body .content li { font-size: 17px; line-height: 1.9; margin-bottom: 4px; }
.article-body .content a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.article-body .content blockquote { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 16px 24px; margin: 28px 0; font-family: var(--mincho); font-size: 22px; font-weight: 500; color: var(--ink); line-height: 1.4; font-style: italic; text-align: center; }
.article-body .omamori-verdict { background: var(--bg-card); border-top: 3px double var(--ink); border-bottom: 1px solid var(--line); padding: 24px 28px; margin: 32px 0; }
.article-body .omamori-verdict h3 { font-family: var(--mincho); font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--red); text-transform: uppercase; letter-spacing: 0.15em; }
.article-body .omamori-verdict ol { margin-left: 20px; font-family: var(--mincho); }
.article-body .omamori-verdict li { font-size: 16px; line-height: 1.8; margin-bottom: 6px; }

/* ===== Seminar page ===== */
.seminar-hero { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 40px 0; margin-bottom: 28px; }
.seminar-hero .eyebrow { color: var(--red); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; margin-bottom: 12px; }
.seminar-hero h1 { font-family: var(--mincho); font-size: 34px; font-weight: 600; line-height: 1.4; margin-bottom: 14px; letter-spacing: 0.01em; }
.seminar-hero .meta { font-size: 15px; color: var(--ink); line-height: 2; margin-bottom: 24px; }
.seminar-hero .meta strong { font-weight: 600; }
.seminar-hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.seminar-hero .cta-row a { padding: 12px 26px; font-size: 14px; font-weight: 600; }
.seminar-hero .cta-row .primary { background: var(--red); color: #fff; }
.seminar-hero .cta-row .primary:hover { background: var(--red-dark); }
.seminar-hero .cta-row .secondary { border: 1px solid var(--ink); color: var(--ink); }

.seminar-section { border-top: 1px solid var(--line); padding: 28px 0; }
.seminar-section h2 { font-family: var(--mincho); font-size: 22px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.02em; }
.seminar-section ul { margin-left: 22px; font-size: 15px; line-height: 1.9; }
.agenda-list li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: 90px 1fr; gap: 20px; list-style: none; margin-left: 0; }
.agenda-list li:last-child { border-bottom: 0; }
.agenda-list .time { font-family: var(--mincho); font-size: 15px; font-weight: 600; color: var(--red); }
.agenda-list .topic strong { display: block; font-size: 15px; margin-bottom: 4px; font-weight: 600; }
.agenda-list .topic span { color: var(--muted); font-size: 13px; }

.seminar-form { max-width: 640px; }
.seminar-form .row { margin-bottom: 16px; }
.seminar-form label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--ink-soft); }
.seminar-form input, .seminar-form textarea, .seminar-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); font: inherit; font-size: 14px; background: #fff; }
.seminar-form input:focus, .seminar-form textarea:focus, .seminar-form select:focus { border-color: var(--ink); outline: 0; }
.seminar-form .submit { background: var(--red); color: #fff; border: 0; padding: 14px 36px; font-size: 14px; font-weight: 600; cursor: pointer; }
.seminar-form .submit:hover { background: var(--red-dark); }

/* ===== Search results ===== */
.search-header { border-top: 2px solid var(--ink); padding-top: 18px; margin-bottom: 20px; }
.search-header h1 { font-family: var(--mincho); font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.search-header .count { color: var(--muted); font-size: 13px; }

/* ===== Footer ===== */
.site-footer { background: #14181c; color: #b5b9bf; padding: 40px 20px 24px; margin-top: 56px; font-size: 13px; }
.site-footer .inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.site-footer h5 { font-family: var(--mincho); color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 10px; letter-spacing: 0.04em; }
.site-footer ul li { padding: 3px 0; }
.site-footer ul li a:hover { color: #fff; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid #2a3239; padding-top: 16px; display: flex; justify-content: space-between; font-size: 11px; color: #6c737b; flex-wrap: wrap; gap: 10px; }

/* ===== 404 ===== */
.error-page { max-width: 640px; margin: 80px auto; padding: 0 20px; text-align: center; }
.error-page h1 { font-family: var(--mincho); font-size: 60px; font-weight: 600; color: var(--red); margin-bottom: 10px; }
.error-page p { font-size: 16px; color: var(--ink-soft); margin-bottom: 20px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .site-main { grid-template-columns: 1fr; }
  .site-main > .content { grid-column: 1 / -1; }
  .site-main > .sidebar { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
  .article-page { grid-template-columns: 1fr; }
  .article-body { grid-column: 1 / -1; max-width: 680px; }
  .article-page > .sidebar { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
  .hero-row { grid-template-columns: 1fr; }
  .article-list { grid-template-columns: repeat(2, 1fr); }
  .article-list .article-card + .article-card::before { display: none; }
  .article-grid-2 { grid-template-columns: 1fr; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .masthead { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .brand .issue-tag { display: none; }
  .search-form input { width: 120px; }
  .category-nav ul { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .category-nav li { white-space: nowrap; }
  .hero-row .lead-story h1 { font-size: 28px; }
  .article-body h1.article-title { font-size: 28px; }
  .article-body .content p:first-of-type::first-letter { font-size: 42px; }
  .seminar-hero h1 { font-size: 24px; }
  .article-list { grid-template-columns: 1fr; }
  .article-card .thumb { height: 180px; }
  .site-footer .inner { grid-template-columns: 1fr; }
}

/* ========================================================================
   Article Page — 強化セクション (2026-05-10)
   ======================================================================== */

/* 読了進捗バー */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--red); z-index: 1000; transition: width 0.1s linear; }

/* パンくず */
.breadcrumb { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: 0.05em; margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 6px; color: var(--line); }

/* カテゴリ（リンク化） */
.article-body .cat a { color: var(--red); }
.article-body .cat a:hover { text-decoration: underline; }

/* バイライン拡張 */
.byline-author { font-weight: 600; color: var(--ink); }
.byline-sep { margin: 0 8px; color: var(--line); }
.byline-readtime, .byline-updated { color: var(--muted); }

/* アイキャッチキャプション */
.article-body .eyecatch figcaption { font-size: 12px; color: var(--muted); padding-top: 6px; font-family: var(--sans); }

/* タグ */
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-tags__label { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.18em; margin-right: 4px; }
.article-tags__chip { display: inline-block; padding: 4px 12px; font-size: 12px; background: var(--line-soft); color: var(--ink-soft); transition: all 0.15s; }
.article-tags__chip:hover { background: var(--ink); color: #fff; }

/* シェア */
.article-share { display: flex; align-items: center; gap: 10px; margin: 20px 0 28px; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.article-share__label { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.18em; margin-right: 6px; }
.article-share__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; font-family: var(--sans); font-size: 14px; font-weight: 700; background: var(--bg-card); color: var(--ink); border: 1px solid var(--line); cursor: pointer; transition: all 0.15s; }
.article-share__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.article-share__btn--copy { font-size: 11px; padding: 0 14px; min-width: 0; }

/* 参考文献 */
.article-references { margin: 36px 0 28px; padding: 24px 0 0; border-top: 2px solid var(--ink); }
.article-references__heading { font-family: var(--mincho); font-size: 22px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.02em; color: var(--ink); }
.article-references__list { padding-left: 0; counter-reset: refs; margin-left: 0; }
.article-references__item { display: grid; grid-template-columns: 32px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--sans); font-size: 13px; line-height: 1.6; }
.article-references__item:last-child { border-bottom: 0; }
.article-references__num { font-family: var(--mincho); font-weight: 700; color: var(--red); }
.article-references__body { display: flex; flex-direction: column; gap: 4px; }
.article-references__title a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.article-references__title a:hover { color: var(--red); }
.article-references__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); }
.article-references__publisher { font-weight: 600; }

/* 著者ブロック */
.article-byline-block { margin: 28px 0; padding: 20px 22px; background: var(--bg-card); border-left: 3px solid var(--red); }
.article-byline-block__person { font-family: var(--sans); }
.article-byline-block__label { font-size: 10px; color: var(--muted); letter-spacing: 0.18em; margin-bottom: 4px; font-weight: 700; }
.article-byline-block__name { font-family: var(--mincho); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.article-byline-block__role { font-size: 12px; color: var(--ink-soft); line-height: 1.55; }

/* 関連記事 */
.article-related { margin: 36px 0 28px; padding-top: 28px; border-top: 2px solid var(--ink); }
.article-related__heading { font-family: var(--mincho); font-size: 22px; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.02em; }
.article-related__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-related__item { }
.article-related__link { display: block; }
.article-related__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-card); margin-bottom: 8px; }
.article-related__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-related__link:hover .article-related__thumb img { transform: scale(1.04); }
.article-related__cat { display: block; font-size: 10px; color: var(--red); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; font-weight: 700; }
.article-related__title { display: block; font-family: var(--mincho); font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); margin-bottom: 4px; }
.article-related__link:hover .article-related__title { color: var(--red); }
.article-related__excerpt { display: block; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }

/* フッター CTA */
.article-footer-cta { margin: 40px 0 16px; padding: 32px 28px; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); color: #fff; }
.article-footer-cta__inner { max-width: 540px; }
.article-footer-cta__heading { font-family: var(--mincho); font-size: 22px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: #fff; }
.article-footer-cta__lead { font-size: 13px; line-height: 1.6; color: #d4d4d4; margin-bottom: 18px; }
.article-footer-cta__row { display: flex; flex-wrap: wrap; gap: 10px; }
.article-footer-cta__btn { display: inline-block; padding: 11px 22px; font-family: var(--sans); font-size: 13px; font-weight: 600; transition: all 0.15s; }
.article-footer-cta__btn--primary { background: var(--red); color: #fff; }
.article-footer-cta__btn--primary:hover { background: var(--red-dark); }
.article-footer-cta__btn--secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.article-footer-cta__btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

@media (max-width: 1024px) {
  .article-related__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .article-related__list { grid-template-columns: 1fr; }
  .article-share { flex-wrap: wrap; }
  .article-footer-cta { padding: 24px 20px; }
  .article-footer-cta__heading { font-size: 18px; }
}
