/*
Theme Name: Skill OPTION (BlankSlate Child)
Theme URI: https://example.com/
Description: スキルOPTION用 BlankSlate子テーマ
Template: blankslate
Version: 1.0.0
*/
/* =========================================================
   スキルOPTION style.css
   モバイルファースト / ブレイクポイント: 768px, 1024px
   WordPress利用時: 子テーマのstyle.css または
   「外観 > カスタマイズ > 追加CSS」に貼り付けて調整してください
========================================================= */

/* ---------- 変数(カラールール) ---------- */
:root {
  --c-bg:        #ffffff;  /* ベース */
  --c-bg-sub:    #eef4f9;  /* サブ背景(薄ブルー) */
  --c-ink:       #253746;  /* 本文テキスト */
  --c-primary:   #2f7dd1;  /* メインカラー(ブルー) */
  --c-primary-d: #1d5fa8;  /* ブルー濃 */
  --c-accent:    #ffd54d;  /* アクセント(マーカー黄) */
  --c-muted:     #7d8b98;  /* 補助テキスト */
  --c-line:      #dfe7ee;  /* 罫線 */
  --radius: 12px;
  --shadow: 0 2px 10px rgba(37, 55, 70, .08);
  --font-body: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-head: 'Zen Kaku Gothic New', var(--font-body);
  --font-en:   'Montserrat', sans-serif;
}

/* ---------- リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 58px; /* スマホ固定ナビぶん */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
}
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sp-only { display: inline; }

/* ---------- 共通パーツ ---------- */
.sec-eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--c-primary);
  text-align: center;
}
.sec-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  text-align: center;
  margin: 4px 0 28px;
}
.marker {
  background: linear-gradient(transparent 62%, var(--c-accent) 62%);
  padding: 0 2px;
}
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-d); }
.btn-ghost { background: #fff; color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn-outline { border: 2px solid var(--c-ink); color: var(--c-ink); background: #fff; }
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
}
.site-logo { display: flex; flex-direction: column; line-height: 1.3; }
.logo-sub { font-size: 10px; color: var(--c-muted); letter-spacing: .05em; }
.logo-main {
  font-family: var(--font-head);
  font-weight: 900; font-size: 20px;
}
.logo-main em {
  font-family: var(--font-en); font-style: normal;
  color: var(--c-primary);
}

