/*
 * リハ職キャリアノート — サイトの見た目
 *
 * 土台：デジタル庁デザインシステム（DADS β版 v2.18.2・取得日 2026-10-28）
 *   値は assets/tokens.css（--dg-*・DB からの写し）を使い、このファイルではキー色だけシアンに置き換える
 *   （DADS のカラーの決まり：キーカラーはサイトごとに選べる。リンクの青・フォーカスの黄と黒は変えない）
 *   出典：デジタル庁デザインシステムウェブサイト https://design.digital.go.jp/dads/ をもとに作成
 *
 * スマホ（幅 375px）が先。768px 以上で PC の段組み（DADS のレイアウトの切り替え幅）
 * コントラスト比の計算は README.md
 */

:root {
  /* キー色：シアン（公式トークン --color-primitive-cyan-*） */
  --dg-primary: #006f83;          /* Cyan-900：白地と 5.83:1 */
  --dg-primary-hover: #006173;    /* Cyan-1000：白地と 7.10:1 */
  --dg-primary-active: #003741;   /* Cyan-1200：白地と 12.94:1（DADS の青と同じ 900→1000→1200 の段） */
  --dg-primary-soft: #e9f7f9;     /* Cyan-50 */
  --site-primary-soft-strong: #c8f8ff; /* Cyan-100（枠線のボタンを押したときの面） */

  /* リンク：慣習どおり青＋下線。訪問済みはマゼンタ（DADS のリンクカラーの例） */
  --site-link: var(--dg-link);    /* Blue-900 #0017c1：白地と 11.10:1 */
  --site-link-hover: #0031d8;     /* Blue-800：8.64:1。下線を太くする */
  --site-link-visited: #8b008b;   /* Magenta-900：8.50:1 */
  --site-link-active: #c74700;    /* Orange-800：4.85:1 */

  --site-black: #000000;
  --site-draft-fg: #8b3200;       /* Orange-1000（下書きの札。Orange-50 の上で 7.27:1） */
  --site-draft-bg: #ffeee2;       /* Orange-50 */

  --site-max: 1120px;             /* ヘッダー・フッター・トップの幅 */
  --site-read: 760px;             /* 記事の本文の幅 */
  --site-gutter: 16px;            /* 左右の余白 */
  --site-icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42L17.59 5H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  :root { --site-gutter: 32px; }
}

/* ---------------------------------------------------------------- 土台 */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--dg-bg);
  color: var(--dg-text);
  font-family: var(--dg-font-sans);
  font-size: var(--dg-text-base);       /* 16px */
  line-height: var(--dg-line-height);   /* 1.7（Std-16N-170） */
  letter-spacing: var(--dg-letter-spacing); /* 0.02em */
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 { font-weight: 700; margin: 0; }
h1 { font-size: 1.75rem; line-height: 1.5; letter-spacing: 0.01em; }  /* Std-28B-150 */
h2 { font-size: 1.5rem; line-height: 1.5; }                           /* Std-24B-150 */
h3 { font-size: 1.25rem; line-height: 1.5; }                          /* Std-20B-150 */
h4 { font-size: 1.125rem; line-height: 1.6; }                         /* Std-18B-160 */

@media (min-width: 768px) {
  h1 { font-size: 2.25rem; line-height: 1.4; }                        /* Std-36B-140 */
  h2 { font-size: 1.75rem; letter-spacing: 0.01em; }                  /* Std-28B-150 */
  h3 { font-size: 1.375rem; }                                         /* Std-22B-150 */
}

/* ---------------------------------------------------------------- リンク（基本デザイン：リンクテキスト） */

