/* キャリアラウンジ — 共通スタイル
   方針: 白背景ベース・高コントラスト・装飾控えめ・スマホ最適化 */

:root {
  --bg: #ffffff;
  --text: #1a1d24;
  --muted: #5a6270;
  --accent: #1a4d8f;          /* 信頼のネイビー（キャリア） */
  --accent-light: #eef4fb;
  --border: #e3e7ee;
  --cta: #e8641e;             /* 行動喚起（CTA）オレンジ */
  --cta-hover: #cf5313;
  --ad-bg: #fff7ed;
  --ad-text: #9a5b1c;
  --max: 1080px;
  --article: 720px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(4px); z-index: 20;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: .02em; }
.brand span { color: var(--accent); }
.nav a { color: var(--muted); font-size: 14px; margin-left: 18px; }
.nav a:hover { color: var(--accent); }
@media (max-width: 640px){ .nav a { margin-left: 12px; font-size: 13px; } .brand { font-size: 17px; } }

/* アフィリエイト開示バー（ステマ規制対応・全ページ表示） */
.disclosure {
  background: var(--ad-bg); color: var(--ad-text);
  font-size: 12.5px; text-align: center; padding: 6px 12px; border-bottom: 1px solid #f1e2cf;
}

/* ヒーロー */
.hero { background: linear-gradient(180deg, var(--accent-light), #fff); padding: 56px 0 40px; }
.hero h1 { font-size: 30px; line-height: 1.5; margin: 0 0 14px; letter-spacing: .01em; }
.hero p { color: var(--muted); font-size: 16px; margin: 0 auto; max-width: 640px; }
@media (max-width: 640px){ .hero h1 { font-size: 23px; } .hero { padding: 40px 0 28px; } }

/* セクション */
section { padding: 40px 0; }
h2.sec { font-size: 22px; margin: 0 0 6px; }
.sec-lead { color: var(--muted); margin: 0 0 24px; font-size: 15px; }

/* 記事カード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 18px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 22px rgba(26,77,143,.10); transform: translateY(-2px); }
.card a { display: block; color: inherit; }
.card .thumb { aspect-ratio: 16/9; background: var(--accent-light); display:flex; align-items:center; justify-content:center; color: var(--accent); font-weight:700; font-size:14px; }
.card .body { padding: 16px; }
.card .tag { display:inline-block; font-size: 11px; background: var(--accent-light); color: var(--accent); padding: 2px 8px; border-radius: 999px; margin-bottom: 8px; }
.card h3 { font-size: 16px; margin: 0 0 6px; line-height: 1.5; }
.card p { font-size: 13px; color: var(--muted); margin: 0; }

/* 記事本文 */
.article { max-width: var(--article); margin: 0 auto; padding: 36px 20px 56px; }
.article h1 { font-size: 27px; line-height: 1.5; margin: 0 0 10px; }
.article h2 { font-size: 21px; margin: 40px 0 12px; padding-left: 12px; border-left: 4px solid var(--accent); }
.article h3 { font-size: 17px; margin: 28px 0 8px; }
.article p, .article li { font-size: 15.5px; }
.meta-line { color: var(--muted); font-size: 13px; margin: 0 0 20px; }

/* 広告ラベル */
.ad-label { display:inline-block; font-size: 11px; color: #fff; background: var(--muted); padding: 2px 8px; border-radius: 4px; vertical-align: middle; }

/* 比較表 */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table.compare { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
table.compare th, table.compare td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
table.compare thead th { background: var(--accent); color: #fff; }
table.compare tbody tr:nth-child(even){ background: #fafbfd; }

/* CTA ボタン */
.cta {
  display: inline-block; background: var(--cta); color: #fff !important; font-weight: 700;
  padding: 14px 28px; border-radius: 999px; text-align: center; text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(232,100,30,.28); transition: background .15s, transform .1s;
}
.cta:hover { background: var(--cta-hover); transform: translateY(-1px); }
.cta.block { display: block; width: 100%; max-width: 420px; margin: 20px auto; }
.cta-note { text-align:center; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Fable5 コピー生成の空き枠 */
.slot { background: repeating-linear-gradient(45deg,#fff,#fff 10px,#fafafa 10px,#fafafa 20px);
  border: 1px dashed #c9a24a; border-radius: 8px; padding: 16px; margin: 14px 0; color: #8a6d2f; font-size: 14px; }
.slot::before { content: "✍️ Fable5コピー枠｜"; font-weight: 700; }

/* LP 用 */
.lp-hero { text-align: center; padding: 48px 20px 30px; background: linear-gradient(180deg,var(--accent-light),#fff); }
.lp-hero h1 { font-size: 28px; line-height: 1.5; max-width: 640px; margin: 0 auto 14px; }
.benefit { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; margin: 22px 0; }
.benefit .item { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.benefit .item h3 { margin: 0 0 6px; font-size: 16px; color: var(--accent); }
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 640px){ .lp-hero h1 { font-size: 22px; } }

/* フッター */
.site-footer { border-top: 1px solid var(--border); background: #f7f9fc; margin-top: 40px; padding: 30px 0; font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); margin-right: 16px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .disc { margin-top: 14px; font-size: 12px; }
.copyright { margin-top: 12px; }

/* モバイル: ナビ5タブを横スクロールで収める（レビューY-2） */
@media (max-width: 680px){
  .site-header .container { gap: 10px; }
  .nav { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 62%; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { margin-left: 12px; white-space: nowrap; }
  .nav a:first-child { margin-left: 0; }
}

/* カードサムネ画像（アイキャッチ差し込み） */
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* カテゴリセクションのアンカー着地調整（IA再構成） */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
