/* 用語集 v2（kg-v2 が付いた記事だけ）
   方針：囲むのは本当に独立したものだけ。片側だけの色線は使わない。罫線・余白・字の大小で構造を見せる。1 区画はなるべく 1 画面に収める。
   テーマのカスタム CSS が「body.single .entry-content h3:not(#kb):not(#kb)」＋ !important なので、見出しだけはそれより強く書く。 */
.kg-v2 {
  --ink: #0e2b44; --text: #2b4d66; --muted: #5a7689; --blue: #1a8fd0; --deep: #0d6fb0; --soft: #e6f4fc; --pale: #f4f9fd;
  --line: rgba(14, 43, 68, .14); --yellow: #ffe45c; --red: #d3261c; --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 組版：文節で折り返す（<wbr> は生成時に入れてある） */
.kg-v2 .entry-content p, .kg-v2 .entry-content li, .kg-v2 .entry-content td, .kg-v2 .entry-content th, .kg-v2 .entry-content h2, .kg-v2 .entry-content h3, .kg-v2 .entry-content summary, .kg-v2 .kg-cta2, .kg-v2 .kg-promo, .kg-v2 .kg-talk__bub, .kg-v2 .kg-scene, .kg-v2 .kg-tool, .kg-v2 .kg-rel {
  word-break: keep-all; overflow-wrap: anywhere; line-break: strict;
}
.kg-v2 .entry-content h2, .kg-v2 .entry-content h3 { text-wrap: balance; }
.kg-v2 .entry-content .kg-lead { margin: 16px 0 8px; font-size: 16px; line-height: 1.85; }
.kg-v2 .entry-content .kg-p { font-size: 15.5px; line-height: 1.85; margin: 8px 0; }

/* 記事の下の旧シェア・旧 CTA・旧コピーは新しい部品に置き換える */
.kg-v2 main .kb-cta, .kg-v2 .sns, .kg-v2 .st-share, .kg-v2 .sns-share, .kg-v2 .post-sns, .kg-v2 .st-copyurl-btn { display: none !important; }
.kg-v2 .st-h4husen-shadow::after { content: none !important; display: none !important; }

/* 結論：赤太字＋黄色の下線が引かれる */
.kg-key { color: var(--red); font-weight: 800; background-image: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 94%, transparent 94%); background-repeat: no-repeat; background-size: 100% 100%; }
.kg-js:not(.kg-still) .kg-key:not(.is-on) { background-size: 0 100%; }
.kg-js:not(.kg-still) .kg-key.is-on { transition: background-size 1.15s var(--ease) .15s; }

/* 本文中の用語リンク */
.kg-v2 .entry-content a.kg-term { color: var(--deep); text-decoration: none; border-bottom: 1px dashed currentColor; padding-bottom: 1px; transition: background-color .15s; }
.kg-v2 .entry-content a.kg-term:hover { background: var(--soft); border-bottom-style: solid; }

