/* avsabu.com - シンプル白ベース (my-best風) */

:root {
  --text: #1a1a1a;
  --text-sub: #555;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --link: #0066cc;
  --accent: #d23a3a;
  --cta-bg: #1a1a1a;
  --cta-text: #ffffff;
  --cta-hover: #333;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "游ゴシック", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== レイアウト ===== */
.header {
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  background: #fff;
}
.header-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
  min-width: 0;
}
.brand a {
  color: inherit;
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
}
.brand a:hover { text-decoration: none; }
.brand a:hover strong { color: #1c47c4; }
.brand .b-deco {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
}
.brand strong {
  font-size: 16px;
  font-weight: 700;
  color: #0b2a8a;
}
.gnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
  font-weight: 600;
}
.gnav a {
  color: var(--text-sub);
  white-space: nowrap;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.gnav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ハンバーガー（スマホのみ表示） */
.nav-burger { display: none; }

@media (max-width: 600px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .brand strong { font-size: 15px; }
  .brand .b-deco { font-size: 10px; }
  /* バーガーアイコン */
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  /* チェック時にバツ印へ */
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ナビ本体：デフォルト非表示→チェックで縦展開 */
  .gnav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid var(--border);
  }
  .nav-toggle:checked ~ .gnav { display: flex; }
  .gnav a {
    width: 100%;
    padding: 13px 4px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }
  .gnav a:hover {
    color: var(--accent);
    border-bottom-color: var(--border);
  }
}

/* ===== フローティングメニュー（トップページ専用） ===== */
.float-nav {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.float-nav.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.float-burger {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #0b2a8a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.float-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.float-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.float-burger.open span:nth-child(2) { opacity: 0; }
.float-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.float-menu {
  position: absolute;
  top: 56px;
  right: 0;
  min-width: 184px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}
.float-menu[hidden] { display: none; }
.float-menu a {
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.float-menu a:hover {
  background: var(--bg-soft);
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb {
  max-width: 760px;
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: 12px;
  color: var(--text-sub);
}
.breadcrumb a { color: var(--text-sub); }
.breadcrumb .sep { margin: 0 6px; color: #bbb; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px 60px;
}

.category-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--text-sub);
  border: 1px solid var(--border);
  padding: 2px 10px;
  margin-bottom: 14px;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin: 8px 0 14px;
  letter-spacing: 0.01em;
}

.meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

p {
  margin: 1em 0;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
  line-height: 1.5;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 32px 0 14px;
  padding-left: 10px;
  border-left: 3px solid var(--text);
  line-height: 1.5;
}

h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 24px 0 10px;
}

/* ===== テーブル ===== */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 460px;
}

th, td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

th {
  background: var(--bg-soft);
  font-weight: 700;
  white-space: nowrap;
}

td.num, th.num {
  text-align: right;
  white-space: nowrap;
}

table a {
  color: var(--link);
}

/* ===== CTAボタン ===== */
.cta {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 24px auto;
  padding: 16px 24px;
  background: var(--cta-bg);
  color: var(--cta-text);
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  border-radius: 4px;
  transition: background 0.15s;
}
.cta:hover {
  background: var(--cta-hover);
  text-decoration: none;
  color: var(--cta-text);
}

.cta-inline {
  display: inline-block;
  margin: 8px 0;
  padding: 10px 18px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
  font-size: 13px;
  border-radius: 4px;
}
.cta-inline:hover {
  background: var(--cta-hover);
  text-decoration: none;
  color: var(--cta-text);
}

