/* ============================================================
   ブログ記事の図解・アニメーション（編集方針 10b）
   原稿の :::figure 記法を _agents/post_blog.py が HTML に変換し、
   動きは blog-figures.js が付ける。種類: flow ／ funnel ／ diagnose ／ compare ／ lp ／ screen ／ scrollmap ／ bars（実データの推移）
   - スクリプトが無くても中身の文字はすべて読める（隠すのは .adf-js の下だけ）
   - 「視差効果を減らす」設定では動かさず、最初から完成形を見せる
   ============================================================ */
.adf {
  --adf-ink: #111111;
  --adf-yellow: #ffe100;
  --adf-line: #e6e6e2;
  --adf-mist: #f5f5f2;
  --adf-sub: #6b7280;
  margin: 2.6em 0 !important;
  border: 1px solid var(--adf-line);
  background: #fff;
  padding: 1.6rem 1.25rem 1.4rem;
  line-height: 1.8;
}
@media (min-width: 768px) {
  .adf { padding: 2rem 2.2rem 1.8rem; }
}
.adf-title, .post-body .adf-title {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.4rem;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.6;
  color: var(--adf-ink);
  text-align: left;
  text-wrap: balance;
}
.adf-title::before {
  content: "";
  flex: none;
  width: 0.5em;
  height: 0.5em;
  background: var(--adf-yellow);
}
.adf-caption {
  margin: 1.2rem 0 0 !important;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--adf-sub);
}
.post-body .adf ul, .post-body .adf ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.post-body .adf li + li { margin-top: 0; }
.adf p { margin: 0; }

/* ---------------------------------------------------------- flow（手順） */
.adf-flow-list { position: relative; }
.adf-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  column-gap: 1rem;
  padding-bottom: 1.4rem;
}
.adf-step:last-child { padding-bottom: 0; }
/* ステップどうしをつなぐ線 */
.adf-step::before {
  content: "";
  position: absolute;
  left: calc(1.1rem - 0.5px);
  top: 2.2rem;
  bottom: 0;
  width: 1px;
  background: var(--adf-ink);
  transform-origin: top;
}
.adf-step:last-child::before { display: none; }
.adf-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--adf-ink);
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--adf-ink);
}
.adf-step-head {
  font-weight: 900;
  color: var(--adf-ink);
  line-height: 1.6;
  padding-top: 0.3rem;
}
.adf-step-desc {
  margin-top: 0.25rem !important;
  font-size: 0.875rem;
  color: #4b5563;
}

/* ---------------------------------------------------------- funnel（段階ごとに減る） */
.adf-stage + .adf-stage { margin-top: 1.4rem; }
.adf-stage-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.8em;
  font-weight: 700;
  color: var(--adf-ink);
  line-height: 1.6;
}
.adf-stage-where {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--adf-sub);
}
.adf-bar {
  position: relative;
  margin-top: 0.45rem;
  height: 1.25rem;
  background: var(--adf-mist);
}
.adf-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 100%);
  background: var(--adf-ink);
  transform-origin: left;
}
.adf-stage.is-stop .adf-bar-fill {
  background: var(--adf-yellow);
}
.adf-stop-badge {
  display: inline-block;
  padding: 0 0.55em;
  background: var(--adf-yellow);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--adf-ink);
}
.adf-drop {
  margin: 0.6rem 0 1rem 0.3rem !important;
  font-size: 0.75rem;
  color: var(--adf-sub);
}
.adf-drop::before { content: "↓ "; color: var(--adf-ink); font-weight: 700; }

/* ---------------------------------------------------------- compare（前と後・思い込みと事実） */
.adf-compare-head, .adf-row {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr;
  align-items: stretch;
}
.adf-compare-head {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--adf-ink);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--adf-sub);
}
.adf-compare-head p:last-child { color: var(--adf-ink); }
.adf-row { border-bottom: 1px solid var(--adf-line); }
.adf-before, .adf-after {
  padding: 0.9rem 0;
  font-size: 0.875rem;
  line-height: 1.8;
}
.adf-before { color: var(--adf-sub); }
.adf-after { color: var(--adf-ink); font-weight: 700; }
.adf-col-label { display: none; }
.adf-arrow { position: relative; }
.adf-arrow::before {
  content: "";
  position: absolute;
  top: 1.7rem;
  left: 0.45rem;
  right: 0.45rem;
  height: 1px;
  background: var(--adf-ink);
  transform-origin: left;
}
.adf-arrow::after {
  content: "";
  position: absolute;
  top: 1.7rem;
  right: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-top: 1px solid var(--adf-ink);
  border-right: 1px solid var(--adf-ink);
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
}
@media (max-width: 599px) {
  .adf-compare-head { display: none; }
  .adf-row { grid-template-columns: 1fr; padding: 0.4rem 0 0.8rem; }
  .adf-before, .adf-after { padding: 0.5rem 0 0; }
  .adf-col-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--adf-sub);
  }
  .adf-arrow { display: none; }
  .adf-after { border-left: 1px solid var(--adf-ink); padding-left: 0.8rem; margin-top: 0.5rem; }
}

