/* Mortfolio 記事ページ共通スタイル（静的HTML用・アプリのテーマに合わせる） */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-faint: #64748b;
  --invest: #10b981;
  --invest-d: #059669;
  --loan: #ef4444;
  --loan-d: #dc2626;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius: 14px;
  --font: "Zen Kaku Gothic New", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  line-height: 1.9; -webkit-font-smoothing: antialiased; font-size: 16px;
}
a { color: var(--invest-d); }

/* ヘッダ */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.site-header .inner {
  max-width: 820px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--invest), var(--invest-d) 60%, #047857);
  color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center;
}
.brand b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.header-cta {
  background: var(--invest); color: #fff; text-decoration: none; font-weight: 700;
  font-size: 13.5px; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}

/* 本体 */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.breadcrumb { font-size: 12.5px; color: var(--ink-faint); margin: 18px 0 8px; }
.breadcrumb a { color: var(--ink-faint); }
article { padding: 8px 0 40px; }
h1 {
  font-size: clamp(24px, 4.5vw, 32px); font-weight: 800; line-height: 1.45;
  letter-spacing: -0.01em; margin: 6px 0 6px;
}
.meta { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 22px; }
h2 {
  font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 40px 0 14px;
  padding-left: 12px; border-left: 5px solid var(--invest); line-height: 1.5;
}
h3 { font-size: 17px; font-weight: 800; margin: 26px 0 10px; }
p { margin: 14px 0; }
ul, ol { margin: 14px 0; padding-left: 1.4em; }
li { margin: 7px 0; }
strong { font-weight: 800; }

/* 3行結論ボックス（AI Overview・スニペット狙い） */
.tldr { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.4); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; }
.tldr-h { font-weight: 800; font-size: 13px; color: var(--invest-d); letter-spacing: 0.04em; margin-bottom: 8px; }
.tldr ul { list-style: none; margin: 0; padding: 0; }
.tldr li { padding-left: 24px; position: relative; margin: 9px 0; font-weight: 600; line-height: 1.7; }
.tldr li::before { content: "✓"; position: absolute; left: 0; color: var(--invest-d); font-weight: 800; }

/* 結論リード */
.lead {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-left: 5px solid var(--invest); border-radius: var(--radius);
  padding: 18px 20px; margin: 18px 0 8px; font-size: 16.5px;
}
.lead strong { color: var(--invest-d); }

/* 比較表（Featured Snippet・AI引用狙い） */
.cmp { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.cmp th, .cmp td { border: 1px solid var(--border-strong); padding: 10px 12px; text-align: center; }
.cmp thead th { background: var(--surface-2); font-weight: 800; }
.cmp tbody th { text-align: left; background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.cmp .good { color: var(--invest-d); font-weight: 700; }
@media (max-width: 560px) { .cmp { font-size: 12.5px; } .cmp th, .cmp td { padding: 8px 6px; } }

/* CTA */
.cta-box {
  margin: 30px 0; padding: 22px 20px; text-align: center;
  background: rgba(16, 185, 129, 0.07); border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius);
}
.cta-box p { margin: 0 0 14px; font-weight: 700; }
.cta-btn {
  display: inline-block; background: var(--invest); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 16px; padding: 14px 30px; border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.6);
}
.cta-note { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-faint); }

/* 注記・免責 */
.note {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 13.5px; color: var(--ink-soft); margin: 18px 0;
}

/* FAQ */
.faq { margin-top: 40px; }
.faq h2 { margin-bottom: 8px; }
.faq-item { border-top: 1px solid var(--border); padding: 16px 0; }
.faq-q { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.faq-a { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* 関連リンク */
.related { margin: 40px 0 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.related h2 { margin: 0 0 12px; font-size: 16px; border: 0; padding: 0; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin: 8px 0; }
.related a { font-weight: 700; }

/* フッタ */
.site-footer {
  margin-top: 48px; padding: 22px 20px 40px; text-align: center;
  color: var(--ink-faint); font-size: 12px; border-top: 1px solid var(--border);
}
.site-footer a { color: var(--ink-faint); }
