/* しごと学びの手引 — SmartHR Mag. への replica（2026-10-10 承認・色C「葡萄」）。
   値の正本は 05_implementation/design-tokens.md、配置は design-spec.md。 */

:root {
  --c-bg: #f8f7f6;
  --c-surface: #ffffff;
  --c-surface-2: #f2f1f0;
  --c-text: #23221f;
  --c-text-sub: #706d65;
  --c-text-sub-sm: #23221f; /* 12px 未満は補足の色を使わず本文の色（art-direction §5） */
  --c-ink: #23221f;
  --c-ink-2: #2e2d2a;
  --c-line: #d6d3d0;
  --c-rule: #edebe8;
  --c-dot: #dddad8;
  --c-link: #0071c1;
  --c-accent: #7a4a8a;
  --c-marker: #eadff0;
  --c-new: #c8361f;
  --c-backdrop: rgba(35, 34, 31, 0.1);
  --c-footer-rule: rgba(237, 235, 232, 0.05);
  --g-jobchange: #2b7bb9;
  --g-school: #2e9461;
  --g-correspondence: #b9770e;
  --g-benefit: #c4506a;

  --f-base: "Helvetica Neue", Helvetica, Arial, "Segoe UI", YuGothic, "Yu Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --f-num: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-outline: "Avenir Next Condensed", "Arial Narrow", "Bahnschrift SemiCondensed", "Helvetica Neue", sans-serif;

  --offset: clamp(80px, 10.101vw - 23.434px, 120px);
  --gap: clamp(40px, 10.101vw - 63.434px, 80px);
  --list-gap: clamp(20px, 5.051vw - 31.722px, 40px);
  --space-01: clamp(60px, 5.742vw + 38.468px, 120px);
  --space-02: clamp(40px, 3.828vw + 25.645px, 80px);
  --space-03: clamp(30px, 2.871vw + 19.234px, 60px);
  --space-04: clamp(20px, 1.914vw + 12.823px, 40px);
  --max-width: 1420px;
  --hd-h: 120px;

  --r-base: 5px;
  --r-pill: 999px;
  --shadow-card-hover: 0 10px 20px rgba(35, 34, 31, 0.1);
  --shadow-section-top: 0 -2px 0 0 #edebe8;
  --shadow-panel: 0 -1px 0 0 #edebe8, inset 0 1px 0 0 #edebe8;
  --dots-h: linear-gradient(90deg, var(--c-dot) 25%, transparent 25%) 0 0 / 8px 2px repeat-x;
  --dots-v: linear-gradient(0deg, var(--c-dot) 25%, transparent 25%) 0 0 / 2px 8px repeat-y;
}
@media (max-width: 767px) {
  :root { --offset: calc(100vw * 20 / 375); --hd-h: 60px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-base);
  font-size: 16px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, ul, ol, h1, h2, h3, h4, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.chev { flex: none; }

/* フォーカス: 二重の枠（濃い面では入れ替える） */
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.ft :focus-visible, .bc :focus-visible { outline-color: #fff; box-shadow: 0 0 0 3px var(--c-ink); }
.cd-link:focus-visible, .hs .cd-link:focus-visible { outline: none; box-shadow: none; }
.cd:has(.cd-link:focus-visible), .hs:has(.cd-link:focus-visible) { outline: 3px solid var(--c-ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.hs:has(.cd-link:focus-visible) { outline-offset: -3px; box-shadow: inset 0 0 0 6px #fff; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--c-ink); color: #fff; border-radius: var(--r-base); font-size: 14px; font-weight: 700; }
.skip:focus { top: 8px; }
h1, h2, h3, h4, .subhead, .cd-title, .hs-title, .gtag, .tbl th, .gp-h, .ft-h { word-break: auto-phrase; }

/* ---- 色の点・札 ---------------------------------------------------------- */
.gdot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.gdot.g-jobchange { background: var(--g-jobchange); }
.gdot.g-school { background: var(--g-school); }
.gdot.g-correspondence { background: var(--g-correspondence); }
.gdot.g-benefit { background: var(--g-benefit); }
.gtag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 8px 14px 8px 9px;
  background: var(--c-surface); border: 1px solid var(--c-ink); border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color .12s ease, color .12s ease;
}
a.gtag:hover { background: var(--c-ink); color: #fff; }
.kwtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kwtags li, .kwtag {
  display: inline-block; padding: 6px 8px; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-base); font-size: 11px; line-height: 1.1;
}
.pr {
  display: inline-block; margin-right: 6px; padding: 2px 6px; border: 1px solid currentColor;
  border-radius: var(--r-pill); font-size: 11px; font-weight: 700; line-height: 1.2; vertical-align: 1px;
}

/* ---- ピル ----------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--c-ink); color: #fff; border: 1px solid var(--c-ink); border-radius: var(--r-pill);
  font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .12s ease, color .12s ease;
}
.pill:hover { background: #fff; color: var(--c-ink); }
.pill--sm { height: 44px; padding: 9px 17px 9px 29px; font-size: 13px; letter-spacing: .05em; }
.pill--hd { height: 44px; padding: 13px 20px; font-size: 11px; }
.pill--hd .chev { display: none; }
.pill--lg { width: 240px; height: 50px; padding: 0 50px; font-size: 16px; position: relative; }
.pill--lg .chev { position: absolute; right: 21px; }
.pill--thick { height: 60px; font-size: 18px; }
.pill--white { background: #fff; color: var(--c-ink); border-color: #fff; width: 312px; height: 52px; padding: 16px 40px; font-size: 13px; position: relative; }
.pill--white .chev { position: absolute; right: 21px; }
.pill--white:hover { background: var(--c-ink); color: #fff; }
.pill--official { min-width: 240px; height: 50px; padding: 0 24px 0 32px; font-size: 16px; }
.pill--official .pr { border-color: currentColor; }
/* A8.net のリンク（文言は広告コードのまま・2026-10-18）。a は文言だけ。札と山形はピルの枠の中・a の外に置き、枠全体を押せるようにする。
   素材の文言が長くても枠の外へはみ出さないよう、高さを固定せず折り返す */
.pill--ad { position: relative; height: auto; min-height: 50px; max-width: 100%; padding-block: 10px; white-space: normal; }
.pill--ad .ad-text { color: inherit; text-decoration: none; border-radius: inherit; }
.pill--ad .ad-text::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pill--ad .ad-text:focus-visible { outline: none; box-shadow: none; }
.pill--ad:has(.ad-text:focus-visible) { outline: 3px solid var(--c-ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.pill--ad .ad-imp { position: absolute; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
.pill--wide { width: 100%; height: 52px; font-size: 16px; }
.pill-row { margin-top: var(--space-02); text-align: center; }
.pill-row--left { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-start; text-align: left; }

/* ---- ヘッダー ------------------------------------------------------------- */
.hd { position: sticky; top: 0; z-index: 50; background: var(--c-bg); }
.hd-in { display: flex; align-items: center; height: var(--hd-h); padding: 0 40px; max-width: 100%; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; flex: none; }
.logo-name { font-size: 18px; font-weight: 700; letter-spacing: .06em; line-height: 1.1; }
.logo-sub { font-size: 12px; color: var(--c-text-sub); line-height: 1.1; }
.logo--white { color: #fff; }
.logo--white .logo-sub { color: rgba(255, 255, 255, .8); }
.gnav { margin-left: 40px; }
.gnav ul { display: flex; align-items: center; gap: 30px; }
.nav-btn, .nav-link {
  display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0;
  background: none; border: 0; font-size: 13px; font-weight: 700; letter-spacing: .05em; line-height: 26px;
  text-decoration: none; white-space: nowrap; transition: color .12s ease;
}
.nav-btn .tri { color: var(--c-accent); transition: none; }
.nav-btn:hover, .nav-link:hover, .nav-btn[aria-expanded="true"] { color: var(--c-link); }
.nav-btn[aria-expanded="true"] .tri { transform: rotate(180deg); }
.hd-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--c-ink); padding: 0; position: relative; }
.mb-lines i { position: absolute; left: 12px; width: 16px; height: 2px; background: #fff; border-radius: 1px; transition: transform .12s ease, top .12s ease; }
.mb-lines i:first-child { top: 16px; }
.mb-lines i:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] .mb-lines i:first-child { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .mb-lines i:last-child { top: 19px; transform: rotate(-45deg); }
@media (max-width: 1399px) { .logo-sub { display: none; } }
@media (max-width: 1220px) {
  .gnav { display: none; }
  .menu-btn { display: block; }
  .logo-sub { display: none; }
}
@media (max-width: 767px) {
  .hd-in { padding: 0 10px 0 20px; justify-content: center; position: relative; }
  .hd-in .logo { margin: 0 auto; }
  .logo-name { font-size: 16px; }
  .hd-right { position: absolute; right: 10px; top: 10px; }
  .pill--hd { display: none; }
}

/* ドロップダウン・メニューの面 */
.dd, .mn {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-surface); box-shadow: var(--shadow-panel);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path .3s ease;
  z-index: 49;
}
.dd.is-open, .mn.is-open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.dd-in { display: grid; grid-template-columns: 312px 1fr; gap: var(--gap); padding: var(--space-02) var(--offset) 40px; max-width: var(--max-width); margin: 0 auto; }
.gp-lead { position: relative; padding-right: var(--gap); background: var(--dots-v); background-position: right top; }
.gp-h { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.gp-h .gdot { width: 8px; height: 8px; }
.gp-desc { margin-top: 20px; font-size: 12px; font-weight: 700; line-height: 1.8; color: var(--c-text-sub); }
.gp-lead .pill { margin-top: 30px; height: 44px; padding: 13px 15px 13px 18px; }
.gp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; align-content: start; }
.tpill {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--c-ink); border-radius: 21px;
  background: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background-color .12s ease, color .12s ease;
}
.tpill:hover { background: var(--c-ink); color: #fff; }
.close-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: calc(100% - 80px); height: 60px; margin: 0 40px 40px;
  background: var(--c-bg); border: 0; border-radius: var(--r-base); font-size: 12px; font-weight: 700;
}
.close-bar .x svg { display: block; fill: var(--c-ink); }
.mn { max-height: calc(100vh - var(--hd-h)); overflow-y: auto; }
.mn-in { padding: 40px; }
.mn-genre { padding: 0 0 30px; margin-bottom: 30px; background: var(--dots-h); background-position: left bottom; }
.mn-genre .gp-lead { padding: 0; background: none; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 20px; }
.mn-genre .gp-desc { grid-column: 1 / -1; grid-row: 2; margin-top: 10px; }
.mn-genre .gp-lead .pill { margin: 0; grid-column: 2; grid-row: 1; }
.mn-genre .gp-list { margin-top: 20px; }
.mn-links li a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-size: 15px; font-weight: 700; text-decoration: none; background: var(--dots-h); background-position: left bottom; }
.mn-pill { display: none; margin-top: 30px; }
@media (max-width: 767px) {
  .mn-in { padding: 30px 20px; }
  .mn-pill { display: flex; }
  .close-bar { width: calc(100% - 40px); margin: 0 20px 30px; }
  .gp-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) { .mn .gp-list { grid-template-columns: 1fr; } .tpill span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.backdrop { position: fixed; inset: 0; z-index: 40; background: var(--c-backdrop); opacity: 0; transition: opacity .15s ease; }
.backdrop.is-open { opacity: 1; }

/* ---- 区画の骨格（縦書きラベル＋中身） ------------------------------------------ */
.sec { box-shadow: var(--shadow-section-top); }
.sec-guide { background: var(--c-surface); box-shadow: none; }
.sec-guide + .sec { box-shadow: none; }
.sec-guide .cd { box-shadow: 0 0 0 1px var(--c-rule); }
.sec-guide .cd:hover { box-shadow: 0 0 0 1px var(--c-rule), var(--shadow-card-hover); }
.sec-in { display: grid; grid-template-columns: var(--offset) minmax(0, 1fr) var(--offset); max-width: var(--max-width); margin: 0 auto; }
.vlabel {
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px; justify-self: center;
  padding-top: var(--space-01); font-size: 19.7px; font-weight: 700; letter-spacing: .2em; line-height: 40px;
}
.vlabel .ring { fill: var(--c-accent); flex: none; }
.sec-body { padding: var(--space-01) 0; min-width: 0; }
.sec-aside { padding-top: var(--space-01); justify-self: center; }
.upd { writing-mode: vertical-rl; font-size: 12px; font-weight: 600; letter-spacing: .2em; line-height: 40px; color: var(--c-text-sub); display: flex; gap: 10px; }
.upd-d { font-family: var(--f-num); color: var(--c-text); }
.sec-desc { max-width: 760px; margin: 0 0 var(--space-02); font-size: 15px; line-height: 2; }
@media (max-width: 767px) {
  .sec-in { grid-template-columns: var(--offset) minmax(0, 1fr) var(--offset); }
  .vlabel { writing-mode: horizontal-tb; grid-column: 2; grid-row: 1; justify-self: start; padding-top: 60px; font-size: 18px; letter-spacing: .1em; line-height: 28.8px; }
  .vlabel .ring { width: 16px; height: 16px; }
  .sec-body { grid-column: 2; grid-row: 2; padding-top: 30px; padding-bottom: 60px; }
  .sec-aside { grid-column: 2; grid-row: 1; justify-self: end; align-self: end; padding-top: 0; }
  .upd { writing-mode: horizontal-tb; line-height: 28.8px; letter-spacing: .05em; }
}

/* 小区画の見出し（色の点＋見出し＋右へ伸びる点線） */
.sub + .sub { margin-top: 77px; }
.subhead { display: flex; align-items: center; gap: 10px; font-size: 17.73px; font-weight: 700; line-height: 1.1; margin-bottom: var(--space-02); }
.subhead .gdot { width: 8px; height: 8px; }
.subhead .dots { flex: 1; height: 2px; margin-left: 9px; background: var(--dots-h); }
@media (max-width: 991px) { .subhead { font-size: 16.75px; } }
@media (max-width: 767px) { .subhead { font-size: 16px; margin-bottom: 30px; } }

/* ---- 記事カードの格子 ------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell { position: relative; padding: 40px var(--list-gap); }
.cell::after { content: ""; position: absolute; top: 40px; bottom: 40px; right: -1px; width: 2px; background: var(--dots-v); }
.cell::before { content: ""; position: absolute; left: var(--list-gap); right: var(--list-gap); bottom: -1px; height: 2px; background: var(--dots-h); }
.grid > .cell:nth-child(3n)::after { display: none; }
.grid > .cell:nth-last-child(-n + 3):nth-child(3n + 1)::before,
.grid > .cell:nth-last-child(-n + 3):nth-child(3n + 1) ~ .cell::before { display: none; }
.cd { position: relative; height: 100%; background: var(--c-surface); border-radius: var(--r-base); transition: box-shadow .2s ease; }
.cd:hover { box-shadow: var(--shadow-card-hover); }
.cd-img { position: relative; margin-left: 38.66px; aspect-ratio: 150 / 79; border-radius: 0 var(--r-base) 0 var(--r-base); overflow: hidden; background: var(--c-surface-2); }
.cd-img img { width: 100%; height: 100%; object-fit: cover; }
.veil { position: absolute; inset: 0; background: var(--c-ink); opacity: 0; transition: opacity .2s ease; }
.read {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 8px)); padding: 13px 18px;
  background: #fff; color: var(--c-link); border-radius: var(--r-pill); font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.cd:hover .veil, .hs:hover .veil { opacity: .2; }
.cd:hover .read, .hs:hover .read { opacity: 1; transform: translate(-50%, -50%); }
.cd > .gtag { position: absolute; left: 19.4px; top: -15px; z-index: 2; }
.cd-body { display: flex; padding: 29.33px 28.66px 35px; }
.cd-main { flex: 1; min-width: 0; }
.cd-title { font-size: 17px; line-height: 1.7; font-weight: 700; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cd-link { text-decoration: none; }
.cd-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cd > .gtag { z-index: 2; }
.cd-dates { margin-top: 5px; font-size: 11px; font-weight: 700; line-height: 1.6; color: var(--c-text-sub-sm); }
.cd-dates span { white-space: nowrap; } /* 「公開 2026.10.10」の途中で折らず、「・」で折る */
.cd-desc { margin-top: 10px; font-size: 14px; line-height: 2; }
/* カード・スライドの説明（記事の description）。2行で切る（2-16） */
.cd-sum { margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--c-text-sub); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 輪郭の大きな日付 */
.odate { flex: none; width: 48.7px; margin-right: 28.66px; display: flex; flex-direction: column; align-items: flex-start; }
.odate time { display: flex; flex-direction: column; align-items: flex-start; }
.od { font-family: var(--f-outline); font-size: 46px; line-height: 1; font-weight: 400; color: #fff; -webkit-text-stroke: 1px var(--c-text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ym { margin-top: 4px; font-family: var(--f-num); font-size: 11.73px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.newtag { margin-top: 10px; padding: 2px 6px; background: var(--c-new); color: #fff; border-radius: var(--r-pill); font-size: 10px; font-weight: 600; line-height: 1.1; }

@media (max-width: 991px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > .cell:nth-child(3n)::after { display: block; }
  .grid > .cell:nth-child(2n)::after { display: none; }
  .grid > .cell::before { display: block !important; }
  .grid > .cell:nth-last-child(-n + 2):nth-child(2n + 1)::before,
  .grid > .cell:nth-last-child(-n + 2):nth-child(2n + 1) ~ .cell::before { display: none !important; }
  .cd-img { margin-left: 33.76px; }
  .cd > .gtag { left: 16.9px; }
  .cd-body { padding: 26.88px 23.76px 35px; }
  .od { font-size: 42px; }
  .ym { font-size: 10.75px; }
  /* 横長の札（ジャンル別・関連記事） */
  .grid--row { grid-template-columns: 1fr; }
  .grid--row > .cell::after { display: none !important; }
  .grid--row > .cell::before { display: block !important; }
  .grid--row > .cell:last-child::before { display: none !important; }
  .grid--row .cd { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto 1fr; padding: 21px 0 21px 33.76px; }
  .grid--row .cd-img { margin: 0; grid-column: 1; grid-row: 1 / 3; border-radius: var(--r-base); align-self: start; }
  .grid--row .cd > .gtag { left: 16.9px; top: 6px; }
  .grid--row .cd-body { grid-column: 2; grid-row: 1 / 3; padding: 0 23.76px 0 26.88px; }
  .grid--row .cd-title { font-size: 16px; }
  .grid--row .clamp { -webkit-line-clamp: 2; }
}
@media (max-width: 575px) {
  .grid { grid-template-columns: 1fr; }
  .grid > .cell::after { display: none !important; }
  .grid > .cell::before { display: block !important; }
  .grid > .cell:last-child::before { display: none !important; }
  .cell { padding: 30px 0; }
  .cd-img { margin-left: 30px; }
  .cd > .gtag { left: 15px; }
  .cd-body { padding: 25px 20px 35px; }
  .od { font-size: 39px; }
  /* 小さな行 */
  .grid--row > .cell { padding: 15px 0; }
  .grid--row > .cell::before { display: none !important; }
  .grid--row .cd { display: grid; grid-template-columns: 99px minmax(0, 1fr); column-gap: 19px; padding: 0; background: none; box-shadow: none !important; }
  .grid--row .cd-img { grid-row: 1 / 3; }
  .grid--row .cd > .gtag { position: static; grid-column: 2; grid-row: 1; justify-self: start; margin: 0; padding: 0; height: auto; border: 0; background: none; font-size: 10px; color: var(--c-text-sub-sm); }
  .grid--row .cd > .gtag .gdot { width: 4px; height: 4px; }
  .grid--row .cd-body { grid-column: 2; grid-row: 2; padding: 5px 0 0; }
  .grid--row .odate { display: none; }
  .grid--row .cd-title { font-size: 12px; line-height: 1.8; }
  .grid--row .read { display: none; }
  .grid--row .cd-sum { margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--c-text-sub-sm); }
  .grid--row .cd-dates { font-size: 10px; margin-top: 10px; }
}

/* ---- トップ: 最上部の左右分割カード ------------------------------------------- */
.hero { padding: 40px var(--offset) 0; }
.hero-in { position: relative; max-width: 1068px; margin: 0 auto; }
.hero-all { position: relative; max-width: 1068px; margin: 8px auto 0; text-align: right; }
.hero-all a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; }
.hero-all .chev { color: var(--c-accent); }
.note.tbl-nf, .note.tbl-stale { font-size: 14px; line-height: 24px; }
.hero-view { overflow: clip; border-radius: var(--r-base); padding: 0 0 30px; margin-bottom: -30px; }
.hero-track { display: flex; transition: transform .3s ease; }
.hs { transition: box-shadow .2s ease; position: relative; flex: 0 0 100%; display: grid; grid-template-columns: 345px minmax(0, 1fr); grid-template-rows: auto; background: var(--c-surface); border-radius: var(--r-base); }
/* .hs-txt は位置の基準にしない（題名のリンクの ::after をカード全体＝.hs に広げ、右の画像と「記事を読む」も押せるようにする。2026-10-18） */
.hs-txt { padding: 47.3px 32.9px 35px 38.7px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto auto; align-items: start; }
.hs-txt .odate { grid-column: 1; grid-row: 1; margin: 0; }
.hs-txt .gtag { grid-column: 2; grid-row: 1; justify-self: end; position: relative; z-index: 2; }
.hs-title { grid-column: 1 / -1; grid-row: 2; margin-top: 30px; font-size: 23.47px; line-height: 37.5px; font-weight: 700; }
.hs-txt .cd-dates { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; }
.hs-txt .cd-sum { grid-column: 1 / -1; grid-row: 4; margin-top: 10px; }
.hs-img { position: relative; grid-column: 2; grid-row: 1; aspect-ratio: 723 / 380; border-radius: var(--r-base); overflow: hidden; background: var(--c-surface-2); }
.hs-img img { width: 100%; height: 100%; object-fit: cover; }
.hs:hover { box-shadow: var(--shadow-card-hover); }
.hs .cd-link::after { z-index: 1; }
.hb { position: absolute; top: calc(380px / 2 - 24px); width: 48px; height: 48px; padding: 0; background: none; border: 0; border-radius: 50%; display: grid; place-items: center; z-index: 3; cursor: pointer; }
.hb > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-ink); color: #fff; box-shadow: 0 2px 10px rgba(35, 34, 31, .22); }
.hb .chev { width: 16px; height: 16px; }
.hb--prev { left: -32px; }
.hb--prev .chev { transform: rotate(180deg); }
.hb--next { right: -32px; }
@supports (width: 1cqw) {
  @media (min-width: 992px) {
    .hero-in { container-type: inline-size; }
    .hb { top: calc((100cqw - 345px) * 380 / 723 / 2 - 24px); }
  }
}
@media (max-width: 991px) {
  .hs { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .hs-img { grid-column: 1; grid-row: 1; }
  .hs-txt { grid-row: 2; padding: 30px 23.76px 35px 24.7px; }
  .hs { position: relative; }
  .hs-txt { position: static; }
  .hs-txt .gtag { position: absolute; left: 15px; top: 15px; grid-column: auto; grid-row: auto; }
  .hs-txt .odate { grid-row: 1 / 4; margin-right: 24px; }
  .hs-title { grid-column: 2; grid-row: 1; margin-top: 0; font-size: 21.5px; line-height: 34.4px; }
  .hs-txt .cd-dates { grid-column: 2; grid-row: 2; }
  .hs-txt .cd-sum { grid-column: 2; grid-row: 3; }
  .hero-in { padding-bottom: 64px; }
  .hb { top: auto; bottom: 0; }
  .hb--prev { left: calc(50% - 58px); }
  .hb--next { right: calc(50% - 58px); }
}
@media (max-width: 575px) {
  .hero { padding: 20px var(--offset) 0; }
  .hs-txt { padding: 30px 20px 35px; }

  .hs-title { font-size: 20px; line-height: 32px; }
}

/* ---- トップ: 大見出しと説明 ------------------------------------------------- */
.lead-in { display: grid; grid-template-columns: repeat(2, minmax(0, 464px)); justify-content: center; gap: var(--gap); padding: var(--space-01) var(--offset); max-width: var(--max-width); margin: 0 auto; }
.lead-h { font-size: 34px; line-height: 58px; font-weight: 400; letter-spacing: .3em; }
.lead-txt p { font-size: 19.73px; line-height: 39.5px; letter-spacing: .05em; color: var(--c-text-sub); }
.lead-txt .pill { margin-top: 38.66px; }
@media (max-width: 991px) {
  .lead-in { grid-template-columns: minmax(0, 1fr); padding: var(--space-01) 107.5px; }
  .lead-h { font-size: 30px; line-height: 1.7; }
  .lead-txt { margin-top: 0; text-align: left; }
  .lead-txt p { font-size: 18.75px; line-height: 37.5px; }
  .lead-txt .pill { display: flex; width: max-content; margin: 41px auto 0; }
}
@media (max-width: 767px) {
  .lead-in { padding: 60px 40px; }
  .lead-h { font-size: 26px; letter-spacing: .12em; }
  .lead-txt p { font-size: 18px; line-height: 36px; }
}
.no-hero .lead { padding-top: 0; }

/* ---- トップ: 比べるときの言葉のチップ ---------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 19px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 18.33px 19px; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-base); font-size: 13px; line-height: 1.1; text-decoration: none; transition: border-color .12s ease;
}
.chip:hover { border-color: var(--c-ink); }
.chips--sm { gap: 10px; }
.chips--sm .chip { padding: 10px 12px; }
.more-link { margin-top: var(--space-02); text-align: right; }
.more-link a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-decoration: none; }
.more-link .chev { color: var(--c-accent); }
@media (max-width: 991px) { .chip { padding: 16px 17px; } }
@media (max-width: 575px) { .chips { gap: 10px; } .chip { padding: 14px 15px; } }

/* 比べ方・変更履歴の札 */
.cd--guide .cd-img { margin-left: 38.66px; }
.cd--guide .clamp { -webkit-line-clamp: 2; }
.cd--change .cd-body { padding: 29.33px 28.66px 35px; }
.ch-date { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--c-text-sub); margin-bottom: 10px; }
.ch-d { font-family: var(--f-num); font-size: 13px; font-weight: 600; color: var(--c-text); }
.cd--change .cd-title { margin-top: 10px; }

/* ---- 記事 ----------------------------------------------------------------- */
.a-top { max-width: calc(1068px + var(--offset) * 2); margin: 0 auto; padding: var(--space-02) var(--offset) 0; }
.atag-wrap { overflow: hidden; }
.atag {
  --g: var(--c-accent);
  display: inline-block; padding: 1px; background: var(--g); text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%); border-radius: 3px 0 0 3px;
}
.atag-in {
  display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 26px 0 8px; background: #fff;
  clip-path: polygon(0 0, calc(100% - 14.5px) 0, calc(100% - 0.5px) 50%, calc(100% - 14.5px) 100%, 0 100%); border-radius: 2px 0 0 2px;
  font-size: 11px; font-weight: 700; line-height: 1.1;
}
.atag--jobchange { --g: var(--g-jobchange); }
.atag--school { --g: var(--g-school); }
.atag--correspondence { --g: var(--g-correspondence); }
.atag--benefit { --g: var(--g-benefit); }
.atag-in { transition: background-color .12s ease, color .12s ease; }
.atag:hover .atag-in { background: var(--g); color: #fff; }
.atag:hover .gdot { background: #fff; }
.a-title { margin-top: 40px; font-size: 27.2px; line-height: 43.5px; letter-spacing: .05em; font-weight: 700; }
.a-dates { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; font-weight: 600; color: var(--c-text-sub); line-height: 1.2; }
.a-dates time { font-family: var(--f-num); margin-left: 6px; }
.a-ad { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--c-text-sub); }
.a-ad a { margin-left: 8px; color: var(--c-link); }
.a-hero { margin-top: 40px; aspect-ratio: 1068 / 561; border-radius: var(--r-base); overflow: hidden; background: var(--c-surface-2); }
.a-hero img { width: 100%; height: 100%; object-fit: cover; }
.a-wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); max-width: calc(1134px + var(--offset) * 2); margin: var(--space-02) auto 0; padding: 0 var(--offset) var(--space-01); align-items: start; }
.a-wrap--single { grid-template-columns: minmax(0, 756px); justify-content: center; }
.a-body { justify-self: center; width: 100%; max-width: 690px; background: var(--c-surface); border-radius: var(--r-base); padding: 57.32px 38.66px 40px; }
.a-body > section, .a-body > .intro, .a-body > .box, .a-body > .toc { margin-top: 40px; }
.a-body > :first-child { margin-top: 0; }
.a-body p + p, .a-body section > p { margin-top: 30px; }
.a-body h2 { margin-top: 40px; padding-bottom: 19px; border-bottom: 2px solid var(--c-rule); font-size: 23.47px; line-height: 37.5px; font-weight: 700; }
.a-body h2 + * { margin-top: 40px; }
.a-body h3 { position: relative; margin-top: 40px; padding-left: 14px; font-size: 19.73px; line-height: 31.6px; font-weight: 700; }
.a-body h3::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-ink); }
.a-body h3 + * { margin-top: 20px; }
.h4 { font-size: 18px; line-height: 32.4px; font-weight: 700; margin-bottom: 20px; }
.a-body a:not(.pill):not(.gtag):not(.chip):not(.ad-text) { color: var(--c-link); }
.a-body strong { background: linear-gradient(transparent 60%, var(--c-marker) 60%); }
.lead-p { margin-top: 20px; color: var(--c-text-sub); }
.nums { counter-reset: n; }
.nums li { counter-increment: n; position: relative; padding-left: 24px; }
.nums li + li { margin-top: 10px; }
.nums li::before { content: counter(n) "."; position: absolute; left: 0; font-family: var(--f-num); font-weight: 700; }
.bullets li { position: relative; padding-left: 18px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-ink); }
.anchor { position: relative; top: -104px; }