a {
  color: var(--site-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:visited { color: var(--site-link-visited); }
a:hover { color: var(--site-link-hover); text-decoration-thickness: 3px; }
a:active { color: var(--site-link-active); }

/* 新しいタブで開くリンクには印を付ける（文字のリンクだけ。広告のコードは書き換えない） */
a[target="_blank"]:not(:has(img))::after {
  content: "";
  content: "" / "（新しいタブで開きます）";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.25em;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: var(--site-icon-external) no-repeat center / contain;
  mask: var(--site-icon-external) no-repeat center / contain;
}

/* フォーカス：黄 #ffd43d と黒の二重。どの部品でも同じ。変えない */
:focus-visible {
  outline: 4px solid var(--dg-focus-outer);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--dg-focus);
  border-radius: 4px;
}
a:not([class*="btn-"]):focus-visible { background-color: var(--dg-focus); }

.skip-link {
  position: absolute;
  left: 8px;
  top: -200px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--dg-bg);
}
.skip-link:focus { top: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:target { scroll-margin-top: 16px; }

/* ---------------------------------------------------------------- 枠組み */

.page-container {
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}

.read {
  max-width: var(--site-read);
  margin-inline: auto;
}

.site-main { flex: 1 0 auto; } /* 短いページでもフッターを下に置く */

/* ---------------------------------------------------------------- ヘッダー（ヘッダーコンテナ） */

.site-header {
  background: var(--dg-bg);
  border-top: 4px solid var(--dg-primary);
  border-bottom: 1px solid var(--dg-border);
}
.site-header__inner {
  max-width: var(--site-max);
  margin-inline: auto;
  padding: 4px var(--site-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
}
.site-header__name,
.site-header__name:visited {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--dg-primary);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-header__name:hover { color: var(--dg-primary-hover); text-decoration: underline; text-decoration-thickness: 3px; }
.site-header__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}
.site-header__nav a,
.site-header__nav a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dg-text);
}
.site-header__nav a:hover { color: var(--dg-text); }
.site-header__nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--dg-primary);
}

.preview-banner {
  padding: 8px var(--site-gutter);
  background: var(--site-draft-bg);
  border-bottom: 1px solid var(--site-draft-fg);
  text-align: center;
}

/* ---------------------------------------------------------------- フッター（ユーティリティリンク） */

.site-footer {
  margin-top: 64px;
  background: var(--dg-surface-2);
  border-top: 1px solid var(--dg-border);
}
.site-footer__inner {
  max-width: var(--site-max);
  margin-inline: auto;
  padding: 32px var(--site-gutter) 40px;
}
.utility-links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
}
.utility-links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0 0 8px; }
.site-footer__credit,
.site-footer__copy { font-size: 0.875rem; color: var(--dg-text-muted); } /* 14px：フッターの付随情報（DADS で使ってよい場面） */
.site-footer__credit a { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- パンくず */

.breadcrumb { margin: 16px 0 24px; }
.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
}
.breadcrumb__list li { display: inline-flex; align-items: center; }
.breadcrumb__list li + li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 12px 0 6px;
  border-top: 2px solid var(--dg-text-muted);
  border-right: 2px solid var(--dg-text-muted);
  transform: rotate(45deg);
}
.breadcrumb__list a { display: inline-flex; align-items: center; min-height: 32px; }
/* スマホ：今いるページの名前は1行に収めて「…」で切る（記事の頭を短くし、まとめの箱を早く見せる） */
@media (max-width: 767px) {
  .breadcrumb__list { flex-wrap: nowrap; }
  .breadcrumb__list li { flex: 0 0 auto; }
  .breadcrumb__list li:last-child { flex: 1 1 0; min-width: 0; }
  .breadcrumb__list li:last-child > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------------------------------------------------------------- ボタン（塗り＝1画面1つまで／枠線） */

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 96px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--dg-primary);
  border-radius: var(--dg-radius-m);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary,
.btn-primary:visited { background: var(--dg-primary); color: var(--dg-on-primary); }
.btn-primary:hover { background: var(--dg-primary-hover); border-color: var(--dg-primary-hover); color: var(--dg-on-primary); text-decoration: underline; text-decoration-thickness: 1px; }
.btn-primary:active { background: var(--dg-primary-active); border-color: var(--dg-primary-active); color: var(--dg-on-primary); }

.btn-outline,
.btn-outline:visited { background: var(--dg-bg); color: var(--dg-primary); }
.btn-outline:hover { background: var(--dg-primary-soft); border-color: var(--dg-primary-hover); color: var(--dg-primary-hover); text-decoration: underline; text-decoration-thickness: 1px; }
.btn-outline:active { background: var(--site-primary-soft-strong); border-color: var(--dg-primary-active); color: var(--dg-primary-active); }

/* ---------------------------------------------------------------- チップラベル */

