/* Mofuru｜お金の見直しひろば 公開版スタイル（本番 theme.css の変数・意匠を移植） */
:root {
  --bg: #fdf8f1;
  --surface: #fffdf9;
  --surface-warm: #f7e3d3;
  --text: #33261f;
  --dim: #8a7365;
  --border: #ecdcc9;
  --accent: #7a2233;
  --accent-deep: #5c1626;
  --accent-soft: #f9e8e4;
  --sage: #7d9b76;
  --sage-soft: #e9f0e4;
  --sage-deep: #4f7050;
  --terra: #d08a5a;
  --terra-soft: #faeee1;
  --terra-deep: #a35a28;
  --gold-soft: #f7ecd2;
  --gold-deep: #8a6410;
  --saved-bg: #f7e3d3;
  --saved-text: #7a2233;
  --hero-from: #571626;
  --hero-mid: #7a2233;
  --hero-to: #9c3548;
  --radius: 16px;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #221a17;
    --surface: #2e2320;
    --surface-warm: #3d2c26;
    --text: #f5ead9;
    --dim: #bfae9d;
    --border: #4a382f;
    --accent: #e08a97;
    --accent-deep: #f0a8b3;
    --accent-soft: #40262b;
    --sage: #a7c49e;
    --sage-soft: #2c3627;
    --sage-deep: #bcd6b4;
    --terra: #e0a878;
    --terra-soft: #3d2e22;
    --terra-deep: #eda96f;
    --gold-soft: #3a3220;
    --gold-deep: #e3c169;
    --saved-bg: #3d2c26;
    --saved-text: #f0a8b3;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text); }
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 14px calc(96px + env(safe-area-inset-bottom));
}
h1, h2, h3, .masthead-brand, .page-title, .section-title { font-family: var(--font-display); }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }

/* マストヘッド */
.masthead { padding: 8px 2px 4px; }
.masthead-title { margin: 0; line-height: 1.15; }
.masthead-brand { display: block; font-size: 34px; font-weight: 900; color: var(--accent); letter-spacing: .02em; }
.masthead-sub { display: block; font-size: 19px; font-weight: 700; color: var(--text); }
.hero-img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 10px; }
.hero-img { display: block; width: 100%; height: auto; }
.hero-img-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(51, 22, 26, .72));
  padding: 34px 14px 10px;
}
.hero-img-caption p { margin: 0; color: #fff; font-weight: 700; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* パネル・見出し */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  margin-top: 18px;
}
.panel.small { padding: 12px; }
.panel-desc, .page-desc { color: var(--dim); font-size: 14px; margin: 8px 0 0; }
.page-desc { margin-top: 4px; }
.section-title {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 900; margin: 0;
  padding: 5px 12px; border-radius: 999px;
}
.section-title.tone-accent { background: var(--accent-soft); color: var(--accent); }
.section-title.tone-sage { background: var(--sage-soft); color: var(--sage-deep); }
.section-title.tone-terra { background: var(--terra-soft); color: var(--terra-deep); }
.section-title.tone-gold { background: var(--gold-soft); color: var(--gold-deep); }
.page-title { font-size: 22px; font-weight: 900; margin: 6px 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.back-link { margin: 4px 0 8px; font-size: 14px; }
.back-link a { text-decoration: none; font-weight: 700; }

/* 集計ヒーロー */
.totals-hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-mid) 55%, var(--hero-to));
  border-radius: var(--radius);
  padding: 18px 16px;
  color: #fff;
}
.totals-label { margin: 0; font-size: 13px; font-weight: 700; opacity: .92; }
.totals-amount { margin: 2px 0 0; font-size: 40px; font-weight: 900; line-height: 1.1; font-family: var(--font-display); }
.totals-unit { font-size: 15px; font-weight: 700; margin-left: 4px; }
.totals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.totals-tile { background: rgba(255, 255, 255, .16); border-radius: 12px; padding: 10px 12px; }
.totals-num { margin: 2px 0 0; font-size: 24px; font-weight: 900; font-family: var(--font-display); }
.totals-note { color: var(--dim); font-size: 12.5px; margin: 8px 2px 0; }

/* ランキング行 */
.rank-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.best-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; text-decoration: none; color: var(--text); width: 100%; text-align: left;
}
.best-rank { font-size: 17px; font-weight: 900; min-width: 26px; text-align: center; color: var(--gold-deep); }
.best-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.best-title { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.best-sub { font-size: 12px; color: var(--dim); }
.best-arrow { color: var(--dim); font-size: 20px; }
.saver-amount { font-weight: 900; color: var(--accent); font-size: 14px; white-space: nowrap; }
.fold-toggle {
  margin-top: 10px; width: 100%; padding: 9px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--accent); font-weight: 700;
}