/* 目次 */
.toc { border-radius: var(--r-base); overflow: hidden; }
.toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 20px 28px 20px 28.66px; background: var(--c-surface-2); font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .tri { color: var(--c-accent); }
.toc[open] summary .tri { transform: rotate(180deg); }
.toc > ol { background: var(--c-bg); padding: 35px 28.66px; }
.toc > ol > li { font-size: 14px; line-height: 28px; font-weight: 700; }
.toc > ol > li + li { margin-top: 10px; }
.toc ol ol { margin-top: 10px; }
.toc ol ol li { position: relative; padding-left: 21px; font-weight: 400; }
.toc ol ol li::before { content: ""; position: absolute; left: 6px; top: 12.5px; width: 3px; height: 3px; border-radius: 50%; background: var(--c-link); }

/* 表 */
.tbl { position: relative; margin-top: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl table, table.kv { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 28px; }
.tbl th, .tbl td, .kv th, .kv td { padding: 15px; border: 1px solid var(--c-rule); text-align: left; vertical-align: top; }
.tbl thead th, .tbl tbody th, .kv th { background: var(--c-bg); font-weight: 700; }
.tbl table:not(.kv) th:first-child { min-width: 9em; }
.tbl table:not(.kv) td { min-width: 8em; }
.corner { white-space: nowrap; }
.tbl table:not(.kv) tbody th:first-child { word-break: keep-all; overflow-wrap: anywhere; }
@media (min-width: 992px) { .tbl table:not(.kv) td { min-width: 6em; } .tbl table:not(.kv) th:first-child { min-width: 7.5em; } }
/* PC の比較表は本文の幅（約613px）に列を収めるので、余白を詰めて1行の文字数を稼ぐ（左右 15px→10px で1列あたり約1字・上下 15px→14px。2026-10-13） */
@media (min-width: 992px) { .tbl table:not(.kv) th, .tbl table:not(.kv) td { padding: 14px 10px; } }
.tbl-hint { margin-top: 10px !important; font-size: 14px; color: var(--c-text-sub); }
.tbl-hint + .tbl { margin-top: 6px; }
@media (max-width: 1220px) {
  .tbl table:not(.kv) th:first-child { position: sticky; left: 0; z-index: 1; width: 110px; min-width: 110px; max-width: 110px; box-shadow: inset -1px 0 0 var(--c-rule); }
}
.tbl.is-scroll-r { box-shadow: inset -40px 0 20px -20px rgba(35, 34, 31, .1); }
.tbl.is-scroll-l { box-shadow: inset 40px 0 20px -20px rgba(35, 34, 31, .1); }
.tbl.is-scroll-l.is-scroll-r { box-shadow: inset -40px 0 20px -20px rgba(35, 34, 31, .1), inset 40px 0 20px -20px rgba(35, 34, 31, .1); }
.kv th { width: 34%; }
.tbl-title { margin-top: 30px; font-weight: 700; }
.note { margin-top: 10px !important; font-size: 12px; line-height: 21.6px; color: var(--c-text-sub); }
.row-plan { display: block; font-size: 12px; font-weight: 400; color: var(--c-text-sub); }
.per-plan li + li { margin-top: 6px; }
.pp-plan { display: block; font-size: 12px; color: var(--c-text-sub); }
.stale { color: var(--c-text-sub); }

/* 囲み・目的別のおすすめ・給付金・評価の欄 */
.box { border: 1px solid var(--c-rule); border-radius: var(--r-base); padding: 34px 27.66px; }
.picks-h { margin: 0 !important; border: 0 !important; padding: 0 0 0 14px !important; position: relative; font-size: 19.73px !important; line-height: 31.6px !important; }
.picks-h::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-accent); }
.picks ul { margin-top: 20px; }
.picks li { padding: 20px 0; background: var(--dots-h); background-position: left bottom; }
.picks li:last-child { background: none; padding-bottom: 0; }
.pick-who { font-size: 14px; font-weight: 700; color: var(--c-text-sub); }
.pick-to { margin-top: 4px !important; font-size: 17px; font-weight: 700; }
.pick-why { margin-top: 6px !important; font-size: 14px; line-height: 28px; }
.svc { margin-top: 40px; }
/* 節と節の間を広げ、前の会社の末尾ボタンが次の会社のボタンに見えないようにする（2026-10-11 目視審査の指摘） */
.svc + .svc { margin-top: 80px; }
.svc-plans { font-size: 13px; color: var(--c-text-sub); }
/* 比較表に全文がある情報だけ、各社の節では開閉できる詳細にする。 */
.svc-compared { margin-top: 16px; border-top: 1px solid var(--c-rule); }
.svc-compared summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 12px 0; min-height: 44px; box-sizing: border-box; font-size: 14px; font-weight: 700; color: var(--c-text); list-style: none; }
/* 開閉の印は目次（.toc）と同じアクセント色の三角にする（ブラウザ既定の黒い ▶ を消す・2026-10-25 独立目視審査） */
.svc-compared summary::-webkit-details-marker { display: none; }
.svc-compared summary .tri { flex: none; color: var(--c-accent); }
.svc-compared[open] summary .tri { transform: rotate(180deg); }
.svc-compared summary:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.svc-compared[open] > .tbl { margin-top: 0; }