.chip-label {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.chip-label--draft { color: var(--site-draft-fg); background: var(--site-draft-bg); }
.chip-label--pr { color: var(--dg-on-primary); background: var(--dg-primary); border-color: var(--dg-primary); margin-right: 8px; }

/* ---------------------------------------------------------------- 記事の頭 */

.article__header { margin: 0 0 24px; }
.article__header .chip-label { margin-bottom: 8px; }
.article__title { margin: 0 0 16px; }

/* 説明リスト（テーマ・公開日・更新日） */
.article-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 4px;
}
.article-meta > div { display: flex; column-gap: 8px; }
.article-meta dt { font-weight: 700; }
.article-meta dd { margin: 0; }

/* ---------------------------------------------------------------- 注釈ブロック（PR の表記・本文の注記） */

.notice-block {
  margin: 0 0 32px;
  padding: 16px;
  border: 1px solid var(--dg-primary);
  border-radius: var(--dg-radius-m);
  background: var(--dg-bg);
}
.notice-block p { margin: 0; }

.note {
  margin: 0 0 1.5em;
  padding: 16px;
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius-m);
  background: var(--dg-surface-2);
}
.note > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- 目次 */

.toc {
  margin: 0 0 40px;
  padding: 16px 20px;
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius-m);
}
.toc__title { margin: 0 0 8px; font-size: 1.125rem; line-height: 1.6; } /* Std-18B-160 */
.toc__list { margin: 0; padding-left: 1.5em; }
.toc__list li + li { margin-top: 4px; }

/* ---------------------------------------------------------------- 本文 */

.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose .lead { font-size: 1.125rem; line-height: 1.6; margin-bottom: 1.5em; } /* Std-18N-160 */
.prose h2:not([class]) {
  position: relative;
  margin: 3rem 0 1rem;
  padding-left: 16px;
}
/* 見出しのチップ（DADS の見出し：縦線のチップ付き） */
.prose h2:not([class])::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  border-radius: 2px;
  background: var(--dg-primary);
}
.prose h3:not([class]) { margin: 2rem 0 0.75rem; }
.prose h4:not([class]) { margin: 1.5rem 0 0.5rem; }
.prose :where(ul, ol) { margin: 0 0 1em; padding-left: 1.5em; }
.prose :where(li + li) { margin-top: 8px; }
.prose :where(li > ul, li > ol) { margin: 8px 0 0; }
.prose :where(ul ul) { list-style-type: circle; }
.prose :where(ul ul ul) { list-style-type: square; }
.prose hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--dg-border);
}
.prose :where(dl) { margin: 0 0 1em; }
.prose :where(dt) { font-weight: 700; }
.prose :where(dd) { margin: 0 0 8px; }

/* 説明リスト（このサイトについて など） */
.dl-list { margin: 0 0 1.5em; }
.dl-list > div { padding: 12px 0; border-bottom: 1px solid var(--dg-border); }
.dl-list > div:first-child { border-top: 1px solid var(--dg-border); }
.dl-list dt { font-weight: 700; }
.dl-list dd { margin: 0; }
@media (min-width: 768px) {
  .dl-list > div { display: grid; grid-template-columns: 10em 1fr; column-gap: 24px; }
}

/* 引用の番号：続く番号は build が [3, 4] にまとめる。小さく・下線なしにして、本文の邪魔をしない（押せることは青い数字と [ ] で分かる） */
sup.cite {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: super;
  color: var(--dg-text-muted);
  white-space: nowrap;
  margin-left: 1px;
}
sup.cite a { padding: 0 1px; text-decoration: none; }
sup.cite a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* 出典（build が <ol> を <ul> と番号の文字に直す：DADS の箇条書きリストは番号を文字で書く） */
.sources {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  overflow-wrap: anywhere;
}
.sources li {
  position: relative;
  padding: 4px 8px 4px 3em;
  border-radius: 4px;
}
.sources li + li { margin-top: 4px; }
.sources__num { position: absolute; left: 8px; top: 4px; font-weight: 700; }
.sources li:target { background: var(--dg-primary-soft); }

/* ---------------------------------------------------------------- 表（狭い画面では表の中で横に動かす） */

