/* =========================================================
   Shift Guide Life - 共通スタイル
   30代・子育て中の女性向け｜やさしく清潔感のあるトーン
   スマホ優先 / カード型レイアウト
   ========================================================= */

:root {
  --bg: #fff8f1;          /* 明るいクリーム背景 */
  --bg-soft: #fdeee3;     /* やわらかいベージュ */
  --card: #ffffff;        /* 白カード */
  --navy: #4a5a72;        /* やわらかいネイビー */
  --navy-deep: #2f3a4a;   /* メイン文字・見出し */
  --footer: #3b4a5f;      /* 重すぎない落ち着いたネイビー */
  --beige: #f1e3d4;       /* ベージュ */
  --accent: #e07a5f;      /* あたたかいテラコッタ（CTA） */
  --accent-deep: #cf6a50; /* CTAホバー */
  --accent-soft: #f7ded6; /* 薄いアクセント背景 */
  --text: #3a4350;        /* 本文 */
  --muted: #7e8794;       /* 補足テキスト */
  --line: #efe3d6;        /* 罫線 */
  --radius: 14px;
  --shadow: 0 4px 18px rgba(60, 74, 99, 0.06);
  --shadow-cta: 0 6px 18px rgba(224, 122, 95, 0.32);
  --maxw: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }

/* ---------- レイアウト ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 40px 0; }
.section-sm { padding: 26px 0; }

/* ---------- PR表記バー ---------- */
.pr-bar {
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
}
.nav a:hover { color: var(--accent); }

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  padding: 46px 0 40px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 24px;
  line-height: 1.5;
  color: var(--navy-deep);
  margin: 0 0 14px;
}
.hero p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 auto;
  max-width: 620px;
}

/* ---------- 見出し ---------- */
h2.head {
  font-size: 20px;
  color: var(--navy-deep);
  margin: 0 0 6px;
  line-height: 1.5;
}
h2.head + .lead { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

h3.sub {
  font-size: 17px;
  color: var(--navy);
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-right: 8px;
  flex: none;
}

/* ---------- カード ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 16px;
}
.card h3 { margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 620px) {
  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* カテゴリカード（リンク） */
a.cat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(60, 74, 99, 0.12);
}
.tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
a.cat-card h3 { color: var(--navy-deep); font-size: 17px; margin: 0 0 8px; }
a.cat-card p { color: var(--muted); font-size: 14px; margin: 0; }
a.cat-card .more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}
/* 主力LPへ誘導する目立たせカード */
a.cat-card.featured {
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%);
  border: 1.5px solid var(--accent);
}
a.cat-card.featured .tag { background: var(--accent); color: #fff; }
.cat-card .card-btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-cta);
}
a.cat-card.featured:hover .card-btn { background: var(--accent-deep); }

/* ---------- ハイライト / 結論ボックス ---------- */
.callout {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0;
}
.callout.navy { background: var(--navy); color: #fff; }
.callout.navy h3 { color: #fff; }
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; color: var(--navy-deep); }

.give-box {
  background: var(--card);
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
}
.give-box .label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- リスト ---------- */
ul.check, ul.plain { list-style: none; padding-left: 0; margin: 12px 0; }
ul.check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
ul.check li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
ul.plain li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
ul.plain li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 620px) { .two-col { grid-template-columns: 1fr 1fr; } }

.pros { border-top: 3px solid var(--navy); }
.cons { border-top: 3px solid var(--accent); }