/* ===== CVボタン サービス別カラー ===== */
/* normal と :hover で同じ背景＝ホバーで黒(#333)に戻らないようにする */
.cta--dmm,     .cta--dmm:hover     { background:#FFF036; color:#1a1a1a; }
.cta--rakuten, .cta--rakuten:hover { background:#FF0000; color:#fff; }
.cta--unext,   .cta--unext:hover   { background:#0080DE; color:#fff; }
.cta--tsutaya, .cta--tsutaya:hover { background:#2096F3; color:#fff; }
.cta--sokmil,  .cta--sokmil:hover  { background:#E6032B; color:#fff; }
.cta--xcity,   .cta--xcity:hover   { background:#D30112; color:#fff; }
.cta--duga,    .cta--duga:hover    { background:#FF0000; color:#fff; }
.cta--mgs,     .cta--mgs:hover     { background:#34C338; color:#fff; }
/* ホバー時はわずかに暗くしてフィードバック */
.cta--dmm:hover, .cta--rakuten:hover, .cta--unext:hover, .cta--tsutaya:hover,
.cta--sokmil:hover, .cta--xcity:hover, .cta--duga:hover, .cta--mgs:hover {
  filter: brightness(0.93);
}

/* ===== 引用 ===== */
blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--border-strong);
  font-size: 13px;
  color: var(--text-sub);
}
blockquote p { margin: 6px 0; }
blockquote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  margin-top: 6px;
}

/* ===== カラム ===== */
.lead {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 14px;
}
.lead p:first-child { margin-top: 0; }
.lead p:last-child { margin-bottom: 0; }

.faq {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.faq h3 {
  border-left: none;
  padding-left: 0;
  font-size: 15px;
  margin: 24px 0 8px;
}
.faq h3::before {
  content: "Q. ";
  color: var(--accent);
  font-weight: 700;
}

/* FAQ アコーディオン（details/summary使用時） */
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:last-child {
  border-bottom: none;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 34px 16px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: "Q. ";
  color: var(--accent);
  font-weight: 700;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-sub);
}
.faq details[open] summary::after {
  content: "−";
}
.faq details .a {
  padding: 0 0 18px;
}
.faq details .a p {
  margin: 0.6em 0;
}

/* ===== 数字ステータス帯 ===== */
.stat-strip {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}
.stat-strip .stat {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  background: var(--bg-soft);
}
.stat-strip .stat + .stat {
  border-left: 1px solid var(--border);
}
.stat-strip .num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-strip .num small {
  font-size: 13px;
  font-weight: 700;
  margin-left: 1px;
}
.stat-strip .label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-sub);
}
@media (max-width: 480px) {
  .stat-strip .num { font-size: 20px; }
}

/* ===== 追従CTAバー ===== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #fff;
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.sticky-cta.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.sticky-cta__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-cta__text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
}
.sticky-cta__text strong {
  display: block;
  font-size: 13px;
}
.sticky-cta .cta-inline {
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
body.has-sticky-cta main {
  padding-bottom: 88px;
}
@media (min-width: 768px) {
  .sticky-cta__inner { padding: 12px 24px; }
}

/* ===== 導入インパクトカード ===== */
.hero-alert {
  --hero-bg: #121214;
  --hero-warn-bg: #3d1614;
  --hero-text-sub: #b7b7bd;
  border-radius: 20px;
  overflow: hidden;
  margin: 4px 0 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.hero-alert__warn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--hero-warn-bg);
  color: #f3d9d6;
  font-size: 13px;
  font-weight: 600;
  padding: 14px 18px;
}
.hero-alert__warn-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-alert__body {
  background: var(--hero-bg);
  padding: 28px 22px 24px;
}
.hero-alert__headline {
  margin: 0 0 20px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
}
.hero-alert__headline .hl {
  display: inline-block;
  background: rgba(210, 58, 58, 0.28);
  color: #ff6f61;
  padding: 2px 10px;
  border-radius: 6px;
}
.hero-alert__bullets {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 0 0 22px;
}
.hero-alert__bullets li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: var(--hero-text-sub);
  margin: 0;
}
.hero-alert__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-alert__cta {
  display: block;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  padding: 16px 20px;
  border-radius: 10px;
  transition: filter 0.15s;
}
.hero-alert__cta:hover {
  filter: brightness(0.92);
  text-decoration: none;
  color: #fff;
}
.hero-alert__note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
  color: #8a8a90;
}
@media (min-width: 768px) {
  .hero-alert__headline { font-size: 26px; }
  .hero-alert__body { padding: 36px 32px 30px; }
}

/* ===== 要点カード（番号ステップ） ===== */
.tips-card {
  background: #fdf3df;
  border-radius: 16px;
  padding: 28px 24px 4px;
  margin: 4px 0 28px;
}
.tips-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 19px;
  font-weight: 800;
  color: #d98a35;
}
.tips-card__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eb9c4d;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tips-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tips-card__list li {
  display: flex;
  gap: 14px;
  margin: 0 0 28px;
}
.tips-card__num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: #eb9c4d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tips-card__content {
  flex: 1 1 auto;
  min-width: 0;
}
.tips-card__head {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
}
.tips-card__body {
  margin: 0;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ===== 対話（吹き出し） ===== */
.dialog-chat {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 18px 0;
}
.dialog-chat__msg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 100%;
}
.dialog-chat__msg.eguchi {
  flex-direction: row-reverse;
}
.dialog-chat__avatar-wrap {
  flex: 0 0 auto;
  width: 80px;
  text-align: center;
}
.dialog-chat__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  display: block;
}
.dialog-chat__name {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  line-height: 1.3;
}
.dialog-chat__bubble {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.75;
}
.dialog-chat__msg.tanaka .dialog-chat__bubble {
  background: var(--bg-soft);
}
.dialog-chat__msg.eguchi .dialog-chat__bubble {
  background: #fff6f6;
  border-color: #f3d6d6;
}
.dialog-chat__msg.tanaka .dialog-chat__bubble::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -9px;
  border-style: solid;
  border-width: 8px 9px 8px 0;
  border-color: transparent var(--border-strong) transparent transparent;
}
.dialog-chat__msg.tanaka .dialog-chat__bubble::after {
  content: "";
  position: absolute;
  top: 24px;
  left: -8px;
  border-style: solid;
  border-width: 8px 9px 8px 0;
  border-color: transparent var(--bg-soft) transparent transparent;
}
.dialog-chat__msg.eguchi .dialog-chat__bubble::before {
  content: "";
  position: absolute;
  top: 24px;
  right: -9px;
  border-style: solid;
  border-width: 8px 0 8px 9px;
  border-color: transparent transparent transparent #f3d6d6;
}
.dialog-chat__msg.eguchi .dialog-chat__bubble::after {
  content: "";
  position: absolute;
  top: 24px;
  right: -8px;
  border-style: solid;
  border-width: 8px 0 8px 9px;
  border-color: transparent transparent transparent #fff6f6;
}
@media (max-width: 480px) {
  .dialog-chat__avatar-wrap { width: 60px; }
  .dialog-chat__avatar { width: 60px; height: 60px; }
  .dialog-chat__bubble { font-size: 13px; }
}

