/* ============================================================
   articles.css — 記事作例（ライティングのサンプル）
   方針：画像を使わない。読みやすさと「出典の見せ方」だけで作る
   ============================================================ */

:root {
  --ink:      #1B2430;
  --muted:    #5B6775;
  --line:     #DFE5EC;
  --bg:       #FFFFFF;
  --bg-soft:  #F5F8FB;
  --accent:   #1F6FB2;
  --accent-d: #17537F;
  --mark:     #FFF1C9;
  --warn-bg:  #FFF7E6;
  --warn-br:  #E8A33D;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.95;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-d); }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: 720px; margin-inline: auto; padding-inline: 20px; }

/* ── 免責帯 ── */
.disclaimer {
  background: #1f2937; color: #fff;
  padding: 10px 16px;
  font-size: 13px; line-height: 1.6; text-align: center;
  font-family: system-ui, sans-serif;
}
.disclaimer strong { color: #FFD28A; }

/* ── ヘッダー ── */
.site-head {
  border-bottom: 1px solid var(--line);
  font-family: system-ui, sans-serif;
}
.site-head__in {
  max-width: 720px; margin-inline: auto; padding: 14px 20px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.site-head__name { font-weight: 700; font-size: .95rem; }
.site-head__back { font-size: .82rem; color: var(--muted); text-decoration: none; }
.site-head__back:hover { color: var(--accent); }

/* ── 記事ヘッダー ── */
.art-head { padding-block: 44px 28px; border-bottom: 1px solid var(--line); }
.art-head__kicker {
  font-family: system-ui, sans-serif;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 12px;
}
.art-head__title { font-size: 1.72rem; line-height: 1.5; font-weight: 700; }
.art-head__lead { margin-top: 18px; color: var(--muted); font-size: .98rem; }
.art-head__meta {
  margin-top: 20px; font-family: system-ui, sans-serif;
  font-size: .78rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}

/* ── 本文 ── */
.art-body { padding-block: 32px 48px; }
.art-body h2 {
  font-size: 1.24rem; line-height: 1.6; margin: 44px 0 16px;
  padding-left: 14px; border-left: 4px solid var(--accent);
}
.art-body h3 { font-size: 1.05rem; margin: 30px 0 12px; }
.art-body p { margin-bottom: 20px; }
.art-body p + h2 { margin-top: 48px; }
.art-body mark { background: var(--mark); padding: 0 3px; }
.art-body strong { font-weight: 700; }

.art-body ul.bul, .art-body ol.num { margin: 0 0 22px; padding-left: 2px; }
.art-body ul.bul li, .art-body ol.num li {
  position: relative; padding-left: 1.5em; margin-bottom: 10px;
}
.art-body ul.bul li::before {
  content: '●'; position: absolute; left: 0; color: var(--accent); font-size: .7em; top: .55em;
}
.art-body ol.num { counter-reset: n; }
.art-body ol.num li::before {
  counter-increment: n; content: counter(n) '.';
  position: absolute; left: 0; color: var(--accent); font-weight: 700;
  font-family: system-ui, sans-serif;
}

/* 数字の表 */
.tbl-wrap { overflow-x: auto; margin: 0 0 24px; }
table.data {
  border-collapse: collapse; width: 100%; min-width: 440px;
  font-family: system-ui, sans-serif; font-size: .9rem;
}
table.data th, table.data td {
  border: 1px solid var(--line); padding: 9px 12px; text-align: left;
}
table.data th { background: var(--bg-soft); font-weight: 700; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 注意ボックス（「未確認」を見せる場所） */
.callout {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-br);
  padding: 16px 18px; margin: 0 0 24px;
  font-family: system-ui, sans-serif; font-size: .9rem; line-height: 1.85;
}
.callout__t { font-weight: 700; display: block; margin-bottom: 4px; }

/* 引用 */
blockquote.q {
  border-left: 3px solid var(--line);
  padding: 4px 0 4px 18px; margin: 0 0 22px;
  color: var(--muted); font-size: .96rem;
}
blockquote.q cite { display: block; margin-top: 8px; font-style: normal; font-size: .82rem; }

/* ── 出典 ── */
.sources {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 22px 8px;
  margin-top: 44px;
  font-family: system-ui, sans-serif;
}
.sources h2 {
  font-size: 1rem; margin: 0 0 14px; padding: 0; border: 0;
}
.sources ol { counter-reset: s; list-style: none; }
.sources li {
  counter-increment: s; position: relative;
  padding-left: 2.1em; margin-bottom: 14px;
  font-size: .86rem; line-height: 1.75; word-break: break-word;
}
.sources li::before {
  content: '[' counter(s) ']'; position: absolute; left: 0;
  color: var(--muted); font-weight: 700;
}
.sources .fetched { display: block; color: var(--muted); font-size: .78rem; }

/* ── フッター ── */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 32px 44px;
  font-family: system-ui, sans-serif;
  font-size: .82rem; color: var(--muted);
}
.site-foot p { margin-bottom: 10px; line-height: 1.85; }
.site-foot a { font-weight: 700; }

/* ── 記事一覧 ── */
.list-head { padding-block: 44px 10px; }
.list-head h1 { font-size: 1.55rem; line-height: 1.5; }
.list-head p { margin-top: 16px; color: var(--muted); font-size: .96rem; }
.cards { padding-block: 24px 48px; display: grid; gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 22px; text-decoration: none; color: inherit; display: block;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,36,48,.08);
}
.card__kicker {
  font-family: system-ui, sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 8px;
}
.card__title { font-size: 1.1rem; line-height: 1.55; font-weight: 700; margin-bottom: 10px; }
.card__desc { font-size: .9rem; color: var(--muted); line-height: 1.8; }
.card__meta {
  margin-top: 14px; font-family: system-ui, sans-serif;
  font-size: .76rem; color: var(--muted);
}

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.9; }
  .art-head__title { font-size: 1.4rem; }
  .list-head h1 { font-size: 1.3rem; }
  .art-body h2 { font-size: 1.12rem; }
}