/* 投稿ネタなど番号付きチップ */
.idea-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  counter-reset: idea;
}
@media (min-width: 560px) { .idea-grid { grid-template-columns: 1fr 1fr; } }
.idea-grid li {
  list-style: none;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  position: relative;
  font-size: 14px;
}
.idea-grid li::before {
  counter-increment: idea;
  content: counter(idea);
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- CTA ボタン ---------- */
.cta-wrap { text-align: center; margin: 26px 0; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 34px;
  border-radius: 999px;
  box-shadow: var(--shadow-cta);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: var(--accent-deep); }
.btn.navy { background: var(--navy); box-shadow: var(--shadow); }
.btn.navy:hover { background: var(--navy-deep); }
.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--navy); color: #fff; }
.cushion {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 22px 0 -6px;
}
.btn-note { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- LINE 受け取り導線 ---------- */
.line-card {
  background: #eafaf0;
  border: 1px solid #bfe8cf;
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  margin: 20px 0;
  text-align: center;
}
.line-card .line-lead {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 15px;
  line-height: 1.7;
}
.btn-line {
  background: #06c755;
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.28);
}
.btn-line:hover { background: #05b34c; }

/* ---------- 注意書き / 免責 ---------- */
.notice {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0;
  line-height: 1.8;
}

/* ---------- FAQ ---------- */
.faq dt {
  font-weight: 700;
  color: var(--navy-deep);
  margin-top: 16px;
  position: relative;
  padding-left: 26px;
}
.faq dt::before {
  content: "Q";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}
.faq dd {
  margin: 6px 0 0 0;
  padding-left: 26px;
  color: var(--text);
  position: relative;
}
.faq dd::before {
  content: "A";
  position: absolute; left: 0;
  color: var(--navy);
  font-weight: 700;
}

/* ---------- 本文（法務ページなど） ---------- */
.prose h2 { font-size: 18px; color: var(--navy-deep); margin: 28px 0 8px; }
.prose h3 { font-size: 15px; color: var(--navy); margin: 20px 0 6px; }
.prose p, .prose li { font-size: 15px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.updated { font-size: 12px; color: var(--muted); }

/* ---------- パンくず ---------- */
.crumbs { font-size: 12px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- タブ切り替え ---------- */
.tabnav-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
}
.tabbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: sticky;
  top: 60px;
  z-index: 8;
  background: var(--bg);
  padding: 8px 0;
}
@media (min-width: 620px) { .tabbar { grid-template-columns: repeat(4, 1fr); } }
.tabbtn {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 11px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  line-height: 1.3;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.tabbtn:hover { border-color: var(--accent); }
.tabbtn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ---------- 目次 ---------- */
.toc {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
}
.toc strong { color: var(--navy-deep); display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--navy); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--accent); }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--footer);
  color: #d7dde7;
  margin-top: 40px;
  padding: 32px 0 26px;
  font-size: 13px;
}
.site-footer .brand-f {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
.site-footer p { margin: 6px 0; color: #aeb6c6; line-height: 1.8; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-links a { color: #cdd3df; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.copyright { color: #8993a8; font-size: 12px; margin-top: 14px; }

/* ---------- 今後追加予定ラベル ---------- */
.soon-note {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 5px 14px;
  border-radius: 999px;
  margin-top: 14px;
}

/* ---------- 診断（クイズ） ---------- */
.quiz-q {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 20px 8px;
  margin-bottom: 14px;
}
.quiz-q .qhead {
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 14px;
  display: flex;
  gap: 10px;
  line-height: 1.5;
}
.quiz-q .qno {
  flex: none;
  width: 26px; height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.quiz-options { display: grid; gap: 8px; margin-bottom: 14px; }
.quiz-opt {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  cursor: pointer;
  background: #fff;
  transition: border-color .12s ease, background .12s ease;
}
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
  color: var(--navy-deep);
}
.quiz-opt input { display: none; }

/* 診断でわかること */
.quiz-intro {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
}
.quiz-intro strong { color: var(--navy-deep); }
.quiz-intro ul { margin: 8px 0 0; }

/* 進捗バー */
.quiz-progress {
  position: sticky;
  top: 64px;
  z-index: 5;
  background: var(--bg);
  padding: 10px 0 8px;
  margin-bottom: 6px;
}
.quiz-progress .pbar {
  height: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress .pfill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .25s ease;
}
.quiz-progress .ptext {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 6px;
  text-align: center;
}
.quiz-hint { font-size: 13px; color: var(--muted); text-align: center; margin: 0 0 14px; }

/* 次の小さな一歩 */
.next15 {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 8px;
  font-size: 14px;
}
.next15 strong { color: var(--accent); display: block; margin-bottom: 4px; }

/* タイプ別比較表 */
.cmp-wrap { margin: 20px 0 4px; }
.cmp-wrap .cmp-title { font-weight: 700; color: var(--navy-deep); margin: 0 0 8px; font-size: 15px; }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cmp-table th, .cmp-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.cmp-table th { background: var(--bg-soft); color: var(--navy-deep); font-size: 12.5px; }
.cmp-table .cmp-type { font-weight: 700; color: var(--navy-deep); white-space: nowrap; }
.cmp-table tr.is-you { background: var(--accent-soft); }
.cmp-table tr.is-you .cmp-type { color: var(--accent); }
.cmp-table a { color: var(--accent); font-weight: 700; }
.cmp-youtag {
  display: inline-block;
  font-size: 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 4px;
  vertical-align: middle;
}

.quiz-result { display: none; margin-top: 24px; scroll-margin-top: 80px; }
.quiz-result.show { display: block; }
.result-card {
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.result-card .result-type {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.result-card h3 { margin: 0 0 10px; color: var(--navy-deep); font-size: 19px; }
.result-card .reason { color: var(--text); margin: 0 0 14px; }
.result-card .reco {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 8px;
  font-size: 14px;
}
.result-card .reco strong { color: var(--navy-deep); }
.quiz-redo {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--navy);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- ユーティリティ ---------- */
.text-center { text-align: center; }
.mt0 { margin-top: 0; }
.small { font-size: 13px; color: var(--muted); }