.bf { margin-top: 30px; }
.bf .tbl { margin-top: 0; }
/* 給付率の欄から、記事に1回の受給の条件（.bf-cond）へのリンク（2026-10-11） */
.bf-cond-link { display: block; width: fit-content; margin-top: 0; padding: 8px 0; min-height: 44px; box-sizing: border-box; font-size: 13px; line-height: 28px; }
.bf-cond { margin-top: 24px !important; scroll-margin-top: 96px; }
.bf-cond-h { font-size: 14px; font-weight: 700; color: var(--c-text); }
.bf-cond .note { margin-top: 6px; font-size: 13px; color: var(--c-text-sub); }
/* 列見出しの中では1行に保つ（1280px でも「受け取るための条件」が2行に折れていた。2026-10-11。狭い幅は .tbl が横に送れる） */
th .bf-cond-link { font-weight: 400; white-space: nowrap; }
.svc-none { margin-top: 16px; }
/* 給付金の記事の比較表: 講座名の列が細く縦に伸びないよう、375〜767px は幅を確保する（是正B-1の軽微3） */
@media (max-width: 767px) { .tbl .c-scope { min-width: 14em; } }
.svc-cols { margin-top: 30px; }
.svc-col { padding: 20px 0; background: var(--dots-h); background-position: left bottom; }
.svc-col:last-child { background: none; }
.svc-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--c-text-sub); }
.svc-head { margin-top: 4px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.svc-good { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid var(--c-ink); border-radius: var(--r-pill); font-size: 11px; font-weight: 700; line-height: 1.4; }
.svc-good::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.svc-body p { margin-top: 6px; }
.official { margin-top: 30px !important; }
/* 各社の節の冒頭の公式ボタン（2026-10-11 決定。長い節の最後まで読まなくても公式へ出られる）と、目的別のおすすめの各項目の公式ボタン */
.official--top { margin-top: 16px !important; margin-bottom: 24px !important; }
.official--top + .tbl { margin-top: 0; }
/* 各社の節の末尾の「比較表へ戻る」（長い記事で表へ戻りやすくする・2026-10-11 決定） */
.to-compare { margin-top: 12px !important; font-size: 13px; }
.to-compare a { color: var(--c-link); }
.pick-official { margin-top: 12px !important; }
.a-end { margin-top: 60px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.a-end .kwtags { justify-content: center; }
/* 320px 前後で長いジャンル名の「〜の記事一覧」が画面の外へはみ出さないよう、幅を画面内に収めて折り返す */
.a-end .pill { max-width: 100%; height: auto; min-height: 44px; white-space: normal; text-align: center; }
.hdots { display: block; width: 100%; height: 2px; background: var(--dots-h); }

/* あわせて読みたい */
.also-h { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.also-link { display: grid; grid-template-columns: 182px minmax(0, 1fr); gap: 20px; align-items: center; text-decoration: none; color: inherit !important; }
.also-img { aspect-ratio: 150 / 79; border-radius: var(--r-base); overflow: hidden; background: var(--c-surface-2); }
.also-img img { width: 100%; height: 100%; object-fit: cover; }
.also-title { display: block; margin-top: 4px; font-size: 15px; line-height: 1.7; font-weight: 700; }
.also-link:hover .also-title { color: var(--c-link); }
@media (max-width: 575px) { .also-link { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; } .also-title { font-size: 13px; } }

/* 右列 */
.side { width: 312px; justify-self: center; position: sticky; top: 104px; }
.side.is-tall { top: auto; bottom: var(--space-03); align-self: end; }
.side-block { padding: 40px 0; background: var(--dots-h); background-position: left top; }
.side-block:first-child { padding-top: 0; background: none; }
.side-h { font-size: 18px; line-height: 28.8px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 4px; }
.side-this li + li { margin-top: 10px; }
.side-this a { display: block; text-decoration: none; }
.st-name { display: block; font-size: 14px; font-weight: 700; line-height: 1.6; }
.st-plan { display: block; font-size: 12px; color: var(--c-text-sub); line-height: 1.6; }
.side-this a:hover .st-name { color: var(--c-link); }
.mini li + li { margin-top: 20px; }
.mini a { display: grid; grid-template-columns: 91px minmax(0, 1fr); gap: 20px; text-decoration: none; }
.mini-img { aspect-ratio: 91 / 48; border-radius: var(--r-base); overflow: hidden; background: var(--c-surface-2); }
.mini-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-g { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--c-text-sub-sm); font-weight: 700; line-height: 1.4; }
.mini-g .gdot { width: 4px; height: 4px; }
.mini-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 21.6px; font-weight: 700; }
.mini-date { display: block; font-family: var(--f-num); font-size: 10px; color: var(--c-text-sub-sm); }
.side-txt { font-size: 13px; line-height: 1.9; margin-bottom: 20px; line-break: strict; }
.side-ads ul li + li { margin-top: 20px; }
@media (max-width: 991px) {
  .a-wrap { grid-template-columns: minmax(0, 1fr); }
  .a-body { max-width: 608px; padding: 47.52px 33.76px 40px; }
  .side { position: static; width: 100%; max-width: 608px; margin-top: var(--space-02); }
  .a-title { font-size: 24.26px; line-height: 38.8px; }
  .a-body h2 { font-size: 21.5px; line-height: 34.4px; }
  .a-body h3 { font-size: 18.75px; line-height: 30px; }
}
@media (max-width: 575px) {
  .a-top { padding-top: 40px; }
  .a-title { font-size: 22px; line-height: 35.2px; }
  .a-hero { margin-left: calc(var(--offset) * -1); margin-right: calc(var(--offset) * -1); border-radius: 0; }
  .a-wrap { padding: 0 0 60px; }
  .a-body { border-radius: 0; padding: 40px 20px; }
  .side { padding: 0 20px; }
  .a-body h2 { font-size: 20px; line-height: 32px; }
  .a-body h3 { font-size: 18px; line-height: 28.8px; }
  .box { padding: 24px 18px; }
}

/* ---- パンくず・フッター ----------------------------------------------------- */
.bc { background: var(--c-ink-2); color: #fff; }
.bc ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 97px; padding: 20px var(--offset); max-width: var(--max-width); margin: 0 auto; font-size: 10.87px; line-height: 19.6px; }
.bc li { display: inline-flex; align-items: center; gap: 12px; }
.bc a { text-decoration: none; }
.bc .chev { width: 8px; height: 8px; }
.ft { background: var(--c-ink); color: #fff; }
.ft a { color: #fff; }
.ft-top { padding: 94.47px var(--offset) 106.97px; }
.ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 239px)); gap: 40px; max-width: var(--max-width); margin: 0 auto; justify-content: space-between; }
.ft-h { padding: 13.8px 0; font-size: 14px; line-height: 22.4px; font-weight: 700; background: linear-gradient(90deg, rgba(221, 218, 216, .25) 25%, transparent 25%) left bottom / 8px 2px repeat-x; }
.ft-h a { display: inline-flex; align-items: flex-start; gap: 8px; text-decoration: none; }
.ft-h a .gdot { margin-top: 7px; }
.ft-h .gdot { width: 8px; height: 8px; }
.ft-cols ul { margin-top: 10px; }
.ft-cols li a { display: block; padding: 5px 0; font-size: 12px; line-height: 21.6px; text-decoration: none; }
.ft-cols li a:hover { text-decoration: underline; }
.ft-mid { border-top: 2px solid var(--c-footer-rule); padding: 0 var(--offset); }
.ft-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; max-width: 1068px; margin: 0 auto; padding: 50px 0; background: linear-gradient(90deg, rgba(221, 218, 216, .25) 25%, transparent 25%) left bottom / 8px 2px repeat-x; }
.ft-row:last-child { background: none; }
.ft-row-h { font-size: 16px; font-weight: 700; letter-spacing: .05em; line-height: 1.5; }
.ft-row-d { margin-top: 8px; max-width: 520px; font-size: 13px; line-height: 24.7px; color: rgba(255, 255, 255, .85); }
.ft-row .pill--white { color: var(--c-ink); }
.ft-row .pill--white:hover { color: #fff; }
.ft-bot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; min-height: 176px; border-top: 2px solid var(--c-footer-rule); padding: 40px var(--offset); }
.ft-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.ft-links a { display: block; padding: 10px 0; font-size: 11px; line-height: 1.2; text-decoration: none; }
.ft-links a:hover { text-decoration: underline; }
.ft-copy { margin-left: auto; font-size: 11px; line-height: 1.2; }
@media (max-width: 991px) {
  .ft-top { padding: 65px var(--offset) 77px; }
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-row { padding: 40px 0; }
  .ft-row .pill--white { flex: none; width: 284px; }
  .ft-copy { margin-left: 0; width: 100%; }
}
@media (max-width: 767px) {
  .ft-top { padding: 42.5px 20px 55px; }
  .ft-row { flex-direction: column; align-items: flex-start; gap: 20px; padding: 40px 0; }
  .ft-row .pill--white { width: 100%; }
  .ft-bot { padding: 40px 20px; }
}