/* その場所に来たら出る（隠す規則だけを :not(.in) で持つ） */
.kg-rv { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.kg-js:not(.kg-still) .kg-rv:not(.in) { opacity: 0; transform: translateY(12px); }

/* ============ 目次の上の CTA：相談する／登録するの 2 択 ============ */
.kg-cta2 { margin: 6px 0 24px; }
.kg-v2 .entry-content .kg-cta2__t { margin: 0 0 8px; padding: 0; font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--ink); }
.kg-cta2__g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kg-v2 .entry-content a.kg-cta2__c { overflow: hidden; display: grid; grid-template-columns: 62px 1fr 16px; align-items: center; gap: 10px; min-height: 84px; padding: 8px 14px 8px 8px; background: var(--pale); color: var(--ink); text-decoration: none; border-radius: 8px; transition: background .18s, transform .18s var(--ease); }
.kg-v2 .entry-content a.kg-cta2__c:hover { background: var(--soft); transform: translateY(-2px); }
.kg-v2 .entry-content a.kg-cta2__c--main { background: var(--ink); color: #fff; }
.kg-v2 .entry-content a.kg-cta2__c--main:hover { background: #17405f; }
.kg-cta2__c img { align-self: end; width: 62px; height: 74px; margin-bottom: -8px; object-fit: contain; object-position: center bottom; }
.kg-cta2__k { display: block; font-size: 12.5px; line-height: 1.4; opacity: .85; }
.kg-cta2__h { display: block; margin-top: 1px; font-size: 16px; line-height: 1.4; font-weight: 800; }
.kg-cta2__a { font-weight: 700; transition: transform .18s var(--ease); }
a.kg-cta2__c:hover .kg-cta2__a { transform: translateX(3px); }
@media (max-width: 640px) { .kg-cta2__g { grid-template-columns: 1fr; gap: 8px; } .kg-v2 .entry-content a.kg-cta2__c { min-height: 72px; } .kg-cta2__h { font-size: 15.5px; } }

/* ============ 記事の最後の CTA：濃い帯＋白いカード 2 枚 ============ */
.kg-promo { margin: 30px 0 10px; padding: clamp(18px, 3vw, 30px); background: var(--ink); border-radius: 14px; color: #dbe7f0; }
.kg-v2 .entry-content .kg-promo__h { margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .28); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; font-weight: 800; color: #fff !important; }
.kg-promo__g { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kg-v2 .entry-content a.kg-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; background: #fff; color: var(--text); text-decoration: none; border-radius: 10px; transition: transform .22s var(--ease), box-shadow .22s; }
.kg-v2 .entry-content a.kg-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -16px rgba(0, 0, 0, .65); }
.kg-card__art { position: relative; display: block; height: 136px; margin-bottom: 8px; border-radius: 8px; background: var(--soft); overflow: hidden; }
.kg-card--b .kg-card__art { background: #fff6cc; }
.kg-v2 .entry-content .kg-card__art img { position: absolute; bottom: 0; width: auto; max-width: none; transition: transform .3s var(--ease); }
.kg-v2 .entry-content .kg-card__art .a { left: 50%; height: 126px; transform: translateX(-74%); }
.kg-v2 .entry-content .kg-card__art .b { left: 50%; height: 78px; transform: translateX(36%); }
.kg-v2 .entry-content .kg-card--b .kg-card__art .a { height: 122px; transform: translateX(-50%); }
.kg-v2 .entry-content a.kg-card:hover .kg-card__art .a { transform: translateX(-74%) translateY(-3px); }
.kg-v2 .entry-content a.kg-card--b:hover .kg-card__art .a { transform: translateX(-50%) translateY(-3px); }
.kg-card__k { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kg-card__t { font-size: 18px; line-height: 1.4; font-weight: 800; color: var(--ink); }
.kg-card__d { font-size: 14px; line-height: 1.7; }
.kg-card__c { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 15px; color: var(--deep); }
@media (max-width: 640px) { .kg-promo__g { grid-template-columns: 1fr; } .kg-card__art { height: 118px; } .kg-v2 .entry-content .kg-card__art .a { height: 110px; } .kg-v2 .entry-content .kg-card__art .b { height: 68px; } .kg-v2 .entry-content .kg-card--b .kg-card__art .a { height: 106px; } }

/* ============ 動く図 ============ */
.kg-scene { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px 20px; align-items: center; margin: 10px 0 16px; padding: 14px 18px; background: var(--pale); border-radius: 10px; }
.kg-scene__g svg { display: block; width: 100%; height: auto; max-height: 340px; overflow: visible; }
.kg-js:not(.kg-still) .kg-scene:not(.is-on) .kg-scene__g { opacity: 0; }
.kg-scene__t, .kg-scene__label { text-align: left; }
.kg-scene__head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px; margin-bottom: 8px; }
.kg-v2 .entry-content .kg-scene__who { width: auto; height: 68px; max-width: 72px; object-fit: contain; object-position: center bottom; }
.kg-scene__label { font-size: 15px; line-height: 1.45; font-weight: 800; color: var(--ink); }
.kg-again { display: block; appearance: none; margin-top: 8px; padding: 2px 0; background: none; border: 0; border-bottom: 1px solid currentColor; color: var(--muted); font-size: 12.5px; line-height: 1.4; cursor: pointer; }
.kg-again:hover { color: var(--deep); }
.kg-v2 .entry-content .kgs-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.kg-v2 .entry-content .kgs-steps li { list-style: none; position: relative; margin: 0; padding: 8px 0 8px 28px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--text); counter-increment: s; }
.kg-v2 .entry-content .kgs-steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.kg-v2 .entry-content .kgs-steps li::after { content: none; display: none; }
.is-on .kgs-steps li { animation: kgsStep .35s linear both; animation-delay: var(--d); }
@keyframes kgsStep { from { opacity: .28; } to { opacity: 1; } }
@media (max-width: 720px) {
  .kg-scene { grid-template-columns: minmax(0, 1fr); padding: 10px 10px 8px; }
  .kg-scene__t { display: contents; }
  .kg-scene__head { order: -1; margin: 0; }
  .kg-scene__g { order: 0; }
  .kg-v2 .entry-content .kgs-steps { order: 1; }
  .kg-again { order: 2; justify-self: start; }
}

/* 図の部品。動きは .is-on の下だけ（無ければ最後の絵のまま） */
.kx-chip rect { fill: #fff; stroke: var(--blue); stroke-width: 2.5; }
.kg-scene text { font-weight: 700; fill: var(--ink); }
.kx-chip--hi rect { fill: var(--yellow); stroke: #caa000; }
.kg-scene text.kx-strong { font-weight: 800; }
.kg-scene text.kx-note { font-weight: 500; fill: var(--muted); }
.kx-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.kx-line--hi { stroke: #d4a800; }
.kx-thin { stroke-width: 1.4; stroke: rgba(26, 143, 208, .55); }
.kx-head { fill: var(--blue); transform-box: fill-box; transform-origin: center; }
.kx-short { stroke: #8fcdee; stroke-width: 3; stroke-linecap: round; opacity: 0; }
.kx-robot { opacity: 0; transform-box: fill-box; transform-origin: center; }
.kx-ring { fill: none; stroke: var(--blue); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.kx-core circle { fill: #fff; stroke: var(--blue); stroke-width: 4; }
.kg-scene .kx-core text { fill: var(--deep); }
.kx-box rect { fill: var(--ink); }
.kg-scene .kx-box text { fill: #fff; }
.kx-panel rect { fill: #fff; stroke: rgba(14, 43, 68, .25); stroke-width: 2; }
.kx-panel--hi rect { stroke: var(--blue); stroke-width: 3.5; fill: #fffdf0; }
.kx-rule { stroke: var(--line); stroke-width: 1.5; }
.kx-node { fill: #fff; stroke: var(--blue); stroke-width: 4; }
.kx-node--hi { fill: var(--yellow); stroke: #caa000; }
.kx-group { fill: rgba(255, 255, 255, .85); stroke: rgba(14, 43, 68, .22); stroke-width: 2; stroke-dasharray: 6 6; }
.kx-dot--0 { fill: var(--blue); } .kx-dot--1 { fill: #e0a800; } .kx-dot--2 { fill: var(--ink); }
.kx-axis { stroke: rgba(14, 43, 68, .45); stroke-width: 2; }
.kx-bar { fill: var(--blue); transform-box: fill-box; transform-origin: 50% 100%; }
.kx-bar--hi { fill: #e0a800; }
.kx-curve { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; }
.kx-curve--b { stroke: #e0a800; }
.kx-nest rect { fill: rgba(26, 143, 208, .1); stroke: var(--blue); stroke-width: 2.5; }
.kx-nest--hi rect { fill: var(--yellow); stroke: #caa000; }
.kx-cell rect { fill: #fff; stroke: rgba(14, 43, 68, .25); stroke-width: 2; }
.kx-cell--hi rect { fill: var(--yellow); stroke: #caa000; }
.kx-step rect { fill: var(--soft); stroke: var(--blue); stroke-width: 2; }
.kx-step--hi rect { fill: var(--yellow); stroke: #caa000; }
.kx-pop, .kx-in { transform-box: fill-box; transform-origin: center; }

.is-on .kx-in { animation: kxIn .45s var(--ease) both; animation-delay: var(--d); }
.is-on .kx-pop { animation: kxPop .55s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: var(--d); }
.is-on .kx-line, .is-on .kx-curve { animation: kxDraw .6s ease both; animation-delay: var(--d); }
.is-on .kx-curve { animation-duration: 1.2s; }
.is-on .kx-bar { animation: kxBar .55s var(--ease) both; animation-delay: var(--d); }
.is-on .kx-dot { animation: kxDot 1.5s var(--ease) both; animation-delay: var(--d); }
.is-on .kx-ring { animation: kxRing 2.4s ease-out infinite; animation-delay: var(--d); }
.is-on .kx-robot { animation: kxRobot 4.2s var(--ease) both; animation-delay: calc(var(--i) * .1s); }
.is-on .kx-short { animation: kxShort 3.1s ease both; }
.is-on .kx-new rect { animation: kxNew .4s ease both; animation-delay: var(--d); }
@keyframes kxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes kxPop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes kxDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes kxBar { from { transform: scaleY(.02); } to { transform: none; } }
@keyframes kxDot { from { transform: translate(var(--sx), var(--sy)); } to { transform: none; } }
@keyframes kxRing { 0% { opacity: .5; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes kxRobot { 0% { opacity: 0; transform: scale(.5); } 8%, 60% { opacity: 1; transform: none; } 86% { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(.55); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }
@keyframes kxShort { 0% { opacity: 0; } 10%, 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes kxNew { from { fill: #eef2f5; stroke: #b7c4cd; } to { fill: var(--yellow); stroke: #caa000; } }

/* ============ 関連用語：枠で囲まず、罫線の行で見せる ============ */
.kg-v2 .entry-content .kg-rel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin: 10px 0 8px; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.kg-v2 .entry-content .kg-rel li { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.kg-v2 .entry-content .kg-rel li::before, .kg-v2 .entry-content .kg-rel li::after { content: none; display: none; }
.kg-v2 .entry-content a.kg-rel__c { display: grid; grid-template-columns: 44px 1fr 16px; gap: 10px; align-items: center; padding: 10px 2px; color: var(--text); text-decoration: none; transition: background .15s; }
.kg-v2 .entry-content a.kg-rel__c:hover { background: var(--pale); }
.kg-v2 .entry-content .kg-rel__i { width: 44px; height: 44px; object-fit: contain; transition: transform .25s var(--ease); }
a.kg-rel__c:hover .kg-rel__i { transform: scale(1.1) rotate(-4deg); }
.kg-rel__t { display: block; font-size: 15px; line-height: 1.45; font-weight: 800; color: var(--ink); }
.kg-rel__h { display: block; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.kg-rel__a { color: var(--blue); font-weight: 700; transition: transform .2s var(--ease); }
a.kg-rel__c:hover .kg-rel__a { transform: translateX(4px); }
@media (max-width: 640px) { .kg-v2 .entry-content .kg-rel { grid-template-columns: minmax(0, 1fr); } }

/* ============ 有益情報：3 点の要点・表・ツール ============ */
.kg-v2 .entry-content .kg-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; margin: 12px 0 18px; padding: 0; list-style: none; }
.kg-v2 .entry-content .kg-points li { list-style: none; margin: 0; padding: 10px 0 0; border-top: 2px solid var(--ink); font-size: 14.5px; line-height: 1.7; color: var(--text); }
.kg-v2 .entry-content .kg-points li::before, .kg-v2 .entry-content .kg-points li::after { content: none !important; display: none !important; }
.kg-points b { display: block; margin: 0 0 4px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.kg-v2 .entry-content .kg-lab { margin: 18px 0 6px; padding: 0; font-size: 15.5px; line-height: 1.5; font-weight: 800; color: var(--ink); }
.kg-tw { margin: 0 0 8px; }
.kg-v2 .entry-content table.kg-table { width: 100%; margin: 0; border-collapse: collapse; border: 0; font-size: 14.5px; line-height: 1.65; background: none; table-layout: auto; }
.kg-v2 .entry-content .kg-table thead, .kg-v2 .entry-content .kg-table tr { border: 0 !important; background: none !important; }
.kg-v2 .entry-content .kg-table th, .kg-v2 .entry-content .kg-table td { padding: 9px 10px; border: 0 !important; border-bottom: 1px solid var(--line) !important; text-align: left; vertical-align: top; background: none; color: var(--text); font-weight: 400; }
.kg-v2 .entry-content .kg-table thead th { border-bottom: 2px solid var(--ink) !important; color: var(--ink); font-weight: 800; font-size: 13.5px; }
.kg-v2 .entry-content .kg-table tbody td:first-child { color: var(--ink); font-weight: 700; }
@media (max-width: 600px) {
  .kg-v2 .entry-content .kg-points { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .kg-v2 .entry-content .kg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kg-v2 .entry-content .kg-table, .kg-v2 .entry-content .kg-table tbody, .kg-v2 .entry-content .kg-table tr, .kg-v2 .entry-content .kg-table td { display: block; width: auto; }
  .kg-v2 .entry-content .kg-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .kg-v2 .entry-content .kg-table td { padding: 2px 0; border: 0; }
  .kg-v2 .entry-content .kg-table td:not(:first-child)::before { content: attr(data-th) "："; color: var(--muted); font-size: 13px; }
}
.kg-v2 .entry-content .kg-conclude { margin: 12px 0 6px; font-size: 16px; line-height: 1.8; }

/* ツール：これだけは独立した道具なので面に載せる */
.kg-tool { margin: 12px 0 16px; padding: 16px 18px; background: var(--pale); border-radius: 10px; }
.kg-v2 .entry-content .kg-tool__t { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; padding: 0; font-size: 16.5px; line-height: 1.45; font-weight: 800; color: var(--ink); }
.kg-v2 .entry-content .kg-tool__t img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.kg-v2 .entry-content .kg-tool__d { margin: 0 0 10px; padding: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.kg-check__g { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.kg-v2 .entry-content .kg-check__list { margin: 0; padding: 0; list-style: none; }
.kg-v2 .entry-content .kg-check__list li { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.kg-v2 .entry-content .kg-check__list li::before, .kg-v2 .entry-content .kg-check__list li::after { content: none; display: none; }
.kg-check__list label { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; padding: 8px 0; font-size: 14.5px; line-height: 1.55; color: var(--text); cursor: pointer; }
.kg-check__list input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--deep); }
.kg-check__list input:checked + span { color: var(--ink); font-weight: 700; }
.kg-check__side { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #fff; border-radius: 8px; }
.kg-check__head { font-size: 13.5px; color: var(--muted); }
.kg-check__head b { font-size: 26px; font-weight: 800; color: var(--ink); }
.kg-check__bar { display: block; height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.kg-check__bar i { display: block; height: 100%; width: 0; background: var(--deep); transition: width .3s var(--ease); }
.kg-check__res { display: grid; grid-template-columns: 62px 1fr; gap: 8px; align-items: center; }
.kg-check__res[hidden] { display: none; }
.kg-v2 .entry-content .kg-check__res img { width: 62px; height: 72px; object-fit: contain; object-position: center bottom; }
.kg-v2 .entry-content .kg-check__msg { margin: 0; padding: 0; font-size: 14px; line-height: 1.6; color: var(--ink); font-weight: 700; }
.kg-v2 .entry-content a.kg-check__next { display: inline-block; margin-top: 2px; font-size: 13.5px; font-weight: 700; color: var(--deep); }
.kg-calc__g { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kg-calc__in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.kg-calc label { display: block; font-size: 13px; line-height: 1.4; font-weight: 700; color: var(--ink); }
.kg-calc input[type=number] { display: block; width: 100%; box-sizing: border-box; height: 42px; margin-top: 3px; padding: 4px 10px; font-size: 16px; border: 1px solid #9fb6c6; border-radius: 4px; background: #fff; color: var(--ink); }
.kg-calc__res { display: flex; flex-direction: column; background: #fff; border-radius: 8px; padding: 4px 12px; }
.kg-calc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.kg-calc__row:last-child { border-bottom: 0; }
.kg-calc__row strong { font-size: 22px; line-height: 1.2; font-weight: 800; color: var(--ink); white-space: nowrap; }
.kg-calc__row small { margin-left: 2px; font-size: 13px; font-weight: 700; }
.kg-calc__row.is-main strong { color: var(--red); font-size: 26px; }
.kg-v2 .entry-content .kg-note { margin: 8px 0 0; padding: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.kg-quiz__o { appearance: none; display: block; width: 100%; margin: 0 0 6px; padding: 10px 14px; background: #fff; border: 1.5px solid #9fb6c6; border-radius: 6px; color: var(--ink); font-size: 14.5px; line-height: 1.55; font-weight: 700; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; word-break: keep-all; overflow-wrap: anywhere; }
.kg-quiz__o:hover { background: var(--soft); border-color: var(--ink); }
.kg-quiz__o.is-ok { background: #fff6cc; border-color: #caa000; }
.kg-quiz__o.is-ng { background: #f2f4f6; color: var(--muted); }
.kg-quiz__r { display: grid; grid-template-columns: 62px 1fr; gap: 8px; align-items: center; margin-top: 10px; }
.kg-quiz__r[hidden] { display: none; }
.kg-v2 .entry-content .kg-quiz__r img { width: 62px; height: 72px; object-fit: contain; object-position: center bottom; }
.kg-v2 .entry-content .kg-quiz__why { margin: 0; padding: 0; font-size: 14px; line-height: 1.65; color: var(--ink); }
@media (max-width: 640px) { .kg-tool { padding: 12px; } .kg-check__g, .kg-calc__g { grid-template-columns: minmax(0, 1fr); } .kg-calc__row strong { font-size: 20px; } .kg-calc__row.is-main strong { font-size: 24px; } }

/* ============ 根拠（法律・公的なガイドライン） ============ */
.kg-evi { margin: 14px 0 6px; }
.kg-v2 .entry-content .kg-evi__t { margin: 0 0 4px; padding: 0; font-size: 15.5px; line-height: 1.5; font-weight: 800; color: var(--ink); }
.kg-v2 .entry-content .kg-evi ul { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.kg-v2 .entry-content .kg-evi li { list-style: none; margin: 0; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.65; }
.kg-v2 .entry-content .kg-evi li::before, .kg-v2 .entry-content .kg-evi li::after { content: none; display: none; }
.kg-v2 .entry-content .kg-evi a { color: var(--deep); font-weight: 700; }
.kg-evi small { display: block; font-size: 13px; color: var(--muted); }

/* ============ 会話 ============ */
.kg-talk { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: end; margin: 10px 0; }
.kg-v2 .entry-content .kg-talk__who { display: block; width: 78px; height: auto; max-height: 110px; object-fit: contain; object-position: center bottom; }
.kg-talk__bub { position: relative; padding: 10px 14px; background: var(--soft); font-size: 15px; line-height: 1.75; color: var(--ink); border-radius: 8px; }
.kg-talk__bub::before { content: ""; position: absolute; left: -8px; bottom: 16px; border: 5px solid transparent; border-right: 8px solid var(--soft); border-left: 0; }
.kg-talk--bear { grid-template-columns: 1fr 70px; }
.kg-v2 .entry-content .kg-talk--bear .kg-talk__who { order: 2; width: 70px; }
.kg-talk--bear .kg-talk__bub { background: #fdf2dc; }
.kg-talk--bear .kg-talk__bub::before { left: auto; right: -8px; border: 5px solid transparent; border-left: 8px solid #fdf2dc; border-right: 0; }
@media (max-width: 600px) { .kg-talk { grid-template-columns: 60px 1fr; } .kg-v2 .entry-content .kg-talk__who { width: 60px; } .kg-talk--bear { grid-template-columns: 1fr 56px; } .kg-v2 .entry-content .kg-talk--bear .kg-talk__who { width: 56px; } .kg-talk__bub { font-size: 14.5px; padding: 9px 12px; } }

/* ============ みんなの疑問（丸いアバター・開閉・細い罫線） ============ */
.kg-faq { margin: 8px 0 0; border-top: 1px solid var(--line); }
.kg-q { border-bottom: 1px solid var(--line); }
.kg-q > summary { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 12px 40px 12px 8px; list-style: none; cursor: pointer; border: 2px solid transparent; border-radius: 6px; transition: background .15s, border-color .15s; }
.kg-q > summary::-webkit-details-marker { display: none; }
.kg-q > summary:hover, .kg-q > summary:focus-visible { background: var(--soft); border-color: var(--ink); outline: 0; }
.kg-q > summary::after { content: ""; position: absolute; right: 14px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--ink); }
.kg-q:not([open]) > summary::before { content: ""; position: absolute; right: 21px; top: 50%; width: 2px; height: 16px; margin-top: -8px; background: var(--ink); }
body.single.kg-v2 .entry-content .kg-q h3:not(#kb):not(#kb):not(#kb) { display: block !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; font-size: 16.5px !important; line-height: 1.55 !important; font-weight: 800 !important; color: var(--ink) !important; text-align: left !important; transform: none !important; opacity: 1 !important; }
body.single.kg-v2 .entry-content .kg-q h3:not(#kb):not(#kb):not(#kb)::before, body.single.kg-v2 .entry-content .kg-q h3:not(#kb):not(#kb):not(#kb)::after { content: none !important; display: none !important; }
.kg-v2 .entry-content .kg-av { width: 44px; height: 44px; box-sizing: border-box; padding: 3px 3px 0; border-radius: 50%; object-fit: contain; object-position: center bottom; border: 2px solid var(--ink); background: #fff6cc; flex: none; }
.kg-v2 .entry-content .kg-av--a { background: var(--soft); }
.kg-q__a { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 2px 8px 16px 8px; }
.kg-v2 .entry-content .kg-q__a p { margin: 0; font-size: 15.5px; line-height: 1.8; }
@media (max-width: 600px) {
  .kg-q > summary { grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 34px 10px 4px; }
  .kg-q__a { grid-template-columns: 36px 1fr; gap: 10px; padding: 2px 4px 14px; }
  .kg-v2 .entry-content .kg-av { width: 36px; height: 36px; }
  body.single.kg-v2 .entry-content .kg-q h3:not(#kb):not(#kb):not(#kb) { font-size: 15.5px !important; }
  .kg-v2 .entry-content .kg-q__a p { font-size: 15px; }
}

/* ============ 用語集へ ============ */
.kg-v2 .entry-content a.kg-more { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin: 10px 0 6px; padding: 10px 14px; background: var(--pale); border-radius: 10px; text-decoration: none; color: var(--text); transition: background .18s; }
.kg-v2 .entry-content a.kg-more:hover { background: var(--soft); }
.kg-v2 .entry-content .kg-more img { width: 96px; height: auto; }
.kg-more b { display: block; font-size: 16.5px; color: var(--ink); }
.kg-more span span { display: block; font-size: 14px; line-height: 1.65; color: var(--text); }
.kg-v2 .entry-content a.kg-more:hover span span { color: var(--text); }
.kg-more em { display: inline-block; margin-top: 2px; font-style: normal; font-weight: 700; color: var(--deep); font-size: 14px; }

/* ============ 参考 ============ */
.kg-v2 .entry-content .kg-refs { margin: 14px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.8; color: var(--muted); }
.kg-refs__t { font-weight: 700; margin-right: 4px; }
.kg-v2 .entry-content .kg-refs a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ============ 役に立った・シェア・ホーム追加 ============ */
.kg-act { position: relative; margin: 24px 0 0; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.kg-v2 .entry-content .kg-act__t { margin: 0 0 8px; padding: 0; font-size: 16px; line-height: 1.5; font-weight: 800; color: var(--ink); }
.kg-act__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kg-act__sec { margin-top: 16px; }
.kg-pill, .kg-v2 .entry-content a.kg-pill { appearance: none; display: inline-flex; align-items: center; justify-content: center; height: 42px; box-sizing: border-box; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .16s var(--ease), box-shadow .16s, background .16s; }
.kg-pill:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(14, 43, 68, .16); }
.kg-pill:disabled { cursor: default; opacity: .8; transform: none; }
.kg-help__b.is-on { background: var(--ink); color: #fff; }
.kg-sh-x, .kg-v2 .entry-content a.kg-sh-x { background: #111; border-color: #111; color: #fff; }
.kg-sh-fb, .kg-v2 .entry-content a.kg-sh-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.kg-sh-line, .kg-v2 .entry-content a.kg-sh-line { background: #06c755; border-color: #06c755; color: #fff; }
.kg-sh-hb, .kg-v2 .entry-content a.kg-sh-hb { background: #00a4de; border-color: #00a4de; color: #fff; }
.kg-sh-native[hidden] { display: none; }
.kg-v2 .entry-content .kg-act__note { margin: 8px 0 0; padding: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.kg-help__thanks { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; margin-top: 10px; padding: 8px 12px; background: var(--pale); border-radius: 8px; font-size: 14px; line-height: 1.65; color: var(--ink); }
.kg-help__thanks[hidden] { display: none; }
.kg-v2 .entry-content .kg-help__thanks img { width: 64px; height: 72px; object-fit: contain; object-position: center bottom; }
.kg-act__sec--share { position: relative; padding-right: 92px; }
.kg-v2 .entry-content .kg-act__mega { position: absolute; right: 0; top: 0; width: 84px; height: auto; pointer-events: none; }
.kg-act__a2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 16px; }
.kg-v2 .entry-content .kg-act__a2 .kg-act__note { margin: 0; }
@media (max-width: 600px) { .kg-v2 .entry-content .kg-act__mega { width: 58px; top: -6px; } .kg-act__sec--share { padding-right: 0; } .kg-v2 .entry-content .kg-act__sec--share .kg-act__t { padding-right: 64px; } .kg-pill, .kg-v2 .entry-content a.kg-pill { padding: 0 14px; font-size: 13.5px; } .kg-a2hs { width: 100%; } }

/* ホーム画面に追加の案内 */
.kg-a2hs-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(14, 43, 68, .55); }
.kg-a2hs-modal[hidden] { display: none; }
.kg-a2hs-box { position: relative; width: min(460px, 100%); max-height: 86vh; overflow: auto; padding: 20px; background: #fff; color: var(--text); font-size: 14.5px; line-height: 1.75; border-radius: 10px; }
.kg-a2hs-head { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; margin-bottom: 8px; }
.kg-a2hs-head img { width: 72px; height: 100px; object-fit: contain; object-position: center bottom; }
.kg-a2hs-t { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.5; }
.kg-a2hs-close { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.kg-a2hs-os { display: none; }
.kg-a2hs-box[data-os=ios] .kg-a2hs-os--ios, .kg-a2hs-box[data-os=and] .kg-a2hs-os--and, .kg-a2hs-box[data-os=pc] .kg-a2hs-os--pc, .kg-a2hs-box[data-os=mac] .kg-a2hs-os--mac { display: block; }
.kg-a2hs-os ol { margin: 6px 0 0; padding-left: 1.4em; }
.kg-a2hs-os li { margin: 4px 0; }
kbd.kg-kbd { padding: 0 6px; font: 700 13px/1.6 monospace; background: var(--soft); border: 1px solid #b7d3e6; border-radius: 3px; color: var(--ink); }

/* ============ 動きを止める ============ */
.kg-still *, .kg-still *::before, .kg-still *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .kg-v2 *, .kg-v2 *::before, .kg-v2 *::after { animation: none !important; transition: none !important; }
  .kg-rv { opacity: 1 !important; transform: none !important; }
  .kg-key { background-size: 100% 100% !important; }
}

/* テーマの ul/ol/li の余白と中央揃えに負けないように（最後にまとめて打ち消す） */
.kg-v2 .entry-content .kgs-steps, .kg-v2 .entry-content .kg-rel, .kg-v2 .entry-content .kg-points, .kg-v2 .entry-content .kg-check__list, .kg-v2 .entry-content .kg-evi ul { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
.kg-v2 .entry-content .kgs-steps { margin-top: 0 !important; margin-bottom: 0 !important; }
.kg-v2 .entry-content .kgs-steps li { margin: 0 !important; padding: 8px 0 8px 28px !important; text-align: left !important; }
.kg-v2 .entry-content .kg-rel li, .kg-v2 .entry-content .kg-check__list li { margin: 0 !important; padding: 0 !important; text-align: left !important; }
.kg-v2 .entry-content .kg-points li { margin: 0 !important; padding: 10px 0 0 !important; text-align: left !important; }
.kg-v2 .entry-content .kg-evi li { margin: 0 !important; padding: 8px 2px !important; text-align: left !important; }
.kg-v2 .entry-content figure.kg-scene { max-width: none; }

/* テーマの li の字下げ（ID 指定＋!important）より強く打ち消す */
body.single.kg-v2 .entry-content ul.kg-rel > li:not(#kb):not(#kb):not(#kb),
body.single.kg-v2 .entry-content ul.kg-check__list > li:not(#kb):not(#kb):not(#kb) { padding: 0 !important; margin: 0 !important; }
body.single.kg-v2 .entry-content ul.kg-points > li:not(#kb):not(#kb):not(#kb) { padding: 10px 0 0 !important; margin: 0 !important; }
body.single.kg-v2 .entry-content .kg-evi ul > li:not(#kb):not(#kb):not(#kb) { padding: 8px 2px !important; margin: 0 !important; }
body.single.kg-v2 .entry-content ol.kgs-steps > li:not(#kb):not(#kb):not(#kb) { padding: 8px 0 8px 28px !important; margin: 0 !important; }
@media (max-width: 600px) {
  .kg-v2 .entry-content .kg-table td { padding: 2px 0 !important; border: 0 !important; }
  .kg-v2 .entry-content .kg-table tr { border-bottom: 1px solid var(--line) !important; padding: 8px 0 !important; }
}

/* 絵の舞台（type: stage）。人・ロボット・道具が動く。動きは .is-on の下だけで、無ければ最後の絵のまま */
.sx-a { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.sx-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.sx-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.is-on .sx-in { animation-duration: .55s; animation-fill-mode: both; animation-delay: var(--d); animation-timing-function: var(--ease); }
.is-on .sx-in--pop { animation-name: sxPop; animation-timing-function: cubic-bezier(.2, 1.5, .4, 1); }
.is-on .sx-in--fade { animation-name: sxFade; }
.is-on .sx-in--rise { animation-name: sxRise; }
.is-on .sx-in--drop { animation-name: sxDrop; animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
.is-on .sx-in--left { animation-name: sxLeft; }
.is-on .sx-in--right { animation-name: sxRight; }
.is-on .sx-in--grow { animation-name: sxGrow; }
.is-on .sx-draw { animation: kxDraw .9s ease both; animation-delay: var(--d); }
.is-on .sx-bar { animation: kxBar .55s var(--ease) both; animation-delay: var(--d); }
.is-on .sx-needle { animation: sxNeedle 1.1s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: var(--d); }
.is-on .sx-node { animation: sxNode 1.8s ease-in-out infinite; animation-delay: var(--nd); }
.is-on .sx-l { animation-delay: var(--d); }
.is-on .sx-l--bob { animation: sxBob .7s ease-in-out infinite alternate; animation-delay: var(--d); }
.is-on .sx-l--float { animation: sxFloat 1.7s ease-in-out infinite alternate; animation-delay: var(--d); }
.is-on .sx-l--pulse { animation: sxPulse 1.1s ease-in-out infinite alternate; animation-delay: var(--d); }
.is-on .sx-l--spin { animation: sxSpin 4s linear infinite; animation-delay: var(--d); }
.is-on .sx-l--shake { animation: sxShake .24s linear infinite; animation-delay: var(--d); }
.is-on .sx-l--blink { animation: sxBlink .8s ease-in-out infinite alternate; animation-delay: var(--d); }
.is-on .sx-l--sway { animation: sxSway 1.3s ease-in-out infinite alternate; animation-delay: var(--d); }
.is-on .sx-l--walk { animation: sxWalk .36s ease-in-out infinite alternate; animation-delay: var(--d); }
.is-on .sx-l--type .sx-arm--l { animation: sxTypeL .22s ease-in-out infinite alternate; animation-delay: var(--d); }
.is-on .sx-l--type .sx-arm--r { animation: sxTypeR .26s ease-in-out infinite alternate; animation-delay: var(--d); }
.is-on .sx-h { animation-delay: var(--d); animation-fill-mode: both; }
.is-on .sx-h--shake { animation-name: sxHShake; animation-duration: .5s; }
.is-on .sx-h--jump { animation-name: sxHJump; animation-duration: .55s; }
.is-on .sx-h--pulse { animation-name: sxHPulse; animation-duration: .6s; }
.is-on .sx-h--flash { animation-name: sxHFlash; animation-duration: .8s; }
@keyframes sxPop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes sxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sxRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes sxDrop { from { opacity: 0; transform: translateY(-70px); } to { opacity: 1; transform: none; } }
@keyframes sxLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes sxRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes sxGrow { from { opacity: 0; transform: scaleY(.05); } to { opacity: 1; transform: none; } }
@keyframes sxNeedle { from { transform: rotate(-75deg); } to { transform: none; } }
@keyframes sxNode { 0%, 60%, 100% { fill: #fff; } 25% { fill: #ffe45c; } }
@keyframes sxBob { to { transform: translateY(-6px); } }
@keyframes sxFloat { to { transform: translateY(-10px); } }
@keyframes sxPulse { to { transform: scale(1.08); } }
@keyframes sxSpin { to { transform: rotate(360deg); } }
@keyframes sxShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes sxBlink { to { opacity: .35; } }
@keyframes sxSway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes sxWalk { from { transform: rotate(-3deg); } to { transform: rotate(3deg) translateY(-4px); } }
@keyframes sxTypeL { to { transform: rotate(10deg); } }
@keyframes sxTypeR { to { transform: rotate(-10deg); } }
@keyframes sxHShake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px) rotate(-3deg); } 40% { transform: translateX(7px) rotate(3deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes sxHJump { 0%, 100% { transform: none; } 45% { transform: translateY(-26px); } }
@keyframes sxHPulse { 0%, 100% { transform: none; } 45% { transform: scale(1.28); } }
@keyframes sxHFlash { 0%, 50%, 100% { opacity: 1; } 25%, 75% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .is-on .sx-in, .is-on .sx-draw, .is-on .sx-bar, .is-on .sx-needle, .is-on .sx-node, .is-on .sx-l, .is-on .sx-l .sx-arm, .is-on .sx-h { animation: none !important; } }
