/* マネーディクショナリー 共通スタイル */
:root {
  --bg: #f7fafc;
  --bg-card: #ffffff;
  --fg: #1a2533;
  --fg-soft: #4a5b6e;
  --accent: #0c6fd6;
  --accent-soft: #e6f1fc;
  --border: #d8e0ea;
  --muted: #8693a4;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(20, 40, 70, 0.06), 0 4px 16px rgba(20, 40, 70, 0.04);
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-jp);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 10;
}
.site-header .inner {
  max-width: 980px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-title { font-size: 18px; font-weight: 700; color: var(--fg); }
.site-title a { color: inherit; }
.site-nav a { margin-left: 18px; color: var(--fg-soft); font-size: 14px; }
.container { max-width: 980px; margin: 0 auto; padding: 28px 20px 64px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--fg-soft); }
.article-title {
  font-size: 30px; font-weight: 700;
  margin: 4px 0 12px; line-height: 1.4;
  border-left: 6px solid var(--accent);
  padding-left: 14px;
}
.meta { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.meta .sep { margin: 0 8px; opacity: 0.5; }
.eyecatch {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px; margin: 18px 0 28px;
  box-shadow: var(--shadow);
}
.eyecatch svg { width: 100%; height: auto; display: block; }
.lead {
  font-size: 16px; color: var(--fg-soft);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 28px;
}
.lead strong { color: var(--accent); }
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 16px 40px;
  margin-bottom: 28px;
}
.toc-title { font-weight: 700; margin: 0 0 8px -20px; font-size: 14px; color: var(--fg-soft); }
.toc ol { margin: 0; padding-left: 4px; }
.toc li { margin: 4px 0; }
.section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.section h2 {
  font-size: 22px; margin: 0 0 16px;
  color: var(--fg);
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 8px;
}
.section h3 { font-size: 17px; margin: 18px 0 8px; color: var(--fg); }
.section p { margin: 0 0 12px; }
.related-terms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.related-terms a {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px;
}
.related-terms a:hover { background: var(--accent); color: #fff; text-decoration: none; }
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 40px;
}
/* インデックスページ用 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow);
}
.cat-card h3 { margin: 0 0 6px; font-size: 16px; }
.cat-card .count { color: var(--muted); font-size: 13px; }
.term-list { columns: 2; column-gap: 24px; margin-top: 12px; }
.term-list a { display: block; padding: 6px 0; font-size: 14px; }
@media (max-width: 640px) {
  .article-title { font-size: 24px; }
  .section { padding: 18px 18px; }
  .term-list { columns: 1; }
}