.table-wrap {
  margin: 0 0 1.5em;
  overflow-x: auto;
  container-type: inline-size; /* 表の題の幅を、見えている幅に合わせるため */
  /* 横に動かせることを示す影（左右の端） */
  background:
    linear-gradient(to right, var(--dg-bg) 30%, rgb(255 255 255 / 0)) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--dg-bg) 30%, rgb(255 255 255 / 0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / 0.25), rgb(0 0 0 / 0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / 0.25), rgb(0 0 0 / 0)) right center / 14px 100% no-repeat scroll;
  background-color: var(--dg-bg);
}
.table-wrap table { width: 100%; border-collapse: collapse; }
table.compare { min-width: 40rem; } /* 640px より狭い画面では横に動かす */
table.compare:has(thead th:nth-child(5)) { min-width: 56rem; } /* 5列以上の表は広めに取り、行が縦に伸びすぎないように */
.compare :is(th, td) { min-width: 7em; }       /* 列が細くなりすぎて1字ずつ折り返さないように（余白こみ） */
.compare tbody th { min-width: 8em; }
table caption {
  max-width: calc(100vw - 2 * var(--site-gutter));
  max-width: 100cqi; /* 横に動かしても、題は見えている幅の中で折り返す */
  padding: 0 0 8px;
  text-align: left;
  font-weight: 700;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid var(--dg-border);
  text-align: left;
  vertical-align: top;
}
th { font-weight: 700; }
thead th { border-bottom: 1px solid var(--site-black); } /* 見出しのセルとデータのセルを黒い線で分ける */
td .btn-outline { min-width: 0; min-height: 44px; padding: 8px 12px; white-space: nowrap; }

/* ---------------------------------------------------------------- 記事の部品（アフィリエイトの記事の型。書き方は README の「記事の部品」）
 * DADS から外していること：塗りのボタン（.btn-cta）を1画面に複数置く。公式サイトへの入口を、読む人が迷わず見つけられるようにするため
 */

/* 申し込みのボタン（公式サイトへ）：塗り・大きめ・スマホでは横いっぱい */
.btn-cta,
.btn-cta:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 420px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--dg-primary);
  border-radius: var(--dg-radius-m);
  background: var(--dg-primary);
  color: var(--dg-on-primary);
  box-shadow: 0 3px 0 var(--dg-primary-active);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
}
.btn-cta:hover { background: var(--dg-primary-hover); border-color: var(--dg-primary-hover); color: var(--dg-on-primary); text-decoration: underline; text-decoration-thickness: 1px; }
.btn-cta:active { background: var(--dg-primary-active); border-color: var(--dg-primary-active); color: var(--dg-on-primary); box-shadow: none; transform: translateY(3px); }
.btn-cta--sub,
.btn-cta--sub:visited { background: var(--dg-bg); color: var(--dg-primary); box-shadow: 0 3px 0 var(--dg-border); }
.btn-cta--sub:hover { background: var(--dg-primary-soft); color: var(--dg-primary-hover); }
.btn-cta--sub:active { background: var(--site-primary-soft-strong); color: var(--dg-primary-active); }

.cta { margin: 16px 0 28px; text-align: center; }
.cta__note { margin: 8px 0 0 !important; color: var(--dg-text-muted); font-size: 0.875rem; line-height: 1.6; }

/* まとめの箱（記事の頭で、結論と目的別の候補を見せる） */
.summary-box {
  margin: 0 0 32px;
  border: 2px solid var(--dg-primary);
  border-radius: var(--dg-radius-l);
  background: var(--dg-bg);
  overflow: hidden;
}
.prose .summary-box__title,
.summary-box__title {
  margin: 0;
  padding: 10px 16px;
  background: var(--dg-primary);
  color: var(--dg-on-primary);
  font-size: 1.125rem;
  line-height: 1.6;
}
.summary-box__body { padding: 16px; }
.summary-box__body > :last-child { margin-bottom: 0; }
.prose .summary-box__points,
.summary-box__points { list-style: none; margin: 0 0 16px; padding: 0; }
.summary-box__points li { position: relative; padding-left: 28px; }
.summary-box__points li + li { margin-top: 8px; }
.summary-box__points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.4em;
  width: 13px;
  height: 7px;
  border-left: 3px solid var(--dg-primary);
  border-bottom: 3px solid var(--dg-primary);
  transform: rotate(-45deg);
}
.summary-box__subtitle { margin: 0 0 8px !important; font-weight: 700; }