/* ハンバーガー */
.menu-toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
}
.menu-bar {
  width: 22px; height: 2px; background: var(--c-ink);
  transition: transform .3s, opacity .3s;
}
.nav-open .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-bar:nth-child(2) { opacity: 0; }
.nav-open .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.global-nav {
  position: fixed; inset: 0; top: 61px;
  background: #fff;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.nav-open .global-nav { transform: translateX(0); }
.global-nav ul { padding: 12px 20px; }
.global-nav li { border-bottom: 1px solid var(--c-line); }
.global-nav a {
  display: block; padding: 15px 4px; font-weight: 500;
}
.global-nav a:hover { color: var(--c-primary); }

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(160deg, var(--c-bg-sub) 0%, #dcebf8 55%, #cfe4f6 100%);
  padding: 44px 0 52px;
  overflow: hidden;
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hero-eyebrow {
  font-family: var(--font-en); font-weight: 700;
  font-size: 12px; letter-spacing: .25em; color: var(--c-primary);
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 900; font-size: 28px; line-height: 1.5;
  margin: 10px 0 16px;
}
.hero-lead { font-size: 14px; color: #3d4f5e; }
.hero-lead strong { color: var(--c-primary-d); }

/* 選択肢マップ(独自要素) */
.option-map {
  margin: 28px 0 30px;
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
}
.option-now {
  align-self: center;
  background: var(--c-ink); color: #fff;
  font-weight: 700; font-size: 13px; text-align: center; line-height: 1.4;
  width: 92px; height: 92px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.option-arrow {
  align-self: center;
  width: 2px; height: 22px;
  background: var(--c-primary);
  position: relative;
}
.option-arrow::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--c-primary);
}
.option-list { display: grid; gap: 10px; }
.option-item {
  background: #fff; border: 1px solid var(--c-line);
  border-left: 5px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.option-num {
  font-family: var(--font-en); font-size: 10px; letter-spacing: .15em;
  color: var(--c-primary);
}
.option-item small {
  font-family: var(--font-body); font-weight: 400;
  font-size: 12px; color: var(--c-muted);
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 共感セクション ---------- */
.worry { padding: 56px 0; }
.worry-list { max-width: 620px; margin: 0 auto; display: grid; gap: 12px; }
.worry-list li {
  background: var(--c-bg-sub);
  border-radius: var(--radius);
  padding: 14px 16px 14px 46px;
  position: relative; font-size: 14px;
}
.worry-list li::before {
  content: "✓";
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.worry-msg { text-align: center; margin-top: 26px; font-size: 14px; }

/* ---------- カード共通 ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(37,55,70,.14); }
.card-thumb {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
}
.thumb-label {
  font-family: var(--font-head); font-weight: 900;
  color: rgba(255,255,255,.92); font-size: 20px; letter-spacing: .08em;
}
/* ダミーサムネイル(実運用ではアイキャッチ画像に差し替え) */
.thumb-a { background: linear-gradient(135deg, #2f7dd1, #6db3ef); }
.thumb-b { background: linear-gradient(135deg, #1fa8a0, #6fd6c2); }
.thumb-c { background: linear-gradient(135deg, #f0932b, #ffd54d); }
.thumb-d { background: linear-gradient(135deg, #4a5fc1, #8f9ff0); }
.thumb-e { background: linear-gradient(135deg, #5a6b7a, #9db2c2); }
.card-body { padding: 14px 16px 16px; }
.cat-badge {
  display: inline-block;
  background: var(--c-primary); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
}
.card-title { font-size: 14px; font-weight: 700; line-height: 1.6; margin: 8px 0 6px; }
.card-date { font-size: 12px; color: var(--c-muted); }

/* ---------- ピックアップ(横スクロール) ---------- */
.pickup { background: var(--c-bg-sub); padding: 56px 0; }
.pickup-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.pickup-scroller .card { scroll-snap-align: start; }

/* ---------- カテゴリ ---------- */
.category { padding: 56px 0; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.category-card {
  border-radius: var(--radius);
  padding: 20px 16px;
  color: #fff;
  display: flex; flex-direction: column; gap: 4px;
  min-height: 110px;
  transition: transform .25s, box-shadow .25s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-name { font-family: var(--font-head); font-weight: 900; font-size: 17px; }
.category-desc { font-size: 11px; opacity: .9; line-height: 1.5; }
.cat-skill  { background: linear-gradient(135deg, #2f7dd1, #5fa4e6); }
.cat-career { background: linear-gradient(135deg, #4a5fc1, #7c8ee8); }
.cat-side   { background: linear-gradient(135deg, #e8871e, #f5b93c); }
.cat-free   { background: linear-gradient(135deg, #1fa8a0, #4cc7b6); }

/* ---------- 新着記事 ---------- */
.new-posts { background: var(--c-bg-sub); padding: 56px 0; }
.post-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.more-wrap { text-align: center; margin-top: 30px; }

/* ---------- ランキング ---------- */
.ranking { padding: 56px 0; }
.rank-list { max-width: 620px; margin: 0 auto; }
.rank-list li { border-bottom: 1px solid var(--c-line); }
.rank-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px; font-size: 14px; font-weight: 500;
}
.rank-list a:hover { color: var(--c-primary); }
.rank-num {
  flex: 0 0 30px; height: 30px;
  background: var(--c-ink); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 700; font-size: 14px;
}
.rank-list li:nth-child(1) .rank-num { background: #d4a017; }
.rank-list li:nth-child(2) .rank-num { background: #8f9aa5; }
.rank-list li:nth-child(3) .rank-num { background: #b0713a; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--c-primary-d), var(--c-primary));
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.cta-title { font-family: var(--font-head); font-weight: 900; font-size: 24px; margin-bottom: 14px; }
.cta-title .marker { color: var(--c-ink); }
.cta-text { font-size: 14px; max-width: 560px; margin: 0 auto 26px; }
.cta .btn-primary { background: var(--c-accent); color: var(--c-ink); }
.cta .btn-primary:hover { background: #ffdf75; }

/* ---------- フッター ---------- */
.site-footer { background: var(--c-ink); color: #fff; padding: 40px 0 30px; }
.footer-inner { text-align: center; }
.footer-logo { font-family: var(--font-head); font-weight: 900; font-size: 20px; }
.footer-logo em { font-family: var(--font-en); font-style: normal; color: var(--c-accent); }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin: 18px 0;
}
.footer-nav a { font-size: 12px; color: #c6d2dc; }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: 11px; color: #93a4b2; }

/* ---------- スマホ固定ナビ ---------- */
.sp-fixed-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--c-line);
}
.sp-fixed-nav a {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0 9px;
  font-size: 10px; color: var(--c-muted);
}
.sp-fixed-nav a:active, .sp-fixed-nav a:hover { color: var(--c-primary); }
.sp-nav-icon { font-size: 17px; line-height: 1.2; }

/* =========================================================
   タブレット (768px〜)
========================================================= */
@media (min-width: 768px) {
  body { font-size: 16px; padding-bottom: 0; }
  .sp-only { display: none; }
  .sp-fixed-nav { display: none; }

  .sec-title { font-size: 28px; }
  .hero { padding: 70px 0 80px; }
  .hero-title { font-size: 40px; }
  .hero-lead { font-size: 15px; }

  .option-map {
    flex-direction: row; align-items: center; gap: 0;
    margin: 36px 0;
  }
  .option-now { flex: 0 0 110px; height: 110px; font-size: 14px; }
  .option-arrow {
    width: 46px; height: 2px; margin: 0 6px;
  }
  .option-arrow::after {
    left: auto; right: -2px; bottom: 50%;
    transform: translateY(50%);
    border: 6px solid transparent; border-left-color: var(--c-primary);
  }
  .option-list { flex: 1; grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .pickup-scroller {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-title { font-size: 30px; }

  /* PCナビ */
  .menu-toggle { display: none; }
  .global-nav {
    position: static; transform: none; background: none; overflow: visible;
  }
  .global-nav ul { display: flex; gap: 4px; padding: 0; }
  .global-nav li { border: none; }
  .global-nav a {
    padding: 8px 12px; font-size: 14px; border-radius: 8px;
  }
  .global-nav a:hover { background: var(--c-bg-sub); }
}

/* =========================================================
   PC (1024px〜)
========================================================= */
@media (min-width: 1024px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { display: block; }
  .card-title { font-size: 15px; }
}

/* ---------- アクセシビリティ:モーション低減 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- WordPress用追加調整 ---------- */
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-thumb { position: relative; overflow: hidden; }

/* =========================================================
   ロードマップページ
========================================================= */

/* ---------- ページヘッダー ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--c-bg-sub) 0%, #dcebf8 55%, #cfe4f6 100%);
  text-align: center;
  padding: 44px 20px 40px;
}
.page-hero-eyebrow {
  font-family: var(--font-en); font-weight: 700;
  font-size: 12px; letter-spacing: .25em; color: var(--c-primary);
}
.page-hero-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: 26px; line-height: 1.5; margin: 8px 0 12px;
}
.page-hero-lead { font-size: 14px; color: #3d4f5e; max-width: 620px; margin: 0 auto; }

/* ---------- 現在地チェック ---------- */
.current-check { padding: 40px 0 8px; }
.current-check-title {
  text-align: center; font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.current-check-grid {
  display: grid; gap: 10px;
  max-width: 720px; margin: 0 auto;
}
.current-check-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 2px solid var(--c-line);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 13px; font-weight: 500;
  transition: border-color .2s, transform .2s;
}
.current-check-btn:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.current-check-btn .go {
  flex: none;
  font-family: var(--font-en); font-weight: 700; font-size: 11px;
  color: var(--c-primary); white-space: nowrap;
}

/* ---------- ステップタイムライン ---------- */
.roadmap { background: var(--c-bg-sub); padding: 56px 0 40px; margin-top: 40px; }
.step-list {
  position: relative;
  max-width: 720px; margin: 0 auto;
  padding-left: 0;
}
.step-list::before {
  content: "";
  position: absolute; left: 23px; top: 10px; bottom: 30px;
  width: 3px; background: #c3d6e6;
  border-radius: 2px;
}
.step-item {
  position: relative;
  padding: 0 0 36px 64px;
  scroll-margin-top: 80px; /* 固定ヘッダーぶん */
}
.step-marker {
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.1;
  box-shadow: 0 0 0 4px var(--c-bg-sub);
}
.step-marker span {
  font-family: var(--font-en); font-weight: 600; font-size: 8px; letter-spacing: .1em;
}
.step-marker strong { font-family: var(--font-en); font-weight: 700; font-size: 18px; }
.step-item.is-goal .step-marker { background: var(--c-accent); color: var(--c-ink); }

.step-head { margin-bottom: 10px; }
.step-period {
  display: inline-block;
  background: var(--c-ink); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
  margin-bottom: 6px;
}
.step-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: 19px; line-height: 1.5;
}
.step-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}
.step-goal {
  background: var(--c-bg-sub);
  border-left: 4px solid var(--c-primary);
  border-radius: 6px;
  font-size: 13px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.step-goal strong { color: var(--c-primary-d); }
.step-desc { font-size: 13px; color: #3d4f5e; margin-bottom: 12px; }

.task-list { display: grid; gap: 8px; }
.task-list li {
  position: relative;
  padding-left: 30px;
  font-size: 13px; line-height: 1.7;
}
.task-list li::before {
  content: "";
  position: absolute; left: 2px; top: 4px;
  width: 16px; height: 16px;
  border: 2px solid var(--c-primary);
  border-radius: 4px;
  background: #fff;
}
.task-list li::after {
  content: "✓";
  position: absolute; left: 5px; top: 1px;
  font-size: 12px; font-weight: 700; color: var(--c-primary);
}

.related-links { margin-top: 14px; border-top: 1px dashed var(--c-line); padding-top: 12px; }
.related-links p {
  font-family: var(--font-en); font-weight: 700;
  font-size: 10px; letter-spacing: .15em; color: var(--c-muted);
  margin-bottom: 4px;
}
.related-links a {
  display: block;
  font-size: 13px; font-weight: 500; color: var(--c-primary-d);
  padding: 4px 0 4px 18px;
  position: relative;
}
.related-links a::before {
  content: "»";
  position: absolute; left: 0; top: 4px;
  color: var(--c-primary);
}
.related-links a:hover { text-decoration: underline; }

/* ---------- よくある質問 ---------- */
.faq { padding: 56px 0; }
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 44px 14px 16px;
  font-weight: 700; font-size: 14px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  font-family: var(--font-en); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.faq-item summary::after {
  content: "+";
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px; color: var(--c-muted);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer {
  padding: 0 16px 16px 52px;
  font-size: 13px; color: #3d4f5e;
}

/* ---------- ページ下CTA ---------- */
.roadmap-cta { text-align: center; padding: 0 0 64px; }
.roadmap-cta-title {
  font-family: var(--font-head); font-weight: 900; font-size: 20px;
  margin-bottom: 18px;
}
.roadmap-cta .hero-btns { justify-content: center; }

@media (min-width: 768px) {
  .page-hero { padding: 64px 20px 56px; }
  .page-hero-title { font-size: 36px; }
  .current-check-grid { grid-template-columns: repeat(3, 1fr); }
  .current-check-btn { flex-direction: column; align-items: flex-start; font-size: 14px; }
  .step-list::before { left: 27px; }
  .step-marker { width: 56px; height: 56px; }
  .step-marker span { font-size: 9px; }
  .step-marker strong { font-size: 22px; }
  .step-item { padding-left: 80px; }
  .step-title { font-size: 22px; }
  .step-desc, .task-list li, .step-goal { font-size: 14px; }
}

/* =========================================================
   記事詳細ページ
========================================================= */

/* ---------- パンくず ---------- */
.breadcrumb {
  max-width: 800px; margin: 0 auto;
  padding: 12px 20px 0;
  font-size: 11px; color: var(--c-muted);
  display: flex; flex-wrap: wrap; gap: 4px;
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); text-decoration: underline; }
.breadcrumb .sep::before { content: "›"; padding: 0 2px; }

/* ---------- 記事ヘッダー ---------- */
.post { max-width: 800px; margin: 0 auto; padding: 16px 20px 56px; }
.post-header { margin-bottom: 20px; }
.post-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: 24px; line-height: 1.55;
  margin: 10px 0 12px;
}
.post-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--c-muted);
}
.post-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 目次(SWELL風) ---------- */
.toc {
  background: var(--c-bg-sub);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 34px;
}
.toc-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: 15px; text-align: center;
  margin-bottom: 12px;
  color: var(--c-primary-d);
}
.toc ol {
  counter-reset: toc;
  display: grid; gap: 6px;
}
.toc ol li { counter-increment: toc; font-size: 13px; }
.toc ol li::before {
  content: counter(toc) ".";
  font-family: var(--font-en); font-weight: 700;
  color: var(--c-primary); margin-right: 8px;
}
.toc ol ol { margin: 6px 0 0 22px; counter-reset: toc2; }
.toc ol ol li { counter-increment: toc2; }
.toc ol ol li::before { content: counter(toc) "-" counter(toc2) "."; }
.toc a:hover { color: var(--c-primary); text-decoration: underline; }

/* ---------- 本文 ---------- */
.post-content { font-size: 15px; line-height: 2; }
.post-content > * + * { margin-top: 1.4em; }
.post-content h2 {
  font-family: var(--font-head); font-weight: 900;
  font-size: 20px; line-height: 1.5;
  background: var(--c-bg-sub);
  border-left: 6px solid var(--c-primary);
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 2.6em;
  scroll-margin-top: 80px;
}
.post-content h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 17px; line-height: 1.5;
  border-bottom: 3px solid var(--c-line);
  position: relative;
  padding: 0 2px 8px;
  margin-top: 2.2em;
  scroll-margin-top: 80px;
}
.post-content h3::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 80px; height: 3px;
  background: var(--c-primary);
}
.post-content strong { background: linear-gradient(transparent 62%, var(--c-accent) 62%); padding: 0 2px; }
.post-content ul { padding-left: 4px; display: grid; gap: 6px; }
.post-content ul li {
  position: relative; padding-left: 22px; line-height: 1.8;
}
.post-content ul li::before {
  content: "";
  position: absolute; left: 4px; top: .65em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-primary);
}
.post-content blockquote {
  background: var(--c-bg-sub);
  border-left: 4px solid var(--c-muted);
  border-radius: 6px;
  padding: 14px 18px;
  color: #4a5a68; font-size: 14px;
}

/* テーブル */
.post-content table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.post-content th, .post-content td {
  border: 1px solid var(--c-line);
  padding: 10px 12px;
  text-align: left; vertical-align: top;
}
.post-content th { background: var(--c-primary); color: #fff; font-weight: 700; }
.post-content tr:nth-child(even) td { background: var(--c-bg-sub); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 480px; }

/* ポイント・注意ボックス */
.box-point, .box-note {
  border-radius: var(--radius);
  padding: 42px 18px 16px;
  position: relative;
  font-size: 14px;
}
.box-point { background: #eaf3fc; border: 2px solid var(--c-primary); }
.box-note  { background: #fff7e0; border: 2px solid var(--c-accent); }
.box-point::before, .box-note::before {
  position: absolute; top: -1px; left: -1px;
  font-family: var(--font-en); font-weight: 700; font-size: 11px; letter-spacing: .12em;
  padding: 4px 14px;
  border-radius: 10px 0 10px 0;
  color: #fff;
}
.box-point::before { content: "POINT"; background: var(--c-primary); }
.box-note::before  { content: "CHECK"; background: #e8a200; }

/* ステップ小見出し(記事内) */
.content-step {
  display: inline-block;
  background: var(--c-ink); color: #fff;
  font-family: var(--font-en); font-weight: 700; font-size: 11px; letter-spacing: .12em;
  padding: 3px 12px; border-radius: 999px;
  margin-right: 8px; vertical-align: middle;
}

/* ワークシート(書き出し例) */
.worksheet {
  background: #fff;
  border: 2px dashed var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13.5px;
}
.worksheet p { margin: 0 0 6px; color: var(--c-muted); font-size: 12px; }
.worksheet li { list-style: none; }

/* ---------- タグ・シェア ---------- */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.post-tags a {
  font-size: 12px; color: var(--c-muted);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 3px 12px;
}
.post-tags a:hover { color: var(--c-primary); border-color: var(--c-primary); }
.post-share { margin-top: 22px; text-align: center; }
.post-share p {
  font-family: var(--font-en); font-weight: 700; font-size: 11px; letter-spacing: .18em;
  color: var(--c-muted); margin-bottom: 10px;
}
.share-btns { display: flex; justify-content: center; gap: 10px; }
.share-btns a {
  flex: 1; max-width: 160px;
  font-size: 13px; font-weight: 700; color: #fff;
  text-align: center; padding: 10px 0;
  border-radius: 8px;
  transition: opacity .2s;
}
.share-btns a:hover { opacity: .85; }
.share-x    { background: #1a1a1a; }
.share-line { background: #06c755; }
.share-copy { background: var(--c-muted); }

/* ---------- 記事下CTA(ロードマップ誘導) ---------- */
.post-cta {
  background: var(--c-bg-sub);
  border-radius: var(--radius);
  text-align: center;
  padding: 26px 20px;
  margin-top: 36px;
}
.post-cta-title { font-family: var(--font-head); font-weight: 900; font-size: 17px; margin-bottom: 8px; }
.post-cta p { font-size: 13px; color: #3d4f5e; margin-bottom: 16px; }

/* ---------- 著者ボックス ---------- */
.author-box {
  display: flex; gap: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 36px;
}
.author-avatar {
  flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), #6db3ef);
  color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.author-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 700; font-size: 14px; }
.author-name small { font-weight: 400; font-size: 11px; color: var(--c-muted); margin-left: 6px; }
.author-bio { font-size: 12.5px; color: #4a5a68; line-height: 1.8; margin-top: 4px; }

/* ---------- 前後の記事 ---------- */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 30px;
}
.post-nav a {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 12px; line-height: 1.6;
  transition: border-color .2s;
}
.post-nav a:hover { border-color: var(--c-primary); }
.post-nav .nav-label {
  display: block;
  font-family: var(--font-en); font-weight: 700; font-size: 10px; letter-spacing: .12em;
  color: var(--c-primary); margin-bottom: 4px;
}
.post-nav .nav-next { text-align: right; }

/* ---------- 関連記事 ---------- */
.related-posts { background: var(--c-bg-sub); padding: 50px 0 60px; }

@media (min-width: 768px) {
  .post-title { font-size: 32px; }
  .post-content { font-size: 16px; }
  .post-content h2 { font-size: 24px; }
  .post-content h3 { font-size: 20px; }
  .toc { padding: 26px 32px; }
  .toc ol li { font-size: 14px; }
  .box-point, .box-note { padding: 46px 22px 18px; font-size: 15px; }
}

/* =========================================================
   記事内 関連記事カード(ブログカード)
   使い方:記事本文(カスタムHTMLブロック)内に
   related-card のHTMLを貼り付けて使用します
========================================================= */

.related-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 16px 14px;
  margin-top: 2.2em; /* ラベルが上のボーダーに重なるぶんの余白 */
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.related-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ラベル(枠線の上に乗る) */
.related-card-label {
  position: absolute;
  top: -13px; left: 14px;
  background: var(--c-primary);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 14px;
  border-radius: 999px;
  line-height: 1.5;
}

/* サムネイル(画像でもダミーグラデーションでも可) */
.related-card-thumb {
  flex: none;
  width: 100px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.related-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* ダミーサムネ使用時のラベル文字を小さく */
.related-card-thumb .thumb-label { font-size: 11px; letter-spacing: .04em; }

/* テキスト部分 */
.related-card-body { min-width: 0; }
.related-card-title {
  display: block;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink);
}
.related-card:hover .related-card-title { color: var(--c-primary-d); }
.related-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.7;
  margin-top: 4px;
}

/* 矢印 */
.related-card::after {
  content: "»";
  flex: none;
  margin-left: auto;
  color: var(--c-primary);
  font-size: 18px;
  transition: transform .25s;
}
.related-card:hover::after { transform: translateX(4px); }

/* マーカー装飾を打ち消す(post-content strong の影響回避) */
.post-content .related-card-title strong,
.related-card-title strong { background: none; padding: 0; }

/* ---------- サムネイルなしのシンプル版 ---------- */
.related-card--simple { padding: 18px 16px 13px; }
.related-card--simple .related-card-thumb { display: none; }

/* ---------- 連続配置用(2枚以上並べる場合の間隔) ---------- */
.related-card + .related-card { margin-top: 26px; }

@media (min-width: 768px) {
  .related-card { gap: 18px; padding: 24px 20px 18px; }
  .related-card-thumb { width: 168px; }
  .related-card-title { font-size: 15.5px; }
  .related-card-excerpt { font-size: 13px; }
  .related-card-label { font-size: 12px; }
}





