/* =============================================
   マネーコンパス 記事共通スタイル
   カラー: Navy #1a3360 / Gold #c8920a / Red #c9303a
============================================= */

:root {
  --navy:  #1a3360;
  --navyd: #0e1e3d;
  --gold:  #c8920a;
  --goldl: #e8a81e;
  --red:   #c9303a;
  --bg:    #f0f2f6;
  --card:  #ffffff;
  --border:#d4d9e6;
  --text:  #18243c;
  --sub:   #52637a;
  --muted: #8898b0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0c1120; --card:#131d32; --border:#1e2d48;
    --text:#d8e4f4; --sub:#7a90b0; --muted:#445568;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.78;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

/* ── サイトヘッダー ── */
.site-header {
  background: var(--navyd);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
}
.hdr-in {
  max-width: 960px; margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; gap: 10px;
}
.site-logo {
  font-size: 19px; font-weight: 900; color: #fff !important;
  text-decoration: none !important; letter-spacing: -.01em;
}
.site-logo em { color: var(--goldl); font-style: normal; }
.hdr-tag { font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: .12em; }

/* ── ページラッパー ── */
.page-wrap {
  max-width: 820px; margin: 36px auto 64px;
  padding: 0 20px;
}

/* ── 記事ヘッダー ── */
article h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
  text-wrap: balance;
}

.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.meta-author { font-weight: 700; color: var(--sub); }

/* ── 本文 ── */
article p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.82;
}

article h2 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 900;
  color: var(--navy);
  margin: 40px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
  line-height: 1.4;
}

article h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 28px 0 10px;
  display: flex; align-items: center; gap: 6px;
}
article h3::before {
  content: '';
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold); flex-shrink: 0;
}

article h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 20px 0 8px;
}

/* ── リスト ── */
article ul, article ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
article li {
  margin-bottom: 6px;
  line-height: 1.72;
}
article ul li::marker { color: var(--gold); }

/* ── テーブル ── */
.table-wrap { overflow-x: auto; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }

article table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px;
  background: var(--card);
}
article table th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: .04em;
}
article table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}
article table td:last-child { border-right: none; }
article table tr:last-child td { border-bottom: none; }
article table tr:nth-child(even) td { background: var(--bg); }

/* テーブルをラップ（JSなしでレスポンシブ） */
article table { display: block; overflow-x: auto; }

/* ── インラインアフィリエイトリンク ── */
a.inline-aff {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  font-size: 13px; font-weight: 800;
  padding: 8px 18px; border-radius: 6px;
  text-decoration: none !important;
  margin: 4px 0;
  transition: filter .15s;
}
a.inline-aff:hover { filter: brightness(1.1); }

/* ── リードセクション ── */
.lead-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 14.5px;
}
.lead-section p { margin-bottom: 0; }

/* ── アフィリエイトCTAブロック ── */
.affiliate-cta-block {
  background: var(--navy);
  border-radius: 10px;
  padding: 24px 22px;
  margin: 40px 0 28px;
  text-align: center;
}
.cta-lead {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  margin-bottom: 16px;
}
.cta-row {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.cta-btn {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--red);
  color: #fff !important;
  font-size: 14px; font-weight: 900;
  padding: 12px 22px; border-radius: 8px;
  text-decoration: none !important;
  min-width: 160px;
  transition: filter .15s;
  line-height: 1.3;
}
.cta-btn:hover { filter: brightness(1.12); }
.cta-btn small { font-size: 10px; font-weight: 400; opacity: .85; margin-top: 3px; }
.cta-btn-2 { background: #1a5296; }
.cta-btn-3 { background: #1a6a3e; }

/* ── 注意書き ── */
.article-disclaimer {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px 15px;
  line-height: 1.9;
  margin-top: 20px;
}

/* ── フッター ── */
.site-footer {
  background: var(--navyd);
  padding: 32px 20px 20px;
  text-align: center;
}
.ftr-in { max-width: 960px; margin: 0 auto; }
.ftr-logo {
  font-size: 17px; font-weight: 900; color: #fff !important;
  text-decoration: none !important; display: inline-block; margin-bottom: 10px;
}
.ftr-logo em { color: var(--goldl); font-style: normal; }
.ftr-nav {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center; margin: 10px 0 14px;
}
.ftr-nav a {
  font-size: 11px; color: rgba(255,255,255,.45);
  transition: color .15s; text-decoration: none;
}
.ftr-nav a:hover { color: var(--goldl); }
.ftr-note { font-size: 11px; color: rgba(255,255,255,.25); line-height: 1.8; }

/* ── レスポンシブ ── */
@media (max-width: 600px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-btn { min-width: unset; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