/* 目的別の候補（Best for の形。順位ではなく「こんな人に」で並べる） */
.prose .picks,
.picks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.prose .picks li + li { margin-top: 0; }
.pick {
  padding: 12px 14px 14px;
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius-m);
  background: var(--dg-surface-2);
}
.pick__for { display: block; margin: 0 0 2px; font-weight: 700; color: var(--dg-primary); }
.pick__name { display: block; margin: 0 0 4px; font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.pick__why { display: block; margin: 0 0 10px; }
.pick .btn-cta { max-width: none; }

/* 各社のカード */
.service-card {
  margin: 0 0 28px;
  border: 1px solid var(--dg-text-muted);
  border-radius: var(--dg-radius-l);
  background: var(--dg-bg);
  overflow: hidden;
}
.service-card__head { padding: 14px 16px 12px; background: var(--dg-primary-soft); border-bottom: 1px solid var(--dg-border); }
.prose .service-card__name,
.service-card__name { margin: 0; padding: 0; font-size: 1.25rem; line-height: 1.5; }
.prose .service-card__name::before { content: none; }
.service-card__operator { margin: 2px 0 0 !important; color: var(--dg-text-muted); }
.prose .service-card__tags,
.service-card__tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.prose .service-card__tags li + li { margin-top: 0; }
.tag {
  display: inline-block;
  padding: 0 10px;
  border: 1px solid var(--dg-primary);
  border-radius: 999px;
  background: var(--dg-bg);
  color: var(--dg-primary);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.8;
}
.service-card__body { padding: 16px; }
.service-card__body > :last-child { margin-bottom: 0; }
.service-card__facts { margin: 0 0 16px; display: grid; grid-template-columns: 6.5em minmax(0, 1fr); border-top: 1px solid var(--dg-border); }
.service-card__facts dt,
.service-card__facts dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--dg-border); }
.service-card__facts dt { padding-right: 12px; font-weight: 700; }
.service-card__label { margin: 0 0 4px !important; font-weight: 700; }
.service-card__label + ul { margin-top: 0; }

/* 囲み（ポイント・気をつけたいこと） */
.callout {
  margin: 0 0 1.5em;
  padding: 14px 16px;
  border-left: 6px solid var(--dg-primary);
  border-radius: 0 var(--dg-radius-m) var(--dg-radius-m) 0;
  background: var(--dg-primary-soft);
}
.callout--caution { border-left-color: var(--site-draft-fg); background: var(--site-draft-bg); }
.callout__title { margin: 0 0 4px !important; font-weight: 700; }
.callout > :last-child { margin-bottom: 0; }

/* 大事な数字（データの記事の頭） */
.prose .keynums,
.keynums { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 10px; }
.prose .keynums li + li { margin-top: 0; }
.keynum { padding: 12px 14px; border: 1px solid var(--dg-border); border-radius: var(--dg-radius-m); background: var(--dg-primary-soft); }
.keynum__label { display: block; font-weight: 700; }
.keynum__value { display: block; color: var(--dg-primary-active); font-size: 1.75rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.01em; }
.keynum__note { display: block; color: var(--dg-text-muted); font-size: 0.875rem; line-height: 1.6; }

/* 横棒のグラフ（数字は必ず横に書く。棒は目安の見た目だけ） */
.prose .bars,
.bars { list-style: none; margin: 0 0 1.5em; padding: 0; }
.bars li + li { margin-top: 10px; }
.bars__label { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.bars__track { display: block; height: 14px; margin-top: 4px; border-radius: 7px; background: var(--dg-surface-2); border: 1px solid var(--dg-border); overflow: hidden; }
.bars__fill { display: block; height: 100%; width: var(--w, 0%); background: var(--dg-primary); }
.bars li.is-focus .bars__fill { background: var(--dg-primary-active); }

/* よくある質問（DADS のアコーディオン：開閉の印は左） */
.faq { margin: 0 0 1.5em; border-top: 1px solid var(--dg-border); }
.faq__item { border-bottom: 1px solid var(--dg-border); }
.faq__q {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 12px 8px 12px 36px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 1.15em;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--dg-primary);
  border-bottom: 2px solid var(--dg-primary);
  transform: rotate(-45deg);
  transition: transform 0.15s;
}
.faq__item[open] > .faq__q::before { transform: rotate(45deg); }
.faq__a { padding: 0 8px 16px 36px; }
.faq__a > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq__q::before { transition: none; } }