/* ---------------------------------------------------------- スマホ画面の線画（lp / screen / scrollmap 共通） */
.adf-phone {
  position: relative;
  width: 210px;
  flex: none;
  border: 1px solid var(--adf-ink);
  border-radius: 24px;
  padding: 18px 9px 14px;
  background: #fff;
}
.adf-phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--adf-line);
  transform: translateX(-50%);
}
.adf-scr { display: flex; flex-direction: column; gap: 6px; }
.adf-scr [class^="w-"] { display: block; }
.adf-scr i, .adf-scr b { display: block; font-style: normal; }
.w-logo { display: flex !important; justify-content: space-between; align-items: center; }
.w-logo i:first-child { width: 36px; height: 5px; background: var(--adf-ink); }
.w-logo i:last-child { width: 12px; height: 7px; border-top: 1px solid var(--adf-ink); border-bottom: 1px solid var(--adf-ink); }
.w-hero {
  position: relative;
  height: 72px;
  background: linear-gradient(135deg, #ecebe5, #f8f7f3);
}
.w-hero::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: 10px;
  width: 16px;
  height: 36px;
  border: 1px solid #b9b8b1;
  border-radius: 3px 3px 2px 2px;
  background: #fff;
}
.w-catch i { height: 7px; background: var(--adf-ink); }
.w-catch i:first-child { width: 88%; }
.w-catch i:last-child { width: 58%; margin-top: 4px; }
.w-text i, .w-cond i, .w-bubble i, .w-voice i {
  height: 3px;
  background: #d9d9d4;
}
.w-text i + i, .w-cond i + i, .w-bubble i + i, .w-voice i + i { margin-top: 4px; }
.w-text i:nth-child(2) { width: 92%; }
.w-text i:nth-child(3) { width: 68%; }
.w-badge {
  position: relative;
  width: 64px;
  height: 13px;
  border: 1px solid var(--adf-ink);
  border-radius: 999px;
}
.w-badge::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--adf-yellow);
  transform: translateY(-50%);
}
.w-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 22px;
  border-radius: 3px;
  background: var(--adf-ink);
}
.w-button i { width: 40%; height: 3px; background: #fff; }
.w-bubble {
  position: relative;
  padding: 7px 8px;
  border: 1px solid #c9c8c2;
  border-radius: 10px;
}
.w-bubble i:last-child { width: 60%; }
.w-icons { display: flex !important; justify-content: space-around; padding: 3px 0; }
.w-icons i {
  width: 20px;
  height: 20px;
  border: 1px solid var(--adf-ink);
  border-radius: 50%;
}
.w-chart {
  display: flex !important;
  align-items: flex-end;
  gap: 6px;
  height: 34px;
  padding-left: 4px;
  border-left: 1px solid var(--adf-ink);
  border-bottom: 1px solid var(--adf-ink);
}
.w-chart i { width: 12px; background: #d9d9d4; }
.w-chart i:nth-child(1) { height: 35%; }
.w-chart i:nth-child(2) { height: 55%; }
.w-chart i:nth-child(3) { height: 75%; }
.w-chart i:nth-child(4) { height: 95%; background: var(--adf-ink); }
.w-voice {
  display: grid !important;
  grid-template-columns: 16px 1fr;
  column-gap: 7px;
  align-items: center;
}
.w-voice b { grid-row: span 2; width: 16px; height: 16px; border-radius: 50%; background: #e3e2dc; }
.w-voice i:last-child { width: 70%; }
.w-price { display: flex !important; align-items: flex-end; gap: 6px; }
.w-price i { width: 26px; height: 3px; background: #c9c8c2; margin-bottom: 3px; }
.w-price b {
  width: 70px;
  height: 11px;
  background: var(--adf-ink);
  box-shadow: 0 4px 0 -1px var(--adf-yellow);
}
.w-cond { padding: 5px 6px; border: 1px solid #d9d9d4; }
.w-cond i { height: 2px; }
.w-cond i:last-child { width: 75%; }
.w-fold {
  position: relative;
  height: 15px;
  border: 1px solid #d9d9d4;
}
.w-fold::after {
  content: "+";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 11px;
  line-height: 1;
  color: var(--adf-sub);
}
.w-fold i { width: 45%; height: 3px; margin: 5px 0 0 6px; background: #d9d9d4; }
.w-faq i { height: 11px; border-bottom: 1px solid #e3e2dc; position: relative; }
.w-faq i::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 55%;
  height: 3px;
  background: #d9d9d4;
}
.w-fields i { height: 13px; border: 1px solid #c9c8c2; border-radius: 2px; }
.w-fields i + i { margin-top: 5px; }
.w-foldline {
  position: relative;
  height: 0;
  margin: 8px -9px;
  border-top: 1px dashed var(--adf-ink);
}
.w-foldline em {
  position: absolute;
  right: 6px;
  top: 0;
  transform: translateY(-50%);
  padding: 0 4px;
  background: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  color: var(--adf-ink);
}

/* ---------------------------------------------------------- lp（LPの構成図。ブロックを押すと一覧と連動） */
.adf-lp-wrap {
  display: grid;
  gap: 1.6rem;
  justify-items: center;
}
.adf-lp-phone { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 720px) {
  .adf-lp-wrap { grid-template-columns: 210px 1fr; justify-items: stretch; align-items: start; gap: 2.4rem; }
}
.adf-lpb {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 7px 6px 7px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.adf-lpb + .adf-lpb { margin-top: -2px; }
.adf-lpb-num, .adf-part-num {
  position: absolute;
  left: 3px;
  top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border: 1px solid var(--adf-ink);
  border-radius: 50%;
  background: #fff;
  font-family: "Archivo", sans-serif;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  color: var(--adf-ink);
}
.adf-lpb:hover, .adf-lpb.is-active { background: #fffbe0; border-color: var(--adf-ink); }
.adf-lp-list { width: 100%; align-self: center; }
.adf-lp-group {
  padding: 1rem 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--adf-sub);
  border-bottom: 1px solid var(--adf-ink);
}
.adf-lp-group:first-child { padding-top: 0; }
.adf-lp-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  align-items: center;
  column-gap: 0.8rem;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--adf-line);
  cursor: pointer;
  transition: background-color 0.2s;
}
.adf-lp-row.is-active, .adf-lp-row:hover { background: #fffbe0; }
.adf-lp-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--adf-ink);
  border-radius: 50%;
  font-family: "Archivo", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--adf-ink);
}
.adf-lp-name { font-size: 0.875rem; font-weight: 700; color: var(--adf-ink); line-height: 1.6; }
.adf-lp-q { font-size: 0.8125rem; color: var(--adf-sub); line-height: 1.6; }
.adf-lp-q::before { content: "「"; }
.adf-lp-q::after { content: "」"; }
.adf-lp-a { margin-top: 0.15rem !important; font-size: 0.75rem; color: #4b5563; line-height: 1.6; }
.adf-lp-a::before { content: "置くもの："; font-weight: 700; color: var(--adf-ink); }
.adf-jump.adf-jump-sm { margin: 0 !important; font-size: 0.75rem; }
.adf-jump.adf-jump-sm a { min-height: 2rem; padding: 0.2rem 0.7rem; }
.adf-jump.adf-jump-sm:not(:has(a)) { display: none; }

/* lp：ブロックごとの画像を並べるとき（架空のLPの画像） */
.adf-lp-wrap.has-img { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .adf-lp-wrap.has-img { grid-template-columns: 250px 1fr; align-items: start; }
  /* 縦に長いLPの横で、一覧が画面に残り続けるようにする（今見ているブロックの行が光る） */
  .has-img .adf-lp-list { align-self: start; position: sticky; top: 6rem; }
}
.has-img .adf-phone { width: 250px; padding: 22px 8px 16px; }
.has-img .adf-scr { gap: 0; }
.has-img .adf-lpb { padding: 0; border-radius: 0; gap: 0; cursor: zoom-in; }
.has-img .adf-lpb + .adf-lpb { margin-top: 0; }
.has-img .adf-lpb img { display: block; width: 100%; height: auto; }
.has-img .adf-lpb .adf-lpb-num {
  left: 5px;
  top: 5px;
  z-index: 1;
  width: 18px;
  height: 18px;
  font-size: 10px;
}
.has-img .adf-lpb:hover, .has-img .adf-lpb.is-active {
  background: none;
  border-color: var(--adf-ink);
  outline: 1px solid var(--adf-ink);
  outline-offset: -1px;
}
.has-img .adf-lpb.is-active .adf-lpb-num { background: var(--adf-yellow); }
.adf-js .adf-lp-zoom-hint { display: block; }
.adf-lp-zoom-hint {
  display: none;
  margin-top: 0.6rem !important;
  text-align: center;
  font-size: 0.75rem;
  color: var(--adf-sub);
}
/* ブロックを押したときの拡大表示 */
.adf-dialog {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--adf-ink);
  background: #fff;
}
.adf-dialog::backdrop { background: rgba(17, 17, 17, 0.55); }
.adf-dialog-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--adf-line);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--adf-ink);
}
.adf-dialog-close {
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border: 1px solid var(--adf-ink);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--adf-ink);
  cursor: pointer;
}
.adf-dialog-close:hover { background: var(--adf-ink); color: #fff; }
.adf-dialog img { display: block; width: 100%; height: auto; }

/* screen：画像の上に番号を置くとき */
.adf-phone-img { width: 260px; padding: 22px 8px 16px; }
.adf-scr-img { position: relative; gap: 0; }
.adf-scr-img img { display: block; width: 100%; height: auto; }
.adf-pin {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--adf-ink);
  border-radius: 50%;
  background: var(--adf-yellow);
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--adf-ink);
  transform: translate(-50%, -50%);
}