/* ---- 動きを減らす ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* 「比較表へ戻る」: 見た目を変えずに押せる高さを広げる（2026-10-11 目視審査の指摘） */
.to-compare a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* 編集部の表示（2026-10-12 文章改善 P2-D）。作りは webjissoku の byline・author box と同じで、色と枠はこのサイトの墨・淡い罫線・角丸に合わせる */
.ed-mark { flex: none; }
.ed-bg { fill: var(--c-ink); }
.ed-line { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.byline { margin-top: 14px; display: flex; align-items: center; gap: 8px; line-height: 1.2; }
.byline .ed-mark { width: 28px; height: 28px; }
.byline-name { font-size: 13px; font-weight: 700; }
.a-body > .author-box { margin-top: 40px; }
.author-h { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.author-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.author-item { display: flex; align-items: center; min-width: 0; }
.author-box .ed-mark { width: 56px; height: 56px; }
.author-detail { padding-left: 16px; }
.a-body .author-detail p + p { margin-top: 4px; }
.author-name { font-size: 16px; font-weight: 700; }
.author-company { font-size: 13px; font-weight: 600; color: var(--c-text-sub); }
.author-link { flex: none; }
.a-body .author-text { margin-top: 20px; font-size: 15px; line-height: 1.9; }
@media (max-width: 575px) {
  .author-header { flex-direction: column; align-items: flex-start; }
  .author-box .ed-mark { width: 48px; height: 48px; }
  .a-body .author-text { font-size: 14px; }
}

/* ジャンルの「読む理由」の1文（P2-B）。一覧・トップのジャンルの区画で、見出しの下に1行 */
.subhead + .g-summary { margin-top: calc(var(--space-02) * -1 + 14px); }
.g-summary { margin-bottom: var(--space-04); max-width: 760px; font-size: 14px; line-height: 1.9; color: var(--c-text-sub); }

/* 選び方の各節の末尾の、比較記事へのリンク（2026-10-11 計画 P3） */
.guide-more { margin-top: 12px !important; font-size: 14px; }
.guide-more a { color: var(--c-link); text-decoration: underline; text-underline-offset: 2px; }

/* ---- 運営者の指摘への整え（2026-10-12） ---------------------------------------------------- */
/* 本文・サイドバーの語の途中の改行（「テックキャ／ンプ」「エン／ジニア」）と、段落末の1字だけの行（「す。」）を防ぐ。
   文節で折り（auto-phrase）、最終行が短くなりすぎないよう釣り合わせる（pretty）。対応していないブラウザでは今までどおり。
   長い語（「リクルートメントコンサルタント」など）は、原稿側で <wbr>（softBreaks）を足して、前の行が極端に短くならないようにしている */
.nw { white-space: nowrap; }
.a-body p, .a-body li, .a-body dd, .side-txt, .side-this, .st-plan, .svc-plans, .cd-desc, .cd-sum, .g-summary, .also-txt, .mini, .lead-txt p, .sec-desc, .note, .ft-cols li a, .ft-row-d {
  word-break: auto-phrase;
  text-wrap: pretty;
}
/* 記事が4件のときは「3列＋1件」にせず2列にする（件数が4のときだけ。3・6件は3列のまま）。2列の区切り線の出し方は 991px 以下と同じ */
@media (min-width: 992px) {
  .grid:has(> .cell:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid:has(> .cell:nth-child(4):last-child) > .cell:nth-child(3n)::after { display: block; }
  .grid:has(> .cell:nth-child(4):last-child) > .cell:nth-child(2n)::after { display: none; }
  .grid:has(> .cell:nth-child(4):last-child) > .cell::before { display: block; }
  .grid:has(> .cell:nth-child(4):last-child) > .cell:nth-child(n + 3)::before { display: none; }
}
/* 記事の本文の白い面は、タイトル・写真と左端をそろえる（2列のとき。幅が 690px に収まる分だけ中央に寄っていた） */
@media (min-width: 992px) {
  .a-wrap:not(.a-wrap--single) { max-width: calc(1068px + var(--offset) * 2); }   /* タイトル・写真（.a-top）と同じ幅にして、広い画面でも左端と右端をそろえる */
  .a-wrap:not(.a-wrap--single) > .a-body { justify-self: start; }
  /* 本文（最大 690px）と右列（312px）の2列は、列の幅と間隔で決める。広い画面では本文の左端がタイトル・右列の右端が写真の右端にそろい、
     狭い画面（992〜1100px）でも右列が本文の白い面に重ならない（間は 40px 以上） */
  .a-wrap:not(.a-wrap--single) { grid-template-columns: minmax(0, 690px) minmax(0, 312px); column-gap: 40px; justify-content: space-between; }
  .a-wrap:not(.a-wrap--single) > .a-body { justify-self: stretch; }
  .a-wrap:not(.a-wrap--single) > .side { width: 100%; justify-self: stretch; }
}
/* 320〜400px: フッターの見出し（「転職エージェント」）が列に収まらず途中で折れるので、列の間を詰めて字を一段小さくする */
@media (max-width: 400px) {
  .ft-cols { column-gap: 16px; }
  .ft-h { font-size: 13px; }
}
/* 992〜1279px の3列は、カードの題名の欄が 6 字ほどしかなく、「転職エージェ／ント」「プログラミン／グスクール」と語の途中で折れる。
   題名を 1 段小さくし、カードの左右の余白を詰めて、欄を広げる（1280px 以上は今までどおり） */
@media (min-width: 992px) and (max-width: 1279px) {
  .grid .cd-body { padding-left: 18px; padding-right: 14px; }
  .grid .cd-title { font-size: 15px; }
}
/* 992〜1099px は、それでも欄が足りないので 991px 以下と同じ2列にする（区切りの点線の出し方も同じ） */
@media (min-width: 992px) and (max-width: 1099px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > .cell:nth-child(3n)::after { display: block; }
  .grid > .cell:nth-child(2n)::after { display: none; }
  .grid > .cell::before { display: block !important; }
  .grid > .cell:nth-last-child(-n + 2):nth-child(2n + 1)::before,
  .grid > .cell:nth-last-child(-n + 2):nth-child(2n + 1) ~ .cell::before { display: none !important; }
  .grid .cd-body { padding-left: 23.76px; padding-right: 23.76px; }
  .grid .cd-title { font-size: 17px; }
}
/* 576〜767px の横長の札（一覧・トップ・ジャンル・関連）: 画像の欄が 250px 固定のままだと題名の欄が 77px になり、
   「転職エー／ジェント」と語の途中で折れる（修正前からあった）。画像の欄を幅の36%（最小 150px）にして、題名の欄を広げる */
@media (min-width: 576px) and (max-width: 767px) {
  .grid--row .cd { grid-template-columns: minmax(150px, 36%) minmax(0, 1fr); }
}
/* 記事の比較図解（比較表の後ろ・2026-11-03） */
.a-chart { margin: 24px 0 32px; }
.a-chart img { display: block; width: 100%; height: auto; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; }
.a-chart figcaption { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--c-text-sub); }
/* 教育訓練給付金の計算（/tools/kyufukin/・2026-11-12） */
.kc { margin: 32px 0 48px; padding: 28px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); }
.kc-f { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.kc-f[hidden] { display: none; }
.kc-l { display: block; margin-bottom: 10px; font-weight: 700; font-size: 16px; line-height: 1.6; }
.kc-opts { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.kc-opt { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--c-line); border-radius: 8px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.kc-opt:has(input:checked) { border-color: var(--c-accent); background: var(--c-marker); }
.kc-opt input { accent-color: var(--c-accent); margin: 0; flex: none; }
.kc-in { width: 100%; max-width: 320px; height: 48px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--c-text); }
.kc-in--s { max-width: 160px; }
.kc-in:focus-visible, .kc-opt:has(input:focus-visible) { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.kc-help { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--c-text-sub); }
.kc-out { margin: 8px 0 28px; padding: 22px; border-radius: 10px; background: var(--c-surface-2); }
.kc-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; }
.kc-nums p { margin: 0; }
.kc-k { display: block; font-size: 14px; color: var(--c-text-sub); }
.kc-v { display: block; font-family: var(--f-num); font-weight: 700; font-size: 32px; line-height: 1.3; color: var(--c-accent); }
.kc-v--sub { color: var(--c-text); font-size: 24px; }
.kc-detail { margin-top: 12px; font-size: 15px; line-height: 1.8; }
.kc-verdict { margin-top: 12px; padding-left: 12px; border-left: 4px solid var(--c-line); font-weight: 700; font-size: 15px; line-height: 1.7; }
.kc-verdict[data-state="likely"] { border-color: var(--g-school); }
.kc-verdict[data-state="no"] { border-color: var(--c-new); }
.kc-reasons { margin: 8px 0 0 1.2em; font-size: 14px; line-height: 1.8; list-style: disc; }
.kc-steps { margin: 16px 0 0 1.4em; line-height: 1.9; list-style: decimal; }
.pg-kyufu .pill-row .pill { max-width: 100%; height: auto; min-height: 50px; padding-block: 10px; white-space: normal; text-align: left; }
@media (max-width: 575px) {
  .kc { padding: 18px 14px; }
  .kc-opt { width: 100%; }
  .kc-v { font-size: 28px; }
}
.kc-v[data-state="no"] { color: var(--c-text-sub); font-size: 24px; }