/* 表：横に動かしても、1列目（サービス名）は左に残す */
.compare tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--dg-bg); box-shadow: 1px 0 0 var(--dg-border); }
.compare td .btn-cta { min-height: 44px; padding: 8px 12px; font-size: 1rem; white-space: nowrap; box-shadow: none; }

/* ---------------------------------------------------------------- 記事の絵（アイキャッチ）・作り方・書いた人 */

.eyecatch { margin: 0 0 24px; }
/* スマホでは記事の頭の絵を出さない（絵の文字は題名と同じ。まとめの箱を最初の画面に入れるため。SNS の紹介と記事一覧の小さな絵には使う） */
@media (max-width: 767px) {
  .eyecatch { display: none; }
}
.eyecatch__img,
.eyecatch img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--dg-radius-m);
  border: 1px solid var(--dg-border);
}

.method,
.author-box {
  margin: 48px 0 0;
  padding: 20px;
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius-m);
  background: var(--dg-surface-2);
}
.author-box { margin-top: 16px; background: var(--dg-bg); }
.method__title,
.author-box__title { margin: 0 0 12px; font-size: 1.125rem; line-height: 1.6; } /* Std-18B-160 */
.method__list { margin: 0; padding-left: 1.5em; }
.method__list li + li { margin-top: 6px; }
.author-box__body { display: flex; gap: 16px; align-items: flex-start; }
.author-box__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--dg-primary);
  color: var(--dg-on-primary);
  font-size: 1.5rem;
  font-weight: 700;
}
.author-box__text p { margin: 0 0 6px; }
.author-box__text p:last-child { margin-bottom: 0; }
.author-box__name { font-weight: 700; }

/* ---------------------------------------------------------------- 記事の並び（リソースリストの形・絵があれば左に小さく） */

.article-list { list-style: none; margin: 0; padding: 0; }
.article-list__item { padding: 16px 0; border-bottom: 1px solid var(--dg-border); }
.article-list__item:first-child { border-top: 1px solid var(--dg-border); }
.article-list__item + .article-list__item { margin-top: 0; }
.article-list__item.has-thumb { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.article-list__thumb img,
.article-list__img { display: block; width: 100%; height: auto; border-radius: var(--dg-radius-s, 4px); border: 1px solid var(--dg-border); }
@media (min-width: 768px) {
  .article-list__item.has-thumb { grid-template-columns: 160px minmax(0, 1fr); column-gap: 20px; }
}
.article-list__title { margin: 0 0 4px; font-size: 1.125rem; line-height: 1.6; } /* Std-18B-160 */
.article-list__meta {
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  row-gap: 4px;
  color: var(--dg-text-muted);
}
.article-list__desc { margin: 0; }
@media (min-width: 768px) {
  .article-list--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .article-list--grid .article-list__item:nth-child(2) { border-top: 1px solid var(--dg-border); }
}

.related { margin-top: 56px; }
.related__title { margin: 0 0 16px; }

.list-section + .list-section { margin-top: 8px; }

/* ---------------------------------------------------------------- トップ */

.hero {
  padding: 32px 0 40px;
  background: var(--dg-primary-soft);
  border-bottom: 1px solid var(--dg-border);
}
.hero__heading { margin: 0 0 24px; }
.hero__title { margin: 0; font-size: 2rem; line-height: 1.5; letter-spacing: 0.01em; } /* Std-32B-150 */
.hero__subtitle { margin: 4px 0 0; font-size: 1.125rem; line-height: 1.6; }       /* Std-18N-160 */

.promise {
  padding: 20px;
  border: 1px solid var(--dg-primary);
  border-radius: var(--dg-radius-l);
  background: var(--dg-bg);
}
.promise__label { margin: 0 0 4px; font-size: 1rem; line-height: 1.7; color: var(--dg-primary); }
.promise__text { margin: 0 0 12px; font-size: 1.375rem; font-weight: 700; line-height: 1.5; } /* Std-22B-150 */
.promise__list { margin: 0; padding-left: 1.5em; }
.promise__list li + li { margin-top: 4px; }

/* トップの絵と入口のボタン */
.hero__grid { display: grid; gap: 20px; align-items: center; }
.hero__btn { width: 100%; max-width: 420px; min-height: 52px; font-size: 1.0625rem; }
.hero__art { max-width: 240px; margin-inline: auto; }  /* スマホでは小さく（入口のボタンを先に見せる） */
.home-about {
  padding: 20px;
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius-l);
  background: var(--dg-surface-2);
}
.home-about__list { margin: 0 0 12px; padding-left: 1.5em; }
.home-about__list li + li { margin-top: 6px; }
.home-about p { margin: 0; }
@media (min-width: 768px) {
  .hero__art { max-width: none; }
}
.hero__lead { margin: 0 0 20px; font-size: 1.125rem; line-height: 1.6; }
.hero__cta { margin: 0 0 16px; }
.hero__art img { display: block; width: 100%; height: auto; border-radius: var(--dg-radius-l); }
.hero__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero__points li { position: relative; padding-left: 22px; }
.hero__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 11px;
  height: 6px;
  border-left: 3px solid var(--dg-primary);
  border-bottom: 3px solid var(--dg-primary);
  transform: rotate(-45deg);
}
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; }
}