.dialog {
  margin: 18px 0;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--border-strong);
  font-size: 13px;
}
.dialog p {
  margin: 6px 0;
  line-height: 1.7;
}
.dialog .who {
  font-weight: 700;
  color: var(--text-sub);
  margin-right: 6px;
}

/* ===== サービスブロック ===== */
.service {
  margin: 40px 0;
  padding-top: 8px;
}
.service-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
}

.service-table th {
  width: 32%;
  background: var(--bg-soft);
}

.note {
  font-size: 12px;
  color: var(--text-sub);
  margin: 10px 0;
}

ul {
  padding-left: 1.4em;
  margin: 1em 0;
}
ul li {
  margin: 0.4em 0;
}

/* ===== 見出し直下の図版 ===== */
.h2-figure {
  margin: 16px 0 24px;
}
.h2-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ===== 目次 (TOC) ===== */
.toc {
  margin: 24px 0 32px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 13px;
}
.toc-title {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}
.toc ol {
  margin: 0;
  padding-left: 1.6em;
  counter-reset: toc;
}
.toc li {
  margin: 6px 0;
  line-height: 1.6;
}
.toc a {
  color: var(--text);
}
.toc a:hover {
  color: var(--link);
  text-decoration: underline;
}

/* ===== 関連リンク ===== */
.related {
  margin-top: 32px;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 13px;
}
.related a { font-weight: 600; }

/* ===== 著者 ===== */
.author {
  margin: 56px 0 24px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 13px;
}
.author-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

/* ===== 筆者吹き出し（目次上） ===== */
.author-say {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0 28px;
}
.author-say__avatar {
  flex: 0 0 auto;
  text-align: center;
  width: 80px;
}
.author-say__avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  display: block;
}
.author-say__name {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  line-height: 1.3;
}
.author-say__bubble {
  position: relative;
  flex: 1 1 auto;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
}
.author-say__bubble p {
  margin: 0 0 8px;
}
.author-say__bubble p:last-child {
  margin-bottom: 0;
}
/* 左向きの三角（しっぽ） */
.author-say__bubble::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -9px;
  border-style: solid;
  border-width: 8px 9px 8px 0;
  border-color: transparent var(--border-strong) transparent transparent;
}
.author-say__bubble::after {
  content: "";
  position: absolute;
  top: 24px;
  left: -8px;
  border-style: solid;
  border-width: 8px 9px 8px 0;
  border-color: transparent var(--bg) transparent transparent;
}
@media (max-width: 480px) {
  .author-say { gap: 10px; }
  .author-say__avatar { width: 60px; }
  .author-say__avatar img { width: 60px; height: 60px; }
  .author-say__bubble { font-size: 13px; }
}

/* ===== 関連記事 ===== */
.related-articles {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.related-articles h2 {
  font-size: 16px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.related-articles ul {
  list-style: none;
  padding: 0;
}
.related-articles li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.related-articles .date {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ===== フッター ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
  background: var(--bg-soft);
}
footer nav {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}
footer nav a {
  color: var(--text-sub);
}

/* ===== VS / 勝敗マトリクス ===== */
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; white-space: nowrap; }
.matrix .dmm { background: #fff6f6; }
.matrix th.dmm { color: var(--accent); }
.matrix tr.total td { font-weight: 700; background: var(--bg-soft); }
.matrix tr.total td.dmm { background: #ffecec; }
.mark-win { color: var(--accent); font-weight: 700; }

.vs {
  margin: 28px 0;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
}
.vs-head {
  background: var(--cta-bg);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 12px 16px;
}
.vs-head .vs-mark { color: #ff7a7a; font-style: italic; margin: 0 10px; }
.vs-body { padding: 4px 16px 14px; }
.vs-verdict {
  font-weight: 700;
  margin: 14px 0 10px;
  padding: 10px 12px;
  background: #fff6f6;
  border-left: 3px solid var(--accent);
  font-size: 14px;
}
.vs-body ul { margin: 10px 0; }
.vs-foot { font-size: 13px; color: var(--text-sub); margin: 10px 0 2px; }
.vs + .cta, .vs-body + .cta { margin-top: 16px; }

/* ===== レスポンシブ ===== */
@media (min-width: 768px) {
  html { font-size: 15px; }
  body { font-size: 15px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 17px; }
  main { padding: 24px 24px 80px; }
}
