/* =========================================================
   D-Gateway — WordPress 用の追加スタイル（base.css・plan-b.css のあとに読む）
   B案の書き出しにない部品だけ: 下層ページの見出し帯、本文、フォーム、Q&A ページ、ブログ一覧など。
   色・余白・文字はすべて base.css のトークンを使う。
   ========================================================= */

/* ---------- 共通 ---------- */
.dgw-skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 16px; background: #D9A400; color: #0B1426; font-weight: 700; border-radius: 4px; text-decoration: none; }
.dgw-skip:focus { top: 8px; }
.admin-bar .dg-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .dg-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .dg-header { top: 0; } }
.dg section[id] { scroll-margin-top: var(--header-h); }
.dg .dg-logo img.dg-logo__img { height: 36px; width: auto; }
@container dg (max-width: 767px) { .dg .dg-logo img.dg-logo__img { height: 30px; } }
/* SNS の URL が未設定でアイコンが無いとき、三本線ボタンを右端に寄せる（B案ではアイコンが右寄せを担っている） */
.dg-nav + .dg-header__cta + .dg-menu-btn { margin-left: auto; }
.dgw-narrow { max-width: calc(860px + var(--gutter) * 2); }
.dgw-empty { padding: var(--space-7) 0; text-align: center; color: var(--color-text-muted); }
.dgw-reuse .dg-eyebrow__num { display: none; }

/* ---------- スクロール時のかくつき対策（2026-10-17） ----------
   動き続けるヒーロー写真の上で backdrop-filter（すりガラスのぼかし）を毎コマ計算し直すのが重いので外す。
   ヘッダーは背景が 94% 不透明、時刻の札・「サービスを見る」ボタンの下は濃い影なので、見た目はほぼ変わらない。
   ヒーロー写真は合成レイヤーに固定し、写真の描画をヒーローの中に閉じ込める */
.dg .dg-header.is-scrolled, .dg .dg-header.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
.dg .b-hero .b-live, .dg .b-hero .dg-btn--on-photo { -webkit-backdrop-filter: none; backdrop-filter: none; }
.dg .b-hero .dg-photo { contain: paint; }
.dg .b-slides img { will-change: transform, opacity; backface-visibility: hidden; }

/* ---------- 下層ページの見出し帯（ヘッダーが透明でも白文字が読めるよう写真の上に置く） ---------- */
.dgw-pagehead { margin-top: calc(var(--header-h) * -1); padding-block: calc(var(--header-h) + clamp(56px, 7cqi, 104px)) clamp(48px, 6cqi, 88px); }
.dgw-pagehead .dg-photo img { animation: dgw-kb 24s ease-out both; }
@keyframes dgw-kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.dgw-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: var(--space-5); font-size: 13px; color: var(--color-on-dark-muted); }
.dgw-crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); }
.dgw-crumbs a:hover { color: #fff; }
.dgw-pagehead__title { font-size: var(--fs-display); font-weight: 900; line-height: 1.3; word-break: auto-phrase; text-wrap: balance; max-width: 22em; }
.dgw-pagehead__lead { margin-top: var(--space-4); }

/* ---------- 代表メッセージ（/message/）。トップとは別の「手紙」レイアウト ---------- */
/* 見出し帯: 最初の版と同じく、写真を画面いっぱいに敷いて見出しを重ねる */
.dgw-msghero { min-height: clamp(520px, 78svh, 760px); display: flex; align-items: flex-end; }
.dgw-msghero .dg-photo::after { background: linear-gradient(100deg, rgba(var(--color-scrim), 0.85) 0%, rgba(var(--color-scrim), 0.35) 60%, rgba(var(--color-scrim), 0.15) 100%), linear-gradient(0deg, rgba(var(--color-scrim), 0.85) 0%, transparent 45%); }
.dgw-msghero__title { margin: 0 0 var(--space-5); font-size: clamp(40px, 7.4cqi, 100px); line-height: 1.2; }
.dgw-msghero .b-hero__sub { margin: 0; }

/* 本文: 右側にカズさんの写真を大きく淡く敷き、左の本文側へ溶かす */
.dgm-letter { position: relative; isolation: isolate; overflow: clip; padding-block: var(--section-pad); background: #FBFAF6; }
.dgm-letter__photo { position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; width: min(54%, 760px); margin: 0; pointer-events: none; }
.dgm-letter__photo-in { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); max-height: 100%; }
.dgm-letter__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(0.7) contrast(0.8) brightness(1.3); opacity: 0.7;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 35%, #000 72%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 35%, #000 72%); }
.dgm-letter__grid { max-width: calc(1120px + var(--gutter) * 2); }
.dgm-letter__body { position: relative; max-width: 640px; }
.dgm-script { font-family: "Mrs Saint Delafield", "Snell Roundhand", cursive; font-weight: 400; letter-spacing: 0; }
.dg .dgm-letter__body p { margin: 0 0 1.5em; font-size: var(--fs-lead); line-height: 2.1; color: var(--color-text); }
.dg .dgm-letter__title { margin: 0 0 var(--space-7); padding-bottom: var(--space-5); font-size: clamp(28px, 3.6cqi, 46px); font-weight: 900; line-height: 1.4; background: linear-gradient(var(--color-primary), var(--color-primary)) no-repeat 0 100% / 72px 3px; }
.dgm-pull { margin: 2.6em 0 2.2em; padding: 0.9em 0; border-top: 3px solid var(--color-text); border-bottom: 1px solid var(--color-text); }
.dg .dgm-pull p { margin: 0; font-size: clamp(32px, 4.4cqi, 60px); font-weight: 900; line-height: 1.3; color: var(--color-text); }
.dgm-pull__mark { color: var(--color-accent); }
.dg .dgm-signature { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin: 2.4em 0 0; }
.dgm-signature small { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--color-text-muted); }
.dgm-signature .dgm-script { font-size: 72px; line-height: 1; color: var(--color-text); }