/* 投稿者バッジ */
.author-badge { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; text-decoration: none; color: var(--text); }
.author-name { font-weight: 700; }
.rank-chip { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.rank-chip.rank-start { background: #efe6da; color: #8a7365; }
.rank-chip.rank-bronze { background: linear-gradient(120deg, #e0b184, #c98d54); color: #4a2c10; }
.rank-chip.rank-silver { background: linear-gradient(120deg, #e8e8ec, #b9bcc4); color: #3d3f45; }
.rank-chip.rank-gold { background: linear-gradient(120deg, #f6dd8a, #e3b83c); color: #5a4300; }
.rank-chip.rank-platinum { background: linear-gradient(120deg, #cfe8e4, #8fc7bd); color: #17453d; }
.rank-chip.rank-diamond { background: linear-gradient(120deg, #cfe4ff, #8fb8f5); color: #173a66; }
.author-suki { font-size: 12px; color: var(--dim); }
.official-badge { font-size: 11px; font-weight: 700; background: var(--accent); color: #fff; padding: 1px 8px; border-radius: 999px; vertical-align: 2px; }

/* 投稿カード */
.post-stack { display: grid; gap: 12px; margin-top: 14px; }
.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.post-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.post-date { font-size: 12px; color: var(--dim); white-space: nowrap; }
.post-topic { font-size: 12px; color: var(--dim); margin: 6px 0 0; }
.post-topic a { font-weight: 700; text-decoration: none; }
.post-title-text { font-weight: 900; font-size: 16.5px; margin: 6px 0 0; font-family: var(--font-display); }
.post-body { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 15px; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.theme-chip { font-size: 12px; background: var(--sage-soft); color: var(--sage-deep); padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.saved-banner {
  margin-top: 10px; background: var(--saved-bg); color: var(--saved-text);
  border-radius: 10px; padding: 8px 12px; font-weight: 900; font-size: 14.5px;
}
.post-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.action-btn {
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight: 700;
}
.action-btn[disabled] { opacity: .55; cursor: default; }
.action-btn.done { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.action-btn.quiet { margin-left: auto; color: var(--dim); font-weight: 400; }

/* お題一覧・ポディウム */
.topic-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.topic-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 12px; text-decoration: none; color: var(--text); text-align: left;
}
.topic-icon { font-size: 22px; }
.topic-count { font-size: 12px; color: var(--dim); white-space: nowrap; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.podium-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  background: var(--gold-soft); border-radius: 12px; padding: 12px 6px; text-decoration: none; color: var(--text);
}
.podium-icon { font-size: 26px; }
.podium-name { font-weight: 900; font-size: 13.5px; }
.podium-count { font-size: 11.5px; color: var(--dim); }

/* 検索 */
.search-box {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 8px 6px 14px;
}
.search-box input { flex: 1; border: none; background: transparent; outline: none; min-width: 0; }
.search-btn { border: none; background: var(--accent); color: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 700; }
.compose-btn {
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 900;
  border-radius: 999px; padding: 8px 18px; font-size: 15px; white-space: nowrap;
}

/* テーマ絞り込み */
.theme-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.theme-chip-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700;
}
.theme-chip-btn.active { background: var(--sage); border-color: var(--sage); color: #fff; }

/* フォーム */
.stack-form { display: grid; gap: 8px; margin-top: 12px; }
form.panel.stack-form { margin-top: 18px; padding: 16px 14px; }
.form-label { font-weight: 700; font-size: 14px; margin-top: 6px; }
.form-input {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); padding: 10px 12px; outline: none;
}
.form-input:focus { border-color: var(--accent); }
.form-note { font-size: 12.5px; color: var(--dim); margin: 0; }
.form-error { color: #b3261e; font-size: 13.5px; margin: 0; font-weight: 700; }
.primary-btn {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 12px 20px; font-weight: 900; font-size: 15.5px; text-align: center; text-decoration: none;
}
.primary-btn.inline { display: inline-block; }
.primary-btn[disabled] { opacity: .6; }
.mini-btn {
  border: 1px solid var(--accent); color: var(--accent); background: var(--surface);
  border-radius: 999px; padding: 7px 14px; font-weight: 700; white-space: nowrap;
}
.danger-btn {
  background: #b3261e; color: #fff; border: none; border-radius: 999px; padding: 11px 18px; font-weight: 900;
}
.check-box { background: var(--terra-soft); border-radius: 12px; padding: 12px 14px; margin-top: 8px; }
.check-title { font-weight: 900; margin: 0 0 6px; }
.check-box ul { margin: 0; padding-left: 4px; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.compose-topic-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.theme-add-row { display: flex; gap: 8px; align-items: center; }
.theme-add-row .form-input { flex: 1; }
.theme-chip.removable { border: none; display: inline-flex; gap: 4px; align-items: center; }

/* 知識ページ */
.knowledge-link-card, .knowledge-entrance {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--sage-soft); border: 1px solid var(--sage); border-radius: var(--radius);
  padding: 14px; color: var(--text);
}
.knowledge-entrance-icon { font-size: 26px; }
.knowledge-entrance-main { flex: 1; display: flex; flex-direction: column; }
.knowledge-entrance-title { font-weight: 900; font-family: var(--font-display); }
.knowledge-entrance-sub { font-size: 12.5px; color: var(--sage-deep); }
.knowledge-summary { font-weight: 700; margin: 4px 0 0; }
.knowledge-heading { font-size: 17px; font-weight: 900; margin: 20px 0 6px; font-family: var(--font-display); }
.knowledge-p { margin: 6px 0; font-size: 15px; }
.knowledge-bullets { margin: 6px 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.knowledge-note { font-size: 12.5px; color: var(--dim); margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 10px; }
.knowledge-figure { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-top: 16px; }
.figure-title { font-weight: 900; margin: 0 0 10px; font-size: 14.5px; }
.figure-bars { display: grid; gap: 10px; }
.figure-bar-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.figure-bar-track { background: var(--border); border-radius: 999px; height: 14px; overflow: hidden; }
.figure-bar-fill { background: linear-gradient(90deg, var(--hero-mid), var(--hero-to)); height: 100%; border-radius: 999px; }
.figure-bar-value { font-weight: 900; white-space: nowrap; }
.figure-pie-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.figure-pie { width: 150px; height: 150px; border-radius: 50%; flex: none; }
.figure-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.figure-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.figure-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.figure-table th, .figure-table td { border: 1px solid var(--border); padding: 7px 9px; text-align: left; }
.figure-table th { background: var(--accent-soft); }
.figure-caption { font-size: 12px; color: var(--dim); margin: 10px 0 0; }
.qa-item { border-top: 1px dashed var(--border); padding: 10px 0 2px; }
.qa-q { font-weight: 900; margin: 0; }
.qa-a { margin: 4px 0 8px; font-size: 15px; }

/* コメント */
.comment-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.comment-item { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.comment-head { margin: 0; font-size: 13.5px; }

/* マイルーム */
.link-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.link-list a { display: block; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; text-decoration: none; font-weight: 700; color: var(--text); }
.notice-item { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-top: 8px; background: var(--bg); }
.notice-item.answered { border-color: var(--sage); background: var(--sage-soft); }
.notice-title { font-weight: 900; margin: 0; font-size: 14.5px; }
.question-item { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-top: 10px; background: var(--bg); }
.question-answer { background: var(--sage-soft); border-radius: 10px; padding: 10px 12px; margin-top: 8px; white-space: pre-wrap; }
.panel.danger { border-color: #b3261e; }
code { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; word-break: break-all; }

/* 法務 */
.legal .knowledge-heading { color: var(--accent); }

/* 下部タブバー */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-inner { max-width: 680px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 8px 0 7px; text-decoration: none; color: var(--dim); font-size: 11.5px; font-weight: 700;
}
.tabbar a .tab-icon { font-size: 20px; line-height: 1.2; }
.tabbar a.active { color: var(--accent); }

/* トースト・モーダル */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 92px; z-index: 90;
  background: var(--saved-bg); color: var(--saved-text); font-weight: 900;
  border-radius: 999px; padding: 11px 20px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  max-width: calc(100vw - 32px); text-align: center; font-size: 14.5px;
}
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(30, 15, 18, .5); z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  background: var(--surface); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  width: 100%; max-width: 680px; max-height: 82vh; overflow: auto;
}
.modal h3 { margin: 0 0 8px; font-family: var(--font-display); }
.radio-list { display: grid; gap: 6px; margin: 10px 0; }
.radio-list label { display: flex; gap: 8px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; font-size: 14px; }
.modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.modal-actions .primary-btn { flex: 1; }
.ghost-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 11px 16px; font-weight: 700; color: var(--text); }

/* 運営 */
.op-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.op-table th, .op-table td { border: 1px solid var(--border); padding: 7px 8px; text-align: left; vertical-align: top; }
.op-table th { background: var(--accent-soft); }
.footer-note { text-align: center; color: var(--dim); font-size: 12px; margin-top: 26px; }
.footer-note a { color: var(--dim); }

/* ---- views.tsx の実クラス名への合わせ込み ---- */
.section-title { display: block; padding: 0; background: none; }
.section-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 16px;
}
.section-chip.tone-accent { background: var(--accent-soft); color: var(--accent); }
.section-chip.tone-sage { background: var(--sage-soft); color: var(--sage-deep); }
.section-chip.tone-terra { background: var(--terra-soft); color: var(--terra-deep); }
.section-chip.tone-gold { background: var(--gold-soft); color: var(--gold-deep); }
.tabbar a.tabbtn { display: flex; flex-direction: column; align-items: center; padding: 8px 0 7px; }
.tabbtn-disc { font-size: 20px; line-height: 1.25; }
.tabbtn-label { font-size: 11.5px; }
.tabbar a.active { color: var(--accent); }
.rank-disc { display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.post-title { font-family: var(--font-display); font-weight: 900; font-size: 16.5px; margin: 6px 0 0; }
.post-title a { color: var(--text); text-decoration: none; }
.fold-btn {
  margin-top: 10px; width: 100%; padding: 9px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--accent); font-weight: 700;
}
.fold-more[hidden] { display: none; }
.fold-more { margin-top: 8px; }

/* 知識入口（ke-*） */
.ke-icon { font-size: 26px; }
.ke-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ke-title { font-weight: 900; font-family: var(--font-display); }
.ke-title.dark { color: var(--text); }
.ke-desc { font-size: 12.5px; color: var(--sage-deep); }
.ke-arrow { color: var(--dim); font-size: 20px; }
.knowledge-card {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
}

/* 知識図解（kfig / kbar / kpie / ktable） */
.kfig { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-top: 16px; }
.kfig-title { font-weight: 900; margin: 0 0 10px; font-size: 14.5px; }
.kfig-note { font-size: 12px; color: var(--dim); margin: 10px 0 0; }
.kbar-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; font-size: 13px; margin-top: 8px; }
.kbar-track { background: var(--border); border-radius: 999px; height: 14px; overflow: hidden; }
.kbar-fill { background: linear-gradient(90deg, var(--hero-mid), var(--hero-to)); height: 100%; border-radius: 999px; }
.kbar-fill.range { background: linear-gradient(90deg, var(--sage), var(--sage-deep)); }
.kbar-value { font-weight: 900; white-space: nowrap; }
.kpie-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.kpie { width: 150px; height: 150px; border-radius: 50%; flex: none; }
.kpie-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.ktable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ktable th, .ktable td { border: 1px solid var(--border); padding: 7px 9px; text-align: left; }
.ktable th { background: var(--accent-soft); }

/* Turnstile ウィジェットの置き場 */
.turnstile-holder { margin-top: 10px; min-height: 0; }
.turnstile-holder:empty { margin-top: 0; }

/* 書き込み一時停止バナー（全ページ最上部・赤字） */
.pause-banner {
  background: #fdecea;
  color: #b3261e;
  font-weight: 900;
  text-align: center;
  padding: 10px 12px;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid #f3c1bb;
}

/* 運営専用の差し込み枠（リンク表示可・PR表記つき） */
.placement-card { border: 2px solid var(--gold, #d9a441); }
.placement-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.pr-chip {
  background: #b3261e; color: #fff; font-size: 11px; font-weight: 900;
  padding: 2px 8px; border-radius: 999px; letter-spacing: 0.08em;
}
.placement-from { font-size: 12px; color: var(--muted); font-weight: 700; }
.placement-title { margin: 0 0 6px; font-size: 17px; }
.placement-link { display: inline-block; margin-top: 8px; text-decoration: none; }

/* SEO内部リンク（知識ページ⇔お題スレッド） */
.knowledge-mini-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.knowledge-mini-list a { color: var(--accent); font-weight: 600; text-decoration: none; }
.knowledge-mini-list a:hover { text-decoration: underline; }
.knowledge-related-links { margin: 8px 0; font-weight: 700; }
.knowledge-related-links a { color: var(--accent); text-decoration: none; }
.knowledge-related-links a:hover { text-decoration: underline; }