/* ---------------------------------------------------------- screen（スマホ画面に番号を振って説明） */
.adf-screens {
  display: grid;
  gap: 2rem 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.adf-screen-item { display: flex; flex-direction: column; align-items: center; }
.adf-screen-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.8rem !important;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--adf-ink);
}
.adf-mark {
  padding: 0 0.55em;
  border: 1px solid var(--adf-ink);
  font-size: 0.6875rem;
  line-height: 1.7;
}
.adf-mark-ok { background: var(--adf-ink); color: #fff; }
.adf-mark-ng { color: var(--adf-sub); border-color: #b9b8b1; }
.adf-screen-desc {
  width: 100%;
  max-width: 320px;
  margin-top: 0.8rem !important;
  font-size: 0.8125rem;
  color: #374151;
}
.adf-part { position: relative; display: block; padding-left: 18px; }
.adf-part .adf-part-num { top: 50%; left: 0; transform: translateY(-50%); }
.adf-notes { width: 100%; max-width: 320px; margin-top: 0.7rem !important; }
.adf-notes li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.4rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #374151;
  border-top: 1px solid var(--adf-line);
}
.adf-notes .adf-part-num { top: 0.55rem; }

/* ---------------------------------------------------------- scrollmap（スクロールの到達を色の濃さで見せる） */
.adf-scrollmap-body { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.adf-heat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 6px;
  background: #f5f5f2;
  /* 読まれた割合が下がるほど急に薄くする（割合の2乗で色の濃さを決める） */
  background: color-mix(in srgb, #ffe100 calc(var(--r, 0) * var(--r, 0) * 0.009%), #f5f5f2);
}
.adf-heat + .adf-heat { margin-top: -6px; }
.adf-heat-name {
  align-self: flex-end;
  padding: 0 4px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 9px !important;
  font-weight: 700;
  line-height: 1.5;
  color: var(--adf-ink);
}
.adf-drop-mark {
  position: absolute;
  left: -9px;
  right: -9px;
  bottom: 0;
  height: 0;
  border-top: 1px solid var(--adf-ink);
  z-index: 1;
}
.adf-drop-mark em {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  padding: 0 6px;
  background: var(--adf-ink);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
  color: #fff;
}
.adf-heat-legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6875rem;
  color: var(--adf-sub);
}
.adf-heat-legend i {
  width: 90px;
  height: 6px;
  background: linear-gradient(90deg, #ffe100, #f5f5f2);
  border: 1px solid var(--adf-line);
}

/* ---------------------------------------------------------- diagnose（はい／いいえの診断） */
.adf-node {
  border-left: 1px solid var(--adf-ink);
  padding: 0.2rem 0 0.2rem 1.1rem;
}
.adf-node + .adf-node { margin-top: 1.4rem; }
.adf-node-kicker {
  font-family: "Archivo", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--adf-sub);
}
.adf-q-text, .adf-r-head {
  font-weight: 900;
  color: var(--adf-ink);
  line-height: 1.7;
}
.adf-note {
  margin-top: 0.3rem !important;
  font-size: 0.8125rem;
  color: var(--adf-sub);
}
.adf-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem !important;
}
.adf-ans {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--adf-ink);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--adf-ink);
  line-height: 1.5;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.adf-ans:hover, .adf-ans:focus-visible {
  background: var(--adf-ink);
  color: #fff;
}
.adf-ans-to {
  margin-left: 0.5em;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.7;
}
.adf-r .adf-node-kicker {
  display: inline-block;
  padding: 0 0.5em;
  background: var(--adf-yellow);
  color: var(--adf-ink);
}
.adf-r-desc {
  margin-top: 0.4rem !important;
  font-size: 0.875rem;
  color: #374151;
}
.adf-jump {
  margin-top: 0.8rem !important;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--adf-ink);
}
.adf-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--adf-ink);
  background: #fff;
  color: var(--adf-ink) !important;
  text-decoration: none !important;
  transition: background-color 0.2s, color 0.2s;
}
.adf-jump a::after { content: "↓"; margin-left: 0.6em; }