/* 掲載記事: 左に記事の情報、右にスマホで開いた記事そのもの */
.dgm-article { padding-block: var(--section-pad); background: var(--color-base); color: #fff; overflow: hidden; }
.dgm-article__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6cqi, 96px); align-items: center; max-width: calc(1040px + var(--gutter) * 2); }
.dg .dgm-article__eyebrow { margin: 0 0 var(--space-3); font: 500 14px/1 var(--font-num); letter-spacing: 0.26em; color: var(--color-accent); }
.dg .dgm-article__title { margin: 0 0 var(--space-6); font-size: var(--fs-h2); font-weight: 900; line-height: 1.4; }
.dgm-article__meta { margin: 0; border-top: 1px solid rgba(255,255,255,0.18); }
.dgm-article__meta div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.dgm-article__meta dt { font-size: 13px; font-weight: 700; color: var(--color-accent); }
.dgm-article__meta dd { margin: 0; font-size: 15px; }
.dg .dgm-article__note { margin: 0; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,0.75); }
.dgm-article__phone { position: relative; justify-self: center; width: min(100%, 380px); margin: 0; rotate: 2.5deg; }
.dgm-article__badge { position: absolute; top: 28px; left: -22px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: var(--color-accent); color: var(--color-base); font: 700 13px/1 var(--font-num); letter-spacing: 0.22em; rotate: -8deg; box-shadow: 0 10px 20px -8px rgba(0,0,0,0.5); }
.dgm-article__frame { padding: 10px; border-radius: 22px; background: #F4F1EA; box-shadow: 0 50px 90px -30px rgba(0,0,0,0.75); }
.dgm-article__frame img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* 経歴: パスポートのページに、渡った国のスタンプを押していく */
.dgm-route { position: relative; overflow: hidden; padding-block: var(--section-pad); color: var(--color-text); background: repeating-radial-gradient(circle at 50% 120%, transparent 0 22px, rgba(31,107,58,0.05) 22px 23px), linear-gradient(180deg, #EFEADD, #F6F2E8); }
.dg .dgm-route__title { margin: 0 0 clamp(40px, 5cqi, 72px); font-size: var(--fs-h2); font-weight: 900; line-height: 1.35; text-align: center; }
.dgm-stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4cqi, 56px) clamp(16px, 3cqi, 40px); justify-items: center; align-items: center; max-width: 880px; margin-inline: auto; }
.dgm-stamp { --ink: #2E3138; --rot: 0deg; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: min(100%, 220px); aspect-ratio: 1; padding: 16px; border: 3px solid var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 5px #F3EFE4, inset 0 0 0 7px var(--ink); color: var(--ink); text-align: center; rotate: var(--rot); opacity: 0.88; mix-blend-mode: multiply; }
.dgm-stamp--rect { aspect-ratio: 1.3; border-radius: 10px; }
.dgm-stamp--oval { aspect-ratio: 1.45; }
.dgm-stamp b { font: 700 clamp(20px, 2.4cqi, 30px)/1.05 var(--font-num); letter-spacing: 0.06em; }
.dgm-stamp__top { display: flex; align-items: center; gap: 6px; font: 700 11px/1 var(--font-num); letter-spacing: 0.24em; }
.dgm-stamp__top::before, .dgm-stamp__top::after { content: "\2605"; font-size: 9px; }
.dgm-stamp__jp { padding-top: 6px; border-top: 1.5px solid currentColor; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }

/* 最後の一言と相談ボタン */
.dgm-next { padding-block: clamp(72px, 9cqi, 128px); background: var(--color-base); color: #fff; text-align: center; }
.dg .dgm-next__title { margin: 0 0 var(--space-4); font-size: clamp(26px, 3.4cqi, 44px); font-weight: 900; line-height: 1.4; }
.dg .dgm-next__sub { margin: 0 0 var(--space-7); color: rgba(255,255,255,0.75); }

/* 見出しと記事は最初から見える状態にしておき、少し動かすだけにする（アニメが止まっても消えない） */
@keyframes dgm-nudge { from { transform: translate3d(0, 0.5em, 0); } to { transform: none; } }
@keyframes dgm-fade { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes dgm-clip { from { transform: translate3d(0, 48px, 0) scale(0.94); } to { transform: none; } }
@keyframes dgm-stamp { from { opacity: 0; transform: scale(1.7); } 70% { opacity: 0.88; transform: scale(0.96); } to { opacity: 0.88; transform: none; } }
@keyframes dgm-mark { to { background-size: 100% 100%; } }
@keyframes dgm-drift { from { transform: translate(0, -50%); } to { transform: translate(-50%, -50%); } }
@keyframes dgm-pull { from { opacity: 0; transform: translate3d(-24px, 0, 0); letter-spacing: 0.18em; } to { opacity: 1; transform: none; letter-spacing: 0; } }
@supports (animation-timeline: view()) {
  .dgm-rise { animation: dgm-fade linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .dgm-pull p { animation: dgm-pull linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  .dgm-stamp { animation: dgm-stamp linear both; animation-timeline: view(); animation-range: entry 15% cover 35%; }
  .dgm-article__phone { animation: dgm-clip linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
}

@container dg (max-width: 900px) {
  /* スマホも PC と同じく、写真は本文の後ろ右側に淡く敷く。本文の終わり（署名のあたり）に置く */
  .dgm-letter__photo { top: auto; width: 88%; height: min(600px, 150vw); }
  .dgm-letter__photo-in { position: static; height: 100%; }
  .dgm-letter__photo img { object-position: 50% 12%; opacity: 0.55;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%), linear-gradient(180deg, transparent 0%, #000 35%); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 55%), linear-gradient(180deg, transparent 0%, #000 35%); mask-composite: intersect; }
  .dgm-letter__body { max-width: none; }
  .dgm-article__grid { grid-template-columns: minmax(0, 1fr); }
  .dgm-article__phone { width: min(86%, 320px); }
  .dgm-stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container dg (max-width: 767px) {
  .dgm-article__badge { left: -14px; }
  .dgm-stamp { width: min(100%, 150px); padding: 10px; }
  .dgm-stamp__jp { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .dgm-rise, .dgm-pull p, .dgm-stamp, .dgm-article__phone { animation: none !important; }
}

/* ---------- 相談の帯（下層ページの末尾） ---------- */
.dgw-band { background: var(--color-base); color: var(--color-on-dark); padding-block: clamp(48px, 6cqi, 80px); }
.dgw-band .b-consult { margin-top: 0; }

/* ---------- 本文（固定ページ・記事） ---------- */
.dgw-prose { font-size: var(--fs-body); line-height: 2; }
.dgw-prose > * + * { margin-top: 1.2em; }


.dgw-prose :where(ul, ol) { padding-left: 1.4em; }
.dgw-prose ul { list-style: disc; }
.dgw-prose ol { list-style: decimal; }
.dgw-prose li + li { margin-top: 0.4em; }
.dgw-prose a { color: var(--color-primary); text-underline-offset: 3px; }
.dgw-prose img { height: auto; border-radius: 12px; }
.dgw-prose blockquote { margin: 1.6em 0; padding: var(--space-4) var(--space-5); border-left: 4px solid var(--color-accent); background: var(--color-surface-alt); }


/* 記事の部品: AFFINGER の会話ふきだし（[st-kaiwa1]〜。r 付きは右側）とリンクカード（[st-card id=…]）。
   子テーマは AFFINGER の CSS を読まないため、出力される HTML にここで見た目を付ける */
.dgw-prose p:empty, .dgw-prose > br { display: none; }
.dgw-prose .st-kaiwa-box { display: flex; align-items: flex-start; gap: 16px; margin: 1.8em 0; }
.dgw-prose .st-kaiwa-box > :is(.st-kaiwa-face, .st-kaiwa-face2) { flex: none; width: 72px; text-align: center; }
.dgw-prose .st-kaiwa-box img { display: block; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--color-line); }
.dgw-prose :is(.st-kaiwa-face-name, .st-kaiwa-face-name2) { margin-top: 6px; font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--color-text-muted); }
.dgw-prose :is(.st-kaiwa-area, .st-kaiwa-area2) { flex: 1; min-width: 0; }
.dgw-prose :is(.st-kaiwa-hukidashi, .st-kaiwa-hukidashi2) { position: relative; padding: 14px 18px; border: 1px solid #D5DAE0; border-radius: 16px; background: #fff; color: #1F2937; font-size: 15px; line-height: 1.9; }
.dgw-prose :is(.st-kaiwa-hukidashi, .st-kaiwa-hukidashi2)::before { content: ""; position: absolute; top: 22px; width: 12px; height: 12px; background: #fff; border: 1px solid #D5DAE0; border-width: 0 0 1px 1px; }
.dgw-prose .st-kaiwa-hukidashi::before { left: -7px; transform: rotate(45deg); }
.dgw-prose .st-kaiwa-hukidashi2::before { right: -7px; transform: rotate(-135deg); }
/* 学生・保護者は白、筆者の Kazuhiro（アイコン1）だけ淡い金色にする */
.dgw-prose .kaiwaicon1 :is(.st-kaiwa-hukidashi, .st-kaiwa-hukidashi2), .dgw-prose .kaiwaicon1 :is(.st-kaiwa-hukidashi, .st-kaiwa-hukidashi2)::before { background: #FBF3DC; border-color: #E8CF83; color: #0B1426; }
.dgw-prose .st-kaiwa-hukidashi > :last-child, .dgw-prose .st-kaiwa-hukidashi2 > :last-child { margin-bottom: 0; }
.dgw-prose .st-cardlink { display: block; margin: 1.6em 0; color: inherit; text-decoration: none; }
.dgw-prose .st-cardbox { position: relative; padding: 14px; border: 1px solid var(--color-line); border-radius: 14px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.dgw-prose .st-cardlink:hover .st-cardbox { border-color: var(--color-primary); box-shadow: 0 10px 24px -14px rgba(11,20,38,0.35); }
.dgw-prose .st-cardbox dl { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0; }
.dgw-prose .st-cardbox dd { margin: 0; }
.dgw-prose .st-card-img img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: 8px; }
.dgw-prose .st-cardbox-t { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--color-text); }
.dgw-prose .st-card-excerpt { margin-top: 4px; font-size: 13px; line-height: 1.7; color: var(--color-text-muted); }
.dgw-prose .st-card-excerpt p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dgw-prose .cardbox-more { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--color-primary); }
.dgw-prose .st-cardbox-label { position: absolute; top: -10px; left: 12px; }
.dgw-prose .st-cardbox-label-text { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
@container dg (max-width: 767px) {
  .dgw-prose .st-kaiwa-box { gap: 12px; }
  .dgw-prose .st-kaiwa-box > :is(.st-kaiwa-face, .st-kaiwa-face2) { width: 56px; }
  .dgw-prose .st-kaiwa-box img { width: 52px; height: 52px; }
  .dgw-prose .st-cardbox dl { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .dgw-prose .st-card-excerpt { display: none; }
}
.dgw-intro { padding-bottom: 0; }
.dgw-postmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); font-size: 14px; color: var(--color-text-muted); }
.dgw-postmeta a { padding: 2px 12px; border-radius: 999px; background: var(--color-primary-tint); color: var(--color-primary); font-weight: 700; text-decoration: none; }
.dgw-eyecatch { margin-bottom: var(--space-6); }
.dgw-eyecatch img { width: 100%; height: auto; border-radius: 16px; }
.dgw-back { margin-top: var(--space-8); }

/* ---------- ブログ一覧 ---------- */
.dgw-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-7); }
.dgw-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); border-radius: 999px; border: 1.5px solid var(--color-line); background: var(--color-surface); color: var(--color-text); font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast); }
.dgw-chips a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.dgw-chips a[aria-current="page"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.dgw-cards { row-gap: var(--space-6); }
.dgw-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-8); }
.dgw-pager :where(a, span) { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--space-3); border-radius: 8px; border: 1px solid var(--color-line); background: var(--color-surface); color: var(--color-text); font-weight: 700; text-decoration: none; }
.dgw-pager .current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------- サービス ---------- */
.dgw-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.dgw-scope__box { padding: var(--space-6); border-radius: 16px; background: var(--color-surface); border: 1px solid var(--color-line); }
.dgw-scope__box h3 { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); font-size: var(--fs-h3); font-weight: 900; }
.dgw-scope__box h3 svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--color-primary); color: #fff; flex: none; }
.dgw-scope__box--no h3 svg { background: var(--color-text-muted); }
.dgw-scope__box--plain h3 svg { background: var(--color-primary-tint); color: var(--color-primary); }
.dgw-scope__box ul li { position: relative; padding-left: 22px; line-height: 1.8; }
.dgw-scope__box ul li + li { margin-top: var(--space-2); }
.dgw-scope__box ul li::before { content: ""; position: absolute; left: 4px; top: 0.75em; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.dgw-scope__box--no ul li::before { background: var(--color-text-muted); }
.dgw-scope__box p { color: var(--color-text-muted); }
.dgw-scope__note { margin-top: var(--space-4); font-size: 14px; }

/* ---------- Q&A ページ ---------- */
.dgw-faq-group + .dgw-faq-group { margin-top: var(--space-8); }
.dgw-faq-group__title { margin-bottom: var(--space-3); font-size: clamp(20px, 2cqi, 24px); font-weight: 900; color: var(--color-primary); }
.dg-acc__a > * + * { margin-top: 0.8em; }
.dg-acc__a a { color: var(--color-primary); }

/* ---------- 料金を表示しないとき ---------- */
.b-plan__price.dgw-tbd { font-family: var(--font-sans); font-size: clamp(24px, 2.6cqi, 32px); font-weight: 900; line-height: 1.4; margin-block: var(--space-2); }

/* ---------- スタッフ写真（カスタマイズで設定したとき） ---------- */
.dgw-staff-photo { aspect-ratio: 1; overflow: hidden; }
.dgw-staff-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- フォーム ---------- */
.dgw-formwrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; }
.dgw-formcard { padding: clamp(20px, 3.4cqi, 48px); border-radius: 20px; background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: 0 30px 60px -40px rgba(11,20,38,0.35); }
.dgw-formside { position: sticky; top: calc(var(--header-h) + 24px); }
.dgw-formside__title { margin-bottom: var(--space-5); font-size: var(--fs-h3); font-weight: 900; }
.dgw-formside > p + p { margin-top: var(--space-4); }
.dgw-formside__other { margin-top: var(--space-6); font-size: 14px; color: var(--color-text-muted); }
.dgw-formside__other a { color: var(--color-primary); font-weight: 700; }
.dgw-steps { display: grid; gap: var(--space-4); }
.dgw-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-3); line-height: 1.7; color: var(--color-text-muted); font-size: 15px; }
.dgw-steps li > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary); color: #fff; font-family: var(--font-num); font-weight: 700; }
.dgw-steps b { display: block; color: var(--color-text); font-size: 16px; }
.dgw-points { margin-top: var(--space-6); display: grid; gap: var(--space-2); font-size: 15px; }
.dgw-points li { display: flex; gap: var(--space-2); align-items: flex-start; }
.dgw-points svg { width: 20px; height: 20px; flex: none; margin-top: 0.3em; color: var(--color-primary); }
.dgw-form .dg-req { vertical-align: 1px; }
.dgw-opt { display: inline-block; margin-left: var(--space-2); padding: 0 6px; border-radius: 3px; background: var(--color-surface-alt); color: var(--color-text-muted); font-size: 11px; line-height: 18px; border: 1px solid var(--color-line); }
select.dg-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525A66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.dgw-choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.dgw-choices legend { padding: 0; margin-bottom: var(--space-2); font-size: 14px; font-weight: 700; }
.dgw-choices__row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dgw-choice { position: relative; display: inline-flex; }
.dgw-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dgw-choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border: 1.5px solid var(--color-line); border-radius: 999px; font-size: 15px; font-weight: 700; transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast); }
.dgw-choice input:checked + span { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.dgw-choice input:focus-visible + span { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.dgw-agree { align-items: flex-start; line-height: 1.7; }
.dgw-agree input { margin-top: 3px; flex: none; }
.dgw-agree a { color: var(--color-primary); font-weight: 700; }
.dgw-form__actions .dg-btn { width: 100%; }
.dgw-form__actions .dg-btn[disabled] { opacity: 0.6; cursor: wait; }
.dgw-form__alert { padding: var(--space-4) var(--space-5); border-radius: 8px; background: #FDECEC; border: 1px solid #E8A3A3; color: #8A1C1C; font-size: 14px; }
.dgw-form__alert ul { margin-top: var(--space-2); padding-left: 1.2em; list-style: disc; }
.dgw-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dgw-form .dg-input:user-invalid { border-color: #C0392B; }

/* ---------- 送信完了・404 ---------- */
.dgw-thanks .dgw-steps { margin-top: var(--space-6); }
.dgw-thanks__note { margin-top: var(--space-6); font-size: 14px; color: var(--color-text-muted); }
.dgw-thanks__note a { color: var(--color-primary); font-weight: 700; }
.dgw-thanks__links { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }
.dgw-btn--line { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.dgw-btn--line:hover { background: var(--color-primary); color: #fff; }

/* ---------- 狭い画面 ---------- */
@container dg (max-width: 900px) {
  .dgw-formwrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .dgw-formside { position: static; }
  .dgw-formcard { order: -1; }   /* 狭い画面ではフォームを先に */
}
@container dg (max-width: 767px) {
  /* スマホのヒーロー: 時刻が上に離れすぎないよう、時刻〜相談ボタンの間隔を詰める（2026-10-17 Takumaさん指示）。
     32 / 24 / 48px → 16 / 20 / 32px。下揃えなので、詰めたぶん時刻が下がる */
  .dg .b-hero .b-live { margin-bottom: var(--space-4); }
  .dg .b-hero .b-title { margin-bottom: 20px; }
  .dg .b-hero .b-hero__sub { margin-bottom: var(--space-6); }
  .dgw-scope { grid-template-columns: minmax(0, 1fr); }
  .dgw-scope__box { padding: var(--space-5); }
  .dgw-thanks__links .dg-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dgw-pagehead .dg-photo img { animation: none; }
}

/* ---------- 記事の装飾と動き（2026-10-23 作成、2026-10-26 巧真さん指示で全面見直し。すべての記事に自動で効く）[dgw-article-deco:start] ----------
   0. 記事ヘッダー: アイキャッチ（タイトル入りサムネイル）を大きく見せ、背景に同じ画像をぼかして敷く（single.php・dg_posthead）。
      上端に読み進めた量を示す金色のバー。
   1. 見出し: 大見出し（h2）は番号つきの帯、小見出し（h3）はボールの印と、スクロールで伸びる下線。最後の「まとめ」は印を変える。
      目次は dg-wp.js が大見出しから作る（最初の大見出しの前）。
   2. AFFINGER の装飾: 子テーマは AFFINGER の CSS を読まないため、[st-mybox]（タイトル付きボックス）と
      チェックリスト（.maruck）の見た目をここで付ける。色・枠の太さはショートコードの属性（style 属性）が優先される。
      Font Awesome は読み込んでいないので、ボックスのタイトルのアイコン（i.fa）は隠し、代わりにチェックの印を付ける。
   3. 表: 見出しの行は緑、行は1行おきに色。スマホでは文字を小さくして画面の幅に収める。
      「※」で始まる注記は dg-wp.js が .dgw-note を付け、小さな注記の箱にする。
   4. 図: 範囲つきの横棒グラフ .dg-chart（記事にカスタム HTML で入れる。AFFINGER にグラフの部品は無い）。
   5. 動き: スクロールに合わせて、見出し・ボックス・表の行・箇条書き・画像・グラフが順に現れる。蛍光ペンの線とグラフの棒が伸びる。
      animation-timeline 非対応のブラウザでは動かずにそのまま表示。動きを減らす設定では止める。 */

/* 0. 記事ヘッダー */
html:has(.dgw-prose) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.dgw-prose) { scroll-behavior: auto; } }
.dgw-posthead { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(20px, 3cqi, 40px)) 0 clamp(28px, 4cqi, 56px); background: var(--color-base); color: #fff; }
.dgw-posthead__bg { position: absolute; inset: -60px; z-index: -1; }
.dgw-posthead__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(36px) saturate(1.3) brightness(0.5); animation: dgw-kb 24s ease-out both; }
.dgw-posthead__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,38,0.55), rgba(11,20,38,0.15) 40%, rgba(11,20,38,0.6)); }
.dgw-posthead .dgw-crumbs { margin-bottom: var(--space-4); }
.dgw-posthead__thumb { position: relative; margin: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.12); animation: dgw-thumb-in 1s cubic-bezier(.2,.7,.2,1) both; }
.dgw-posthead__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.dgw-posthead__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.28) 50%, transparent 65%); transform: translateX(-120%); animation: dgw-sheen 1.6s 0.8s ease-out both; pointer-events: none; }
@keyframes dgw-thumb-in { from { opacity: 0; transform: translate3d(0, 30px, 0) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes dgw-sheen { to { transform: translateX(120%); } }
.dg-section.dgw-post { padding-top: clamp(28px, 4cqi, 56px); }
.dgw-post__title { margin: 0 0 var(--space-6); font-size: clamp(22px, 2.4cqi, 30px); font-weight: 900; line-height: 1.5; text-wrap: pretty; }
.dgw-post::before { content: ""; position: fixed; z-index: 60; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--color-accent), #F5C842); transform-origin: left center; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) { .dgw-post::before { animation: dgw-bar linear both; animation-timeline: scroll(root); } }

/* 1. 見出し・目次 */
.dgw-prose { counter-reset: dgw-h2; }
.dgw-prose h2 { position: relative; counter-increment: dgw-h2; margin-top: 3em; padding: 16px 20px 18px 76px; border: 0; border-radius: 14px; background: linear-gradient(100deg, var(--color-base) 0%, #14305A 100%); color: #fff; box-shadow: 0 18px 36px -24px rgba(11,20,38,0.6); scroll-margin-top: calc(var(--header-h) + 16px); }
.dgw-prose h2::before { content: counter(dgw-h2, decimal-leading-zero); position: absolute; left: 16px; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--color-accent); color: var(--color-base); font-family: var(--font-num, inherit); font-size: 17px; font-weight: 900; box-shadow: 0 0 0 4px rgba(217,164,0,0.25); }
.dgw-prose h2::after { content: ""; position: absolute; left: 76px; right: 20px; bottom: 9px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--color-accent), transparent); transform-origin: left center; }
.dgw-prose h2.dgw-h2-summary { background: linear-gradient(100deg, var(--color-primary) 0%, #138A4B 100%); }
.dgw-prose h2.dgw-h2-summary::before { content: "✓"; background: #fff; color: var(--color-primary); }
.dgw-prose h3 { position: relative; margin-top: 2.2em; padding: 0 0 10px 34px; font-size: clamp(18px, 1.7cqi, 21px); font-weight: 800; line-height: 1.5; scroll-margin-top: calc(var(--header-h) + 16px); }
.dgw-prose h3::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, transparent 19%), conic-gradient(from 0deg, var(--color-primary) 0 25%, #138A4B 0 50%, var(--color-primary) 0 75%, #138A4B 0); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35); }
.dgw-prose h3::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--color-primary) 0 30%, var(--color-line) 30%); transform-origin: left center; }
.dgw-toc { margin: 2.4em 0; padding: 20px 22px 14px; border: 2px solid var(--color-base); border-radius: 16px; background: linear-gradient(180deg, #F7F9FC, #fff); box-shadow: 8px 8px 0 rgba(11,20,38,0.08); }
.dgw-toc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.dgw-toc__title { margin: 0; font-size: 16px; font-weight: 900; letter-spacing: 0.08em; color: var(--color-base); }
.dgw-toc__title::before { content: "≡"; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 8px; background: var(--color-base); color: #fff; font-size: 16px; }
.dgw-toc__toggle { padding: 4px 12px; border: 1px solid var(--color-line); border-radius: 999px; background: #fff; color: var(--color-text-muted); font: inherit; font-size: 12px; cursor: pointer; }
.dgw-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: dgw-toc; }
.dgw-toc li { counter-increment: dgw-toc; margin: 0; padding: 0; border-top: 1px dashed var(--color-line); }
.dgw-toc li + li { margin-top: 0; }
.dgw-toc li::marker { content: none; }
.dgw-toc a { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; gap: 6px; padding: 9px 4px; border-radius: 8px; color: var(--color-text); font-size: 15px; font-weight: 700; line-height: 1.6; text-decoration: none; }
.dgw-toc a::before { content: counter(dgw-toc, decimal-leading-zero); color: var(--color-accent); font-family: var(--font-num, inherit); font-weight: 900; }
.dgw-toc li.is-summary a::before { content: "✓"; color: var(--color-primary); }
.dgw-toc.is-closed ol { display: none; }

/* 2. AFFINGER のボックス・チェックリスト */
.dgw-prose .st-mybox { position: relative; margin: 2.6em 0 1.9em; padding: 26px 22px 18px; border: 2px solid var(--color-line); border-style: solid; border-radius: 14px; background: #fff; box-shadow: 0 16px 30px -24px rgba(11,20,38,0.35); }
.dgw-prose .st-mybox-title { position: absolute; top: -1em; left: 14px; margin: 0; padding: 2px 14px; border-radius: 999px; background: inherit; color: var(--color-primary); font-size: 15px; font-weight: 800; line-height: 1.8; text-shadow: none !important; box-shadow: 0 0 0 2px currentColor; }
.dgw-prose .st-mybox-title i.fa { display: none; }
.dgw-prose .st-mybox-title::before { content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: 6px; vertical-align: -0.15em; background: currentColor; -webkit-mask: var(--dgw-check) center / contain no-repeat; mask: var(--dgw-check) center / contain no-repeat; }
.dgw-prose .st-in-mybox > :first-child { margin-top: 0; }
.dgw-prose .st-in-mybox > br, .dgw-prose .st-in-mybox > p:empty { display: none; }
.dgw-prose .st-in-mybox > :last-child { margin-bottom: 0; }
.dgw-prose { --dgw-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.4 14.2-4.2-4.2 1.4-1.4 2.8 2.8 5.8-5.8 1.4 1.4-7.2 7.2Z'/%3E%3C/svg%3E"); }
.dgw-prose :is(.st-in-mybox, .maruck) ul { padding-left: 0; list-style: none; }
.dgw-prose :is(.st-in-mybox, .maruck) li { position: relative; padding-left: 1.7em; }
.dgw-prose :is(.st-in-mybox, .maruck) li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 1.1em; height: 1.1em; background: var(--color-primary); -webkit-mask: var(--dgw-check) center / contain no-repeat; mask: var(--dgw-check) center / contain no-repeat; }

/* 3. 表・注記・画像 */
.dgw-prose .scroll-box { max-width: 100%; overflow-x: auto; margin: 1.8em 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--color-line), 0 14px 28px -22px rgba(11,20,38,0.35); }
.dgw-prose .scroll-box table { margin: 0; }
.dgw-prose table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: 15px; }
.dgw-prose :where(th, td) { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--color-line); text-align: left; overflow-wrap: anywhere; }
.dgw-prose th { background: var(--color-primary); color: #fff; font-weight: 700; }
.dgw-prose tbody tr:nth-child(even) { background: #F6F8F7; }
.dgw-prose tbody tr:last-child td { border-bottom: 0; }
.dgw-prose tbody td:first-child { font-weight: 700; color: var(--color-base); }
.dgw-prose :is(th, td):first-child { min-width: 5.5em; overflow-wrap: normal; word-break: keep-all; }
.dgw-prose .dgw-note { position: relative; margin: 1em 0 1.4em; padding: 10px 14px 10px 40px; border-radius: 10px; background: #F4F6F9; color: var(--color-text-muted); font-size: 14px; line-height: 1.8; }
.dgw-prose .dgw-note::before { content: "i"; position: absolute; left: 12px; top: 13px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--color-text-muted); color: #fff; font-size: 11px; font-weight: 900; font-style: italic; font-family: Georgia, serif; }
.dgw-prose figure { margin: 2.2em 0; }
.dgw-prose figcaption { margin-top: 8px; font-size: 13px; color: var(--color-text-muted); text-align: center; }
.dgw-prose .dg-credit { margin-top: 4px; font-size: 11px; color: var(--color-text-muted); }
.dgw-prose p:has(> img), .dgw-prose figure { overflow: hidden; border-radius: 14px; }

/* 1年の流れの図（シーズン・移籍期間など）。7月始まりの12か月。各棒の --s（始まり）・--e（終わり）は7月を0とした月の数 */
.dgw-prose .dg-year { margin: 2em 0; padding: 20px 20px 14px; border: 1px solid var(--color-line); border-radius: 14px; background: #fff; box-shadow: 0 16px 30px -24px rgba(11,20,38,0.35); }
.dgw-prose .dg-year__title { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.dgw-prose .dg-year__row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; align-items: center; margin: 0 0 10px; font-size: 13px; }
.dgw-prose .dg-year__label { font-weight: 700; line-height: 1.4; }
.dgw-prose .dg-year__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-family: var(--font-num, inherit); font-size: 12px; font-weight: 700; text-align: center; color: var(--color-text-muted); }
.dgw-prose .dg-year__track { position: relative; display: block; height: 26px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--color-surface-alt) 0, var(--color-surface-alt) calc(100% / 12 - 1px), #fff calc(100% / 12 - 1px), #fff calc(100% / 12)); }
.dgw-prose .dg-year__bar { position: absolute; top: 3px; bottom: 3px; left: calc(var(--s) / 12 * 100%); width: calc((var(--e) - var(--s)) / 12 * 100%); display: grid; place-items: center; overflow: hidden; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; transform-origin: left center; }
.dgw-prose .dg-year__bar.is-season { background: var(--color-base); }
.dgw-prose .dg-year__bar.is-transfer { background: var(--color-accent); color: var(--color-base); }
.dgw-prose .dg-year__bar.is-league { background: var(--color-primary); }
.dgw-prose .dg-year__bar.is-break { background: #9AA5B4; }
.dgw-prose .dg-year__note { margin: 6px 0 0; font-size: 12px; color: var(--color-text-muted); }
@container dg (max-width: 767px) {
  .dgw-prose .dg-year { padding: 16px 14px 10px; }
  .dgw-prose .dg-year__row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .dgw-prose .dg-year__row--head .dg-year__label { display: none; }
}
@supports (animation-timeline: view()) {
  .dgw-prose .dg-year { animation: dgw-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .dgw-prose .dg-year__bar { animation: dgw-bar linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
}
html.dgw-io .dgw-prose .dg-year { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
html.dgw-io .dgw-prose .dg-year__bar { transform: scaleX(0); transition: transform 1.2s 0.2s cubic-bezier(.2,.7,.2,1); }
html.dgw-io .dgw-prose .dg-year.is-in { opacity: 1; transform: none; }
html.dgw-io .dgw-prose .dg-year.is-in .dg-year__bar { transform: none; }

/* 内部リンクのバナー（本文中の [dg-card]・記事の最後の前後の記事） */
.dgw-prose .dg-linkcard, .dg-linkcard { color: var(--color-text); text-decoration: none; }
.dg-linkcard { position: relative; display: grid; grid-template-columns: 280px minmax(0, 1fr); margin: 2em 0; overflow: hidden; border-radius: 16px; background: #fff; color: var(--color-text); text-decoration: none; box-shadow: 0 0 0 2px var(--color-base), 6px 6px 0 2px var(--color-accent); }
/* 写真はタイトル入りのサムネイルなので、切らずに 16:9 で全体を見せる（本文のほうが高いときは、上下を紺で埋める） */
.dg-linkcard__img { position: relative; display: flex; align-items: center; overflow: hidden; background: var(--color-base); }
.dg-linkcard__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0 !important; box-shadow: none !important; }
.dg-linkcard__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.dg-linkcard__label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; letter-spacing: 0.06em; color: var(--color-primary); }
.dg-linkcard__label::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--color-accent); }
.dg-linkcard__label em { padding: 1px 8px; border-radius: 999px; background: #FDECEC; color: #B42318; font-style: normal; font-weight: 700; letter-spacing: 0; }
.dg-linkcard__title { font-size: 16px; font-weight: 900; line-height: 1.55; }
.dg-linkcard__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.7; color: var(--color-text-muted); }
.dg-linkcard__more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 800; color: var(--color-primary); }
.dg-linkcard__more svg { width: 16px; height: 16px; }
.dg-linkcard.is-draft { opacity: 0.85; box-shadow: 0 0 0 2px #E8A3A3, 6px 6px 0 2px #F6D6D6; }
.dg-linkcard.is-missing { display: block; box-shadow: none; border: 2px dashed #E8A3A3; background: #FFF8F8; }
.dgw-postnav { display: grid; gap: 18px; margin-top: var(--space-8); }
.dgw-postnav .dg-linkcard { margin: 0; }
.dgw-postnav__empty { padding: 14px 16px; border: 2px dashed var(--color-line); border-radius: 12px; color: var(--color-text-muted); font-size: 13px; }
@container dg (max-width: 767px) {
  .dg-linkcard { grid-template-columns: minmax(0, 1fr); }
  .dg-linkcard__body { padding: 12px 14px; }
  .dg-linkcard__title { font-size: 15px; }
  .dg-linkcard__excerpt { display: none; }
}
@supports (animation-timeline: view()) {
  .dg-linkcard { animation: dgw-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .dg-linkcard__img img { animation: dgw-wipe linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
}

/* 4. 範囲つき横棒グラフ。各行の --lo（下限）・--hi（上限）・--max（目盛りの最大）は数字だけで書く */
.dgw-prose .dg-chart { margin: 2em 0; padding: 20px 20px 14px; border: 1px solid var(--color-line); border-radius: 14px; background: #fff; box-shadow: 0 16px 30px -24px rgba(11,20,38,0.35); }
.dgw-prose .dg-chart__title { margin: 0 0 14px; font-size: 15px; font-weight: 800; }
.dgw-prose .dg-chart__row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) 7.5em; gap: 10px; align-items: center; margin: 0 0 10px; font-size: 14px; }
.dgw-prose .dg-chart__label { font-weight: 700; line-height: 1.4; }
.dgw-prose .dg-chart__track { position: relative; height: 18px; border-radius: 999px; background: var(--color-surface-alt); overflow: hidden; }
.dgw-prose .dg-chart__bar { position: absolute; inset: 0 auto 0 0; overflow: hidden; width: calc(var(--hi) / var(--max) * 100%); border-radius: inherit; transform-origin: left center;
  background: linear-gradient(90deg, var(--color-primary) calc(var(--lo) / var(--hi) * 100%), color-mix(in srgb, var(--color-primary) 45%, #fff) calc(var(--lo) / var(--hi) * 100%)); }
.dgw-prose .dg-chart__bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); transform: translateX(-100%); animation: dgw-shine 3s 1s ease-in-out infinite; }
@keyframes dgw-shine { 50%, 100% { transform: translateX(100%); } }
.dgw-prose .dg-chart__value { font-family: var(--font-num, inherit); font-weight: 800; text-align: right; white-space: nowrap; }
.dgw-prose .dg-chart__note { margin: 6px 0 0; font-size: 12px; color: var(--color-text-muted); }
.dgw-prose .dg-chart__legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; font-size: 12px; color: var(--color-text-muted); }
.dgw-prose .dg-chart__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; background: var(--color-primary); vertical-align: -1px; }
.dgw-prose .dg-chart__legend span + span::before { background: color-mix(in srgb, var(--color-primary) 45%, #fff); }

/* 蛍光ペン: 太字は金。箇条書き・番号・チェックリストの項目は種類で色を変える（2026-10-23 巧真さん指示、2026-10-26 チェックの緑は見づらいため桃色に変更）。
   文字を囲む <span class="dgw-mk"> は dg-wp.js が付ける。項目の中の太字は線を重ねず、太字だけにする */
.dgw-prose strong { background: linear-gradient(transparent 55%, rgba(217, 164, 0, 0.45) 55%) no-repeat 0 0 / 100% 100%; }
.dgw-prose ul > li { --dgw-mk: rgba(217, 164, 0, 0.42); }                    /* 箇条書き: 金 */
.dgw-prose ol > li { --dgw-mk: rgba(59, 130, 246, 0.32); }                   /* 番号: 青 */
.dgw-prose :is(.st-in-mybox, .maruck) ul > li { --dgw-mk: rgba(255, 105, 150, 0.36); }  /* チェック: 桃 */
.dgw-prose .dgw-mk { background: linear-gradient(transparent 55%, var(--dgw-mk) 55%) no-repeat 0 0 / 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dgw-prose li strong { background: none; }
.dgw-prose ol > li::marker { color: #2563EB; font-weight: 700; }
.dgw-prose ul:not(:is(.st-in-mybox, .maruck) ul) > li::marker { color: var(--color-accent); }

@container dg (max-width: 767px) {
  .dgw-posthead__thumb { border-radius: 12px; }
  .dgw-prose h2 { padding: 14px 14px 16px 62px; font-size: 19px; }
  .dgw-prose h2::before { left: 12px; width: 38px; height: 38px; margin-top: -19px; font-size: 15px; }
  .dgw-prose h2::after { left: 62px; right: 14px; bottom: 7px; }
  .dgw-prose h3 { padding-left: 30px; font-size: 17px; }
  .dgw-prose h3::before { width: 20px; height: 20px; }
  .dgw-prose table { font-size: 13px; }
  .dgw-prose :where(th, td) { padding: 8px 9px; }
  .dgw-toc { padding: 16px 14px 10px; }
  .dgw-prose .dg-chart { padding: 16px 14px 10px; }
  .dgw-prose .dg-chart__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .dgw-prose .dg-chart__track { grid-column: 1 / -1; grid-row: 2; }
  .dgw-prose .st-mybox { padding: 24px 16px 14px; }
}

/* 5. 動き */
@supports (animation-timeline: view()) {
  .dgw-prose > h3, .dgw-prose :is(.st-mybox, .dg-chart, .scroll-box, figure, blockquote, .st-cardlink, .dgw-toc, .dgw-note) { animation: dgw-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .dgw-prose > h2 { animation: dgw-slide-in linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  .dgw-prose > h2::before { animation: dgw-spin-in linear both; animation-timeline: view(); animation-range: entry 10% entry 60%; }
  .dgw-prose > h2::after, .dgw-prose > h3::after { animation: dgw-bar linear both; animation-timeline: view(); animation-range: entry 30% cover 35%; }
  .dgw-prose > h3::before { animation: dgw-roll linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .dgw-prose .st-mybox-title { animation: dgw-pop linear both; animation-timeline: view(); animation-range: entry 20% entry 60%; }
  .dgw-prose .st-kaiwa-box :is(.st-kaiwa-face, .st-kaiwa-face2) { animation: dgw-pop linear both; animation-timeline: view(); animation-range: entry 10% entry 50%; }
  .dgw-prose .st-kaiwa-hukidashi { transform-origin: left top; animation: dgw-from-l linear both; animation-timeline: view(); animation-range: entry 10% entry 55%; }
  .dgw-prose .st-kaiwa-hukidashi2 { transform-origin: right top; animation: dgw-from-r linear both; animation-timeline: view(); animation-range: entry 10% entry 55%; }
  .dgw-prose p > img, .dgw-prose figure img { animation: dgw-wipe linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  .dgw-prose :is(ul, ol) > li, .dgw-toc li { animation: dgw-from-l linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  .dgw-prose tbody tr { animation: dgw-row linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  .dgw-prose strong { background-size: 0% 100%; animation: dgw-mark linear both; animation-timeline: view(); animation-range: entry 60% cover 35%; }
  .dgw-prose .dgw-mk { background-size: 0% 100%; animation: dgw-mark linear both; animation-timeline: view(); animation-range: entry 70% cover 40%; }
  .dgw-prose li strong { animation: none; }
  .dgw-prose .dg-chart__bar { animation: dgw-bar linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
}
/* 蛍光ペンの伸び具合は dg-wp.js がスクロール位置から計算して --mk（0〜1）に入れる（どのブラウザでもスクロールに連動させるため） */
.dgw-js-mk .dgw-prose :is(.dgw-mk, strong) { background-size: calc(var(--mk, 0) * 100%) 100% !important; animation: none !important; transition: background-size 0.6s cubic-bezier(.2,.7,.2,1); }
/* animation-timeline に対応していないブラウザ（dg-wp.js が html に .dgw-io を付ける）は、画面に入ったときに現れる */
html.dgw-io .dgw-prose > :is(h2, h3), html.dgw-io .dgw-prose :is(.st-mybox, .dg-chart, .scroll-box, figure, .st-kaiwa-box, .dgw-toc, .dgw-note, .dg-linkcard, tbody tr, p > img) { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
html.dgw-io .dgw-prose li { opacity: 0; transform: translate3d(-18px, 0, 0); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
html.dgw-io .dgw-prose > :is(h2, h3)::after { transform: scaleX(0); transition: transform 1s 0.3s cubic-bezier(.2,.7,.2,1); }
html.dgw-io .dgw-prose .dg-chart .dg-chart__bar { transform: scaleX(0); transition: transform 1.2s 0.2s cubic-bezier(.2,.7,.2,1); }
html.dgw-io .dgw-prose .is-in, html.dgw-io .dgw-prose li.is-in { opacity: 1; transform: none; }
html.dgw-io .dgw-prose > .is-in::after, html.dgw-io .dgw-prose .dg-chart.is-in .dg-chart__bar { transform: none; }
@keyframes dgw-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes dgw-slide-in { from { opacity: 0; transform: translate3d(-40px, 0, 0); clip-path: inset(0 100% 0 0 round 14px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); } }
@keyframes dgw-spin-in { from { transform: scale(0.2) rotate(-200deg); } 70% { transform: scale(1.15) rotate(10deg); } to { transform: none; } }
@keyframes dgw-roll { from { transform: translateX(-30px) rotate(-360deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dgw-pop { from { opacity: 0; transform: scale(0.6); } 70% { transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes dgw-from-l { from { opacity: 0; transform: translate3d(-18px, 0, 0) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes dgw-from-r { from { opacity: 0; transform: translate3d(18px, 0, 0) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes dgw-row { from { opacity: 0; transform: translate3d(24px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes dgw-wipe { from { clip-path: inset(0 100% 0 0); transform: scale(1.08); } 60% { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes dgw-mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes dgw-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .dgw-prose *, .dgw-prose *::before, .dgw-prose *::after, .dgw-posthead *, .dgw-posthead *::after, .dgw-post::before { animation: none !important; }
  .dgw-prose strong, .dgw-prose .dgw-mk { background-size: 100% 100%; }
  .dgw-post::before { display: none; }
}
/* [dgw-article-deco:end] */
