/* ==========================================================================
   Cloudory — シゴトのホントの意匠（BRUTUS準拠）を土台に、立場（audience）を色の単位にしたもの
   純白 #ffffff × 漆黒 #101010、雑誌グリッド、筑紫ゴシック風の重厚見出し、
   特集カテゴリカラー、暗色帯 #191919、英字+和文の対訳キャプション。
   商用フォント不使用: 和文=Noto Sans JP、欧文(Futura代替)=Jost。
   2026-09-26: 角丸・柔らかい影・下部ナビ（ドック）・スクロール連動の動きを足した。
   動きは assets/js/site.js が付ける .motion / .reveal / .is-in で出し分け、
   prefers-reduced-motion の人には出さない（最下部の「品質フロア」）。
   ========================================================================== */

:root {
  --ink:      #101010;   /* Brutus Ink（純黒ではなく僅かに浮いた漆黒） */
  --charcoal: #191919;   /* 暗色帯 */
  --footer:   #2a2f33;   /* Footer Slate 相当 */
  --muted:    #8a8a8a;
  --line:     #eaeaea;
  --bg:       #ffffff;
  --cream:    #f4f3ef;   /* WHAT'S NEW 帯 */
  --beige:    #e2dfd7;   /* RECOMMEND 帯 */

  /* 立場（audience）のカテゴリカラー。_data/audiences.yml のキーと対応。tools/visual/brand.mjs の CATS と同期 */
  --cat-mikeiken: #2a9d8f; /* Teal — 未経験 */
  --cat-gakushu:  #1f6feb; /* Blue — 学習中 */
  --cat-jitsumu:  #e76f51; /* Ember — 実務 */
  --cat-pro:      #5b3fa0; /* Violet — プロフェッショナル */
  --cat-default:  #52606d; /* 立場に属さない共通記事・全体地図のニュートラル面色 */

  /* 本文の色つき強調（mark.key-*）専用。カテゴリカラーとは独立した意味色 */
  --warn: #c1272d; /* 注意 */
  --info: #1f6feb; /* 情報 */
  --good: #1a7f37; /* ポジティブ */

  /* フォント（tools/visual/brand.mjs の FONT_* と同じ組み合わせ。両方を直す）
     本文 IBM Plex Sans JP / 見出し Zen Kaku Gothic New / 英字 Space Grotesk / 記号 JetBrains Mono */
  --font-jp: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  --font-en: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --maxw:      1160px;  /* home / hub（雑誌ワイド） */
  --maxw-read: 740px;   /* 記事本文・静的ページ */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);       /* せり上がり・シートの動き */
  --radius: 0;                                 /* 角は四角（罫線で区切る雑誌の組み） */
  --radius-lg: 0;
  --shadow: none;
  --shadow-lift: 0 14px 30px -18px rgba(16,16,16,.35);
  --dock-h: 60px;                              /* 下部ナビの高さ */
  --font-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;  /* 大見出し・題 */
}

/* ページ遷移のクロスフェード（対応ブラウザだけ。未対応ではただのページ遷移） */
@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: var(--font-jp);
  font-size: 16px; line-height: 1.5;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }  /* height:auto が無いと width/height属性の画像が潰れる */
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--cat-gakushu); }

main { max-width: var(--maxw-read); margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }
main.wide { max-width: var(--maxw); }

/* 見出し: 筑紫ゴシック風＝Noto Sans JP 太ウェイトで代替。palt不使用・letter-spacing normal */
h1, h2, h3, h4 { font-family: var(--font-jp); line-height: 1.4; color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 900; letter-spacing: .02em; }
h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); font-weight: 900; }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem); font-weight: 700; margin-top: 3rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin-top: 2rem; }

/* 雑誌シグネチャー: 英字（Futura代替=Jost）+ 和文（筑紫風=Noto Sans JP）の対訳キャプション */
.mag-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  margin: 0 0 1.2rem;
}
.mag-head .en {
  font-family: var(--font-en); font-weight: 700; text-transform: uppercase;
  letter-spacing: .24em; font-size: .78rem; line-height: 1;
  color: color-mix(in srgb, var(--cat, var(--ink)) 72%, #000);   /* 明るい職種色でも白地で読める濃さに沈める */
}
.mag-head .ja {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .04em;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.1rem); line-height: 1.35; color: var(--ink);
}

/* カテゴリカラーの割り当て（このクラスが付く要素配下で var(--cat) を参照する） */
.cat-mikeiken { --cat: var(--cat-mikeiken); }
.cat-gakushu  { --cat: var(--cat-gakushu); }
.cat-jitsumu  { --cat: var(--cat-jitsumu); }
.cat-pro      { --cat: var(--cat-pro); }
.cat-default  { --cat: var(--cat-default); }

/* --------------------------------------------------------- ヘッダー（帯）とタブ列 */
/* 帯とタブ列をまとめて上に貼り付け、下へスクロールすると隠し、上へ戻ると出す（site.js） */
.masthead-wrap {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  transition: transform .35s var(--ease-out);
}
.masthead-wrap.is-hidden { transform: translateY(-100%); }
body.nav-open .masthead-wrap { transform: none; }
.site-header {
  --head: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  height: 60px; padding: 0 clamp(1rem, 4vw, 2rem);
  background: var(--head); color: #fff;
}
/* 職種の色は明るいもの（ドライバーの空色など）があるので、白い文字を載せる帯は黒を混ぜて沈める */
.site-header.is-cat { --head: color-mix(in srgb, var(--cat) 72%, #000); }
.site-header .brand { flex: none; display: flex; align-items: baseline; gap: .7rem; text-decoration: none; color: #fff; min-width: 0; }
.site-header .brand .en {
  font-family: var(--font-en); font-weight: 800; font-size: 1.28rem; letter-spacing: .01em; line-height: 1; white-space: nowrap;
}
.site-header .brand .ja { font-family: var(--font-jp); font-weight: 700; font-size: .72rem; letter-spacing: .08em; opacity: .9; white-space: nowrap; }
.site-header nav { display: none; }
.nav-toggle {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
  border: 0; background: none; color: #fff; cursor: pointer;
}
.nav-toggle .bars { display: grid; gap: 6px; width: 26px; }
.nav-toggle .bars i { display: block; height: 2px; background: currentColor; transition: transform .3s var(--ease-out), opacity .2s; }
body.nav-open .nav-toggle { color: var(--ink); }
body.nav-open .nav-toggle .bars i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle .bars i:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle .bars i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
body.nav-open .site-header .brand { color: var(--ink); }
.site-header .brand, .nav-toggle { position: relative; z-index: 16; }

/* タブ列: 職種を横に並べ（はみ出す分は横スクロール）、いまいる職種だけ枠のピルにする */
.subnav {
  display: flex; align-items: center; height: 52px; padding: 0 clamp(.4rem, 3vw, 1.5rem);
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.subnav-tabs {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .1rem; overflow-x: auto;
  scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
          mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.subnav-tabs::-webkit-scrollbar { display: none; }
.subnav-tab {
  flex: none; position: relative; padding: .42rem .95rem; border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--font-jp); font-weight: 800; font-size: .86rem; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.subnav-tab + .subnav-tab::before {
  content: ""; position: absolute; left: -1px; top: 25%; bottom: 25%; width: 1px; background: var(--line);
}
.subnav-tab:hover { color: color-mix(in srgb, var(--cat) 72%, #000); }
.subnav-tab.is-here { color: color-mix(in srgb, var(--cat) 72%, #000); border-color: currentColor; }
.subnav-tab.is-here::before, .subnav-tab.is-here + .subnav-tab::before { display: none; }
.subnav-icon {
  position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; background: none; color: var(--ink); cursor: pointer;
}
.subnav-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.subnav-icon .dock-badge { top: 4px; left: auto; right: 2px; }

/* メニュー展開時: カテゴリを写真タイルのグリッドで見せるメガメニュー */
body.nav-open .site-header nav {
  display: block; position: fixed; inset: 0; z-index: 15;
  background: var(--bg); overflow-y: auto; padding: 5.5rem 1.4rem calc(3rem + var(--dock-h));
}
body.nav-open .nav-cats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: .6rem; max-width: var(--maxw); margin: 0 auto;
}
body.nav-open .site-header nav { animation: menu-in .35s var(--ease-out) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(12px); } }
body.nav-open .nav-cat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem;
  min-height: 130px; padding: 1.1rem 1.1rem 1.2rem; text-decoration: none; color: #fff;
  background: var(--cat); overflow: hidden; border-radius: var(--radius);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease);
}
body.nav-open .nav-cat .photo {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--photo); background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(.8);
  transition: transform .3s var(--ease);
}
body.nav-open .nav-cat .tint { position: absolute; inset: 0; z-index: 1; background: var(--cat); mix-blend-mode: color; }
body.nav-open .nav-cat .scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.6) 80%);
}
body.nav-open .nav-cat .en, body.nav-open .nav-cat strong { position: relative; z-index: 3; }
body.nav-open .nav-cat .en {
  font-family: var(--font-en); font-weight: 700; font-size: .66rem;
  letter-spacing: .08em; text-transform: uppercase; opacity: .9;
}
body.nav-open .nav-cat strong { font-family: var(--font-jp); font-weight: 900; font-size: 1.15rem; }
body.nav-open .nav-cat:hover { transform: translateY(-3px); }
body.nav-open .nav-cat:hover .photo { transform: scale(1.06); }
body.nav-open .nav-links {
  display: flex; flex-wrap: wrap; gap: .6rem 1.8rem;
  max-width: var(--maxw); margin: 1.8rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
body.nav-open .nav-links a {
  font-family: var(--font-jp); font-weight: 900; font-size: 1rem; color: var(--ink); text-decoration: none;
}
body.nav-open .nav-links a:hover { text-decoration: underline; text-underline-offset: .2em; }
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------- ヒーロー（home） */
.hero { padding: 2.4rem 0 2rem; }
.hero .mag-head { flex-direction: column-reverse; gap: .3rem; margin-bottom: 1.4rem; }
.hero .mag-head .ja { font-family: var(--font-jp); font-weight: 800; font-size: .95rem; letter-spacing: .32em; color: var(--ink); }
.hero .mag-head .en { font-family: var(--font-en); font-weight: 800; letter-spacing: -.01em; line-height: .95; font-size: clamp(2.8rem, 1.4rem + 7vw, 6.4rem); color: var(--ink); }
.hero .mag-head .en { display: none; }
.hero h1 { margin: 0 0 1.1rem; }
.hero-title { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.3; letter-spacing: .03em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero .lede { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin: 0; }
.hero-eyebrow, .hero .lede, .hero-stats { animation: fade-up .8s var(--ease-out) both; }
.hero .lede { animation-delay: .35s; }
.hero-stats { animation-delay: .5s; }
.hero-title .line > span { animation: line-up .9s var(--ease-out) both; animation-delay: calc(.08s + var(--i, 0) * .12s); }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* 数字（記事数・職種数・台帳の統計数）。JS がカウントアップする */
.hero-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; margin: 1.8rem 0 0; }
.hero-stats .stat { display: flex; flex-direction: column-reverse; gap: .1rem; }
.hero-stats dt { font-size: .78rem; font-weight: 700; color: var(--muted); }
.hero-stats dd { margin: 0; font-family: var(--font-en); font-weight: 700; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats small { font-family: var(--font-jp); font-size: .8rem; font-weight: 700; margin-left: .2rem; }

/* 職種名が流れる帯 */
.marquee {
  position: relative; overflow: hidden; margin: 0 calc(50% - 50vw); padding: .9rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 2.4rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: baseline; gap: .5rem; white-space: nowrap; text-decoration: none;
  font-family: var(--font-jp); font-weight: 900; font-size: clamp(1.05rem, .9rem + .8vw, 1.5rem); color: var(--ink);
}
.marquee-item .en { font-family: var(--font-en); font-weight: 700; font-size: .7em; letter-spacing: .08em; color: var(--cat); }
.marquee-item::after { content: "／"; margin-left: 2.4rem; color: var(--line); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------- 行動導線（探す・知る・確かめる） */
.action-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: .75rem; margin: 2rem 0;
}
.action-tile {
  position: relative; display: flex; flex-direction: column; gap: .35rem;
  padding: 1.5rem 1.4rem; background: var(--bg); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: background .25s var(--ease), transform .25s var(--ease-out), box-shadow .25s var(--ease), border-color .25s;
}
.action-tile::after {
  content: "→"; position: absolute; top: 1.35rem; right: 1.3rem; font-family: var(--font-en); font-weight: 700;
  opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s var(--ease-out);
}
.action-tile .num {
  font-family: var(--font-en); font-weight: 800; font-size: .74rem;
  letter-spacing: .22em; color: var(--muted);
}
.action-tile strong { font-family: var(--font-jp); font-weight: 900; font-size: 1.3rem; }
.action-tile .desc { font-size: .82rem; line-height: 1.5; color: var(--muted); }
.action-tile:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.action-tile:hover::after { opacity: 1; transform: none; color: #fff; }
.action-tile:hover strong, .action-tile:hover .num, .action-tile:hover .desc { color: #fff; }

/* --------------------------------------------------------- 職種ハブ（色面カード = このサイトのシグネチャー） */
.hub-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: .9rem; margin: 2rem 0 3.5rem;
}
.hub-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem;
  min-height: 220px; padding: 2rem 1.6rem 1.8rem; text-decoration: none; color: #fff;
  background: var(--cat); overflow: hidden; border-radius: var(--radius-lg); isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease);
}
/* 写真をカテゴリカラーで染めるデュオトーン: グレースケール写真 + colorブレンドの色面 */
.hub-card .photo {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--photo); background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(.85);
  transition: transform .8s var(--ease-out);
}
.hub-card .tint { position: absolute; inset: 0; z-index: 1; background: var(--cat); mix-blend-mode: color; }
.hub-card .scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.6) 78%);
}
.hub-card .en, .hub-card strong, .hub-card .desc { position: relative; z-index: 3; }
.hub-card .en {
  font-family: var(--font-en); font-weight: 700; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; opacity: .9;
}
.hub-card strong { font-family: var(--font-jp); font-weight: 900; font-size: 1.5rem; }
.hub-card .desc { font-size: .88rem; line-height: 1.6; opacity: .95; max-width: 26ch; }
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.hub-card:hover .photo { transform: scale(1.08); }
.hub-card strong::after {
  content: " →"; font-family: var(--font-en); display: inline-block;
  opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ease-out);
}
.hub-card:hover strong::after { opacity: 1; transform: none; }

/* --------------------------------------------------------- 記事一覧の簡易リスト（人気記事・お気に入り、記事詳細サイド） */
.popular-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.popular-list li { border-top: 1px solid var(--line); }
.popular-list li:last-child { border-bottom: 1px solid var(--line); }
.popular-list a {
  display: flex; align-items: baseline; gap: 1rem; padding: 1rem .2rem;
  text-decoration: none; color: var(--ink);
}
.popular-list .rank {
  flex: none; width: 2ch; font-family: var(--font-en); font-weight: 700;
  font-size: 1.3rem; color: var(--cat);
}
.popular-list .ttl { flex: 1; font-family: var(--font-jp); font-weight: 700; line-height: 1.5; }
.popular-list a:hover .ttl { text-decoration: underline; }
.popular-list .badge {
  flex: none; font-family: var(--font-en); font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; color: var(--cat); border: 1px solid var(--cat); padding: .2rem .6rem;
}

/* サムネつき（人気記事、記事詳細サイド）: 番号はサムネ角のバッジにする */
.popular-list.has-thumb a { align-items: flex-start; gap: .8rem; }
.popular-list.has-thumb .thumb {
  position: relative; flex: none; width: 56px; height: 56px;
  background: var(--cream) center/cover no-repeat; border: 1px solid var(--line);
}
.popular-list.has-thumb .thumb .rank {
  position: absolute; top: -7px; left: -7px; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cat); color: #fff; font-size: .68rem;
}
.popular-list.has-thumb .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.popular-list.has-thumb .ttl { font-size: .88rem; line-height: 1.5; }
.popular-list.has-thumb .badge { align-self: flex-start; font-size: .6rem; padding: .12rem .5rem; }