/* スクリプトが動くときの診断：1問ずつ表示する */
.adf-js .adf-diagnose .adf-node { display: none; }
.adf-js .adf-diagnose .adf-node.is-current {
  display: block;
  margin-top: 0;
  animation: adf-node-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.adf-js .adf-diagnose .adf-ans-to { display: none; }
.adf-path {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem !important;
}
.adf-js .adf-path:not(:empty) { display: flex; }
.adf-path li {
  font-size: 0.75rem;
  color: var(--adf-sub);
  background: var(--adf-mist);
  padding: 0.15rem 0.6rem;
}
.adf-restart {
  display: none;
  margin-top: 1rem;
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--adf-sub);
  text-decoration: underline;
  cursor: pointer;
}
.adf-js .adf-diagnose.is-done .adf-restart { display: inline-block; }
@keyframes adf-node-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- 画面に入ったときの動き（1回だけ） */
.adf-js .adf.is-ready .adf-step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 0.28s);
}
.adf-js .adf.is-ready .adf-step::before {
  transform: scaleY(0);
  transition: transform 0.4s ease;
  transition-delay: calc(var(--i, 0) * 0.28s + 0.3s);
}
.adf-js .adf.is-ready .adf-bar-fill {
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 0.35s);
}
.adf-js .adf.is-ready .adf-stop-badge,
.adf-js .adf.is-ready .adf-drop {
  opacity: 0;
  transition: opacity 0.4s ease;
  transition-delay: calc(var(--i, 0) * 0.35s + 0.7s);
}
.adf-js .adf.is-ready .adf-row .adf-before,
.adf-js .adf.is-ready .adf-row .adf-after {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.adf-js .adf.is-ready .adf-row .adf-before { transition-delay: calc(var(--i, 0) * 0.3s); }
.adf-js .adf.is-ready .adf-row .adf-after {
  transform: translateX(-8px);
  transition-delay: calc(var(--i, 0) * 0.3s + 0.35s);
}
.adf-js .adf.is-ready .adf-arrow::before {
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transition-delay: calc(var(--i, 0) * 0.3s + 0.15s);
}
.adf-js .adf.is-in .adf-row .adf-before,
.adf-js .adf.is-in .adf-row .adf-after { opacity: 1; transform: none; }
.adf-js .adf.is-ready .adf-arrow::after {
  opacity: 0;
  transition: opacity 0.2s ease;
  transition-delay: calc(var(--i, 0) * 0.3s + 0.45s);
}
.adf-js .adf.is-in .adf-arrow::before { transform: scaleX(1); }
.adf-js .adf.is-in .adf-arrow::after { opacity: 1; }
.adf-js .adf.is-ready .adf-lpb,
.adf-js .adf.is-ready .adf-lp-row,
.adf-js .adf.is-ready .adf-heat,
.adf-js .adf.is-ready .adf-pin,
.adf-js .adf.is-ready .adf-part {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s, border-color 0.2s;
  transition-delay: calc(var(--i, 0) * 0.12s);
}
.adf-js .adf.is-in .adf-lpb,
.adf-js .adf.is-in .adf-lp-row,
.adf-js .adf.is-in .adf-heat,
.adf-js .adf.is-in .adf-part { opacity: 1; transform: none; }
.adf-js .adf.is-ready .adf-pin { transform: translate(-50%, -50%) scale(0.4); }
.adf-js .adf.is-in .adf-pin { opacity: 1; transform: translate(-50%, -50%); }
.adf-js .adf.is-in .adf-step { opacity: 1; transform: none; }
.adf-js .adf.is-in .adf-step::before { transform: scaleY(1); }
.adf-js .adf.is-in .adf-bar-fill { transform: scaleX(1); }
.adf-js .adf.is-in .adf-stop-badge,
.adf-js .adf.is-in .adf-drop { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .adf *, .adf *::before, .adf *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 519px) {
  .adf-bar { height: 1rem; }
}
.adf-live {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* 本文リンクの共通ホバー（薄くする）を図の中では使わず、ボタンごとの反転にする */
.post-body .adf a:hover { opacity: 1; }
.post-body .adf-jump a:hover, .post-body .adf-jump a:focus-visible {
  background: var(--adf-ink);
  color: #fff !important;
}

/* ---------------------------------------------------------- bars（実データの推移。積み上げ棒グラフ）
   系列0＝薄いグレー、系列1＝キーカラーの黄（見てほしい方）。線はすべて1px。数字は下の表（読み上げ用）にも持つ */
.post-body .adf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0 0 1.2rem;
  font-size: 0.8125rem;
  color: var(--adf-ink);
}
.adf-legend li { display: flex; align-items: center; gap: 0.5em; }
.adf-key { width: 0.8em; height: 0.8em; flex: none; }
.adf-key-0, .adf-seg-0 { background: #d9d9d4; }
.adf-key-1, .adf-seg-1 { background: var(--adf-yellow); }
.adf-chart { padding-left: 2.6rem; }
.adf-plot {
  position: relative;
  height: 13rem;
  border-bottom: 1px solid var(--adf-ink);
}
.adf-gridline {
  position: absolute;
  left: 0; right: 0;
  bottom: var(--y);
  border-top: 1px solid var(--adf-line);
}
.adf-gridline em {
  position: absolute;
  right: calc(100% + 0.5rem);
  top: -0.7em;
  font-style: normal;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--adf-sub);
  white-space: nowrap;
}
.post-body .adf-cols {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.adf-col {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.adf-stack {
  display: flex;
  flex-direction: column-reverse;
  height: 100%;
  justify-content: flex-start;
  transform-origin: bottom;
}
.adf-seg { display: block; height: var(--h); flex: none; }
.adf-x {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--adf-sub);
  white-space: nowrap;
}
/* 区切り（施策を始めた時点）: 棒の左に1pxの破線と短い注記 */
.adf-bmark {
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  border-left: 1px dashed var(--adf-ink);
  z-index: 1;
  pointer-events: none;
}
.adf-bmark em {
  position: absolute;
  right: 0.5rem;
  top: 0;
  width: max-content;
  padding: 0.1em 0.45em;
  background: #fff;
  border-left: 3px solid var(--adf-yellow);
  font-style: normal;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--adf-ink);
  text-align: left;
}
.adf-bmark em span { display: block; white-space: nowrap; }
.adf-bars .adf-caption { margin-top: 2.2rem !important; }
.post-body table.adf-sr, .adf-sr {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap;
  margin: 0 !important;
  border: 0 !important;
}
.adf-js .adf.is-ready .adf-stack {
  transform: scaleY(0);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 0.05s);
}
.adf-js .adf.is-in .adf-stack { transform: scaleY(1); }
@media (max-width: 519px) {
  .adf-chart { padding-left: 2.2rem; }
  .adf-plot { height: 11rem; }
  .post-body .adf-cols { gap: 2px; }
}