/* 目的から探す（DADS のカード：外周あり・絵は上） */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dg-text-muted);
  border-radius: var(--dg-radius-l);
  background: var(--dg-bg);
  overflow: hidden;
}
.feature-card__image img,
.feature-card__img { display: block; width: 100%; height: auto; }
.feature-card__main { padding: 14px 16px 16px; }
.feature-card__label { margin: 0 0 4px; color: var(--dg-primary); font-weight: 700; }
.feature-card__title { margin: 0 0 6px; font-size: 1.125rem; line-height: 1.6; }
.feature-card__desc { margin: 0; }
.feature-card .chip-label { margin-top: 8px; }
@media (min-width: 768px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

.home-section { padding: 48px 0 0; }
.home-section h2 { margin: 0 0 16px; }
.home-section__more { margin: 24px 0 0; text-align: center; }

.theme-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.theme-list__item {
  padding: 16px 20px;
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius-m);
}
.theme-list__title { margin: 0 0 8px; font-size: 1.25rem; }
.theme-list__item p { margin: 0; }
.theme-list__count { margin-top: 8px !important; color: var(--dg-text-muted); }

@media (min-width: 768px) {
  .hero { padding: 48px 0 56px; }
  .hero__title { font-size: 2.25rem; line-height: 1.4; }       /* Std-36B-140 */
  .promise { padding: 24px 32px; }
  .promise__text { font-size: 1.75rem; letter-spacing: 0.01em; } /* Std-28B-150 */
  .theme-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ---------------------------------------------------------------- 静かなページ（このサイトについて など） */

.page-title { margin: 0 0 24px; }

/* ---------------------------------------------------------------- 確認用（preview と見本だけ。公開のページには出ない） */

.check-box {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius-m);
  background: var(--dg-surface-2);
}
.check-box__title { margin: 0; font-weight: 700; }
.check-box ul { margin: 8px 0 0; padding-left: 1.5em; }
.check-box summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }

.sample-intro {
  padding: 24px 0 32px;
  background: var(--site-draft-bg);
  border-bottom: 4px solid var(--site-draft-fg);
}
.sample-intro__label { margin: 0 0 8px; font-weight: 700; color: var(--site-draft-fg); }
.sample-intro__title { margin: 0 0 16px; font-size: 1.5rem; }
.sample-intro__heading { margin: 24px 0 8px; font-size: 1.25rem; }
.sample-intro__list { margin: 0; padding-left: 1.5em; }
.sample-intro__list li + li { margin-top: 8px; }
.sample-intro__note { margin: 16px 0 0; }
.sample-page { margin-top: 64px; border-top: 8px solid var(--dg-text); }
.sample-page__label {
  margin: 0;
  padding: 8px var(--site-gutter);
  background: var(--dg-text);
  color: var(--dg-bg);
  font-weight: 700;
}
.sample-page .check-box { margin: 0; border-radius: 0; border-width: 0 0 1px; }