/* --------------------------------------------------------- 職種ジャンプ（home） */
.job-jump { display: flex; flex-wrap: wrap; gap: .55rem .6rem; margin: -2rem 0 3rem; }
/* セクションの中に置く場合（/career/ の職種別ガイド）は、直前の本文に重なるので詰めない */
.job-section .job-jump { margin: 1.2rem 0 0; }
.job-jump a {
  font-family: var(--font-en); font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  color: var(--cat); border: 1px solid var(--cat); padding: .38rem .9rem; border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.job-jump a:hover { background: var(--cat); color: #fff; }

/* --------------------------------------------------------- 職種別セクション（home） */
.job-section { padding: 2.6rem 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.job-section:first-of-type { border-top: none; padding-top: 0; }
#career .section-top { padding: 0; background: none; color: inherit; }
#career .mag-head { flex-direction: column; align-items: flex-start; gap: .55rem; }
#career .mag-head .en { color: var(--cat); letter-spacing: .24em; font-size: .78rem; }
#career .mag-head .ja { color: var(--ink); font-family: var(--font-display); font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.1rem); opacity: 1; }
#career .section-link { color: var(--ink); align-self: flex-end; }
/* 職種別セクションの見出しは色帯（英字は字間を広げて白抜き） */
.job-section .section-top {
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .2rem;
  padding: 1rem 1.3rem; background: color-mix(in srgb, var(--cat) 72%, #000); color: #fff;
}
.job-section .mag-head { margin: 0; flex-direction: row; align-items: baseline; gap: .9rem; }
.job-section .mag-head .en { color: #fff; font-weight: 800; letter-spacing: .28em; font-size: .9rem; }
.job-section .mag-head .ja { color: #fff; font-size: .95rem; font-family: var(--font-jp); font-weight: 700; opacity: .85; }
.job-section .count { font-family: var(--font-en); font-size: .78rem; color: rgba(255,255,255,.75); }
.job-section .section-link {
  margin-left: auto; flex: none; font-size: .82rem; font-weight: 700;
  color: #fff; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .1rem;
}
.job-section .section-link:hover { opacity: .7; }

/* --------------------------------------------------------- セクション帯 */
.more-link { text-align: center; margin-top: 2.6rem; }
.more-link a {
  display: inline-block; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: .92rem; border-bottom: 2px solid var(--ink); padding-bottom: .2rem;
}
.more-link a:hover { color: var(--muted); border-color: var(--muted); }

/* --------------------------------------------------------- 記事カード */
.article-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 2.2rem 1.4rem; margin-top: 1.6rem;
}
.article-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.article-card .thumb {
  aspect-ratio: 1200 / 630; background: var(--cream); overflow: hidden; border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(16,16,16,.04); transition: box-shadow .3s var(--ease), transform .3s var(--ease-out);
}
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.article-card:hover .thumb { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.article-card .thumb--plate {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(rgba(0,0,0,.16), rgba(0,0,0,.16)), var(--cat);
}
.article-card .thumb--plate .en {
  font-family: var(--font-en); font-weight: 800; font-size: 1.5rem; letter-spacing: .06em;
  color: #fff; text-transform: uppercase;
}
.article-card .body { padding-top: .85rem; display: flex; flex-direction: column; gap: .45rem; }
.article-card .ttl { font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; line-height: 1.6; letter-spacing: .02em; }
.article-card time { font-family: var(--font-en); font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.article-card:hover .thumb img { transform: scale(1.05); }
.article-card:hover .ttl { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* --------------------------------------------------------- 職種ハブ ページの帯見出し */
.hub-masthead { padding: 2.2rem 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.hub-masthead .mag-head { flex-direction: column-reverse; gap: .3rem; margin-bottom: 1.2rem; }
.hub-masthead .mag-head .ja {
  font-family: var(--font-jp); font-weight: 800; font-size: .95rem; letter-spacing: .32em;
  color: color-mix(in srgb, var(--cat) 72%, #000);
}
.hub-masthead .mag-head .en {
  font-family: var(--font-en); font-weight: 800; letter-spacing: -.01em; line-height: .95;
  font-size: clamp(3rem, 1.6rem + 7vw, 6.2rem); color: var(--ink);
}
.hub-masthead .mag-head .en::after { content: "."; }
.hub-masthead h1 { margin: 0; font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6rem); }
/* 本文側の「## ◯◯の記事一覧」は色帯にする（参考: CA PRACTICE の帯） */
main.wide > h2 {
  margin: 3rem 0 1.4rem; padding: 1.05rem 1.4rem; color: #fff;
  background: color-mix(in srgb, var(--cat) 72%, #000);
  font-family: var(--font-jp); font-weight: 800; font-size: 1rem; letter-spacing: .12em;
}
main.wide > h3 { margin-top: 2.4rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }

/* ハブ先頭の「最初に読む」: 番号帯（01 年収の目安）→ 明朝の記事タイトル → 答えの要約 → READ › */
.hub-decide { margin: 2rem 0 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.num-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.num-card {
  position: relative; display: flex; flex-direction: column; gap: .8rem;
  padding: 1.6rem 1.6rem 1.4rem; border: 1px solid var(--line); background: var(--bg);
  transition: border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.num-card:hover { border-color: color-mix(in srgb, var(--cat) 72%, #000); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.num-bar {
  margin: 0; display: flex; align-items: baseline; gap: .9rem; padding: .55rem .9rem;
  background: color-mix(in srgb, var(--cat) 72%, #000); color: #fff;
}
.num-bar .n { font-family: var(--font-en); font-weight: 800; letter-spacing: .14em; }
.num-bar .q { font-size: .8rem; font-weight: 700; letter-spacing: .08em; opacity: .9; }
.num-ttl { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.6; letter-spacing: .03em; }
.num-ttl a { color: var(--ink); text-decoration: none; }
.num-ttl a::after { content: ""; position: absolute; inset: 0; }   /* カード全体を押せるようにする */
.num-desc { margin: 0; color: #6b6b6b; font-size: .88rem; line-height: 1.9; }
.read-more {
  margin-top: auto; font-family: var(--font-en); font-weight: 800; font-size: .8rem; letter-spacing: .22em;
  color: color-mix(in srgb, var(--cat) 72%, #000); transition: letter-spacing .25s var(--ease-out);
}
.num-card:hover .read-more { letter-spacing: .32em; }
.hub-decide-note { margin: 1rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.8; }
.hub-decide-note a { color: var(--muted); }

/* 一覧の中の記事検索（_includes/list-search.html） */
.list-search {
  display: flex; align-items: center; gap: .7rem; margin: 0 0 1.8rem; padding: 0 1.1rem;
  height: 54px; border: 1px solid #cfcfcf; background: var(--bg); cursor: text;
  transition: border-color .2s, box-shadow .2s;
}
.list-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16,16,16,.06); }
.list-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #6b6b6b; stroke-width: 2; stroke-linecap: round; }
.list-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; color: var(--ink); }
.list-search input::placeholder { color: #a3a3a3; }
.list-search-count { flex: none; font-family: var(--font-en); font-weight: 700; font-size: .8rem; color: var(--muted); }

/* --------------------------------------------------------- 転職プロセスの段階（/career/ と記事下部） */
.flow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: .6rem; margin: 2rem 0 3rem; counter-reset: flow;
}
.flow-step {
  position: relative; display: flex; flex-direction: column; gap: .3rem;
  padding: 1.5rem 1.3rem 1.7rem; background: var(--bg); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: background .25s var(--ease), transform .25s var(--ease-out), box-shadow .25s var(--ease);
}
.flow-step .num {
  font-family: var(--font-en); font-weight: 800; font-size: .76rem; letter-spacing: .22em;
  color: color-mix(in srgb, var(--cat, var(--cat-default)) 72%, #000);
}
.flow-step .num::before { content: "STEP "; }
.flow-step .en { display: none; }
.flow-step strong { font-family: var(--font-jp); font-weight: 800; font-size: 1.08rem; margin-top: .5rem; }
.flow-step .count { font-family: var(--font-en); font-size: .76rem; color: var(--muted); }
.flow-step:hover { border-color: color-mix(in srgb, var(--cat, var(--cat-default)) 72%, #000); transform: translateY(-3px); }
.flow-step.is-here { background: var(--charcoal); border-color: var(--charcoal); }
.flow-step.is-here .num, .flow-step.is-here .en, .flow-step.is-here strong { color: #fff; }
.step-desc { color: var(--muted); font-size: .9rem; margin: .7rem 0 0; max-width: 60ch; }

/* 記事下部に出す段階ストリップ（_includes/career-steps.html） */
.career-steps { margin-top: 3.5rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.career-steps .mag-head .en { color: var(--cat, var(--ink)); }
.career-steps .flow { margin: 1.4rem 0 1.6rem; }
.career-steps .more-link { margin-top: 0; }

/* --------------------------------------------------------- 記事本文 */
.post > header { margin-bottom: 2.2rem; }
.fav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
  border: 2px solid var(--ink); background: none; color: var(--ink);
  font-family: var(--font-jp); font-weight: 900; font-size: .85rem;
  padding: .5rem 1.1rem; cursor: pointer; border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease-out);
}
.fav-toggle:active, .share-btn:active { transform: scale(.95); }
.fav-toggle .fav-icon { font-size: 1.05rem; line-height: 1; }
.fav-toggle[aria-pressed="true"] { background: var(--cat, var(--ink)); color: #fff; border-color: var(--cat, var(--ink)); }
.share-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid var(--ink); background: none; color: var(--ink);
  font-family: var(--font-jp); font-weight: 900; font-size: .85rem;
  padding: .5rem 1.1rem; cursor: pointer; text-decoration: none; border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease-out);
}
.share-btn:hover { background: var(--cat, var(--ink)); color: #fff; border-color: var(--cat, var(--ink)); }
.post-body + .share-buttons { margin-top: 2.4rem; }
.post .badge {
  display: inline-flex; align-items: baseline; gap: .45em; margin-bottom: 1rem;
  background: linear-gradient(rgba(0,0,0,.16), rgba(0,0,0,.16)), var(--cat);
  color: #fff; padding: .25rem .7rem;
}
.post .badge .en { font-family: var(--font-en); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.post .badge .ja { font-family: var(--font-jp); font-weight: 700; font-size: .78rem; }
.post > header h1 { margin: 0 0 .8rem; }
.post-meta { color: var(--muted); font-size: .85rem; font-family: var(--font-en); letter-spacing: .01em; }
.post-meta .supervisor, .post-meta .readtime, .post-meta .updated { margin-left: .8rem; font-family: var(--font-jp); }
.post-meta .readtime::before, .post-meta .supervisor::before, .post-meta .updated::before { content: "・"; margin-right: .8rem; color: var(--line); }

/* 本文とサイド(目次・お気に入り・人気記事)の2カラム。
   狭い画面(SP)では 目次・お気に入り → 本文 → 人気記事 の縦積みにする（人気記事は記事下部でよい） */
.post-layout { display: flex; flex-direction: column; }
.post-aside { order: -1; display: flex; flex-direction: column; gap: 2rem; margin-bottom: 2.4rem; }
.post-aside > * { margin: 0; }
.post-main { order: 0; }
.post-popular { order: 1; }
@media (min-width: 961px) {
  .post-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem 3rem;
    grid-template-areas: "main aside" "main pop";
  }
  .post-main { grid-area: main; }
  .post-aside { grid-area: aside; position: sticky; top: 84px; margin-bottom: 0; }
  .post-popular { grid-area: pop; position: sticky; top: 84px; align-self: start; }
}

.post-body { font-size: 18px; line-height: 1.6; }
.post-body > h2:first-child { margin-top: 0; }
.post-body p { margin: 1.2rem 0; }
.post-body ul, .post-body ol { padding-left: 1.3rem; }
.post-body li { margin: .45rem 0; }

.post figure { margin: 2.2rem 0; }
.post figure.post-hero { margin: 1.6rem 0 2.4rem; }
.post figure img { width: 100%; border: 1px solid var(--line); }

.post-body table { border-collapse: collapse; width: 100%; font-size: .85em; line-height: 1.6; margin: 1.8rem 0; }
.post-body th { background: var(--cream); font-weight: 700; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.post-body blockquote { margin: 1.6rem 0; padding: .3rem 1.25rem; border-left: 3px solid var(--ink); color: var(--muted); }
.post-body code { background: var(--cream); padding: .1em .4em; font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.post-body pre { background: var(--charcoal); color: #f2f2f2; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: .86em; line-height: 1.7; margin: 1.8rem 0; }
.post-body pre code { background: none; padding: 0; color: inherit; }

/* --------------------------------------------------------- 記事まわりの部品 */
/* パンくず */
.crumbs { font-size: .78rem; color: var(--muted); margin: 0 0 1.4rem; line-height: 1.9; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 .35em; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; margin: 0; }

/* 目次: 記事本文には何も書かずLiquidが本文のH2から組む */
.post-toc {
  background: var(--cream); border-top: 3px solid var(--cat, var(--ink));
  padding: 1.4rem 1.5rem 1.5rem; margin: 2.4rem 0;
}
.post-toc .toc-ttl {
  margin: 0 0 .8rem; font-weight: 900; font-size: .95rem; letter-spacing: .04em;
}
.post-toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 0; }
.post-toc li { counter-increment: toc; margin: .1rem 0; display: flex; gap: .7em; font-size: .95rem; line-height: 1.7; }
.post-toc li::before {
  content: counter(toc, decimal-leading-zero); flex: none;
  font-family: var(--font-en); font-weight: 700; font-size: .82rem;
  color: var(--cat, var(--muted)); padding-top: .18em;
}
.post-toc a { color: var(--ink); text-decoration: none; }
.post-toc a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* 人気記事（記事詳細のサイド） */
.post-popular {
  background: var(--cream); border-top: 3px solid var(--cat, var(--ink));
  padding: 1.4rem 1.5rem 1.5rem; margin: 0 0 2.4rem;
}
.post-popular .toc-ttl { margin: 0 0 .8rem; font-weight: 900; font-size: .95rem; letter-spacing: .04em; }
.post-popular .popular-list li:first-child { border-top: none; }
.post-popular .popular-list a { padding: .7rem 0; }

/* 保存した記事（お気に入り、localStorage由来） */
.post-favorites {
  background: var(--cream); border-top: 3px solid var(--cat, var(--ink));
  padding: 1.4rem 1.5rem 1.5rem; margin: 0 0 2.4rem;
}
.post-favorites .toc-ttl { margin: 0 0 .8rem; font-weight: 900; font-size: .95rem; letter-spacing: .04em; }
.post-favorites .popular-list li:first-child { border-top: none; }
.post-favorites .popular-list a { padding: .6rem 0; }
.post-favorites .popular-list .ttl { font-size: .9rem; }

/* あわせて読みたい */
.post-related { margin-top: 3.5rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.post-related .mag-head .en { color: var(--cat, var(--ink)); }
.post-related .article-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 1.6rem 1.1rem; }
.post-related .article-card .ttl { font-size: .92rem; }
.post-related .more-link { margin-top: 2rem; }

/* --------------------------------------------------------- 本文の装飾 */
/* リード（導入の1段落）だけ少し大きく、雑誌の前書きの調子にする */
.post-body > p:first-of-type { font-size: 1.08em; line-height: 1.85; }

/* H2は色面の耳つき、H3は縦罫。カテゴリカラーで記事の所属が本文でも分かる */
.post-body h2 {
  position: relative; padding: 1.1rem 0 .5rem; margin-top: 3.2rem;
  border-top: 3px solid var(--ink);
}
.post-body h2::before {
  content: ""; position: absolute; left: 0; top: -3px; width: 3.5rem; height: 3px;
  background: var(--cat, var(--ink));
}
.post-body h3 {
  padding-left: .7rem; border-left: 4px solid var(--cat, var(--ink)); line-height: 1.5;
}
/* H4はH3の下でさらに手順・項目を割るときだけ使う小見出し。目次には出さない */
.post-body h4 {
  font-size: 1rem; font-weight: 800; margin-top: 1.6rem; line-height: 1.5;
}
.post-body h4::before { content: "▸"; color: var(--cat, var(--ink)); margin-right: .4em; }
.post-body a { text-decoration-color: var(--cat, var(--ink)); text-decoration-thickness: 2px; }

/* 引用/補足。「>」で書いた段落がそのまま補足ブロックになる */
.post-body blockquote {
  background: var(--cream); border-left: 4px solid var(--cat, var(--ink));
  margin: 1.8rem 0; padding: 1.1rem 1.3rem; color: #4a4a4a; font-size: .95em; line-height: 1.8;
}
.post-body blockquote p:first-child { margin-top: 0; }
.post-body blockquote p:last-child { margin-bottom: 0; }

/* 要点ボックス（淡色）: <div class="point" markdown="1"> … </div> で囲むだけ。
   先頭の見出し行は **太字** で書く。CSS側がラベル帯として組む。 */
.post-body .point {
  border: 1px solid var(--line); border-top: 3px solid var(--cat, var(--ink));
  padding: 1.3rem 1.5rem; margin: 2.2rem 0; background: #fff;
}
.post-body .point > :first-child { margin-top: 0; }
.post-body .point > :last-child { margin-bottom: 0; }
.post-body .point > p:first-child {
  font-weight: 900; font-size: 1.04em; line-height: 1.5;
  padding-left: .7rem; border-left: 4px solid var(--cat, var(--ink));
  margin-bottom: 1rem;
}
.post-body .point > p:first-child strong { font-weight: 900; }
.post-body .point ul { list-style: none; padding-left: 0; }
.post-body .point ul li { position: relative; padding-left: 1.3rem; margin: .55rem 0; }
.post-body .point ul li::before {
  content: ""; position: absolute; left: .2rem; top: .62em;
  width: .5rem; height: .5rem; background: var(--cat, var(--ink));
}

/* 要点ボックス（暗色）: <div class="point point--dark" markdown="1"> … </div>
   ネガティブな列挙（「きつい」理由・NG例・注意点）を1つにまとめて目立たせる用。 */
.post-body .point--dark {
  background: var(--charcoal); color: #fff; border: none;
  border-top: 3px solid var(--cat, #fff);
}
.post-body .point--dark > p:first-child { border-left-color: var(--cat, #fff); color: #fff; }
.post-body .point--dark ul li::before { background: var(--cat, #fff); }
.post-body .point--dark a { color: #fff; }
.post-body .point--dark strong { color: #fff; }

/* マーカーと強調
     <mark>ここ</mark>          カテゴリカラーのマーカー（1文に1箇所まで）
     <mark class="key">ここ</mark>  色つきの太字（見出し的に言い切る短い語）
     <mark class="key-warn">ここ</mark>  赤の色つき太字（注意喚起。1記事2〜3箇所まで）
     <mark class="key-info">ここ</mark>  青の色つき太字（補足情報）
     <mark class="key-good">ここ</mark>  緑の色つき太字（ポジティブな要素）
     <u>ここ</u>              用語・固有名詞の初出に下線 */
.post mark {
  background: linear-gradient(transparent 52%, #fff0a6 52%);
  color: inherit; font-weight: 800; padding: 0 .08em;
}
.post mark.key {
  background: none; color: var(--cat, var(--ink)); font-weight: 800;
}
.post mark.key-warn { background: none; color: var(--warn); font-weight: 800; }
.post mark.key-info { background: none; color: var(--info); font-weight: 800; }
.post mark.key-good { background: none; color: var(--good); font-weight: 800; }
.post-body u {
  text-decoration-color: var(--cat, var(--ink)); text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}
.cat-mikeiken { --cat-tint: rgba(42, 157, 143, .24); }
.cat-gakushu  { --cat-tint: rgba(31, 111, 235, .20); }
.cat-jitsumu  { --cat-tint: rgba(231, 111, 81, .22); }
.cat-pro      { --cat-tint: rgba(91, 63, 160, .22); }
.cat-default  { --cat-tint: rgba(82, 96, 109, .20); }

/* 編集部からの一言: <div class="editor-note" markdown="1"> … </div>
   実在しない人物の顔写真は使わない方針なので、ブランドのモノグラムで受ける。 */
.post-body .editor-note {
  display: flex; gap: 1rem; align-items: flex-start; margin: 2.4rem 0;
}
.post-body .editor-note::before {
  content: "CL"; flex: none; width: 46px; height: 46px; margin-top: .2rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(rgba(0,0,0,.16), rgba(0,0,0,.16)), var(--cat, var(--ink));
  color: #fff; font-family: var(--font-en); font-weight: 700; font-size: .84rem; letter-spacing: .06em;
}
.post-body .editor-note > div, .post-body .editor-note > blockquote { flex: 1; min-width: 0; }
.post-body .editor-note-body {
  position: relative; background: var(--cream); padding: 1.1rem 1.3rem;
  font-size: .95em; line-height: 1.85;
}
.post-body .editor-note-body::before {
  content: ""; position: absolute; left: -7px; top: 16px;
  border: 7px solid transparent; border-right-color: var(--cream); border-left: none;
}
.post-body .editor-note-body > :first-child { margin-top: 0; }
.post-body .editor-note-body > :last-child { margin-bottom: 0; }
.post-body .editor-note-name {
  font-size: .8rem; font-weight: 800; color: var(--cat, var(--ink)); margin: 0 0 .4rem;
}

/* 本文中の関連記事カード: {% include linkcard.html slug="..." %} */
.post-body .linkcard {
  display: flex; gap: 1rem; align-items: center; margin: 2rem 0;
  border: 1px solid var(--line); border-left: 4px solid var(--cat, var(--ink));
  padding: .9rem 1.1rem .9rem .9rem; text-decoration: none; color: var(--ink);
  transition: background .18s var(--ease);
}
.post-body .linkcard:hover { background: var(--cream); }
.post-body .linkcard .thumb { flex: none; width: 150px; aspect-ratio: 1200 / 630; overflow: hidden; }
.post-body .linkcard .thumb img { width: 100%; height: 100%; object-fit: cover; border: none; }
.post-body .linkcard .body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.post-body .linkcard .eyebrow {
  font-family: var(--font-en); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; color: var(--cat, var(--muted));
}
.post-body .linkcard .ttl { font-weight: 800; font-size: .95rem; line-height: 1.55; }
.post-body .linkcard time { font-family: var(--font-en); font-size: .74rem; color: var(--muted); }

/* FAQ: frontmatter の faq: から _includes/faq.html が組む（本文にHTMLは書かない） */
.post-faq { margin: 3.2rem 0 0; }
.post-faq .mag-head .en { color: var(--cat, var(--ink)); }
.post-faq dl { margin: 0; }
.post-faq dt, .post-faq dd { display: flex; gap: .9rem; margin: 0; }
.post-faq dt {
  font-weight: 800; font-size: 1.02rem; line-height: 1.6;
  color: var(--ink); padding-top: 1.4rem;
}
.post-faq dd { padding: .7rem 0 1.4rem; border-bottom: 1px solid var(--line); line-height: 1.85; font-size: .96rem; }
.post-faq dt::before, .post-faq dd::before {
  flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 700; font-size: .88rem; border-radius: 50%;
}
.post-faq dt::before {
  content: "Q"; color: #fff;
  background: linear-gradient(rgba(0,0,0,.16), rgba(0,0,0,.16)), var(--cat, var(--ink));
}
.post-faq dd::before {
  content: "A"; color: var(--cat, var(--ink)); border: 1px solid var(--cat, var(--line));
}
.post-faq dd > p { margin: 0; }

/* チェックリスト（- [ ] 記法） */
.post-body .task-list-item { list-style: none; margin-left: -1.3rem; }
.post-body .task-list-item input { margin-right: .5em; accent-color: var(--cat, var(--ink)); }

/* 表: 見出し行を色面に、1列目を見出し扱い、狭い画面では横スクロール */
.post-body table { font-size: .88em; }
.post-body thead th {
  background: var(--cat, var(--charcoal)); color: #fff; border-color: var(--cat, var(--charcoal));
  font-weight: 700; white-space: nowrap;
}
.post-body tbody tr:nth-child(even) { background: #fafaf9; }
.post-body tbody td:first-child { font-weight: 700; }
.post-body table + p { margin-top: 1rem; }

/* 図版: キャプションを英字+和文の対訳調に */
.post-body figure.section-visual { margin: 2.4rem 0; }
.post figure figcaption {
  margin-top: .6rem; font-size: .8rem; color: var(--muted); line-height: 1.7;
  padding-left: .7rem; border-left: 2px solid var(--cat, var(--line));
}
.post figure.post-hero img { border: none; }

/* プロンプトなどのコード塊に小さなラベルを出す */
.post-body pre { position: relative; padding-top: 1.7rem; }
.post-body pre::before {
  content: "CODE"; position: absolute; top: .5rem; left: 1.2rem;
  font-family: var(--font-en); font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; color: rgba(255,255,255,.45);
}

/* 出典リスト（本文末の「出典」以降） */
.post-body h2#出典 + ul, .post-body h2[id^="sources"] + ul { font-size: .86em; color: #4a4a4a; }

/* --------------------------------------------------------- 記事の「AIに相談する」: _includes/ask-ai.html */
.ask-ai { margin: 3rem 0 2.5rem; border: 1px solid #d6d6d6; background: var(--bg); }
.ask-ai[hidden] { display: none; }
.ask-ai-head {
  margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1.1rem;
  padding: 1.15rem 1.4rem; background: var(--charcoal); color: #fff;
}
.ask-ai-head .en { font-family: var(--font-en); font-weight: 700; font-size: .78rem; letter-spacing: .26em; opacity: .75; }
.ask-ai-head .ja { font-family: var(--font-jp); font-weight: 900; font-size: 1.12rem; letter-spacing: .04em; }
.ask-ai-body { padding: 1.3rem 1.4rem 1.4rem; }
.ask-ai-lede { margin: 0 0 1.1rem; color: #6b6b6b; font-size: .9rem; line-height: 1.95; }
.ask-ai-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.ask-chip {
  border: 1px solid #cfcfcf; background: var(--bg); color: var(--ink); cursor: pointer;
  font-family: var(--font-jp); font-weight: 800; font-size: .86rem; padding: .7rem 1rem; text-align: left;
  transition: border-color .2s, color .2s, background .2s, transform .15s var(--ease-out);
}
.ask-chip:hover { border-color: var(--ink); }
.ask-chip:active { transform: scale(.97); }
.ask-chip.is-accent { color: color-mix(in srgb, var(--cat, var(--ink)) 72%, #000); border-color: currentColor; }
.ask-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ask-ai-input {
  display: block; width: 100%; min-height: 6.5rem; resize: vertical; margin-bottom: 1rem;
  padding: .9rem 1rem; border: 1px solid #cfcfcf; border-radius: 0; background: var(--bg);
  font: inherit; font-size: 1rem; line-height: 1.8; color: var(--ink);
}
.ask-ai-input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16,16,16,.06); }
.ask-ai-input::placeholder { color: #a8a8a8; }
.ask-ai-go { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.ask-btn {
  display: flex; align-items: center; min-height: 3.6rem; padding: .8rem 1rem;
  border: 1px solid #cfcfcf; color: var(--ink); text-decoration: none;
  font-family: var(--font-jp); font-weight: 900; font-size: .95rem; line-height: 1.45;
  transition: border-color .2s, background .2s, transform .15s var(--ease-out);
}
.ask-btn:hover { border-color: var(--ink); color: var(--ink); }
.ask-btn:active { transform: scale(.97); }
.ask-btn.is-primary { background: color-mix(in srgb, var(--cat, var(--ink)) 72%, #000); border-color: transparent; color: #fff; }
.ask-btn.is-primary:hover { color: #fff; filter: brightness(1.1); }
.ask-copy {
  margin: 1rem 0 0; padding: 0 0 .15rem; border: 0; border-bottom: 1px solid currentColor; background: none;
  color: #6b6b6b; font: inherit; font-size: .88rem; cursor: pointer;
}
.ask-copy:hover { color: var(--ink); }
.ask-ai-status { min-height: 1.2em; margin: .5rem 0 0; font-size: .82rem; font-weight: 700; color: var(--good); }
.ask-ai-note { margin: .4rem 0 0; color: #7a7a7a; font-size: .8rem; line-height: 1.9; }
@media (max-width: 480px) {
  .ask-ai-go { grid-template-columns: 1fr; }
  .ask-btn { min-height: 3.2rem; }
}

/* --------------------------------------------------------- 動く図解: _includes/mfig.html（_plugins/motion_figures.rb が PNG の図を差し替える）
   枠: 上に職種の色の帯 → 小見出し → 太字の見出し → 図 → 区切り線 → 灰色の説明。
   動き: 図が見えたとき（.mfig.is-in）に、中の要素が順に出る。動きを減らす設定・JS 無しでは最初から完成形。
   出す前の状態は「.motion .mfig:not(.is-in) …」、出す動きは「.motion .mfig.is-in …」に書く（fill: backwards で、
   出し終えたら元の指定に戻る）。--i は要素の順番（テンプレートが style で渡す）。 */
.post .mfig, .mfig {
  --deep: color-mix(in srgb, var(--cat, var(--ink)) 72%, #000);
  --tint: color-mix(in srgb, var(--cat, var(--ink)) 9%, #fff);
  margin: 2.4rem 0; padding: 1.5rem 1.4rem 1.3rem; background: var(--bg);
  border: 1px solid #dadada; border-top: 4px solid var(--deep);
}
/* 記事本文の段落・リストの指定（.post-body p の余白、ol/ul の字下げ、図版の説明の縦線）を図の中では打ち消す。
   打ち消しは (0,2,0) なので、図の中の余白はそれ以上の強さ（.mfig を前に付ける）で書く */
.post-body .mfig :where(p, ul, ol, li) { margin: 0; }
.post-body .mfig :where(ul, ol) { padding-left: 0; list-style: none; }
.mfig .mfig-kicker { margin: 0 0 .5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; font-family: var(--font-jp); font-weight: 800; font-size: .8rem; letter-spacing: .16em; color: var(--deep); }
.mfig .mfig-kicker .en { font-family: var(--font-en); font-weight: 800; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; }
.mfig .mfig-kicker .en + .ja { font-size: .72rem; letter-spacing: .1em; color: #8a8478; }
.mfig .mfig-title { margin: 0 0 1.3rem; font-family: var(--font-jp); font-weight: 900; font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); line-height: 1.55; letter-spacing: .02em; color: var(--ink); }
.mfig-title b { color: var(--deep); }
.mfig-body { margin: 0; }
.mfig-body p { margin: 0; }
.post .mfig .mfig-note, .mfig-note {
  margin: 1.3rem 0 0; padding: 1rem 0 0; border: 0; border-top: 1px solid #ececec; text-align: left;
  font-family: var(--font-jp); font-size: .84rem; line-height: 1.9; color: #7a7a7a; letter-spacing: .02em;
}
.mfig b { font-weight: 900; }

/* 2項対比 */
.mf-cmp { display: grid; gap: .75rem; }
.mf-cmp-card { padding: 1.15rem 1.2rem 1.1rem; border-radius: 12px; }
.mf-cmp-card.is-left { background: #eef0f4; color: #22304f; }
.mf-cmp-card.is-right { background: var(--tint); color: var(--deep); }
.mf-cmp-card .h { font-family: var(--font-jp); font-weight: 900; font-size: 1.08rem; line-height: 1.45; }
.mf-cmp-card .sub { margin-top: .35rem; font-size: .86rem; font-weight: 700; opacity: .85; }
.mfig .mf-cmp-card ul { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .45rem; }
.mfig .mf-cmp-card li { position: relative; padding-left: 1.05rem; font-size: .9rem; line-height: 1.7; color: #2b2b2b; }
.mf-cmp-card li b { font-weight: 800; }
.mf-cmp-card li .s { display: block; font-size: .82rem; line-height: 1.6; color: #6b6b6b; }
.mf-cmp-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: .55; }
.mf-cmp-card.is-left li::before { color: #22304f; }
.mf-cmp-card.is-right li::before { color: var(--deep); opacity: 1; }
@media (min-width: 700px) { .mf-cmp { grid-template-columns: 1fr 1fr; } }

/* 段階（縦のタイムライン） */
.mf-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.mf-steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: .9rem; padding-bottom: 1.15rem; }
.mf-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--deep) 35%, #fff); transform-origin: 50% 0; }
.mf-steps li:last-child { padding-bottom: 0; }
.mf-steps .dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid var(--deep); background: var(--bg); color: var(--deep); font: 800 .78rem/1 var(--font-en);
}
.mf-steps .dot:empty::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--deep); }
.mf-steps .tx { padding-top: .25rem; }
.mf-steps .lv { display: inline-block; margin-bottom: .35rem; padding: .12rem .65rem; border-radius: 999px; background: var(--tint); color: var(--deep); font-weight: 800; font-size: .78rem; }
.mf-steps .t { font-weight: 800; font-size: 1rem; line-height: 1.6; }
.mf-steps .s { margin-top: .25rem; font-size: .87rem; line-height: 1.8; color: #666; }

/* 段階の "path": "rise"（右肩上がりの道のりとゴールの旗）。スマホは縦のタイムラインのまま、最後の点に旗 */
.mf-rise { position: relative; }
.mf-rise-line { display: none; }
.mf-rise li:last-child .dot { background: var(--deep); color: #fff; }
.mf-rise li:last-child .dot:empty::after { background: #fff; }
.mf-flag { position: absolute; z-index: 2; left: 19px; top: -17px; width: 20px; height: 25px; transform-origin: 3px 100%; }
.mf-flag svg { display: block; width: 100%; height: 100%; }
.mf-flag .pole { stroke: #2b2b2b; stroke-width: 2; stroke-linecap: round; }
.mf-flag .cloth { fill: var(--deep); }
@media (min-width: 700px) {
  .mf-rise { padding-top: 46px; }
  .mf-rise .mf-steps { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .mf-rise .mf-steps li::after { display: none; }
  .mf-rise .mf-steps li { display: block; padding: calc((var(--n) - 1 - var(--i)) * 36px) .55rem 0; text-align: center; }
  .mf-rise .mf-steps .dot { margin: 0 auto .75rem; }
  .mf-rise .mf-steps .tx { padding-top: 0; }
  .mf-rise-line {
    display: block; position: absolute; left: 0; top: calc(46px + 17px); width: 100%;
    height: calc((var(--n) - 1) * 36px); overflow: visible; pointer-events: none;
  }
  .mf-rise-line polyline { fill: none; stroke: var(--deep); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .mf-flag { left: calc(50% - 3px); top: -40px; width: 30px; height: 38px; }
}

/* 判断基準（番号つきのカード） */
.mf-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.mf-checks li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; padding: 1rem 1.1rem; border: 1px solid #e6e6e6; border-radius: 12px; background: #fafafa; }
.mf-checks .ck svg { width: 26px; height: 26px; fill: none; stroke: var(--deep); stroke-linecap: round; stroke-linejoin: round; }
.mf-checks .ck rect { stroke-width: 1.8; }
.mf-checks .ck path { stroke-width: 2.6; stroke-dasharray: 20; stroke-dashoffset: 0; }
.mf-checks .t { font-weight: 900; font-size: 1rem; line-height: 1.6; color: var(--deep); }
.mf-checks .t .n { margin-right: .35em; font-family: var(--font-en); }
.mf-checks .s { margin-top: .3rem; font-size: .9rem; line-height: 1.85; color: #333; }

/* 数値の比較（横棒） */
.mf-bars { display: grid; gap: 1.05rem; }
.mf-bar .bl { font-weight: 800; font-size: .9rem; line-height: 1.5; }
.mf-bar .bl small { display: inline-block; margin-left: .5em; font-weight: 500; font-size: .76rem; color: #8a8a8a; }
.mf-bar .row { display: flex; align-items: center; gap: .8rem; margin-top: .35rem; }
.mf-bar .track { flex: 1; height: 14px; border-radius: 999px; background: #eeeeee; overflow: hidden; }
.mf-bar .fill { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--deep), color-mix(in srgb, var(--cat, var(--ink)) 80%, #fff)); transform-origin: 0 50%; }
.mf-bar .bv { flex: none; min-width: 4.2em; text-align: right; font-family: var(--font-en); font-weight: 800; font-size: 1.1rem; color: var(--deep); font-variant-numeric: tabular-nums; }

/* 数字3つ */
.mf-stats { display: grid; gap: .6rem; }
.mf-stat {
  display: grid; grid-template-columns: minmax(6.5rem, auto) 1fr; grid-template-rows: auto 1fr; column-gap: 1rem; align-items: center;
  padding: .9rem 1rem; border-radius: 12px; background: var(--tint);
}
.mf-stat .big { grid-row: 1 / span 2; }
.mfig .mf-stat .lab { margin-top: 0; align-self: end; }
.mfig .mf-stat .sub { align-self: start; }
@media (min-width: 700px) {
  .mf-stats { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .7rem; }
  .mf-stat { display: block; padding: 1rem .9rem 1.05rem; text-align: center; }
  .mfig .mf-stat .lab { margin-top: .55rem; }
}
.mf-stat .big { font-family: var(--font-en); font-weight: 800; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem); line-height: 1.05; color: var(--deep); font-variant-numeric: tabular-nums; }
.mf-stat .big small { margin-left: .15rem; font-family: var(--font-jp); font-size: .9rem; font-weight: 800; }
.mf-stat .lab { margin-top: .55rem; font-weight: 800; font-size: .88rem; line-height: 1.5; }
.mf-stat .sub { margin-top: .3rem; font-size: .76rem; line-height: 1.6; color: #777; }
/* 割合を10人で見せる（単位が % の数字だけ）。"picto": false のシーンは帯のゲージ */
.mf-picto, .mf-ratio { grid-column: 1 / -1; grid-row: 3; margin-top: .75rem; }
.mf-picto { display: block; width: 100%; max-width: 250px; height: auto; overflow: visible; }
.mf-picto .bg { fill: color-mix(in srgb, var(--deep) 20%, #fff); }
.mf-picto .fg { fill: var(--deep); transform-box: fill-box; transform-origin: 0 50%; }
.mf-ratio { display: block; height: 8px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--deep) 16%, #fff); }
.mf-ratio span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--deep); transform-origin: 0 50%; }
@media (min-width: 700px) { .mf-picto { margin: .8rem auto 0; } }

/* 流れ（PC は横一列、スマホは縦）: カードの間に矢印 */
.mf-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.mf-flow li { position: relative; padding: .95rem 1rem 1rem; border: 1px solid #e6e6e6; border-top: 3px solid var(--deep); border-radius: 0 0 10px 10px; background: var(--bg); }
.mf-flow li:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -1.15rem; width: 10px; height: 10px; margin-left: -5px;
  border-right: 2.5px solid var(--deep); border-bottom: 2.5px solid var(--deep); transform: rotate(45deg);
}
.mf-flow .n { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-bottom: .4rem; border-radius: 50%; background: var(--deep); color: #fff; font: 800 .72rem/1 var(--font-en); }
.mf-flow .t { font-weight: 800; font-size: .95rem; line-height: 1.55; }
.mf-flow .s { margin-top: .3rem; font-size: .82rem; line-height: 1.75; color: #666; }
@media (min-width: 700px) {
  .mf-flow { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.5rem; }
  .mf-flow li:not(:last-child)::after { left: auto; right: -1.1rem; top: 50%; bottom: auto; margin: -5px 0 0; transform: rotate(-45deg); }
}

/* 2軸4象限: 十字の軸の線が伸び、象限が順に出る */
.mf-mx .grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mf-mx .line { position: absolute; z-index: 0; background: #2b2b2b; }
.mf-mx .line-x { left: -4px; right: -4px; top: 50%; height: 2px; margin-top: -1px; transform-origin: 0 50%; }
.mf-mx .line-y { top: -4px; bottom: -4px; left: 50%; width: 2px; margin-left: -1px; transform-origin: 50% 0; }
.mf-mx .q { position: relative; z-index: 1; padding: .95rem .85rem 1rem; border: 1px solid #e3e3e3; border-radius: 12px; background: #f6f6f8; text-align: center; }
.mf-mx .q .t { font-weight: 900; font-size: .95rem; line-height: 1.5; }
.mf-mx .q .s { margin-top: .4rem; font-size: .8rem; line-height: 1.7; color: #555; }
.mf-mx .q.is-hot { background: var(--deep); border-color: var(--deep); color: #fff; }
.mf-mx .q.is-hot .s { color: rgba(255,255,255,.85); }
.mf-mx .ax { font-weight: 800; font-size: .8rem; color: #444; text-align: center; letter-spacing: .02em; }
.mf-mx .ax-y { margin-bottom: .7rem; }
.mf-mx .ax-x { margin-top: .7rem; }

/* 段階のカード（項目に tag があるとき）: 各段をカードにし、下にその段で残すものの札 */
.mf-steps--card li { padding-bottom: .85rem; }
.mf-steps--card .tx { padding: .85rem 1rem .95rem; border: 1px solid #e6e6e6; border-radius: 12px; background: #fafafa; }
.mf-steps--card .tag { display: inline-block; margin-top: .6rem; padding: .3rem .7rem; border-radius: 6px; background: var(--tint); color: var(--deep); font-weight: 800; font-size: .8rem; line-height: 1.55; }
.mfig .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 対応（左 → 右） */
.mf-pair { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.1fr); gap: .65rem .3rem; }
.mf-pair .hd { align-self: end; text-align: center; font-weight: 800; font-size: .8rem; line-height: 1.5; color: #8a8a8a; letter-spacing: .03em; }
.mf-pair .hd small { display: block; margin-top: .1rem; font-weight: 500; font-size: .7rem; }
.mf-pair .hd-r { color: var(--deep); }
.mf-pair .l, .mf-pair .r { display: flex; align-items: center; padding: .8rem .9rem; border-radius: 10px; font-size: .9rem; line-height: 1.7; }
.mf-pair .l { background: #f3f3f3; color: #3a3a3a; }
.mf-pair .r { background: var(--tint); color: var(--deep); font-weight: 800; }
.mf-pair .ar { display: grid; place-items: center; }
.mf-pair .ar svg { width: 22px; height: 11px; fill: none; stroke: var(--deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform-origin: 0 50%; overflow: visible; }
@media (min-width: 700px) {
  .mf-pair { grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); gap: .75rem .4rem; }
  .mf-pair .l, .mf-pair .r { padding: .95rem 1.2rem; font-size: .95rem; }
  .mf-pair .ar svg { width: 26px; height: 13px; }
}

/* 循環: 輪の上の点と矢印。点と名前の位置は --x / --y（輪の正方形に対する %） */
.mf-cyc { --ring: min(100%, 440px); }
.mf-cyc .ring { position: relative; width: var(--ring); aspect-ratio: 1; margin: calc(var(--ring) * var(--ct, 0) * -1) auto calc(var(--ring) * var(--cb, 0) * -1); }
.mf-cyc .wheel { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mf-cyc .wheel .base { fill: none; stroke: color-mix(in srgb, var(--deep) 8%, #fff); stroke-width: 5; stroke-dasharray: 1; }
.mf-cyc .wheel .arc path { fill: none; stroke: color-mix(in srgb, var(--deep) 48%, #fff); stroke-width: .75; stroke-linecap: round; stroke-dasharray: 1; }
.mf-cyc .wheel .arc polygon { fill: color-mix(in srgb, var(--deep) 48%, #fff); }
.mfig .mf-cyc .nodes { list-style: none; margin: 0; padding: 0; }
.mf-cyc .node {
  position: absolute; left: var(--x); top: var(--y); width: 12%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border: 2.5px solid var(--deep); border-radius: 50%; background: #fff; color: var(--deep); font: 800 .9rem/1 var(--font-en);
}
.mf-cyc .is-cut .node { background: var(--deep); color: #fff; }
.mf-cyc .lab { position: absolute; width: 20%; font-weight: 800; font-size: .76rem; line-height: 1.45; color: #222; }
.mf-cyc :is(.side-right, .side-left) .lab { width: var(--lw, 20%); }
.mf-cyc .side-right .lab { left: calc(var(--x) + 8%); top: var(--y); transform: translateY(-50%); }
.mf-cyc .side-left .lab { right: calc(100% - var(--x) + 8%); top: var(--y); transform: translateY(-50%); text-align: right; }
.mf-cyc .side-top .lab { left: var(--x); bottom: calc(100% - var(--y) + 8%); width: 40%; transform: translateX(-50%); text-align: center; }
.mf-cyc .side-bottom .lab { left: var(--x); top: calc(var(--y) + 8%); width: 40%; transform: translateX(-50%); text-align: center; }
.mf-cyc .is-cut .lab { color: var(--deep); }
.mf-cyc .tag { display: table; margin-top: .3rem; padding: .2rem .6rem; border-radius: 999px; background: var(--deep); color: #fff; font-size: .68rem; white-space: nowrap; }
.mf-cyc .side-left .tag { margin-left: auto; }
.mf-cyc .side-top .tag, .mf-cyc .side-bottom .tag { margin-inline: auto; }
.mf-cyc .center { position: absolute; left: 50%; top: var(--cy, 50%); width: 34%; text-wrap: balance; transform: translate(-50%, -50%); text-align: center; }
.mf-cyc .center .ct { font-weight: 900; font-size: 1rem; line-height: 1.35; color: var(--deep); }
.mf-cyc .center .cs { margin-top: .2rem; font-size: .66rem; line-height: 1.45; color: #888; font-weight: 700; }
.mf-cyc .rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .7rem; margin-top: .6rem; }
.mf-cyc .rule { padding: .9rem 1rem 1rem; border: 1px solid #e3e3e3; border-radius: 12px; background: #fafafa; }
.mf-cyc .rule .k { font: 800 .7rem/1.2 var(--font-en); letter-spacing: .14em; color: var(--deep); }
.mf-cyc .rule .t { margin-top: .45rem; font-weight: 900; font-size: .98rem; line-height: 1.55; }
.mf-cyc .rule .s { margin-top: .35rem; font-size: .84rem; line-height: 1.75; color: #666; }
@media (min-width: 700px) {
  .mf-cyc .lab { font-size: .84rem; }
  .mf-cyc .side-right .lab, .mf-cyc .side-left .lab { width: 40%; }
  .mf-cyc .center .ct { font-size: 1.15rem; }
  .mf-cyc .center .cs { font-size: .74rem; }
}

/* 氷山: 水面の上の頂と、水面の下で広がる層 */
.mf-ice { position: relative; }
.mf-ice .berg { position: relative; width: min(100%, 520px); margin: 0 auto; }
.mf-ice .tip {
  display: flex; align-items: flex-end; justify-content: center; width: 38%; height: 72px; margin: 0 auto; padding-bottom: .5rem;
  background: var(--deep); clip-path: polygon(50% 0, 100% 100%, 0 100%); color: #fff; font-weight: 900; font-size: .95rem; line-height: 1.2;
}
.mf-ice .water { position: absolute; left: 0; right: 0; top: 72px; border-top: 2px dashed color-mix(in srgb, var(--deep) 30%, #bbb); transform-origin: 0 50%; }
.mf-ice .water span { position: absolute; right: 0; font-weight: 800; font-size: .7rem; letter-spacing: .06em; color: color-mix(in srgb, var(--deep) 55%, #999); white-space: nowrap; }
.mf-ice .water .above { bottom: .3rem; }
.mf-ice .water .below { top: .3rem; }
.mfig .mf-ice .mass { position: relative; list-style: none; margin: 0; padding: 1.4rem 0 1.1rem; display: grid; gap: .55rem; justify-items: center; }
.mf-ice .mass::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--deep) 7%, #fff); clip-path: polygon(31% 0, 69% 0, 100% 100%, 0 100%); }
.mf-ice .mass li {
  position: relative; width: var(--w); padding: .5rem .9rem; border: 1.5px solid color-mix(in srgb, var(--deep) 22%, #fff); border-radius: 999px;
  background: #fff; text-align: center; font-weight: 800; font-size: .84rem; line-height: 1.5; color: var(--deep);
}
.mf-ice .bottom { width: fit-content; max-width: 100%; margin: 1rem auto 0; padding: .6rem 2rem; border-radius: 999px; background: var(--deep); color: #fff; text-align: center; font-weight: 900; font-size: .9rem; line-height: 1.5; }
@media (max-width: 640px) { .mf-ice .water span { font-size: .64rem; } }
@media (min-width: 700px) { .mf-ice .tip { height: 84px; font-size: 1.05rem; } .mf-ice .water { top: 84px; } .mf-ice .mass li { font-size: .92rem; } }

/* 棒と折れ線 */
.mf-chart { --plot-h: 200px; }
.mf-chart .axis { font-weight: 800; font-size: .8rem; color: #666; }
.mf-chart .plot { position: relative; margin-top: 1.5rem; }
.mfig .mf-chart .cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.mf-chart .col { display: grid; grid-template-rows: var(--plot-h) auto; }
.mf-chart .area { position: relative; border-bottom: 2px solid #dcdcdc; }
.mf-chart .bar { position: absolute; left: 0; right: 0; width: min(68%, 72px); margin: 0 auto; bottom: 0; height: var(--h); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--deep) 28%, #fff); transform-origin: 50% 100%; }
.mf-chart .is-hot .bar { background: var(--deep); }
.mf-chart .is-zero .bar { display: none; }
.mf-chart .v { position: absolute; z-index: 2; left: 0; right: 0; width: fit-content; margin: 0 auto; padding: 1px 3px; border-radius: 4px; background: rgba(255,255,255,.85); bottom: calc(var(--h) + 4px); text-align: center; font: 800 .78rem/1 var(--font-en); color: #777; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.mf-chart .is-hot .v { color: var(--deep); }
.mf-chart .x { padding: .45rem .1rem 0; text-align: center; font-size: .7rem; font-weight: 700; line-height: 1.35; color: #777; word-break: keep-all; overflow-wrap: anywhere; }
/* 図の中の短い文は、最後の1文字だけが次の行に落ちないように */
.mfig { text-wrap: pretty; }
.mf-chart .x small, .mf-cyc .lab, .mf-ice .mass li { text-wrap: balance; }
.mf-chart .x small { display: block; margin-top: .2rem; font-size: .64rem; font-weight: 500; color: #999; }
.mf-chart .line { position: absolute; z-index: 1; left: 0; top: 0; width: 100%; height: var(--plot-h); overflow: visible; pointer-events: none; }
.mf-chart .line polyline { fill: none; stroke: var(--deep); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mf-chart .legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-top: .9rem; font-size: .78rem; font-weight: 800; color: #555; }
.mf-chart .lg-bar::before { content: ""; display: inline-block; width: 14px; height: 11px; margin-right: .45em; border-radius: 3px; background: color-mix(in srgb, var(--deep) 28%, #fff); }
.mf-chart .lg-line { color: var(--deep); }
.mf-chart .lg-line::before { content: ""; display: inline-block; width: 22px; height: 3px; margin-right: .45em; border-radius: 2px; background: var(--deep); vertical-align: .3em; }
@media (min-width: 700px) { .mf-chart { --plot-h: 240px; } .mf-chart .x { font-size: .78rem; } .mf-chart .v { font-size: .85rem; } }

/* 2つの場の対比と割合: 上下のカードと、2つに分かれた帯 */
.mf-split { display: grid; gap: .7rem; }
.mf-split .card { padding: 1rem 1.15rem 1.05rem; border-radius: 12px; background: #eef0f4; color: #22304f; }
.mf-split .card.is-hot { background: var(--tint); color: var(--deep); }
.mf-split .card .t { font-weight: 900; font-size: 1.12rem; line-height: 1.45; }
.mf-split .card .s { margin-top: .35rem; font-size: .9rem; line-height: 1.7; }
.mf-split .bl { margin-top: .5rem; font-weight: 800; font-size: .84rem; color: #666; }
.mf-split .bar { display: flex; height: 46px; border-radius: 10px; overflow: hidden; }
.mf-split .seg { position: relative; display: grid; place-items: center; width: var(--w); min-width: 0; }
.mf-split .seg-1 { background: var(--deep); color: #fff; transform-origin: 0 50%; }
.mf-split .seg-2 { background: color-mix(in srgb, var(--deep) 22%, #fff); color: var(--deep); transform-origin: 100% 50%; }
.mf-split .seg b { padding: 0 .4rem; font-weight: 900; font-size: .9rem; line-height: 1.25; text-align: center; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .mf-split .seg b { font-size: .98rem; } }
.mf-split .lg { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .8rem; font-weight: 800; color: #555; }
.mf-split .lg span::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: .4em; border-radius: 3px; vertical-align: -1px; }
.mf-split .lg-1::before { background: var(--deep); }
.mf-split .lg-2::before { background: color-mix(in srgb, var(--deep) 22%, #fff); }
@media (min-width: 700px) { .mf-split .card { padding: 1.15rem 1.4rem 1.2rem; } .mf-split .bar { height: 52px; } }

/* --- 動き（図が見えたときだけ。出す前の状態 → 出す動き） */
.motion .mfig:not(.is-in) :is(.mf-cmp-card, .mf-cmp-card li, .mf-steps .dot, .mf-steps .tx, .mf-checks li, .mf-bar, .mf-stat, .mf-flow li, .mf-mx .q, .mf-mx .ax) { opacity: 0; }
.motion .mfig:not(.is-in) .mf-steps li::after { transform: scaleY(0); }
.motion .mfig:not(.is-in) .mf-bar .fill { transform: scaleX(0); }
.motion .mfig:not(.is-in) .mf-mx .line-x { transform: scaleX(0); }
.motion .mfig:not(.is-in) .mf-mx .line-y { transform: scaleY(0); }
.motion .mfig:not(.is-in) .mf-checks .ck path { stroke-dashoffset: 20; }
.motion .mfig:not(.is-in) .mf-flag { opacity: 0; }
.motion .mfig:not(.is-in) :is(.mf-picto .fg, .mf-ratio span) { transform: scaleX(0); }
.motion .mfig:not(.is-in) .mf-rise-line { clip-path: inset(0 100% 0 0); }
.motion .mfig:not(.is-in) :is(.mf-pair .hd, .mf-pair .l, .mf-pair .r, .mf-cyc .node, .mf-cyc .lab, .mf-cyc .center, .mf-cyc .rule, .mf-cyc .arc polygon, .mf-ice .tip, .mf-ice .mass li, .mf-ice .bottom, .mf-chart .v, .mf-chart .legend) { opacity: 0; }
.motion .mfig:not(.is-in) .mf-pair .ar svg, .motion .mfig:not(.is-in) .mf-ice .water { transform: scaleX(0); }
.motion .mfig:not(.is-in) .mf-ice .mass::before { opacity: 0; }
.motion .mfig:not(.is-in) :is(.mf-cyc .wheel .base, .mf-cyc .arc path) { stroke-dashoffset: 1; }
.motion .mfig:not(.is-in) .mf-chart .bar { transform: scaleY(0); }
.motion .mfig:not(.is-in) .mf-chart .line { clip-path: inset(0 100% 0 0); }
.motion .mfig:not(.is-in) :is(.mf-split .card, .mf-split .bl, .mf-split .seg b, .mf-split .lg) { opacity: 0; }
.motion .mfig:not(.is-in) .mf-split .seg { transform: scaleX(0); }

@keyframes mf-fade-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes mf-from-left { from { opacity: 0; transform: translateX(-22px); } }
@keyframes mf-from-right { from { opacity: 0; transform: translateX(22px); } }
@keyframes mf-pop { 0% { opacity: 0; transform: scale(.4); } 70% { transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
@keyframes mf-rise { from { opacity: 0; transform: scale(.92) translateY(8px); } }
@keyframes mf-grow-x { from { transform: scaleX(0); } }
@keyframes mf-grow-y { from { transform: scaleY(0); } }
@keyframes mf-draw { from { stroke-dashoffset: 20; } }
@keyframes mf-reveal-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mf-flag { 0% { opacity: 0; transform: scaleY(.2); } 55% { opacity: 1; transform: scaleY(1.08) rotate(-4deg); } 80% { transform: rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes mf-pop-s { 0% { opacity: 0; scale: .4; } 70% { scale: 1.12; } 100% { opacity: 1; scale: 1; } }
@keyframes mf-dash { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mf-surface { from { opacity: 0; transform: translateY(45%); } }
@keyframes mf-fade { from { opacity: 0; } }
@keyframes mf-cut { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--deep) 45%, transparent); } 50% { box-shadow: 0 0 0 9px transparent; } }
@keyframes mf-hot { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--deep) 45%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }

.motion .mfig.is-in .mf-cmp-card.is-left { animation: mf-from-left .7s var(--ease-out) .15s backwards; }
.motion .mfig.is-in .mf-cmp-card.is-right { animation: mf-from-right .7s var(--ease-out) .35s backwards; }
.motion .mfig.is-in .mf-cmp-card li { animation: mf-fade-up .5s var(--ease-out) backwards; animation-delay: calc(.45s + var(--i) * .2s + var(--j) * .08s); }
.motion .mfig.is-in .mf-steps li::after { animation: mf-grow-y .45s var(--ease-out) backwards; animation-delay: calc(.45s + var(--i) * .28s); }
.motion .mfig.is-in .mf-steps .dot { animation: mf-pop .55s var(--ease-out) backwards; animation-delay: calc(.25s + var(--i) * .28s); }
.motion .mfig.is-in .mf-steps .tx { animation: mf-fade-up .6s var(--ease-out) backwards; animation-delay: calc(.35s + var(--i) * .28s); }
.motion .mfig.is-in .mf-rise-line { animation: mf-reveal-x 1.3s var(--ease-out) .2s backwards; }
.motion .mfig.is-in .mf-flag { animation: mf-flag .8s var(--ease-out) backwards; animation-delay: calc(.45s + var(--n) * .28s); }
.motion .mfig.is-in .mf-pair .hd { animation: mf-fade .5s var(--ease-out) .1s backwards; }
.motion .mfig.is-in .mf-pair .l { animation: mf-from-left .55s var(--ease-out) backwards; animation-delay: calc(.2s + var(--i) * .24s); }
.motion .mfig.is-in .mf-pair .ar svg { animation: mf-grow-x .35s var(--ease-out) backwards; animation-delay: calc(.45s + var(--i) * .24s); }
.motion .mfig.is-in .mf-pair .r { animation: mf-rise .55s var(--ease-out) backwards; animation-delay: calc(.6s + var(--i) * .24s); }
.motion .mfig.is-in .mf-cyc .wheel .base { animation: mf-dash 1.2s var(--ease-out) .1s backwards; }
.motion .mfig.is-in .mf-cyc .node { animation: mf-pop-s .5s var(--ease-out) backwards; animation-delay: calc(.35s + var(--i) * .2s); }
.motion .mfig.is-in .mf-cyc .lab { animation: mf-fade .5s var(--ease-out) backwards; animation-delay: calc(.45s + var(--i) * .2s); }
.motion .mfig.is-in .mf-cyc .arc path { animation: mf-dash .4s ease-in-out backwards; animation-delay: calc(.5s + var(--i) * .2s); }
.motion .mfig.is-in .mf-cyc .arc polygon { animation: mf-fade .2s linear backwards; animation-delay: calc(.85s + var(--i) * .2s); }
.motion .mfig.is-in .mf-cyc .center { animation: mf-fade .7s var(--ease-out) backwards; animation-delay: calc(.5s + var(--n) * .2s); }
.motion .mfig.is-in .mf-cyc .is-cut .node { animation: mf-pop-s .5s var(--ease-out) backwards, mf-cut 1.2s ease-out 2; animation-delay: calc(.35s + var(--i) * .2s), calc(.8s + var(--n) * .2s); }
.motion .mfig.is-in .mf-cyc .tag { animation: mf-from-left .5s var(--ease-out) backwards; animation-delay: calc(.7s + var(--n) * .2s); }
.motion .mfig.is-in .mf-cyc .rule { animation: mf-fade-up .55s var(--ease-out) backwards; animation-delay: calc(.6s + var(--n) * .2s + var(--i) * .12s); }
.motion .mfig.is-in .mf-ice .tip { animation: mf-surface .8s var(--ease-out) .1s backwards; }
.motion .mfig.is-in .mf-ice .water { animation: mf-grow-x .7s var(--ease-out) .35s backwards; }
.motion .mfig.is-in .mf-ice .mass::before { animation: mf-fade .6s var(--ease-out) .5s backwards; }
.motion .mfig.is-in .mf-ice .mass li { animation: mf-fade-up .5s var(--ease-out) backwards; animation-delay: calc(.65s + var(--i) * .2s); }
.motion .mfig.is-in .mf-ice .bottom { animation: mf-pop .55s var(--ease-out) backwards; animation-delay: calc(.85s + var(--n) * .2s); }
.motion .mfig.is-in .mf-chart .bar { animation: mf-grow-y .6s var(--ease-out) backwards; animation-delay: calc(.15s + var(--i) * .07s); }
.motion .mfig.is-in .mf-chart .v { animation: mf-fade .35s var(--ease-out) backwards; animation-delay: calc(.55s + var(--i) * .07s); }
.motion .mfig.is-in .mf-chart .line { animation: mf-reveal-x 1.1s ease-in-out backwards; animation-delay: calc(.55s + var(--n) * .07s); }
.motion .mfig.is-in .mf-chart .legend { animation: mf-fade .5s var(--ease-out) backwards; animation-delay: calc(.7s + var(--n) * .07s); }
.motion .mfig.is-in .mf-split .card { animation: mf-fade-up .55s var(--ease-out) backwards; animation-delay: calc(.15s + var(--i) * .22s); }
.motion .mfig.is-in .mf-split .bl { animation: mf-fade .5s var(--ease-out) .55s backwards; }
.motion .mfig.is-in .mf-split .seg { animation: mf-grow-x .8s var(--ease-out) .7s backwards; }
.motion .mfig.is-in .mf-split .seg b, .motion .mfig.is-in .mf-split .lg { animation: mf-fade .4s var(--ease-out) 1.3s backwards; }
.motion .mfig.is-in .mf-checks li { animation: mf-fade-up .6s var(--ease-out) backwards; animation-delay: calc(.15s + var(--i) * .22s); }
.motion .mfig.is-in .mf-checks .ck path { animation: mf-draw .5s var(--ease-out) backwards; animation-delay: calc(.5s + var(--i) * .22s); }
.motion .mfig.is-in .mf-bar { animation: mf-fade-up .5s var(--ease-out) backwards; animation-delay: calc(.1s + var(--i) * .15s); }
.motion .mfig.is-in .mf-bar .fill { animation: mf-grow-x 1.1s var(--ease-out) backwards; animation-delay: calc(.3s + var(--i) * .15s); }
.motion .mfig.is-in .mf-stat { animation: mf-rise .6s var(--ease-out) backwards; animation-delay: calc(.15s + var(--i) * .15s); }
.motion .mfig.is-in .mf-picto .fg { animation: mf-grow-x 1.5s cubic-bezier(.45, 0, .25, 1) backwards; animation-delay: calc(.6s + var(--i) * .2s); }
.motion .mfig.is-in .mf-ratio span { animation: mf-grow-x 1.1s var(--ease-out) backwards; animation-delay: calc(.5s + var(--i) * .15s); }
.motion .mfig.is-in .mf-flow li { animation: mf-fade-up .55s var(--ease-out) backwards; animation-delay: calc(.15s + var(--i) * .25s); }
.motion .mfig.is-in .mf-mx .line-x { animation: mf-grow-x .8s var(--ease-out) .1s backwards; }
.motion .mfig.is-in .mf-mx .line-y { animation: mf-grow-y .8s var(--ease-out) .25s backwards; }
.motion .mfig.is-in .mf-mx .q { animation: mf-rise .55s var(--ease-out) backwards; animation-delay: calc(.55s + var(--i) * .15s); }
.motion .mfig.is-in .mf-mx .q.is-hot { animation: mf-rise .55s var(--ease-out) backwards, mf-hot 1.4s ease-out 1.4s 1; animation-delay: calc(.55s + var(--i) * .15s), 1.4s; }
.motion .mfig.is-in .mf-mx .ax { animation: mf-fade-up .5s var(--ease-out) 1.1s backwards; }

@media (max-width: 640px) {
  .post .mfig, .mfig { margin-left: -1.1rem; margin-right: -1.1rem; padding: 1.3rem 1.1rem 1.1rem; border-left: 0; border-right: 0; }
  .mf-mx .grid { gap: 8px; }
  .mf-mx .q { padding: .8rem .6rem .85rem; }
  .mf-mx .q .t { font-size: .86rem; }
  .mf-mx .q .s { font-size: .74rem; }
}

/* --------------------------------------------------------- CTA（暗色帯） */
.cta-agent {
  background: var(--charcoal); color: #fff;
  padding: 2rem 1.75rem; margin: 3.5rem 0; font-size: 16px; line-height: 1.7;
}
.cta-agent .eyebrow { font-family: var(--font-en); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; color: rgba(255,255,255,.6); margin: 0; }
.cta-agent .headline { font-family: var(--font-jp); font-weight: 900; font-size: 1.35rem; margin: .2rem 0 .8rem; }
.cta-agent p { margin: .4rem 0; color: rgba(255,255,255,.88); }
.cta-agent .cta-button {
  display: inline-block; margin-top: .7rem; background: #fff; color: var(--charcoal);
  padding: .8rem 1.8rem; text-decoration: none; font-weight: 800; font-size: 15px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.cta-agent .cta-button:hover { background: var(--cat, var(--cat-gakushu)); color: #fff; }

/* --------------------------------------------------------- 著者ボックス */
.author-box { border-top: 3px solid var(--ink); margin-top: 3.5rem; padding-top: 1.25rem; font-size: .9rem; color: var(--muted); line-height: 1.9; }
.author-box strong { color: var(--ink); font-family: var(--font-jp); }
.author-box p { margin: 0 0 .5rem; }
.author-box-label { font-family: var(--font-en); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.author-box-name { font-family: var(--font-jp); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.author-box-org { font-weight: 400; font-size: .82rem; color: var(--muted); margin-left: .6rem; }
.author-box-cred { font-size: .84rem; color: var(--ink); }
.author-box-cred::before { content: "資格"; font-family: var(--font-en); font-size: .68rem; letter-spacing: .08em; background: var(--ink); color: #fff; padding: .1rem .4rem; margin-right: .5rem; }
.author-box-career { font-size: .84rem; }
.author-box-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .75rem; }
.author-box-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------- 計算ツール（/keisan/） */
.keisan-lede { font-size: .95rem; line-height: 2; }
.keisan { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.5rem 0 2rem; }
.keisan fieldset { border: 1px solid var(--line); padding: 1.1rem 1.2rem 1.3rem; margin: 0; }
.keisan legend {
  font-family: var(--font-jp); font-weight: 800; font-size: .84rem; letter-spacing: .04em;
  padding: 0 .5rem; background: var(--ink); color: #fff;
}
.keisan label { display: block; font-size: .84rem; font-weight: 700; color: var(--ink); margin-top: 1rem; }
.keisan label span { font-weight: 400; color: var(--muted); margin-left: .4rem; }
.keisan input, .keisan select {
  display: block; width: 100%; margin-top: .35rem; padding: .55rem .7rem;
  font-family: var(--font-jp); font-size: 1rem; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); background: #fff; border-radius: 0;
}
.keisan input:focus, .keisan select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.keisan-out { margin: 0 0 2.5rem; }
.keisan-kpi { display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--charcoal); color: #fff; }
.keisan-kpi > div { padding: 1.1rem 1.2rem; border-left: 1px solid rgba(255,255,255,.14); }
.keisan-kpi > div:first-child { border-left: 0; }
.keisan-kpi .k-label { margin: 0 0 .3rem; font-size: .74rem; letter-spacing: .06em; color: rgba(255,255,255,.65); }
.keisan-kpi .k-value { margin: 0; font-family: var(--font-jp); font-weight: 900; font-size: 1.35rem; color: #fff; }
.keisan-hantei {
  margin: 0; padding: 1rem 1.2rem; font-size: .92rem; line-height: 1.9;
  background: var(--cream); border-left: 5px solid var(--muted);
}
.keisan-hantei.is-good { border-left-color: var(--good); }
.keisan-hantei.is-warn { border-left-color: var(--info); }
.keisan-hantei.is-bad  { border-left-color: var(--warn); }
.keisan-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .88rem; }
.keisan-table caption { text-align: left; font-weight: 700; color: var(--muted); font-size: .8rem; padding-bottom: .5rem; }
.keisan-table th, .keisan-table td { border-bottom: 1px solid var(--line); padding: .55rem .6rem; text-align: right; }
.keisan-table thead th { font-size: .78rem; text-align: right; }
.keisan-table thead th:first-child, .keisan-table tbody th { text-align: left; white-space: nowrap; }
.keisan-table tr.is-minus td:last-child { color: var(--warn); font-weight: 800; }
@media (max-width: 720px) {
  .keisan { grid-template-columns: 1fr; }
  .keisan-kpi { grid-template-columns: 1fr; }
  .keisan-kpi > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .keisan-kpi > div:first-child { border-top: 0; }
  .keisan-table { font-size: .8rem; }
  .keisan-table th, .keisan-table td { padding: .45rem .35rem; }
}

/* 計算ツールの追加パーツ（グラフ・3択の比較・注意書き） */
.keisan-hint { margin: 1rem 0 0; font-size: .78rem; line-height: 1.7; color: var(--muted); }
.keisan-alert {
  margin: 0 0 1.5rem; padding: 1rem 1.2rem; background: var(--cream);
  border-left: 5px solid var(--warn); font-size: .88rem; line-height: 1.9;
}
.keisan-alert p { margin: 0; }
.keisan-chart { margin: 1.8rem 0 0; }
.keisan-chart svg { display: block; width: 100%; height: auto; }
.keisan-opts { display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); margin-top: 1.5rem; }
.opt { background: var(--bg); padding: 1.2rem 1.2rem 1.4rem; }
.opt-num { margin: 0; font-family: var(--font-en); font-weight: 800; font-size: .8rem; letter-spacing: .1em; color: var(--muted); }
.opt h3 { margin: .2rem 0 .9rem; font-size: 1.05rem; font-weight: 900; }
.opt-kpi { margin: 0 0 .9rem; }
.opt-kpi > div { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.opt-kpi dt { font-size: .76rem; color: var(--muted); }
.opt-kpi dd { margin: 0; font-weight: 800; font-size: .92rem; text-align: right; }
.opt-note { margin: 0; font-size: .82rem; line-height: 1.8; color: var(--ink); }
.keisan-timeline td:first-of-type { white-space: nowrap; }

/* --------------------------------------------------------- 求人票の表現辞典（/kyujin-hyougen/） */
.word-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.word-filter button {
  display: inline-flex; align-items: baseline; gap: .4rem;
  font-family: var(--font-jp); font-weight: 800; font-size: .82rem; color: var(--ink);
  background: none; border: 1px solid var(--line); padding: .5rem .9rem; cursor: pointer;
}
.word-filter button span { font-family: var(--font-en); font-size: .72rem; color: var(--muted); }
.word-filter button:hover { border-color: var(--ink); }
.word-filter button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.word-filter button.is-on span { color: rgba(255,255,255,.7); }
.word-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.word { background: var(--bg); padding: 1.4rem 1.4rem 1.5rem; }
.word[hidden] { display: none; }
.word-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; }
.word-head h3 { margin: 0; font-size: 1.15rem; font-weight: 900; }
.word-cat { font-size: .72rem; font-weight: 700; color: #fff; background: var(--cat-default); padding: .15rem .5rem; }
.word-imi { margin: .7rem 0 1.1rem; font-size: .9rem; line-height: 1.95; }
.word-two { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.word-col h4 { margin: 0 0 .5rem; font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.word-col ul { margin: 0; padding-left: 1.1rem; }
.word-col li { font-size: .84rem; line-height: 1.8; margin-bottom: .4rem; }
.word-q { list-style: none; padding-left: 0 !important; }
.word-q li { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem .6rem; background: var(--cream); margin-bottom: .4rem; }
.word-q li span { flex: 1; }
.word-copy {
  flex: none; font-family: var(--font-jp); font-weight: 800; font-size: .72rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); padding: .3rem .6rem; cursor: pointer; white-space: nowrap;
}
.word-copy:hover { border-color: var(--ink); }
.word-copy.is-done { background: var(--ink); color: #fff; border-color: var(--ink); }
.word-src { margin: 1rem 0 0; font-size: .78rem; line-height: 1.8; color: var(--muted); }

/* 上の2つ（計算ツールの3択・辞典）のスマホ表示。
   定義より後ろに置くこと。同じ詳細度では後ろのルールが勝つため、
   ファイル前方の @media に書くと打ち消せない。 */
@media (max-width: 720px) {
  .keisan-opts { grid-template-columns: 1fr; }
  .word-two { grid-template-columns: 1fr; gap: 1rem; }
  .word { padding: 1.2rem 1.1rem 1.3rem; }
  .word-filter { gap: .4rem; }
  .word-filter button { font-size: .78rem; padding: .45rem .7rem; }
}

/* 記事末尾「この記事の更新」と /corrections/ の更新一覧 */
.post-updates { margin: 2.5rem 0 0; padding: 1.4rem 1.5rem 1.5rem; background: var(--cream); }
.post-updates .mag-head { margin-bottom: .9rem; }
.post-updates .mag-head .en { color: var(--cat, var(--ink)); font-size: .9rem; }
.post-updates .mag-head .ja { font-size: 1.05rem; }
.post-updates ul { margin: 0; padding-left: 1.1rem; }
.post-updates li { font-size: .86rem; line-height: 1.9; margin-bottom: .5rem; }
.post-updates time {
  display: inline-block; margin-right: .6rem; font-family: var(--font-en);
  font-weight: 700; font-size: .78rem; color: var(--muted);
}
.post-updates-note { margin: .9rem 0 0; font-size: .76rem; line-height: 1.8; color: var(--muted); }
.upd-count { margin: 1.2rem 0 .6rem; font-family: var(--font-en); font-weight: 700; font-size: .8rem; color: var(--muted); }
.upd-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.upd { background: var(--bg); padding: 1rem 1.2rem 1.1rem; }
.upd-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; margin: 0 0 .4rem; }
.upd-meta time { font-family: var(--font-en); font-weight: 700; font-size: .78rem; color: var(--muted); }
.upd-tag { font-size: .72rem; font-weight: 700; color: #fff; background: var(--cat-default); padding: .15rem .5rem; }
.upd-what { margin: 0 0 .5rem; font-size: .86rem; line-height: 1.9; }
.upd-post { margin: 0; font-size: .82rem; font-weight: 700; }

/* --------------------------------------------------------- フッター（暗色帯） */
.site-footer {
  background: var(--footer); color: rgba(255,255,255,.7);
  margin-top: 4rem; padding: 2.5rem 1.25rem calc(3.6rem + var(--dock-h) + env(safe-area-inset-bottom)); text-align: center; font-size: .84rem; line-height: 2;
}
.site-footer .mag-head { justify-content: center; margin-bottom: 1rem; }
.site-footer .mag-head .en, .site-footer .mag-head .ja { color: #fff; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* --------------------------------------------------------- 下部ナビ（すりガラスの浮いたバー）: _includes/bottom-nav.html */
/* 画面の端から少し浮かせた丸いバー。後ろの写真や文字がぼけて透け、縁に細い光のハイライトを入れる
   （iOS の Liquid Glass・メルカリの下部ナビを参考）。いまいる入口は明るい丸い面で持ち上げる。 */
.dock {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  height: var(--dock-h); padding: 5px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.5));
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),          /* 上の縁の光 */
    inset 0 -1px 0 rgba(0,0,0,.05),               /* 下の縁の影 */
    0 1px 2px rgba(0,0,0,.06),
    0 12px 32px -10px rgba(0,0,0,.28);            /* 浮いて見える落ち影 */
  animation: dock-in .6s var(--ease-out) .15s backwards;
}
@keyframes dock-in { from { transform: translateY(calc(100% + 24px)); opacity: 0; } }
/* ぼかしが効かないブラウザと「透明度を下げる」設定の人には、ほぼ不透明にする（文字が読めなくならないように） */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dock { background: rgba(255,255,255,.94); }
}
@media (prefers-reduced-transparency: reduce) {
  .dock { background: rgba(255,255,255,.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.dock-item {
  position: relative; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; border-radius: 999px; background: none; color: #2b2b2b; text-decoration: none; cursor: pointer;
  font-family: var(--font-jp); font-size: .62rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
  text-shadow: 0 0 6px rgba(255,255,255,.7);      /* 濃い写真の上でも文字を拾えるように */
  -webkit-tap-highlight-color: transparent; transition: color .2s, transform .2s var(--ease-out);
}
.dock-item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock-item:hover { color: var(--ink); }
.dock-item:active { transform: scale(.9); }
/* いまいる入口: 明るいガラスの丸い面（メルカリの「ホーム」の持ち上がり） */
.dock-item::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 2px 8px -2px rgba(0,0,0,.18);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .3s var(--ease-out);
}
.dock-item.is-current, .dock-item[aria-expanded="true"] { color: color-mix(in srgb, var(--cat, var(--ink)) 72%, #000); }
.dock-item.is-current::after, .dock-item[aria-expanded="true"]::after { opacity: 1; transform: none; }
.dock-item.is-current svg { stroke-width: 2; }
.dock-item:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.dock-badge {
  position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--cat-jitsumu); color: #fff; font: 700 .6rem/1 var(--font-en);
  animation: pop .35s var(--ease-out);
}
.dock-badge[hidden] { display: none; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
/* 目次ボタンの読了リング */
.dock-toc > svg { position: relative; z-index: 1; }
.dock-ring { position: absolute; top: 4px; left: 50%; width: 32px; height: 32px; transform: translateX(-50%) rotate(-90deg); }
.dock-ring svg { width: 32px; height: 32px; }
.dock-ring circle { fill: none; stroke-width: 2.4; }
.dock-ring .track { stroke: var(--line); }
.dock-ring .bar { stroke: color-mix(in srgb, var(--cat, var(--ink)) 72%, #000); stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
.dock-toc span:last-child { margin-top: 3px; }
/* 記事ページの上端に出す読了バー */
.read-progress {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ink); transform: scaleX(0); transform-origin: 0 50%;
}
@media (min-width: 961px) {
  .dock { left: 50%; right: auto; width: 520px; transform: translateX(-50%); bottom: 16px; }
  @keyframes dock-in { from { transform: translate(-50%, calc(100% + 24px)); opacity: 0; } }
}

/* --------------------------------------------------------- サイト内検索の画面: _includes/search-overlay.html */
/* スマホは全画面、PC は中央のパネル。行は「丸いアイコン・本文（補足）・右端の矢印か削除」の組み */
.search-ov { position: fixed; inset: 0; z-index: 50; background: rgba(16,16,16,.4); opacity: 0; transition: opacity .2s var(--ease); }
.search-ov[hidden] { display: none; }
.search-ov.is-open { opacity: 1; }
.search-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg);
  transform: translateY(14px); transition: transform .28s var(--ease-out);
}
.search-ov.is-open .search-panel { transform: none; }
body.search-open { overflow: hidden; }
.search-top { flex: none; display: flex; align-items: center; gap: .7rem; padding: calc(.8rem + env(safe-area-inset-top)) 1rem .8rem; border-bottom: 1px solid var(--line); }
.search-back {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer;
}
.search-back svg, .search-field svg, .search-clear svg, .search-row svg, .search-pill svg, .search-del svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.search-back svg { width: 22px; height: 22px; }
.search-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; height: 48px; padding: 0 .5rem 0 1rem;
  border: 1px solid #cfcfcf; border-radius: 999px; background: #f6f6f4;
}
.search-field:focus-within { border-color: var(--ink); background: var(--bg); }
.search-field > svg { flex: none; width: 20px; height: 20px; color: #6b6b6b; }
.search-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field input::placeholder { color: #a3a3a3; }
.search-clear {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: #b9b9b9; color: #fff; cursor: pointer;
}
.search-clear[hidden] { display: none; }
.search-clear svg { width: 16px; height: 16px; stroke-width: 2.6; }
.search-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1rem calc(2rem + env(safe-area-inset-bottom)); }
.search-idle[hidden], .search-sugg[hidden], .search-hist[hidden] { display: none; }
.search-entry { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; margin-bottom: 1.6rem; }
.search-pill {
  display: flex; align-items: center; justify-content: center; gap: .55rem; height: 52px; border-radius: 999px;
  border: 0; background: #f1f0ec; color: var(--ink); text-decoration: none; cursor: pointer;
  font-family: var(--font-jp); font-weight: 800; font-size: .92rem;
}
.search-pill:hover { background: #e7e5df; color: var(--ink); }
.search-pill svg { width: 20px; height: 20px; }
.search-h { margin: 0 0 .8rem; font-family: var(--font-jp); font-weight: 900; font-size: 1.05rem; color: #6b6b6b; }
.search-h-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 1.8rem; }
.search-hist-clear { border: 0; background: none; color: #6b6b6b; font: inherit; font-size: .82rem; text-decoration: underline; cursor: pointer; }
.search-pop { display: flex; flex-wrap: wrap; gap: .5rem; }
.search-chip {
  border: 1px solid #d6d6d6; border-radius: 999px; background: var(--bg); color: var(--ink); cursor: pointer;
  padding: .5rem 1rem; font-family: var(--font-jp); font-weight: 700; font-size: .88rem;
}
.search-chip:hover { border-color: var(--ink); }
.search-rows { list-style: none; margin: 0; padding: 0; }
.search-rows li { display: flex; align-items: center; border-top: 1px solid var(--line); }
.search-rows li:last-child { border-bottom: 1px solid var(--line); }
.search-sugg li:first-child { border-top: 0; }
.search-row {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .9rem; padding: .75rem 0; min-height: 68px;
  border: 0; background: none; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; font: inherit;
}
.search-row:hover { color: var(--ink); background: #fafaf8; }
.search-row .ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #f1f0ec; color: #444; }
.search-row .ico svg { width: 21px; height: 21px; }
.search-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.search-row .m { font-weight: 700; font-size: .98rem; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-row .s { font-size: .78rem; color: #8a8a8a; }
.search-row .end { flex: none; color: #777; padding-right: .2rem; }
.search-row .end svg { width: 22px; height: 22px; }
.search-del { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: #8a8a8a; cursor: pointer; }
.search-del svg { width: 18px; height: 18px; }
.search-hist .search-row .end { display: none; }
@media (min-width: 761px) {
  .search-panel { inset: 7vh auto auto 50%; width: 640px; max-height: 80vh; transform: translate(-50%, 14px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
  .search-ov.is-open .search-panel { transform: translate(-50%, 0); }
  .search-top { padding-top: .9rem; }
}

/* --------------------------------------------------------- シート（保存した記事・目次） */
.sheet[hidden], .sheet-backdrop[hidden] { display: none; }
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 35; background: rgba(16,16,16,.38);
  opacity: 0; transition: opacity .25s var(--ease);
}
.sheet-backdrop.is-open { opacity: 1; }
.sheet {
  position: fixed; z-index: 36; left: 50%; bottom: 0; width: min(100%, 640px); max-height: 78vh;
  display: flex; flex-direction: column;
  padding: .6rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom));
  background: var(--bg); border-radius: 14px 14px 0 0;
  box-shadow: 0 -20px 50px -20px rgba(0,0,0,.35);
  transform: translate(-50%, 104%); transition: transform .32s var(--ease-out);
}
.sheet.is-open { transform: translate(-50%, 0); }
.sheet-grip { width: 42px; height: 5px; margin: 0 auto .6rem; border-radius: 99px; background: var(--line); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sheet-head .mag-head { margin: .2rem 0 .6rem; }
.sheet-head .mag-head .ja { font-size: 1.15rem; }
.sheet-close {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--ink); font-size: 1.2rem; line-height: 1;
}
.sheet-list, .sheet-toc { overflow-y: auto; overscroll-behavior: contain; }
.sheet-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.sheet-toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.sheet-toc a {
  display: flex; gap: .8rem; padding: .85rem .1rem; text-decoration: none; color: var(--ink);
  font-weight: 700; line-height: 1.5; font-size: .95rem;
}
.sheet-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font-family: var(--font-en); color: var(--cat, var(--muted)); }
.sheet-empty { color: var(--muted); font-size: .88rem; line-height: 1.8; margin: .4rem 0 0; }
body.sheet-open { overflow: hidden; }

/* --------------------------------------------------------- スクロールで出す（assets/js/site.js が .is-in を付ける）
   隠すのは <head> の1行が html に .motion を付けたときだけ（動きを減らす設定・JS 無しなら最初から見えている）。
   site.js が読み込めなかったときは <head> の1行が3秒で .motion を外すので、隠れたままにはならない。
   **この一覧は site.js の REVEAL と同じにしておく。** 片方にだけ足すと、隠れたまま出てこない要素ができる。 */
.motion .action-tile:not(.is-in),
.motion .hub-card:not(.is-in),
.motion .article-card:not(.is-in),
.motion .flow-step:not(.is-in),
.motion .job-section .section-top:not(.is-in),
.motion .hero-stats .stat:not(.is-in),
.motion .num-card:not(.is-in),
.motion .post-body > h2:not(.is-in),
.motion .post-body > figure:not(.is-in),
.motion .post-body > .point:not(.is-in),
.motion .post-body > table:not(.is-in),
.motion .post-body .linkcard:not(.is-in),
.motion .post-faq:not(.is-in),
.motion .cta-agent:not(.is-in),
.motion .author-box:not(.is-in),
.motion .related-posts:not(.is-in),
.motion .post-updates:not(.is-in),
.motion .reader-card:not(.is-in),
.motion .sh-item:not(.is-in),
.motion .when-list li:not(.is-in),
.motion .reading-path:not(.is-in),
.motion .map-row:not(.is-in),
.motion .post-body > blockquote:not(.is-in),
.motion .post-body > pre:not(.is-in),
.motion .post-body > ul:not(.is-in),
.motion .post-body > ol:not(.is-in),
.motion .post-body > .editor-note:not(.is-in),
.motion .post-map:not(.is-in),
.motion .post-track:not(.is-in),
.motion .map-stage:not(.is-in),
.motion .map-track:not(.is-in),
.motion .handoff:not(.is-in), .motion .work-steps:not(.is-in),
.motion .cert:not(.is-in),
.motion .word:not(.is-in),
.motion .post-body .quiz:not(.is-in),
.motion .quiz-tally:not(.is-in) {
  opacity: 0; transform: translateY(22px);
}
/* 出す動きは transition ではなく、始まる前だけ効く animation（fill: backwards）にする。
   終わったあとは元の指定に戻るので、カードのホバーの浮き上がりを上書きしない。 */
.motion .is-in { animation: reveal .7s var(--ease-out) var(--d, 0ms) backwards; }
@keyframes reveal { from { opacity: 0; transform: var(--reveal-from, translateY(22px)); } }
/* 見出しは左から、図版はわずかに拡大から */
.post-body > h2 { --reveal-from: translateX(-16px); }
.post-body > figure { --reveal-from: scale(.97); }
.motion .post-body > h2:not(.is-in) { transform: translateX(-16px); }
.motion .post-body > figure:not(.is-in) { transform: scale(.97); }
/* 記事本文の H2 の上の色帯が左から伸びる */
.motion .post-body > h2::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-out) .15s; }
.motion .post-body > h2.is-in::before { transform: none; }

/* --------------------------------------------------------- 品質フロア */
:where(a, button, .hub-card, .article-card):focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  @view-transition { navigation: none; }
}

@media (max-width: 640px) {
  main { padding: 2rem 1.1rem 3.5rem; }
  main.wide { padding: 2rem 1.1rem 3.5rem; }
  main.home { padding-top: .75rem; }
  .site-header { height: 54px; }
  /* スマホのファーストビューに行動導線（探す・知る・進める・確かめる）まで入れる。
     ヒーローの上下余白と各タイルの高さを詰め、タイルは番号を左に置いた1行組にする。 */
  .hero { padding: .45rem 0 .9rem; }
  /* ヒーローの英字＋和文キャプションはヘッダーの社名と重複する。
     スマホでは出さない（40px 稼いで行動導線を上げる）。 */
  .hero .mag-head { margin-bottom: 1rem; }
  .hero h1 { font-size: 1.55rem; line-height: 1.3; margin-bottom: .55rem; }
  .hero .lede { font-size: .86rem; line-height: 1.6; }
  .action-bar { grid-template-columns: 1fr; gap: .45rem; margin: .6rem 0 1.25rem; }
  body.nav-open .nav-cats { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  body.nav-open .nav-cat { min-height: 104px; padding: .9rem .9rem 1rem; }
  body.nav-open .site-header nav { padding-bottom: calc(3rem + var(--dock-h)); }
  .hero-stats { gap: .8rem 1.8rem; margin-top: 1.2rem; }
  .hub-card { min-height: 180px; }
  .action-tile {
    display: grid; grid-template-columns: auto 1fr; align-items: baseline;
    gap: .1rem .7rem; padding: .62rem 1.05rem;
  }
  .action-tile .num { grid-column: 1; grid-row: 1; }
  .action-tile strong { grid-column: 2; grid-row: 1; font-size: 1.05rem; }
  .action-tile .desc { grid-column: 2; grid-row: 2; font-size: .75rem; line-height: 1.4; }
  .action-tile:hover { padding-left: 1.05rem; }  /* タップで横に伸びると読みにくい */
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .flow-step { padding: 1.2rem 1rem 1.3rem; }
  .site-header .brand .en { font-size: 1.12rem; }
  .site-header .brand .ja { font-size: .62rem; letter-spacing: .04em; }
  .num-card { padding: 1.3rem 1.2rem 1.2rem; }
  /* 職種ハブも同じく、見出しに届くまでの余白を詰める */
  .hub-masthead { padding: .75rem 0 1.2rem; }
  .post-body { font-size: 17px; }
  .post-body h2 { margin-top: 2.6rem; }
  .post-toc { margin: 0 -1.1rem; padding: 1.2rem 1.1rem 1.3rem; }
  /* 表は横スクロールで逃がす（セル内で折り返さず潰れるのを防ぐ） */
  .post-body table { display: block; width: max-content; min-width: 100%; max-width: 100%; overflow-x: auto; }
  .post-body pre { margin-left: -1.1rem; margin-right: -1.1rem; }
  /* 図版は端まで使う（本文幅に収めると図中の文字が読めない） */
  .post-body figure.section-visual { margin-left: -1.1rem; margin-right: -1.1rem; }
  .post-body figure.section-visual img { border-left: none; border-right: none; }
  .post-body figure.section-visual figcaption { margin-left: 1.1rem; margin-right: 1.1rem; }
  .post-body .linkcard { flex-direction: column; align-items: stretch; gap: .8rem; }
  .post-body .linkcard .thumb { width: 100%; }
  .post-body .editor-note { gap: .7rem; }
  .post-body .editor-note::before { width: 38px; height: 38px; font-size: .74rem; }
}

/* ==========================================================================
   Cloudory 固有の部品。上の共通部品（雑誌の組み・動く図解・ドック・検索）はそのまま使い、
   立場カード（FOR READERS.）・START HERE の番号一覧・こんなとき・前提と次に読む・全体地図・資格の札を足す。
   ========================================================================== */

/* メガメニューの前置き（THE AGENT. の FOR READERS. の導入文） */
.nav-lead { display: none; }
body.nav-open .nav-lead { display: block; max-width: var(--maxw); margin: 0 auto 1.2rem; font-size: .9rem; line-height: 1.9; color: var(--muted); }
body.nav-open .nav-cat { min-height: 112px; }
.site-footer-note { font-size: .72rem; line-height: 1.8; color: rgba(255,255,255,.5); max-width: 60ch; margin: .8rem auto; }

/* --------------------------------------------------------- 立場カード（トップ）: 英字 / 和文 / 何を扱うか / こんなとき: / READ › */
.reader-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem; margin: 2rem 0 3.5rem;
}
.reader-card {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  padding: 1.7rem 1.6rem 1.5rem; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-top: 4px solid color-mix(in srgb, var(--cat) 72%, #000); background: var(--bg);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s;
}
.reader-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--cat) 72%, #000); }
.reader-card .en { font-family: var(--font-en); font-weight: 800; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: color-mix(in srgb, var(--cat) 72%, #000); }
.reader-card strong { font-family: var(--font-display); font-weight: 900; font-size: 1.55rem; line-height: 1.3; }
.reader-card .what { font-size: .88rem; line-height: 1.85; color: #4a4a4a; }
.reader-card .when { display: flex; flex-direction: column; gap: .3rem; margin-top: .4rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.reader-card .when-h { font-weight: 900; font-size: .78rem; letter-spacing: .08em; color: color-mix(in srgb, var(--cat) 72%, #000); }
.reader-card .when-i { position: relative; padding-left: 1rem; font-size: .82rem; line-height: 1.7; color: #4a4a4a; }
.reader-card .when-i::before { content: ""; position: absolute; left: 0; top: .62em; width: .4rem; height: .4rem; background: color-mix(in srgb, var(--cat) 72%, #000); }
.reader-card .read-more { margin-top: .8rem; }
.reader-card:hover .read-more { letter-spacing: .32em; }

/* 段（トップの MAP と /map/）。flow-step を流用し、到達の目安を小さく添える */
.flow-step .count { margin-top: .5rem; font-family: var(--font-jp); font-size: .76rem; line-height: 1.6; color: var(--muted); }
.flow-step .num::before { content: "STAGE "; }

/* --------------------------------------------------------- START HERE（THE AGENT. の型: 白いカード → 番号帯 → 明朝の題 → 灰色の要約 → READ ›） */
.hub-start-lede { margin: -.4rem 0 1.4rem; font-size: .92rem; line-height: 1.9; color: #4a4a4a; max-width: 64ch; }
.start-here { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sh-item a {
  position: relative; display: flex; flex-direction: column; gap: .7rem; height: 100%;
  padding: 1.4rem 1.5rem 1.3rem; border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: var(--ink);
  transition: border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.sh-item a:hover { border-color: color-mix(in srgb, var(--cat) 72%, #000); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.sh-band { display: flex; align-items: baseline; gap: .9rem; padding: .5rem .9rem; background: color-mix(in srgb, var(--cat) 72%, #000); color: #fff; }
.sh-num { font-family: var(--font-en); font-weight: 800; font-size: .95rem; letter-spacing: .14em; line-height: 1; }
.sh-q { font-size: .76rem; font-weight: 700; letter-spacing: .08em; opacity: .9; }
.sh-ttl { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.6; letter-spacing: .03em; }
.sh-item a:hover .sh-ttl { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.sh-desc { font-size: .86rem; line-height: 1.85; color: #6b6b6b; }
.sh-item .read-more { margin-top: auto; padding-top: .3rem; }
.sh-item a:hover .read-more { letter-spacing: .32em; }
.job-section .start-here { margin-top: 1.4rem; }
.motion .sh-item.is-in .sh-band { animation: mf-grow-x .5s var(--ease-out) backwards; animation-delay: calc(var(--d, 0ms) + .1s); transform-origin: 0 50%; }

/* こんなとき: 状況から入る導線 */
.hub-when { margin: 0 0 2.6rem; padding: 1.6rem 1.6rem 1.4rem; background: var(--cream); border-top: 3px solid color-mix(in srgb, var(--cat) 72%, #000); }
.hub-when .mag-head { margin-bottom: .8rem; }
.hub-when .mag-head .ja { font-size: 1.15rem; }
.when-list { list-style: none; margin: 0; padding: 0; }
.when-list li { border-top: 1px solid #e3e0d8; }
.when-list li:first-child { border-top: 0; }
.when-list a, .when-list .q { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; padding: .8rem 0; text-decoration: none; color: var(--ink); }
.when-list .q { font-weight: 800; font-size: .95rem; line-height: 1.6; }
.when-list .to { font-size: .82rem; color: color-mix(in srgb, var(--cat) 72%, #000); font-weight: 700; }
.when-list a:hover .to { text-decoration: underline; text-underline-offset: .2em; }

/* --------------------------------------------------------- 記事: 地図の位置と、前提 → 次に読む */
.post-map { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; }
.post-map a, .post-map .layer {
  display: inline-flex; align-items: baseline; gap: .4rem; padding: .28rem .7rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .76rem; font-weight: 700; color: var(--ink); text-decoration: none;
}
.post-map a:hover { border-color: color-mix(in srgb, var(--cat) 72%, #000); color: color-mix(in srgb, var(--cat) 72%, #000); }
.post-map .k { font-family: var(--font-en); font-weight: 800; font-size: .68rem; letter-spacing: .08em; color: color-mix(in srgb, var(--cat) 72%, #000); }
.reading-path { margin: 0 0 2.4rem; padding: 1.3rem 1.4rem 1.2rem; background: var(--cream); border-left: 4px solid color-mix(in srgb, var(--cat) 72%, #000); }
.reading-path.is-bottom { margin: 3rem 0 0; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid color-mix(in srgb, var(--cat) 72%, #000); }
.reading-path .mag-head { margin-bottom: .6rem; }
.reading-path .mag-head .ja { font-size: 1.05rem; }
.reading-path.is-bottom .mag-head .ja { font-size: 1.3rem; }
.path-list { list-style: none; margin: 0; padding: 0; }
.path-list li { border-top: 1px solid #e3e0d8; }
.path-list li:first-child { border-top: 0; }
.reading-path.is-bottom .path-list li { border-color: var(--line); }
.path-list a { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .75rem 0; text-decoration: none; color: var(--ink); }
.path-list .n { font-family: var(--font-en); font-weight: 800; font-size: 1.05rem; color: color-mix(in srgb, var(--cat) 72%, #000); }
.path-list .txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.path-list .ttl { font-weight: 800; font-size: .95rem; line-height: 1.55; }
.path-list a:hover .ttl { text-decoration: underline; text-underline-offset: .2em; }
.path-list .sub { font-size: .76rem; line-height: 1.6; color: var(--muted); }
.path-list .go { font-family: var(--font-en); font-weight: 800; font-size: .74rem; letter-spacing: .2em; color: color-mix(in srgb, var(--cat) 72%, #000); }
.path-note { margin: .8rem 0 0; font-size: .78rem; line-height: 1.8; color: var(--muted); }
.path-note a { color: var(--muted); }
.post-track .toc-ttl .k { display: inline-block; margin-right: .5rem; padding: .1rem .5rem; background: var(--cat, var(--ink)); color: #fff; font-family: var(--font-en); font-size: .74rem; }
.post-track .popular-list li.is-here a { background: color-mix(in srgb, var(--cat) 9%, #fff); }
.post-track .popular-list li.is-here .ttl { color: color-mix(in srgb, var(--cat) 72%, #000); }
.post-track .popular-list .ttl { font-size: .88rem; }
.post-track .popular-list a { padding: .6rem .3rem; }

/* 記事カードの段・層のピル */
.article-card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.article-card .pill { font-size: .66rem; font-weight: 800; letter-spacing: .04em; padding: .12rem .5rem; border: 1px solid color-mix(in srgb, var(--cat) 72%, #000); color: color-mix(in srgb, var(--cat) 72%, #000); border-radius: 999px; }
.article-card .pill--layer { border-color: var(--line); color: var(--muted); }
.article-card .meta time { margin-left: auto; }

/* 立場ハブの棚見出し（領域ごと） */
.shelf-letter { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: .6rem; background: color-mix(in srgb, var(--cat) 72%, #000); color: #fff; font-family: var(--font-en); font-weight: 800; font-size: .8rem; vertical-align: -.2rem; }
.shelf-count { margin-left: .7rem; font-family: var(--font-en); font-weight: 700; font-size: .76rem; color: var(--muted); }

/* --------------------------------------------------------- 全体地図（/map/） */
.map-stage { margin: 0 0 .5rem; padding: .9rem 1.1rem; border-left: 4px solid color-mix(in srgb, var(--cat) 72%, #000); background: var(--cream); scroll-margin-top: 90px; }
.map-stage-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; margin: 0; }
.map-stage-head .n { font-family: var(--font-en); font-weight: 800; letter-spacing: .1em; color: color-mix(in srgb, var(--cat) 72%, #000); }
.map-stage-head .en { font-family: var(--font-en); font-weight: 700; font-size: .72rem; letter-spacing: .2em; color: var(--muted); }
.map-stage-head strong { font-family: var(--font-display); font-size: 1.15rem; }
.map-stage-head .who { font-size: .76rem; font-weight: 700; padding: .1rem .5rem; border: 1px solid color-mix(in srgb, var(--cat) 72%, #000); color: color-mix(in srgb, var(--cat) 72%, #000); border-radius: 999px; }
.map-stage-head .cnt { margin-left: auto; font-family: var(--font-en); font-size: .78rem; color: var(--muted); }
.map-stage-goal { margin: .4rem 0 0; font-size: .86rem; line-height: 1.8; color: #4a4a4a; }
.map-table-wrap { overflow-x: auto; margin: 1.4rem 0 2.4rem; }
.map-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .84rem; }
.map-table th, .map-table td { border: 1px solid var(--line); padding: .55rem .6rem; text-align: center; }
.map-table thead th { background: var(--charcoal); color: #fff; font-weight: 700; }
.map-table thead th .n { display: block; font-family: var(--font-en); font-size: .68rem; letter-spacing: .1em; opacity: .7; }
.map-table thead th .ja { font-size: .84rem; }
.map-table tbody th { text-align: left; font-weight: 800; white-space: nowrap; background: #fafaf9; }
.map-table tbody th a { text-decoration: none; color: var(--ink); }
.map-table tbody th a:hover { text-decoration: underline; }
.map-table .letter { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-right: .5rem; background: var(--ink); color: #fff; font-family: var(--font-en); font-size: .74rem; }
.map-table td.has { background: color-mix(in srgb, var(--cat-gakushu) 12%, #fff); }
.map-table td.has a { display: block; font-family: var(--font-en); font-weight: 800; font-size: 1rem; color: var(--ink); text-decoration: none; }
.map-table td.gap { color: #c9c9c9; }
.map-table td.na { background: #f4f3ef; }
.map-table td.units { text-align: right; font-family: var(--font-en); font-size: .76rem; color: var(--muted); white-space: nowrap; }
.map-track { margin: 2.4rem 0 0; scroll-margin-top: 90px; }
.map-track h3 { margin: 0 0 .4rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.map-track-desc { margin: 0 0 .8rem; font-size: .86rem; line-height: 1.8; color: #4a4a4a; }
.map-list li { border-top: 1px solid var(--line); }
.map-empty { font-size: .86rem; color: var(--muted); }

/* --------------------------------------------------------- 資格の一覧（/shikaku/） */
.cert-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1rem 0 2rem; }
.cert { background: var(--bg); padding: 1.3rem 1.4rem 1.2rem; }
.cert-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .8rem; }
.cert-code { font-family: var(--font-en); font-weight: 800; font-size: .74rem; letter-spacing: .1em; padding: .12rem .5rem; background: color-mix(in srgb, var(--cat) 72%, #000); color: #fff; }
.cert-head h4 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.cert-stage { font-size: .72rem; font-weight: 700; color: color-mix(in srgb, var(--cat) 72%, #000); border: 1px solid currentColor; padding: .08rem .5rem; border-radius: 999px; }
.cert-note { margin: .6rem 0 .9rem; font-size: .9rem; line-height: 1.9; }
.cert-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.cert-spec > div { background: var(--cream); padding: .5rem .7rem; }
.cert-spec dt { font-size: .68rem; color: var(--muted); font-weight: 700; }
.cert-spec dd { margin: 0; font-family: var(--font-en); font-weight: 800; font-size: 1rem; }
.cert-links { margin: .9rem 0 0; font-size: .82rem; line-height: 1.9; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.cert-confirmed { margin: .4rem 0 0; font-size: .72rem; color: var(--muted); }
.word-en { font-family: var(--font-en); font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.word-src a { color: var(--ink); }

/* 順番の一覧（前提・次に読む・START HERE・地図の一覧）: 行が左から順に出る。--i はテンプレートの style で渡す */
.motion .reading-path:not(.is-in) .path-list li, .motion .map-track:not(.is-in) .path-list li { opacity: 0; }
.motion .reading-path.is-in .path-list li, .motion .map-track.is-in .path-list li { animation: mf-from-left .55s var(--ease-out) backwards; animation-delay: calc(.2s + var(--i, 0) * .12s); }
.motion .post-map.is-in a, .motion .post-map.is-in .layer { animation: mf-fade-up .5s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * .1s); }
/* 記事カードのサムネは、出たあとに軽く浮く */
.motion .article-card.is-in .thumb { animation: mf-rise .6s var(--ease-out) backwards; animation-delay: calc(var(--d, 0ms) + .1s); }

/* ==========================================================================
   初心者向けの動く図解（旅・積み木・門・天秤）と、章末の確認テスト
   ========================================================================== */

/* --- 旅（journey）: 駅が並び、パケットが最初の駅から最後の駅まで動く。駅は通過した順に灯る */
.mf-jn { position: relative; padding-top: 1.6rem; }
.mf-jn-track, .mf-jn-fly { position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 1.4rem; height: 6px; }
.mf-jn-track { z-index: 0; }
.mf-jn-fly { z-index: 3; pointer-events: none; }
.mf-jn .rail { position: absolute; inset: 0; border-radius: 99px; background: color-mix(in srgb, var(--deep) 16%, #fff); }
.mf-jn .rail-lit { position: absolute; left: 0; top: 0; height: 100%; width: 100%; border-radius: 99px; background: var(--deep); transform-origin: 0 50%; }
.mf-jn .packet {
  position: absolute; top: -16px; left: 100%; transform: translate(-50%, -50%);
  min-width: 22px; height: 22px; padding: 0 .55rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px;
  background: #fff; border: 2.5px solid var(--deep); color: var(--deep); font-size: .72rem; font-weight: 800; white-space: nowrap; line-height: 1;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.4);
}
.mf-jn .packet:empty { width: 22px; padding: 0; background: var(--deep); }
.mfig .mf-jn-nodes { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.mf-jn-nodes li { text-align: center; padding: 0 .2rem; }
.mf-jn .node { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto .6rem; border-radius: 50%; border: 2.5px solid var(--deep); background: var(--bg); color: var(--deep); font: 800 .82rem/1 var(--font-en); }
.mf-jn li.is-lit .node, .mf-jn .node.is-lit { background: var(--deep); color: #fff; }
.mf-jn .t { font-weight: 800; font-size: .9rem; line-height: 1.5; }
.mf-jn .s { margin-top: .25rem; font-size: .78rem; line-height: 1.6; color: #666; }
@media (max-width: 640px) {
  .mf-jn-track, .mf-jn-fly { left: 17px; right: auto; top: calc(50% / var(--n)); bottom: calc(50% / var(--n)); width: 6px; height: auto; }
  .mf-jn { padding-top: .2rem; }
  .mf-jn .rail-lit { width: 100%; height: 100%; transform-origin: 50% 0; }
  .mf-jn .packet { left: 50%; top: calc(100% - 26px); transform: translate(-50%, -50%); font-size: 0; min-width: 18px; width: 18px; height: 18px; padding: 0; background: var(--deep); }
  .mfig .mf-jn-nodes { grid-template-columns: 1fr; gap: .9rem; }
  .mf-jn-nodes li { display: grid; grid-template-columns: 40px 1fr; gap: .6rem; text-align: left; align-items: center; }
  .mf-jn .node { margin: 0; }
  .mf-jn .t, .mf-jn .s { grid-column: 2; }
  .mf-jn .s { margin-top: 0; }
}
@keyframes mf-jn-x { from { left: 0%; } to { left: 100%; } }
@keyframes mf-jn-y { from { top: 0%; } to { top: calc(100% - 26px); } }
.motion .mfig:not(.is-in) :is(.mf-jn .node, .mf-jn .t, .mf-jn .s) { opacity: 0; }
.motion .mfig:not(.is-in) .mf-jn .rail-lit { transform: scaleX(0); }
.motion .mfig:not(.is-in) .mf-jn .packet { opacity: 0; }
.motion .mfig.is-in .mf-jn .node { animation: mf-pop .5s var(--ease-out) backwards; animation-delay: calc(.1s + var(--i) * .15s); }
.motion .mfig.is-in .mf-jn :is(.t, .s) { animation: mf-fade-up .5s var(--ease-out) backwards; animation-delay: calc(.2s + var(--i) * .15s); }
.motion .mfig.is-in .mf-jn .rail-lit { animation: mf-grow-x calc(var(--n) * .7s) linear .6s backwards; }
.motion .mfig.is-in .mf-jn .packet { animation: mf-jn-x calc(var(--n) * .7s) linear .6s backwards, mf-fade .3s .6s backwards; }
/* 通過した駅から順に塗る: 駅 i はパケットが着く時刻（.6s + i/(n-1) * n*.7s）で塗る（背景だけを遅らせて切り替える） */
.motion .mfig.is-in .mf-jn .node { transition: background-color .25s, color .25s; transition-delay: calc(.6s + var(--i) * .7s * var(--n) / max(1, calc(var(--n) - 1))); background: var(--deep); color: #fff; }
.motion .mfig:not(.is-in) .mf-jn .node { background: var(--bg); color: var(--deep); }
@media (max-width: 640px) {
  .motion .mfig.is-in .mf-jn .rail-lit { animation-name: mf-grow-y; }
  .motion .mfig.is-in .mf-jn .packet { animation-name: mf-jn-y, mf-fade; }
  .motion .mfig:not(.is-in) .mf-jn .rail-lit { transform: scaleY(0); }
}

/* --- 積み木（stack）: 層が下から積み上がり、上から own 段が自分の色になる */
.mf-stk-cols { display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); gap: .6rem; align-items: end; }
.mf-stk .col { position: relative; }
.mf-stk .h { margin: 0 0 .45rem; text-align: center; font-weight: 900; font-size: .88rem; line-height: 1.4; }
.mfig .mf-stk .layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.mfig .mf-stk .layers li { padding: .42rem .3rem; border-radius: 6px; text-align: center; font-size: .72rem; font-weight: 800; line-height: 1.3; background: #ebe8e0; color: #8f8a80; }
.mf-stk .layers li.is-mine { background: var(--deep); color: #fff; }
.mf-stk .line { position: absolute; left: -3px; right: -3px; height: 2px; background: var(--ink); bottom: calc(var(--at) * 0px); display: none; }
.mfig .mf-stk .lg { display: flex; justify-content: center; gap: 1.2rem; margin: .9rem 0 0; font-size: .78rem; font-weight: 800; color: #666; }
.mf-stk .lg span::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: .4em; border-radius: 3px; vertical-align: -1px; background: #ebe8e0; }
.mf-stk .lg .lg-mine::before { background: var(--deep); }
@media (min-width: 700px) { .mf-stk-cols { gap: 1rem; } .mfig .mf-stk .layers li { font-size: .82rem; padding: .5rem .4rem; } .mf-stk .h { font-size: .95rem; } }
@media (max-width: 480px) { .mf-stk-cols { gap: .35rem; } .mfig .mf-stk .layers li { font-size: .62rem; padding: .35rem .15rem; } }
.motion .mfig:not(.is-in) :is(.mf-stk .layers li, .mf-stk .h, .mf-stk .lg) { opacity: 0; }
.motion .mfig.is-in .mf-stk .h { animation: mf-fade .4s var(--ease-out) backwards; animation-delay: calc(var(--j) * .15s); }
.motion .mfig.is-in .mf-stk .layers li { animation: mf-fade-up .4s var(--ease-out) backwards; animation-delay: calc(.15s + var(--j) * .15s + var(--i) * .09s); }
.motion .mfig.is-in .mf-stk .layers li.is-mine { animation: mf-fade-up .4s var(--ease-out) backwards, mf-stk-mine .6s var(--ease-out) backwards; animation-delay: calc(.15s + var(--j) * .15s + var(--i) * .09s), calc(.9s + var(--j) * .15s + var(--l) * .09s); }
@keyframes mf-stk-mine { from { background: #ebe8e0; color: #8f8a80; } }
.motion .mfig.is-in .mf-stk .lg { animation: mf-fade .5s var(--ease-out) backwards; animation-delay: calc(1.3s + var(--c) * .15s); }

/* --- 門（gate）: 札が門に向かい、開いていれば通り抜け、閉じていれば跳ね返る */
.mf-gate .wall-name { margin: 0 0 .7rem; text-align: center; font-size: .76rem; font-weight: 800; letter-spacing: .1em; color: #8a8478; }
.mfig .mf-gate .rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.mf-gate li { display: grid; grid-template-columns: minmax(0, 5.6rem) 1fr 40px minmax(0, 6rem); align-items: center; gap: .5rem; }
.mf-gate .pk { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; text-align: right; }
.mf-gate .pk b { font: 800 1.05rem/1.1 var(--font-en); color: var(--deep); }
.mf-gate .pk span { font-size: .72rem; color: #666; font-weight: 700; }
.mf-gate .lane { position: relative; height: 4px; border-radius: 99px; background: #ebe8e0; }
.mf-gate .ball { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--deep); transform: translate(-50%, -50%); }
.mf-gate .is-closed .ball { background: var(--warn); }
.mf-gate .door { position: relative; width: 40px; height: 34px; border: 2.5px solid var(--deep); border-radius: 7px 7px 3px 3px; background: var(--bg); }
.mf-gate .leaf { position: absolute; inset: 3px; border-radius: 3px 3px 2px 2px; background: var(--deep); transform-origin: 0 50%; }
.mf-gate .is-closed .door { border-color: var(--warn); }
.mf-gate .is-closed .leaf { background: var(--warn); }
.mf-gate .res { font-size: .88rem; font-weight: 900; color: var(--deep); line-height: 1.3; }
.mf-gate .is-closed .res { color: var(--warn); }
.mf-gate .res small { display: block; font-size: .68rem; font-weight: 600; color: #666; margin-top: .15rem; }
.mf-gate .is-limited .res::before { content: "条件つきで"; display: block; font-size: .66rem; font-weight: 700; color: #666; }
@media (min-width: 700px) { .mf-gate li { grid-template-columns: 9rem 1fr 48px 9rem; gap: .9rem; } .mf-gate .door { width: 48px; height: 40px; } .mf-gate .res { font-size: 1rem; } }
@keyframes mf-gate-pass { 0% { left: 0%; opacity: 0; } 12% { opacity: 1; } 60% { left: 100%; opacity: 1; } 80% { left: 140%; opacity: 0; } 100% { left: 140%; opacity: 0; } }
@keyframes mf-gate-bounce { 0% { left: 0%; opacity: 0; } 12% { opacity: 1; } 55% { left: 100%; } 100% { left: 55%; opacity: 1; } }
@keyframes mf-gate-open { 0%, 40% { transform: none; } 60%, 100% { transform: scaleX(.22) skewY(-24deg); } }
@keyframes mf-gate-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.motion .mfig:not(.is-in) :is(.mf-gate li, .mf-gate .wall-name) { opacity: 0; }
.motion .mfig:not(.is-in) .mf-gate .ball { left: 0; opacity: 0; }
.motion .mfig.is-in .mf-gate .wall-name { animation: mf-fade .4s backwards; }
.motion .mfig.is-in .mf-gate li { animation: mf-fade-up .45s var(--ease-out) backwards; animation-delay: calc(.1s + var(--i) * .3s); }
.motion .mfig.is-in .mf-gate .is-open .ball { animation: mf-gate-pass 1.6s ease-in-out backwards; animation-delay: calc(.5s + var(--i) * .3s); left: 140%; opacity: 0; }
.motion .mfig.is-in .mf-gate .is-open .leaf { animation: mf-gate-open 1.6s ease-in-out backwards; animation-delay: calc(.5s + var(--i) * .3s); transform: scaleX(.22) skewY(-24deg); }
.motion .mfig.is-in .mf-gate .is-closed .ball { animation: mf-gate-bounce 1.6s ease-in-out backwards; animation-delay: calc(.5s + var(--i) * .3s); left: 55%; }
.motion .mfig.is-in .mf-gate .is-closed .door { animation: mf-gate-shake .45s ease-in-out backwards; animation-delay: calc(1.35s + var(--i) * .3s); }
.motion .mfig:not(.is-in) .mf-gate .res { opacity: 0; }
.motion .mfig.is-in .mf-gate .res { animation: mf-fade .35s backwards; animation-delay: calc(1.5s + var(--i) * .3s); }
/* 動き無しでは最終状態: 開いた門は通り抜けたあと、閉じた門は跳ね返ったあと */
.mf-gate .is-open .leaf { transform: scaleX(.22) skewY(-24deg); }
.mf-gate .is-open .ball { left: 140%; opacity: 0; }
.mf-gate .is-closed .ball { left: 55%; }

/* --- 天秤（balance）: 皿に項目が落ち、竿が傾く */
.mf-bal .beam-wrap { position: relative; padding-top: 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.mf-bal .beam { position: absolute; left: 12%; right: 12%; top: 1.1rem; height: 6px; border-radius: 99px; background: var(--deep); transform-origin: 50% 50%; transition: transform .8s var(--ease-out); }
.mf-bal .rope { position: absolute; top: 6px; width: 2px; height: 1rem; background: color-mix(in srgb, var(--deep) 45%, #fff); }
.mf-bal .rope.l { left: 6%; } .mf-bal .rope.r { right: 6%; }
.mf-bal .pivot { position: absolute; left: 50%; top: 1.1rem; width: 0; height: 0; margin-left: -14px; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 30px solid color-mix(in srgb, var(--deep) 30%, #fff); }
.mf-bal .pan { padding: .9rem 1rem; border-radius: 12px; background: #fafafa; border: 1px solid #e3e3e3; border-top: 4px solid var(--deep); transition: transform .8s var(--ease-out); }
.mf-bal .pan .h { margin: 0 0 .5rem; font-weight: 900; font-size: .95rem; color: var(--deep); line-height: 1.4; }
.mfig .mf-bal .pan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.mfig .mf-bal .pan li { position: relative; padding-left: .95rem; font-size: .84rem; line-height: 1.6; color: #333; }
.mf-bal .pan li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 2px; background: var(--deep); }
.mf-bal .pv { margin: .9rem 0 0; text-align: center; font-weight: 900; font-size: .9rem; color: var(--deep); }
.mf-bal.is-left .beam { transform: rotate(-6deg); } .mf-bal.is-right .beam { transform: rotate(6deg); }
.mf-bal.is-left .pan-l { transform: translateY(14px); } .mf-bal.is-left .pan-r { transform: translateY(-14px); }
.mf-bal.is-right .pan-r { transform: translateY(14px); } .mf-bal.is-right .pan-l { transform: translateY(-14px); }
@media (min-width: 700px) { .mf-bal .beam-wrap { gap: 3rem; padding: 2.6rem 1rem 0; } .mf-bal .beam { top: 1.3rem; } .mf-bal .pivot { top: 1.3rem; } }
@keyframes mf-bal-drop { from { opacity: 0; transform: translateY(-26px); } 70% { transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes mf-bal-rock { 0% { transform: rotate(0); } 30% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
.motion .mfig:not(.is-in) :is(.mf-bal .pan .h, .mf-bal .pan li, .mf-bal .pv) { opacity: 0; }
.motion .mfig:not(.is-in) .mf-bal .beam, .motion .mfig:not(.is-in) .mf-bal .pan { transform: none; }
.motion .mfig.is-in .mf-bal .pan .h { animation: mf-fade .4s backwards .1s; }
.motion .mfig.is-in .mf-bal .pan li { animation: mf-bal-drop .5s var(--ease-out) backwards; animation-delay: calc(.35s + var(--i) * .25s); }
.motion .mfig.is-in .mf-bal.is-even .beam { animation: mf-bal-rock 1.4s ease-in-out 1.2s; }
.motion .mfig.is-in .mf-bal .pv { animation: mf-fade-up .5s var(--ease-out) 1.6s backwards; }

/* ==========================================================================
   章末の確認テスト（_includes/quiz.html）と集計（quiz-tally.html）
   ========================================================================== */
.post-body .quiz { margin: 2.2rem 0; padding: 1.3rem 1.4rem 1.2rem; background: var(--bg); border: 1px solid #dadada; border-left: 5px solid color-mix(in srgb, var(--cat, var(--ink)) 72%, #000); }
.post-body .quiz > :first-child { margin-top: 0; }
.quiz-head { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 .7rem; }
.quiz-head .en { font-family: var(--font-en); font-weight: 800; font-size: .72rem; letter-spacing: .24em; color: color-mix(in srgb, var(--cat, var(--ink)) 72%, #000); }
.quiz-head .ja { font-weight: 900; font-size: .95rem; }
.post-body .quiz-q { margin: 0 0 .9rem; font-weight: 800; font-size: 1.02em; line-height: 1.7; }
.post-body .quiz-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.post-body .quiz-choices li { margin: 0; }
.quiz-choice {
  display: grid; grid-template-columns: 1.7rem 1fr; align-items: center; gap: .7rem; width: 100%; text-align: left;
  padding: .7rem .9rem; border: 1.5px solid #d6d6d6; border-radius: 10px; background: var(--bg); color: var(--ink); cursor: pointer;
  font: inherit; font-size: .95rem; line-height: 1.6; transition: border-color .2s, background .2s, transform .15s var(--ease-out);
}
.quiz-choice:hover { border-color: var(--ink); }
.quiz-choice:active { transform: scale(.985); }
.quiz-mark { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1.5px solid #cfcfcf; font: 800 .78rem/1 var(--font-en); color: #666; }
.quiz.is-done .quiz-choice { cursor: default; }
.quiz.is-done .quiz-choice:not(.is-picked):not(.is-answer) { opacity: .55; }
.quiz-choice.is-answer { border-color: var(--good); background: color-mix(in srgb, var(--good) 8%, #fff); }
.quiz-choice.is-answer .quiz-mark { background: var(--good); border-color: var(--good); color: #fff; }
.quiz-choice.is-picked.is-wrong { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, #fff); }
.quiz-choice.is-picked.is-wrong .quiz-mark { background: var(--warn); border-color: var(--warn); color: #fff; }
.motion .quiz-choice.is-picked.is-right { animation: quiz-pop .45s var(--ease-out); }
.motion .quiz-choice.is-picked.is-wrong { animation: mf-gate-shake .45s ease-in-out; }
@keyframes quiz-pop { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
.post-body .quiz-why { margin: .9rem 0 0; padding: .8rem 1rem; background: var(--cream); border-radius: 8px; font-size: .9rem; line-height: 1.85; }
.post-body .quiz-why summary { cursor: pointer; font-weight: 800; }
.quiz.is-done .quiz-why summary { display: none; }
.post-body .quiz-why p { margin: .4rem 0 0; }
.quiz-verdict { font-weight: 900; }
.quiz-verdict:empty { display: none; }
.quiz-verdict.is-right { color: var(--good); }
.quiz-verdict.is-wrong { color: var(--warn); }
.quiz-ans { font-weight: 700; }
.motion .quiz.is-done .quiz-why { animation: mf-fade-up .45s var(--ease-out) backwards .15s; }
.quiz-tally { margin: 2.6rem 0 0; padding: 1.4rem 1.5rem 1.3rem; background: var(--charcoal); color: #fff; }
.quiz-tally .mag-head { margin-bottom: .6rem; }
.quiz-tally .mag-head .en { color: rgba(255,255,255,.7); }
.quiz-tally .mag-head .ja { color: #fff; font-size: 1.2rem; }
.quiz-tally-num { margin: 0; display: flex; align-items: baseline; gap: .3rem; font-family: var(--font-en); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.quiz-tally-num .sep, .quiz-tally-num .all { font-size: 1.3rem; color: rgba(255,255,255,.6); }
.quiz-tally-num small { margin-left: .5rem; font-family: var(--font-jp); font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.8); }
.quiz-tally-bar { margin: .9rem 0 0; height: 6px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.quiz-tally-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: color-mix(in srgb, var(--cat, #fff) 60%, #fff); transition: width .6s var(--ease-out); }
.quiz-tally-note { margin: .8rem 0 0; font-size: .78rem; line-height: 1.8; color: rgba(255,255,255,.7); }
.quiz-tally.is-perfect .quiz-tally-num .ok { color: #9fe3b2; }

/* --------------------------------------------------------- ナビの文字ボタン（ブックマーク）と、トップの「誰が書いているか」 */
.nav-link-btn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; display: none; }
body.nav-open .nav-link-btn { display: inline; font-family: var(--font-jp); font-weight: 900; font-size: 1rem; color: var(--ink); }
body.nav-open .nav-link-btn:hover { text-decoration: underline; text-underline-offset: .2em; }
.writer-strip { margin: 2.6rem 0 0; padding: 1.8rem 1.6rem; border: 1px solid var(--line); border-left: 5px solid var(--ink); background: var(--cream); }
.writer-strip .mag-head { margin-bottom: .8rem; }
.writer-strip .mag-head .ja { font-size: 1.25rem; }
.writer-strip-name { margin: 0 0 .5rem; font-weight: 900; font-size: 1.05rem; }
.writer-strip-name a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ink); }
.writer-strip-cred { display: block; margin-top: .3rem; font-size: .8rem; font-weight: 700; color: #4a4a4a; }
.writer-strip-text { margin: 0; font-size: .9rem; line-height: 1.9; color: #4a4a4a; max-width: 72ch; }
.writer-strip-text a { color: var(--ink); }
.article-card .pill--kind { background: var(--ink); border-color: var(--ink); color: #fff; font-family: var(--font-en); letter-spacing: .08em; }
@media (min-width: 700px) { .writer-strip-body { display: grid; grid-template-columns: 16rem 1fr; gap: 1.6rem; align-items: start; } .writer-strip-name { margin: 0; } }

/* --------------------------------------------------------- START HERE の進み具合（site.js 9. が出す） */
.sh-progress { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1.1rem; font-size: .82rem; color: var(--muted); }
.sh-progress-bar { display: block; height: 4px; background: #e6e6e6; overflow: hidden; }
.sh-progress-bar > span { display: block; height: 100%; background: color-mix(in srgb, var(--cat) 72%, #000); transition: width .6s var(--ease-out); }
.sh-progress strong { font-family: var(--font-en); font-size: 1rem; color: var(--ink); }
.sh-item.is-done .sh-band::after { content: "✓ 読了"; margin-left: auto; font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.sh-item.is-perfect .sh-band::after { content: "✓ 全問正解"; }
.sh-item.is-started .sh-band::after { content: "途中"; margin-left: auto; font-size: .72rem; font-weight: 700; letter-spacing: .1em; opacity: .85; }
.sh-item.is-done a { background: color-mix(in srgb, var(--cat) 6%, #fff); }

/* --------------------------------------------------------- 人に渡すなら（_includes/handoff.html） */
.handoff { margin: 2.6rem 0 0; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.handoff .mag-head .en { color: var(--cat, var(--ink)); }
.handoff-lede { margin: .6rem 0 1rem; font-size: .9rem; line-height: 1.9; color: #4a4a4a; }
.handoff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.handoff-list li { display: flex; align-items: stretch; gap: .6rem; }
.handoff-list a { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-left: 4px solid color-mix(in srgb, var(--cat) 72%, #000); text-decoration: none; color: var(--ink); background: var(--bg); transition: border-color .2s, transform .25s var(--ease-out); }
.handoff-list a:hover { border-color: color-mix(in srgb, var(--cat) 72%, #000); transform: translateY(-2px); }
.handoff-list .to { font-size: .74rem; font-weight: 800; letter-spacing: .08em; color: color-mix(in srgb, var(--cat) 72%, #000); }
.handoff-list .ttl { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.6; }
.handoff-list .sub { font-size: .8rem; color: var(--muted); line-height: 1.7; }
.handoff-copy { flex: none; align-self: center; padding: .55rem .8rem; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.handoff-copy:hover, .handoff-copy.is-ok { background: var(--ink); color: #fff; border-color: var(--ink); }
.motion .handoff:not(.is-in) .handoff-list li { opacity: 0; }
.motion .handoff.is-in .handoff-list li { animation: mf-from-left .55s var(--ease-out) backwards; animation-delay: calc(.15s + var(--i, 0) * .12s); }
@media (max-width: 560px) { .handoff-list li { flex-direction: column; } .handoff-copy { align-self: flex-start; } }

/* --------------------------------------------------------- 仕事の流れ（/flow/ と _includes/work-steps.html） */
.work-steps .path-note { margin: 0; font-size: .8rem; color: var(--muted); }
.work-steps .path-note a, .hub-flow-link a { color: var(--ink); }
.flow--overview .flow-step .count { margin-top: .2rem; }
.hub-flow-link { margin: -.6rem 0 2.2rem; font-size: .9rem; color: #4a4a4a; }
.work-step h3 .shelf-en { margin-left: .6rem; font-family: var(--font-en); font-weight: 700; font-size: .72rem; letter-spacing: .2em; color: var(--muted); }
.motion .work-steps:not(.is-in) .flow-step { opacity: 0; }
.motion .work-steps.is-in .flow-step { animation: mf-rise .5s var(--ease-out) backwards; }
.motion .work-steps.is-in .flow-step:nth-child(1) { animation-delay: 0.10s; }
.motion .work-steps.is-in .flow-step:nth-child(2) { animation-delay: 0.18s; }
.motion .work-steps.is-in .flow-step:nth-child(3) { animation-delay: 0.26s; }
.motion .work-steps.is-in .flow-step:nth-child(4) { animation-delay: 0.34s; }
.motion .work-steps.is-in .flow-step:nth-child(5) { animation-delay: 0.42s; }
.motion .work-steps.is-in .flow-step:nth-child(6) { animation-delay: 0.50s; }
.motion .work-steps.is-in .flow-step:nth-child(7) { animation-delay: 0.58s; }
.motion .work-steps.is-in .flow-step:nth-child(8) { animation-delay: 0.66s; }
.flow--overview .flow-step .num::before, .work-steps .flow-step .num::before { content: "STEP "; }

/* --------------------------------------------------------- ハブの STEP（hub-shelves の steps 順） */
.hub-steps-lede { margin: 0 0 1.6rem; font-size: .9rem; line-height: 1.9; color: #4a4a4a; max-width: 64ch; }
.hub-step { margin: 0 0 2.4rem; scroll-margin-top: 90px; }
.hub-step h3 .step-n { display: inline-block; margin-right: .7rem; padding: .2rem .55rem; background: color-mix(in srgb, var(--cat) 72%, #000); color: #fff; font-family: var(--font-en); font-weight: 800; font-size: .72rem; letter-spacing: .18em; vertical-align: middle; }
.step-goal { margin: .4rem 0 1rem; font-size: .86rem; line-height: 1.8; color: #4a4a4a; }
.step-goal-k { display: inline-block; margin-right: .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: color-mix(in srgb, var(--cat) 72%, #000); }

/* --------------------------------------------------------- 用語集の「人に説明するなら」 */
.word-say { position: relative; margin: 0 0 .6rem; padding: .7rem .9rem .7rem 1rem; border-left: 3px solid var(--ink); background: #f6f6f4; font-size: .86rem; line-height: 1.85; }
.word-say-k { display: block; margin-bottom: .15rem; font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); }

/* --------------------------------------------------------- 一言で説明するなら（handoff.html） */
.handoff-say { margin: .8rem 0 1.2rem; padding: 1rem 1.2rem; border: 0; border-left: 4px solid var(--ink); background: #f6f6f4; }
.handoff-say-k { display: block; margin-bottom: .3rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.handoff-say p { margin: 0; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.9; }

/* --------------------------------------------------------- 保存した記事のページ（/saved/） */
.saved-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin: 0 0 1.2rem; }
.saved-count { margin: 0; font-size: .86rem; color: var(--muted); }
.saved-count strong { font-family: var(--font-en); font-size: 1.2rem; color: var(--ink); }
.saved-sort { display: flex; gap: .4rem; }
.saved-sort button { padding: .45rem .8rem; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: .78rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.saved-sort button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.saved-list li { display: flex; align-items: stretch; gap: .5rem; }
.saved-list li > a { flex: 1; min-width: 0; }
.saved-list li.is-done .ttl { color: var(--muted); }
.saved-list li.is-done .n { background: color-mix(in srgb, var(--cat) 72%, #000); color: #fff; }
.saved-rm { flex: none; align-self: center; padding: .4rem .6rem; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: .72rem; color: var(--muted); cursor: pointer; }
.saved-rm:hover { border-color: var(--ink); color: var(--ink); }
.sheet-more { margin: .8rem 0 0; font-size: .82rem; }
.sheet-more a { color: var(--ink); }

/* 執筆者の受験の記録（/shikaku/ の各資格。中身は _data/exam_log.yml） */
.cert-log { margin: .9rem 0 0; padding: .7rem .9rem; border-left: 3px solid color-mix(in srgb, var(--cat) 72%, #000); background: #f6f6f4; font-size: .84rem; line-height: 1.85; }
.cert-log-k { display: inline-block; margin-right: .6rem; font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: color-mix(in srgb, var(--cat) 72%, #000); }
.cert-log a { color: var(--ink); }

/* --------------------------------------------------------- 記号・番号・コードは等幅（--font-mono） */
code, pre, kbd { font-family: var(--font-mono); }
.mfig-kicker .en, .flow-step .num, .step-n, .sh-num, .cert-code, .reading-path .n, .map-list .n, .saved-list .n { font-family: var(--font-mono); }
