/*
 * GATUN 2026 — 図解（旧・図版画像の置き換え）
 * マークアップは template-parts/diagrams/*.php、動きの制御は assets/js/diagrams.js。
 *
 * 状態クラス（diagrams.js が付ける）
 *   .is-armed … 動かす準備（最初の見えない状態）。JSが無い・動きを減らす設定のときは付かないので、完成形がそのまま表示される
 *   .is-play  … 画面に入った（[data-gd-g] 単位）。ここから順に現れる
 *   .is-off   … 画面外（繰り返しの動きを止める）
 *   .is-done  … 登場の動きが終わった
 */

.gd {
  --gd-ease: cubic-bezier(.22, 1, .36, 1);
  --gd-pop: cubic-bezier(.34, 1.56, .64, 1);
  position: relative;
  margin: 0;
  container-type: inline-size;
  color: var(--gt-navy, #1A2B47);
}
:where(.gd) p { margin: 0; }
:where(.gd) ol, :where(.gd) ul { list-style: none; margin: 0; padding: 0; }
:where(.gd) svg { display: block; overflow: visible; }
.gd.is-off *, .gd.is-off *::before, .gd.is-off *::after { animation-play-state: paused !important; }

/* =====================================================================
 * 1. AXの進め方（トップ）
 * ===================================================================== */
.gd-flow { --gap: clamp(16px, 2.4cqw, 30px); max-width: 1180px; margin: clamp(26px, 3.4vw, 44px) auto 0; }
.gd-flow__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) clamp(160px, 16cqw, 200px); column-gap: var(--gap); row-gap: clamp(34px, 4cqw, 48px); align-items: center; }
.gd-flow__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-self: stretch; }
.gd-flow__step { position: relative; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid #D8E5F4; background: linear-gradient(180deg, #fff 0%, #F5F9FE 100%); box-shadow: 0 12px 30px rgba(26, 43, 71, .07); }
.gd-flow__step::after { content: ""; position: absolute; top: 50%; right: calc(var(--gap) / -2); width: 11px; height: 16px; translate: 50% -50%; background: var(--c2); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.gd-flow__head { display: flex; align-items: center; gap: 10px; margin: -1px -1px 0; padding: 14px 10px 14px 14px; border-radius: 16px 16px 0 0; color: #fff; background: linear-gradient(120deg, var(--c) 0%, var(--c2) 100%); }
.gd-flow__no { flex: none; padding-right: 10px; border-right: 1px solid rgba(255, 255, 255, .45); font-family: var(--gt-en, Poppins, sans-serif); font-size: clamp(20px, 2.1cqw, 26px); font-weight: 700; line-height: 1; }
.gd-flow__ttl { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gd-flow__ttl strong { font-size: clamp(14px, 1.42cqw, 17px); font-weight: 800; line-height: 1.35; white-space: nowrap; }
.gd-flow__ttl small { font-size: clamp(11px, 1.05cqw, 12.5px); font-weight: 500; line-height: 1.4; opacity: .88; }
.gd-flow__ico { height: clamp(88px, 9.4cqw, 112px); padding: 16px 12px 4px; }
.gd-flow__ico svg { width: 100%; height: 100%; }
.gd-flow__txt { padding: 6px clamp(12px, 1.4cqw, 18px) 18px; font-size: clamp(12.5px, 1.2cqw, 14px); font-weight: 500; line-height: 1.85; text-align: center; text-wrap: pretty; }
.gd-svgnum { fill: #fff; font-family: var(--gt-en, Poppins, sans-serif); font-size: 10px; font-weight: 700; text-anchor: middle; }

.gd-flow__goal { position: relative; display: grid; place-items: center; }
.gd-flow__orb { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 10%; text-align: center; color: #fff; background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 46%), linear-gradient(140deg, #0D47A1 0%, #0086B3 52%, #16A38A 100%); box-shadow: 0 0 0 7px rgba(0, 151, 167, .13), 0 18px 40px rgba(13, 71, 161, .28); }
.gd-flow__ring { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(0, 151, 167, .5); opacity: 0; pointer-events: none; }
.gd-flow__peak { width: 32%; height: auto; margin-bottom: 2px; }
.gd-flag { transform-box: fill-box; transform-origin: 0 50%; }
.gd-flow__rays { position: absolute; top: -4%; right: 2%; width: 26%; aspect-ratio: 1; pointer-events: none; }
.gd-flow__rays i { position: absolute; left: 50%; top: 50%; width: 4px; height: 26%; border-radius: 4px; background: #1E88E5; transform-origin: 50% 250%; }
.gd-flow__rays i:nth-child(1) { transform: translate(-50%, -150%) rotate(-10deg); }
.gd-flow__rays i:nth-child(2) { transform: translate(-50%, -150%) rotate(28deg); }
.gd-flow__rays i:nth-child(3) { transform: translate(-50%, -150%) rotate(66deg); }
.gd-flow__goalttl { font-size: clamp(20px, 2.4cqw, 28px); font-weight: 900; line-height: 1.3; letter-spacing: .02em; }
.gd-flow__goaltxt { font-size: clamp(10.5px, 1.05cqw, 12px); font-weight: 500; line-height: 1.6; opacity: .92; }

.gd-flow__band { grid-column: 1 / -1; justify-self: center; position: relative; z-index: 1; max-width: 100%; }
.gd-flow__band span { display: block; padding: 13px clamp(20px, 3cqw, 36px); border-radius: 9999px; background: linear-gradient(90deg, #0D47A1 0%, #0D6FD1 55%, #0097A7 100%); box-shadow: 0 10px 24px rgba(13, 71, 161, .2); color: #fff; font-size: clamp(13px, 1.35cqw, 16px); font-weight: 700; line-height: 1.6; text-align: center; text-wrap: balance; }
.gd-flow__loop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.gd-flow__spark { opacity: 0; }

/* 登場 */
.gd-flow.is-armed .gd-flow__step { opacity: 0; transform: translateY(20px); }
.gd-flow.is-armed .gd-flow__step::after { opacity: 0; transform: translateX(-8px); }
.gd-flow.is-armed .gd-flow__orb { opacity: 0; transform: scale(.72); }
.gd-flow.is-armed .gd-flow__band { opacity: 0; transform: translateY(12px); }
.gd-flow.is-armed .gd-flow__loopline { stroke-dasharray: 100; stroke-dashoffset: 100; }
.gd-flow.is-armed .gd-flow__loophead { opacity: 0; }
.gd-flow.is-armed .gd-bars rect { transform: scaleY(0); }
.gd-flow.is-armed .gd-rank { opacity: 0; transform: translateX(-8px); }
.gd-flow.is-armed .gd-arrow { opacity: 0; transform: translate(22px, -22px); }
.gd-flow.is-armed .gd-rise { stroke-dasharray: 100; stroke-dashoffset: 100; }
.gd-flow.is-armed .gd-rise-head { opacity: 0; }
.gd-flow.is-armed .gd-people > g { opacity: 0; transform: translateY(10px); }
.gd-flow.is-armed .gd-pie { opacity: 0; transform: scale(.5); }
.gd-flow .gd-bars rect, .gd-flow .gd-pie, .gd-flow .gd-people > g, .gd-flow .gd-rank, .gd-flow .gd-target, .gd-flow .gd-gear, .gd-flow .gd-mag { transform-box: fill-box; transform-origin: 50% 100%; }
.gd-flow .gd-pie, .gd-flow .gd-target, .gd-flow .gd-gear { transform-origin: 50% 50%; }

.gd-flow.is-play .gd-flow__step { --t: calc(var(--i) * .3s); opacity: 1; transform: none; transition: opacity .6s var(--gd-ease) var(--t), transform .8s var(--gd-ease) var(--t); }
.gd-flow.is-play .gd-flow__step::after { opacity: 1; transform: none; transition: opacity .4s ease calc(var(--t) + .45s), transform .5s var(--gd-ease) calc(var(--t) + .45s); }
.gd-flow.is-play .gd-flow__orb { opacity: 1; transform: none; transition: opacity .5s ease 1.3s, transform .9s var(--gd-pop) 1.3s; }
.gd-flow.is-play .gd-flow__band { opacity: 1; transform: none; transition: opacity .6s ease 1.8s, transform .7s var(--gd-ease) 1.8s; }
.gd-flow.is-play .gd-flow__loopline { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.65, 0, .35, 1) 1.9s; }
.gd-flow.is-play .gd-flow__loophead { opacity: 1; transition: opacity .3s ease 3.1s; }
.gd-flow.is-play .gd-bars rect { transform: none; transition: transform .6s var(--gd-ease); }
.gd-flow.is-play .gd-flow__step .gd-bars rect:nth-child(1) { transition-delay: calc(var(--t) + .35s); }
.gd-flow.is-play .gd-flow__step .gd-bars rect:nth-child(2) { transition-delay: calc(var(--t) + .45s); }
.gd-flow.is-play .gd-flow__step .gd-bars rect:nth-child(3) { transition-delay: calc(var(--t) + .55s); }
.gd-flow.is-play .gd-flow__step .gd-bars rect:nth-child(4) { transition-delay: calc(var(--t) + .65s); }
.gd-flow.is-play .gd-pie { opacity: 1; transform: none; transition: opacity .4s ease calc(var(--t) + .3s), transform .6s var(--gd-pop) calc(var(--t) + .3s); }
.gd-flow.is-play .gd-mag { animation: gd-scan 1.6s var(--gd-ease) calc(var(--t) + .35s) both; }
.gd-flow.is-play .gd-rank { opacity: 1; transform: none; transition: opacity .35s ease calc(var(--t) + .3s + var(--k) * .14s), transform .5s var(--gd-ease) calc(var(--t) + .3s + var(--k) * .14s); }
.gd-flow.is-play .gd-arrow { opacity: 1; transform: none; transition: opacity .2s ease calc(var(--t) + .75s), transform .4s cubic-bezier(.5, 0, .75, 0) calc(var(--t) + .75s); }
.gd-flow.is-play .gd-target { animation: gd-hit .5s ease calc(var(--t) + 1.15s) both; }
.gd-flow.is-play .gd-gear { animation: gd-spin 7s linear calc(var(--t) + .3s) infinite; }
.gd-flow.is-play .gd-wire { animation: gd-march 1.1s linear infinite; }
.gd-flow.is-play .gd-rise { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--gd-ease) calc(var(--t) + .6s); }
.gd-flow.is-play .gd-rise-head { opacity: 1; transition: opacity .25s ease calc(var(--t) + 1.3s); }
.gd-flow.is-play .gd-people > g { opacity: 1; transform: none; transition: opacity .35s ease calc(var(--t) + .35s + var(--k) * .12s), transform .55s var(--gd-pop) calc(var(--t) + .35s + var(--k) * .12s); }
.gd-flow.is-play .gd-flow__ring { animation: gd-ripple 2.8s ease-out 2.2s infinite; }
.gd-flow.is-play .gd-flag { animation: gd-wave 1.8s ease-in-out 2s infinite; }
.gd-flow.is-play .gd-flow__rays i { animation: gd-blink 2.8s ease-in-out 2.2s infinite; }
.gd-flow.is-play .gd-flow__rays i:nth-child(2) { animation-delay: 2.4s; }
.gd-flow.is-play .gd-flow__rays i:nth-child(3) { animation-delay: 2.6s; }

@container (max-width: 1000px) {
  .gd-flow__grid { grid-template-columns: minmax(0, 1fr); }
  .gd-flow__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-flow__step::after { display: none; }
  .gd-flow__goal { width: min(230px, 62%); justify-self: center; }
  .gd-flow__loop { display: none; }
}
@container (max-width: 600px) {
  .gd-flow__steps { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .gd-flow__step { display: grid; grid-template-columns: clamp(92px, 30%, 120px) minmax(0, 1fr); align-items: center; }
  .gd-flow__head { grid-column: 1 / -1; }
  .gd-flow__ico { height: auto; aspect-ratio: 140 / 100; padding: 12px 0 12px 12px; }
  .gd-flow__txt { padding: 12px 16px 14px 10px; text-align: left; }
  .gd-flow__step::after { display: block; top: auto; right: auto; bottom: -15px; left: 50%; width: 16px; height: 11px; translate: -50% 50%; clip-path: polygon(0 0, 100% 0, 50% 100%); }

  .gd-flow__grid { row-gap: 30px; }
}

/* =====================================================================
 * 2. ツール起点と業務起点の1年後の差（トップ）
 * ===================================================================== */
.gd-cmp { margin-top: clamp(14px, 2cqw, 24px); }
.gd-cmp__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2cqw, 26px); }
.gd-cmp__col { border-radius: 18px; padding: clamp(16px, 2cqw, 24px); }
.gd-cmp__col--tool { --x: -18px; --ink: #3D4F6E; --tint: #E1E7EF; --when: #DDE4ED; --line: #9AA8BD; background: #F1F4F8; border: 1px solid #E1E7EF; }
.gd-cmp__col--biz { --x: 18px; --ink: #1B7F53; --tint: #D0EEDF; --when: #CDEBDD; --line: #3DB27F; background: #EAF7F1; border: 1px solid #CDEBDD; }
.gd-cmp__hd { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 18px; }
.gd-cmp__hdico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); box-shadow: 0 6px 16px rgba(26, 43, 71, .14); }
.gd-cmp__hdico svg { width: 30px; height: 30px; }
.gd-cmp__ttl { margin: 0; font-size: clamp(20px, 2.3cqw, 28px); font-weight: 900; line-height: 1.3; letter-spacing: .01em; color: #1A2B47; }
.gd-cmp__col--biz .gd-cmp__ttl { color: #14603F; }
.gd-cmp__ttl small { margin-left: 2px; font-size: .6em; font-weight: 800; }
.gd-cmp__pill { border-radius: 9999px; padding: 5px 14px; background: var(--tint); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.5; }
.gd-cmp__rows { position: relative; display: grid; gap: 12px; }
.gd-cmp__rows::before { content: ""; position: absolute; left: 30.5px; top: 40px; bottom: 40px; width: 3px; border-radius: 3px; background: var(--line); opacity: .55; transform-origin: 50% 0; }
.gd-cmp__row { position: relative; isolation: isolate; display: grid; grid-template-columns: 64px 52px minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 12px 16px 12px 0; min-height: 88px; }
.gd-cmp__row::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 74px; right: 0; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(26, 43, 71, .05); }
.gd-cmp__when { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--when); color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 0 0 4px var(--bgc, transparent); }
.gd-cmp__row + .gd-cmp__row .gd-cmp__when::before { content: ""; position: absolute; left: 50%; top: -10px; width: 12px; height: 8px; translate: -50% 0; background: var(--line); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.gd-cmp__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-left: 10px; border-radius: 50%; background: var(--tint); color: var(--ink); }
.gd-cmp__ico svg { width: 32px; height: 32px; }
.gd-cmp__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-left: 4px; }
.gd-cmp__h { font-size: clamp(14px, 1.45cqw, 16.5px); font-weight: 800; line-height: 1.5; color: #1A2B47; text-wrap: pretty; }
.gd-cmp__d { font-size: clamp(12px, 1.15cqw, 13.5px); line-height: 1.7; color: #48587A; text-wrap: pretty; }
.gd-cmp__row:last-child .gd-cmp__when { background: var(--ink); color: #fff; }

.gd-cmp__result { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin-top: clamp(16px, 2.2cqw, 26px); }
.gd-cmp__res { display: flex; align-items: center; gap: clamp(12px, 2cqw, 22px); min-height: 124px; border-radius: 18px; padding: 18px clamp(16px, 2.4cqw, 28px); }
.gd-cmp__res--tool { background: #EEF1F6; }
.gd-cmp__res--biz { background: #E1F4EA; }
.gd-cmp__crowd { flex: none; width: clamp(96px, 13cqw, 150px); height: auto; }
.gd-cmp__res--tool .gd-cmp__p { fill: #C9D2DF; }
.gd-cmp__res--tool .gd-cmp__p.is-on { fill: #3D4F6E; }
.gd-cmp__res--biz .gd-cmp__p { fill: #1E9E6A; }
.gd-cmp__p { transform-box: fill-box; transform-origin: 50% 100%; }
.gd-cmp__wave { fill: none; stroke: #1E9E6A; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.gd-cmp__restxt { display: flex; flex-direction: column; min-width: 0; }
.gd-cmp__restxt small { font-size: 12px; font-weight: 700; color: #48587A; }
.gd-cmp__restxt strong { font-size: clamp(24px, 3.2cqw, 38px); font-weight: 900; line-height: 1.3; letter-spacing: .02em; }
.gd-cmp__res--tool strong { color: #3D4F6E; }
.gd-cmp__res--biz strong { color: #14603F; }
.gd-cmp__restxt > span { font-size: clamp(12px, 1.2cqw, 14px); line-height: 1.6; color: #1A2B47; text-wrap: pretty; }
.gd-cmp__gap { position: relative; z-index: 1; margin: 0 -10px; }
.gd-cmp__gap span { display: grid; place-items: center; min-width: clamp(150px, 18cqw, 210px); height: 84px; padding: 0 36px; background: linear-gradient(90deg, #3D4F6E 0%, #0D47A1 45%, #0D8C7A 100%); clip-path: polygon(0 50%, 28px 0, 28px 20%, calc(100% - 28px) 20%, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, calc(100% - 28px) 80%, 28px 80%, 28px 100%); color: #fff; font-size: clamp(15px, 1.7cqw, 20px); font-weight: 900; letter-spacing: .04em; white-space: nowrap; }

/* 登場 */
.gd-cmp.is-armed .gd-cmp__hd { opacity: 0; transform: translateY(10px); }
.gd-cmp.is-armed .gd-cmp__rows::before { transform: scaleY(0); }
.gd-cmp.is-armed .gd-cmp__row { opacity: 0; transform: translateX(var(--x)); }
.gd-cmp.is-armed .gd-cmp__when { transform: scale(.6); }
.gd-cmp.is-armed .gd-split-a { transform: translateX(5px); }
.gd-cmp.is-armed .gd-split-b { transform: translateX(-5px); }
.gd-cmp.is-armed .gd-bars rect { transform: scaleY(0); }
.gd-cmp.is-armed .gd-shrink rect { transform: scaleY(2.3); }
.gd-cmp.is-armed .gd-down { opacity: 0; transform: translateY(-4px); }
.gd-cmp.is-armed .gd-cmp__res, .gd-cmp.is-armed .gd-cmp__gap { opacity: 0; }
.gd-cmp.is-armed .gd-cmp__res--tool { transform: translateX(-16px); }
.gd-cmp.is-armed .gd-cmp__res--biz { transform: translateX(16px); }
.gd-cmp.is-armed .gd-cmp__gap { transform: scaleX(.3); }
.gd-cmp.is-armed .gd-cmp__res--tool .gd-cmp__p.is-on { fill: #C9D2DF; }
.gd-cmp.is-armed .gd-cmp__res--biz .gd-cmp__p { fill: #C4DDD1; }
.gd-cmp .gd-bars rect, .gd-cmp .gd-shrink rect { transform-box: fill-box; transform-origin: 50% 100%; }

.gd-cmp .is-play .gd-cmp__hd { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s var(--gd-ease); }
.gd-cmp .is-play .gd-cmp__rows::before { transform: none; transition: transform 1.8s cubic-bezier(.45, 0, .25, 1) .3s; }
.gd-cmp .is-play .gd-cmp__row { --t: calc(.3s + var(--i) * .45s); opacity: 1; transform: none; transition: opacity .5s ease var(--t), transform .7s var(--gd-ease) var(--t); }
.gd-cmp .is-play .gd-cmp__when { transform: none; transition: transform .55s var(--gd-pop) var(--t); }
.gd-cmp .is-play .gd-split-a, .gd-cmp .is-play .gd-split-b { transform: none; transition: transform .7s var(--gd-ease) calc(var(--t) + .45s); }
.gd-cmp .is-play .gd-bars rect { transform: none; transition: transform .6s var(--gd-ease) calc(var(--t) + .3s); }
.gd-cmp .is-play .gd-shrink rect { transform: none; transition: transform .9s var(--gd-ease) calc(var(--t) + .45s); }
.gd-cmp .is-play .gd-shrink rect:nth-child(2) { transition-delay: calc(var(--t) + .55s); }
.gd-cmp .is-play .gd-shrink rect:nth-child(3) { transition-delay: calc(var(--t) + .65s); }
.gd-cmp .is-play .gd-down { opacity: 1; transform: none; transition: opacity .3s ease calc(var(--t) + .9s), transform .4s var(--gd-ease) calc(var(--t) + .9s); }
.gd-cmp .is-play .gd-mag { animation: gd-scan-s 1.4s var(--gd-ease) calc(var(--t) + .25s) both; }
.gd-cmp .is-play .gd-pen { animation: gd-write 1.2s ease-in-out calc(var(--t) + .3s) both; }
.gd-cmp .is-play .gd-cursor { animation: gd-click 1.1s ease calc(var(--t) + .3s) both; }
.gd-cmp .is-play .gd-tick { animation: gd-blink 1.6s ease-in-out calc(var(--t) + .5s) 2 both; }
.gd-cmp .is-play .gd-gear { transform-box: fill-box; transform-origin: 50% 50%; animation: gd-spin 8s linear infinite; }
.gd-cmp .is-play.gd-cmp__result .gd-cmp__res { opacity: 1; transform: none; transition: opacity .5s ease, transform .7s var(--gd-ease); }
.gd-cmp .is-play.gd-cmp__result .gd-cmp__res--biz { transition-delay: .35s; }
.gd-cmp .is-play.gd-cmp__result .gd-cmp__gap { opacity: 1; transform: none; transition: opacity .3s ease .55s, transform .6s var(--gd-pop) .55s; }
.gd-cmp .is-play.gd-cmp__result .gd-cmp__res--tool .gd-cmp__p.is-on { fill: #3D4F6E; transition: fill .4s ease .6s; }
.gd-cmp .is-play.gd-cmp__result .gd-cmp__res--biz .gd-cmp__p { fill: #1E9E6A; transition: fill .35s ease calc(1s + var(--k) * .16s); }
.gd-cmp .is-play.gd-cmp__result .gd-cmp__wave { animation: gd-ripple-s 2.6s ease-out 1s infinite; }

@container (max-width: 780px) {
  .gd-cmp__cols { grid-template-columns: minmax(0, 1fr); }
  .gd-cmp__result { grid-template-columns: minmax(0, 1fr); justify-items: stretch; row-gap: 0; }
  .gd-cmp__gap { justify-self: center; margin: -8px 0; }
  .gd-cmp__gap span { height: 70px; min-width: 190px; }
}
@container (max-width: 440px) {
  .gd-cmp__col { padding: 14px 12px; }
  .gd-cmp__rows::before { left: 25px; }
  .gd-cmp__row { grid-template-columns: 52px minmax(0, 1fr); column-gap: 10px; padding: 12px 12px 12px 0; }
  .gd-cmp__row::before { left: 60px; }
  .gd-cmp__when { width: 52px; height: 52px; font-size: 11.5px; }
  .gd-cmp__ico { display: none; }
  .gd-cmp__res { flex-direction: column; align-items: flex-start; }
  .gd-cmp__crowd { width: 150px; }
}

/* =====================================================================
 * 3. AXの4つの層（AXとは）
 * ===================================================================== */
.gd-layers__art { position: relative; min-height: 0; }
.gd-layers__stack { position: absolute; inset: 0; width: 100%; height: 100%; }
.gd-layers__no { fill: #fff; font-family: var(--gt-en, Poppins, sans-serif); font-size: 40px; font-weight: 700; text-anchor: middle; }
.gd-layers__plate { cursor: default; }
.gd-layers__float, .gd-layers__shadow { transform-box: fill-box; transform-origin: 50% 50%; }
.gd-layers__card { transition: opacity .3s ease, transform .35s var(--gd-ease), box-shadow .35s ease; }
@media (max-width: 820px) {
  .gd-layers__art { width: min(100%, 300px); aspect-ratio: 400 / 512; margin: 0 auto; }
}

.gd-layers.is-armed .gd-layers__plate { opacity: 0; transform: translateY(-90px); }
.gd-layers.is-armed .gd-layers__shadow { opacity: 0; transform: scale(.6); }
.gd-layers.is-armed .gd-layers__card { opacity: .16; transform: translateX(18px); }
.gd-layers.is-play .gd-layers__plate { opacity: 1; transform: none; transition: opacity .3s linear calc(var(--i) * .42s), transform .85s var(--gd-pop) calc(var(--i) * .42s); }
.gd-layers.is-play .gd-layers__shadow { opacity: 1; transform: none; transition: opacity .6s ease, transform .9s var(--gd-ease); }
.gd-layers.is-play .gd-layers__card { opacity: 1; transform: none; transition: opacity .5s ease calc(var(--i) * .42s + .2s), transform .7s var(--gd-ease) calc(var(--i) * .42s + .2s); }
.gd-layers.is-play .gd-layers__chip { animation: gd-chip 1.4s var(--gd-ease) .6s both; }
.gd-layers.is-play .gd-layers__float { animation: gd-float 6s ease-in-out 2.4s infinite; }
.gd-layers.is-play .gd-layers__shadow { animation: gd-shadow 6s ease-in-out 2.4s infinite; }
/* 登場後：カードと板の連動（マウスを乗せたとき） */
.gd-layers.is-done .gd-layers__plate { transition: opacity .3s ease, transform .4s var(--gd-ease); }
.gd-layers.is-done .gd-layers__card { transition: opacity .3s ease, transform .35s var(--gd-ease), box-shadow .35s ease; }
.gd-layers[data-active] .gd-layers__plate { opacity: .35; }
.gd-layers[data-active] .gd-layers__card { opacity: .5; }
.gd-layers[data-active="1"] [data-gd-layer="1"], .gd-layers[data-active="2"] [data-gd-layer="2"], .gd-layers[data-active="3"] [data-gd-layer="3"], .gd-layers[data-active="4"] [data-gd-layer="4"] { opacity: 1; }
.gd-layers[data-active="1"] .gd-layers__plate[data-gd-layer="1"], .gd-layers[data-active="2"] .gd-layers__plate[data-gd-layer="2"], .gd-layers[data-active="3"] .gd-layers__plate[data-gd-layer="3"], .gd-layers[data-active="4"] .gd-layers__plate[data-gd-layer="4"] { transform: translateY(-14px); }
.gd-layers[data-active="1"] .gd-layers__card[data-gd-layer="1"], .gd-layers[data-active="2"] .gd-layers__card[data-gd-layer="2"], .gd-layers[data-active="3"] .gd-layers__card[data-gd-layer="3"], .gd-layers[data-active="4"] .gd-layers__card[data-gd-layer="4"] { transform: translateX(-6px); box-shadow: 0 12px 28px rgba(26, 43, 71, .18) !important; }

/* =====================================================================
 * 4. 変革の5段階（AXとは）
 * ===================================================================== */
.gd-ph { --pr: 34px; margin: clamp(30px, 4vw, 48px) 0 clamp(26px, 3vw, 38px); }
.gd-ph__steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 2.6%; align-items: end; padding: 118px var(--pr) 0 0; }
.gd-ph__step { display: flex; flex-direction: column; }
.gd-ph__badge { position: relative; z-index: 2; align-self: center; display: grid; place-items: center; width: clamp(50px, 5.2cqw, 66px); aspect-ratio: 1; margin: 0 0 20px 14px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff 0%, #EAF3FD 100%); box-shadow: 0 10px 22px rgba(13, 71, 161, .16), inset 0 0 0 1px rgba(13, 111, 209, .14); color: #0D6FD1; }
.gd-ph__badge svg { width: 54%; height: 54%; }
.gd-ph__blk { position: relative; display: flex; flex-direction: column; min-height: calc(150px + var(--i) * 4.4cqw); padding: clamp(16px, 1.8cqw, 24px) clamp(12px, 1.5cqw, 20px) 18px; border: 1px solid #CFE0F5; background: linear-gradient(180deg, #fff 0%, #EAF2FC 100%); box-shadow: 0 16px 30px rgba(13, 71, 161, .08); }
.gd-ph__blk::before { content: ""; position: absolute; left: -1px; right: -1px; bottom: 100%; height: 14px; border: 1px solid #CFE0F5; border-bottom: 0; background: #F6FAFF; transform: skewX(-45deg); transform-origin: 0 100%; }
.gd-ph__blk::after { content: ""; position: absolute; left: 100%; top: -1px; bottom: -1px; width: 14px; border: 1px solid #CFE0F5; border-left: 0; background: #D3E3F6; transform: skewY(-45deg); transform-origin: 0 0; }
.gd-ph__no { font-family: var(--gt-en, Poppins, sans-serif); font-size: clamp(18px, 2cqw, 26px); font-weight: 600; line-height: 1.1; color: #0D6FD1; }
.gd-ph__no::after { content: ""; display: block; width: 28px; height: 2px; margin: 8px 0 12px; background: currentColor; }
.gd-ph__ttl { font-size: clamp(15px, 1.75cqw, 21px); font-weight: 900; line-height: 1.45; color: #1A2B47; }
.gd-ph__txt { margin-top: 6px; font-size: clamp(12px, 1.2cqw, 14px); line-height: 1.75; color: #48587A; text-wrap: pretty; }
.gd-ph__step--goal .gd-ph__blk { border-color: #0D47A1; background: linear-gradient(165deg, #2A7FE6 0%, #0D47A1 100%); box-shadow: 0 22px 40px rgba(13, 71, 161, .3); }
.gd-ph__step--goal .gd-ph__blk::before { border-color: #0D47A1; background: #4C98F0; }
.gd-ph__step--goal .gd-ph__blk::after { border-color: #0D47A1; background: #0A3A86; }
.gd-ph__step--goal .gd-ph__no, .gd-ph__step--goal .gd-ph__ttl, .gd-ph__step--goal .gd-ph__txt { color: #fff; }
.gd-ph__step--goal .gd-ph__badge { background: radial-gradient(circle at 35% 28%, #4AA3F5 0%, #0D5BC8 100%); color: #fff; box-shadow: 0 14px 30px rgba(13, 71, 161, .38), 0 0 0 6px rgba(255, 255, 255, .75); }
.gd-ph__callout { position: absolute; top: 0; left: calc(50% - var(--pr) / 2); z-index: 3; translate: -50% 0; white-space: nowrap; }
.gd-ph__callout span { display: block; padding: 12px 26px; border-radius: 12px; background: #10284F; box-shadow: 0 12px 26px rgba(16, 40, 79, .26); color: #fff; font-size: clamp(14px, 1.6cqw, 19px); font-weight: 800; letter-spacing: .02em; }
.gd-ph__over { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.gd-ph__marker { opacity: 0; }
.gd-ph__gear, .gd-ph__rocket, .gd-ph__ray { transform-box: fill-box; transform-origin: 50% 50%; }

.gd-ph.is-armed .gd-ph__blk { opacity: 0; transform: translateY(46px); }
.gd-ph.is-armed .gd-ph__badge { opacity: 0; transform: scale(.4); }
.gd-ph.is-armed:not(.is-stuck) .gd-ph__callout { opacity: 0; transform: translateY(-14px); }
.gd-ph.is-armed .gd-ph__callout { transition: opacity .4s ease, transform .6s var(--gd-pop); }
.gd-ph.is-armed:not(.is-stuck) .gd-ph__reveal--drop, .gd-ph.is-armed:not(.is-bridge) .gd-ph__reveal--bridge { stroke-dasharray: 100; stroke-dashoffset: 100; }
.gd-ph.is-armed .gd-ph__reveal--drop { stroke-dasharray: 100; transition: stroke-dashoffset .5s ease .2s; }
.gd-ph.is-armed .gd-ph__reveal--bridge { stroke-dasharray: 100; transition: stroke-dashoffset .9s cubic-bezier(.45, 0, .25, 1); }
.gd-ph.is-armed:not(.is-stuck) .gd-ph__dot { opacity: 0; }
.gd-ph.is-armed .gd-ph__dot { transition: opacity .3s ease .6s; }
.gd-ph.is-armed:not(.is-bridge) .gd-ph__head { opacity: 0; }
.gd-ph.is-armed .gd-ph__head { transition: opacity .25s ease .75s; }
.gd-ph.is-armed:not(.is-launch) .gd-ph__launch { opacity: 0; transform: translate(-30px, 30px) scale(.4); }
.gd-ph.is-armed .gd-ph__launch { transform-box: fill-box; transform-origin: 0 100%; transition: opacity .4s ease, transform .9s var(--gd-ease); }
.gd-ph.is-play .gd-ph__blk { opacity: 1; transform: none; transition: opacity .5s ease calc(var(--i) * .16s), transform .8s var(--gd-ease) calc(var(--i) * .16s); }
.gd-ph.is-play .gd-ph__badge { opacity: 1; transform: none; transition: opacity .3s ease calc(.45s + var(--i) * .16s), transform .55s var(--gd-pop) calc(.45s + var(--i) * .16s); }
.gd-ph.is-play .gd-ph__ray { animation: gd-blink 2.4s ease-in-out 1s 2 both; }
.gd-ph.is-stuck .gd-ph__step--stop .gd-ph__gear { animation: gd-jam .7s ease both; }
.gd-ph.is-launch .gd-ph__step--goal .gd-ph__badge { animation: gd-launch 1s var(--gd-ease) both; }
.gd-ph.is-done .gd-ph__step--goal .gd-ph__badge { animation: gd-bob 3.6s ease-in-out infinite; }

@container (max-width: 700px) {
  .gd-ph__steps { grid-template-columns: minmax(0, 1fr); row-gap: 12px; align-items: stretch; padding: 0; }
  .gd-ph__steps::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px; background: #CFE0F5; }
  .gd-ph__step { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; column-gap: 14px; }
  .gd-ph__badge { width: 52px; margin: 0; }
  .gd-ph__blk { min-height: 0; margin-right: calc((4 - var(--i)) * 5%); padding: 14px 16px; border-radius: 12px; }
  .gd-ph__blk::before, .gd-ph__blk::after { display: none; }
  .gd-ph__no::after { display: none; }
  .gd-ph__no { font-size: 15px; }
  .gd-ph__ttl { font-size: 16px; }
  .gd-ph__txt { margin-top: 2px; font-size: 13px; }
  .gd-ph__callout { position: relative; left: auto; top: auto; translate: none; grid-column: 1 / -1; margin: 6px 0 2px; white-space: normal; text-align: center; }
  .gd-ph__callout span { display: inline-block; padding: 10px 18px; font-size: 14px; }
  .gd-ph__over { display: none; }
}

/* =====================================================================
 * 5. AIは4つ目の資源ではない（ミッション）
 * ===================================================================== */
.gd-res { max-width: 1080px; margin: 0 auto; }
.gd-res__map { --g: clamp(12px, 3cqw, 40px); --drop: clamp(34px, 4.4cqw, 50px); position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); }
.gd-res__hub { position: relative; z-index: 2; grid-column: 2; grid-row: 1; justify-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: clamp(128px, 18cqw, 196px); aspect-ratio: 1; border-radius: 50%; text-align: center; color: #fff; background: radial-gradient(circle at 38% 30%, #3584E6 0%, #0D47A1 55%, #0A2F6E 100%); box-shadow: 0 0 0 8px rgba(30, 136, 229, .12), 0 18px 40px rgba(13, 71, 161, .32); }
.gd-res__orbit { position: absolute; inset: -17px; border-radius: 50%; border: 2px dotted #5AA7EE; pointer-events: none; }
.gd-res__ai { font-family: var(--gt-en, Poppins, sans-serif); font-size: clamp(34px, 4.6cqw, 54px); font-weight: 700; line-height: 1; }
.gd-res__hubtxt { font-size: clamp(11px, 1.25cqw, 14px); font-weight: 700; line-height: 1.5; }
.gd-res__wires { --edge: calc((100% - 2 * var(--g)) / 6); position: relative; z-index: 1; grid-column: 1 / -1; grid-row: 1; pointer-events: none; }
.gd-res__w { position: absolute; display: block; background: #1E88E5; }
.gd-res__w--hl, .gd-res__w--hr { top: calc(50% - 1.5px); height: 3px; }
.gd-res__w--hl { left: var(--edge); right: 50%; border-radius: 3px 0 0 3px; transform-origin: 100% 50%; }
.gd-res__w--hr { left: 50%; right: var(--edge); border-radius: 0 3px 3px 0; transform-origin: 0 50%; }
.gd-res__w--vl, .gd-res__w--vr { top: 50%; bottom: calc(-1 * var(--drop) + 14px); width: 3px; transform-origin: 50% 0; }
.gd-res__w--vl { left: calc(var(--edge) - 1.5px); }
.gd-res__w--vr { right: calc(var(--edge) - 1.5px); }
.gd-res__w--vl::after, .gd-res__w--vr::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 16px; height: 13px; translate: -50% 100%; background: inherit; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.gd-res__w--vc { left: calc(50% - 1.5px); top: 100%; width: 3px; height: var(--drop); background: #12B39C; transform-origin: 50% 0; }
.gd-res__w--vc::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 11px; height: 11px; translate: -50% 50%; border-radius: 50%; background: #12B39C; }
.gd-res__w::before { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px currentColor, 0 0 14px 4px rgba(90, 180, 240, .7); color: #1E88E5; opacity: 0; translate: -50% -50%; }
.gd-res__w--hl::before, .gd-res__w--hr::before { top: 50%; }
.gd-res__w--vl::before, .gd-res__w--vr::before, .gd-res__w--vc::before { left: 50%; }
.gd-res__w--vc::before { color: #12B39C; }
.gd-res__items { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); margin-top: var(--drop); }
.gd-res__item { --bd: #8EC2F2; --tint: #E3F0FD; --ink: #1565C0; display: flex; align-items: center; gap: clamp(10px, 1.6cqw, 18px); min-width: 0; border-radius: 9999px; border: 2px solid var(--bd); background: #fff; padding: clamp(12px, 1.6cqw, 18px) clamp(16px, 2.4cqw, 30px) clamp(12px, 1.6cqw, 18px) clamp(12px, 1.6cqw, 18px); box-shadow: 0 12px 28px rgba(26, 43, 71, .08); }
.gd-res__item--mid { --bd: #5ED0BE; --tint: #DDF5F0; --ink: #0E9A86; }
.gd-res__ico { position: relative; flex: none; display: grid; place-items: center; width: clamp(48px, 6cqw, 70px); aspect-ratio: 1; border-radius: 50%; background: var(--tint); color: var(--ink); }
.gd-res__ico svg { width: 52%; height: 52%; }
.gd-res__ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; }
.gd-res__txt { display: flex; flex-direction: column; min-width: 0; }
.gd-res__txt strong { font-size: clamp(26px, 3.6cqw, 42px); font-weight: 900; line-height: 1.15; color: #10284F; }
.gd-res__txt > span { font-size: clamp(12px, 1.4cqw, 15px); font-weight: 700; line-height: 1.5; color: #1A2B47; word-break: keep-all; overflow-wrap: anywhere; }
.gd-res__base { position: relative; height: 24px; margin: 18px 5% 0; border: 2px solid #C9DCF3; border-top: 0; border-radius: 0 0 16px 16px; }
.gd-res__base span { position: absolute; left: 50%; bottom: 0; translate: -50% 50%; border-radius: 9999px; border: 1px solid #C9DCF3; background: #F7FAFE; padding: 4px 16px; color: #3D5A87; font-size: clamp(11.5px, 1.2cqw, 13px); font-weight: 700; white-space: nowrap; }
.gd-res__msg { position: relative; margin: 44px 0 0; text-align: center; font-size: clamp(19px, 3cqw, 34px); font-weight: 900; line-height: 1.6; letter-spacing: .01em; color: #10284F; text-wrap: balance; }
.gd-res__msg::before { content: ""; position: absolute; left: 50%; top: -30px; width: 18px; height: 12px; translate: -50% 0; background: #5AA7EE; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.gd-res__msg em { position: relative; display: inline-block; font-style: normal; font-size: 1.22em; color: #1565C0; }
.gd-res__msg em::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 2px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #0097A7, #1E88E5); transform-origin: 0 50%; opacity: .75; }

.gd-res.is-armed .gd-res__hub { opacity: 0; transform: scale(.6); }
.gd-res.is-armed .gd-res__w--hl, .gd-res.is-armed .gd-res__w--hr { transform: scaleX(0); }
.gd-res.is-armed .gd-res__w--vl, .gd-res.is-armed .gd-res__w--vr, .gd-res.is-armed .gd-res__w--vc { transform: scaleY(0); }
.gd-res.is-armed .gd-res__item { opacity: 0; transform: translateY(16px); }
.gd-res.is-armed .gd-res__base, .gd-res.is-armed .gd-res__msg { opacity: 0; transform: translateY(12px); }
.gd-res.is-armed .gd-res__msg em::after { transform: scaleX(0); }
.gd-res.is-play .gd-res__hub { opacity: 1; transform: none; transition: opacity .4s ease, transform .8s var(--gd-pop); }
.gd-res.is-play .gd-res__w--hl, .gd-res.is-play .gd-res__w--hr { transform: none; transition: transform .55s var(--gd-ease) .5s; }
.gd-res.is-play .gd-res__w--vl, .gd-res.is-play .gd-res__w--vr { transform: none; transition: transform .45s var(--gd-ease) 1s; }
.gd-res.is-play .gd-res__w--vc { transform: none; transition: transform .45s var(--gd-ease) .8s; }
.gd-res.is-play .gd-res__item { opacity: 1; transform: none; transition: opacity .45s ease calc(1.3s + var(--i) * .12s), transform .7s var(--gd-pop) calc(1.3s + var(--i) * .12s); }
.gd-res.is-play .gd-res__base { opacity: 1; transform: none; transition: opacity .5s ease 1.9s, transform .6s var(--gd-ease) 1.9s; }
.gd-res.is-play .gd-res__msg { opacity: 1; transform: none; transition: opacity .6s ease 2.2s, transform .7s var(--gd-ease) 2.2s; }
.gd-res.is-play .gd-res__msg em::after { transform: none; transition: transform .7s var(--gd-ease) 2.8s; }
.gd-res.is-play .gd-res__orbit { animation: gd-spin 24s linear infinite; }
.gd-res.is-play .gd-res__w::before { animation: gd-pulse-h 3.4s ease-in-out 2.6s infinite both; }
.gd-res.is-play .gd-res__w--hl::before { animation-name: gd-pulse-hl; }
.gd-res.is-play .gd-res__w--vl::before, .gd-res.is-play .gd-res__w--vr::before { animation-name: gd-pulse-v; }
.gd-res.is-play .gd-res__w--vc::before { animation-name: gd-pulse-c; }
.gd-res.is-play .gd-res__ico { animation: gd-ping 3.4s ease 2.6s infinite both; }
.gd-res.is-play .gd-res__ico::after { animation: gd-ping-ring 3.4s ease-out 2.6s infinite both; }

@container (max-width: 560px) {
  .gd-res__item { flex-direction: column; justify-content: flex-start; gap: 6px; border-radius: 18px; padding: 14px 6px 12px; text-align: center; }
  .gd-res__txt { align-items: center; }
  .gd-res__txt > span { font-size: 11.5px; }
  .gd-res__base { margin: 16px 2% 0; }
}

/* =====================================================================
 * 6. 事業の循環（ミッション）
 * ===================================================================== */
.gd-cyc__map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 20cqw, 250px) minmax(0, 1.05fr); grid-template-areas: "n1 la n2" "lc . n2" "n3 lb n2"; row-gap: 22px; padding-left: clamp(40px, 5cqw, 62px); }
.gd-cyc__node { position: relative; z-index: 1; border-radius: 16px; transition: box-shadow .45s ease, transform .45s var(--gd-ease); }
.gd-cyc__node--1 { grid-area: n1; }
.gd-cyc__node--2 { grid-area: n2; align-self: center; }
.gd-cyc__node--3 { grid-area: n3; }
.gd-cyc__node--1, .gd-cyc__node--3 { border: 1px solid #CFE0F5; background: linear-gradient(180deg, #fff 0%, #F4F8FE 100%); padding: clamp(16px, 2cqw, 24px) clamp(16px, 2.4cqw, 30px); box-shadow: 0 12px 28px rgba(26, 43, 71, .07); }
.gd-cyc__node--2 { padding: clamp(22px, 2.8cqw, 34px) clamp(18px, 2.6cqw, 34px); background: radial-gradient(circle at 80% 90%, rgba(90, 180, 240, .45), rgba(90, 180, 240, 0) 50%), linear-gradient(150deg, #1E6FD9 0%, #0D47A1 100%); color: #fff; text-align: center; box-shadow: 0 20px 44px rgba(13, 71, 161, .3); }
.gd-cyc__hd { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gd-cyc__node--2 .gd-cyc__hd { flex-direction: column; gap: 4px; }
.gd-cyc__num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #1E88E5, #0D47A1); color: #fff; font-family: var(--gt-en, Poppins, sans-serif); font-size: 18px; font-weight: 700; }
.gd-cyc__node--2 .gd-cyc__num { width: auto; height: auto; background: none; font-size: 22px; }
.gd-cyc__hd strong { font-size: clamp(16px, 1.9cqw, 22px); font-weight: 900; line-height: 1.45; }
.gd-cyc__fn { display: block; border-radius: 9999px; padding: 11px 16px; background: linear-gradient(90deg, #0D47A1, #1E6FD9 55%, #0D47A1); box-shadow: 0 8px 18px rgba(13, 71, 161, .22); color: #fff; font-size: clamp(15px, 1.75cqw, 20px); font-weight: 800; letter-spacing: .06em; text-align: center; }
.gd-cyc__pair { display: grid; gap: 6px; margin-bottom: 14px; }
.gd-cyc__pair .gd-cyc__fn { border-radius: 10px; background: #fff; box-shadow: none; color: #0D47A1; padding: 14px 12px; letter-spacing: .03em; }
.gd-cyc__x { font-size: 26px; font-weight: 400; line-height: 1; }
.gd-cyc__txt { margin-top: 12px; font-size: clamp(12.5px, 1.3cqw, 14.5px); font-weight: 500; line-height: 1.8; text-wrap: pretty; }
.gd-cyc__node--2 .gd-cyc__txt { margin-top: 0; font-size: clamp(11.5px, 1.2cqw, 13.5px); opacity: .92; }
.gd-cyc__lbl { position: relative; z-index: 1; align-self: center; justify-self: center; border-radius: 10px; border: 1px solid #CFE0F5; background: #fff; padding: 9px 16px; box-shadow: 0 6px 16px rgba(26, 43, 71, .06); font-size: clamp(12px, 1.3cqw, 14.5px); font-weight: 700; line-height: 1.6; text-align: center; }
.gd-cyc__lbl--a { grid-area: la; align-self: start; margin-top: -8px; }
.gd-cyc__lbl--b { grid-area: lb; align-self: end; margin-bottom: -8px; }
.gd-cyc__lbl--c { grid-area: lc; justify-self: start; margin-left: -12px; }
/* 横並びのとき：ラベル a・b は矢印の中ほどに載せる（diagrams.js が位置を計算） */
.gd-cyc.is-placed .gd-cyc__lbl--a, .gd-cyc.is-placed .gd-cyc__lbl--b { grid-area: auto; position: absolute; left: 0; top: 0; margin: 0; white-space: nowrap; translate: var(--lx, 0) var(--ly, 0); }
.gd-cyc__over { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.gd-cyc__token { opacity: 0; transition: opacity .25s ease; }
.gd-cyc__token.is-live { opacity: 1; }
.gd-cyc .gd-cyc__node.is-hot, .gd-cyc.is-play .gd-cyc__node.is-hot { transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(34, 192, 232, .35), 0 18px 40px rgba(13, 71, 161, .2); }
.gd-cyc__msg { display: flex; flex-direction: column; gap: 8px; margin-top: clamp(28px, 4cqw, 44px); text-align: center; }
.gd-cyc__msg strong { font-size: clamp(18px, 2.6cqw, 30px); font-weight: 900; line-height: 1.5; color: #0D47A1; text-wrap: balance; }
.gd-cyc__msg span { font-size: clamp(12.5px, 1.4cqw, 15px); line-height: 1.8; color: #48587A; text-wrap: pretty; }

.gd-cyc.is-armed .gd-cyc__node, .gd-cyc.is-armed .gd-cyc__lbl { opacity: 0; transform: translateY(16px); }
.gd-cyc.is-armed .gd-cyc__path--a, .gd-cyc.is-armed .gd-cyc__path--b { stroke-dasharray: 100; stroke-dashoffset: 100; }
.gd-cyc.is-armed .gd-cyc__path--c, .gd-cyc.is-armed .gd-cyc__head, .gd-cyc.is-armed .gd-cyc__msg { opacity: 0; }
.gd-cyc.is-play .gd-cyc__node { --t: calc(var(--i) * .85s); opacity: 1; transform: none; transition: opacity .5s ease var(--t), transform .7s var(--gd-ease) var(--t), box-shadow .45s ease; }
.gd-cyc.is-play .gd-cyc__lbl { opacity: 1; transform: none; transition: opacity .5s ease calc(var(--i) * .85s + .55s), transform .6s var(--gd-ease) calc(var(--i) * .85s + .55s); }
.gd-cyc.is-play .gd-cyc__path--a, .gd-cyc.is-play .gd-cyc__path--b { stroke-dashoffset: 0; transition: stroke-dashoffset .7s cubic-bezier(.45, 0, .25, 1) calc(var(--i) * .85s + .4s); }
.gd-cyc.is-play .gd-cyc__path--c { opacity: 1; transition: opacity .6s ease 2.1s; animation: gd-march-c 1.2s linear 2.1s infinite; }
.gd-cyc.is-play .gd-cyc__head { opacity: 1; transition: opacity .25s ease calc(var(--i) * .85s + 1s); }
.gd-cyc.is-play .gd-cyc__msg { opacity: 1; transition: opacity .8s ease 2.6s; }
.gd-cyc.is-done .gd-cyc__node { transition: box-shadow .45s ease, transform .45s var(--gd-ease); }

@container (max-width: 760px) {
  .gd-cyc__map { grid-template-columns: minmax(0, 1fr); grid-template-areas: "n1" "la" "n2" "lb" "n3" "lc"; row-gap: 12px; padding-left: 30px; }
  .gd-cyc__lbl--a, .gd-cyc__lbl--b { margin: 0; align-self: center; }
  .gd-cyc__lbl--c { justify-self: center; margin: 4px 0 0; }
}

/* =====================================================================
 * キーフレーム
 * ===================================================================== */
@keyframes gd-spin { to { transform: rotate(360deg); } }
@keyframes gd-march { to { stroke-dashoffset: -14; } }
@keyframes gd-march-c { to { stroke-dashoffset: -30; } }
@keyframes gd-scan { 0% { transform: translate(-22px, -8px); } 45% { transform: translate(12px, 4px); } 100% { transform: none; } }
@keyframes gd-scan-s { 0% { transform: translate(-4px, 6px); } 45% { transform: translate(5px, -3px); } 100% { transform: none; } }
@keyframes gd-hit { 0%, 100% { transform: none; } 30% { transform: translateX(-2px) scale(1.04); } 60% { transform: translateX(2px); } }
@keyframes gd-ripple { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22); } }
@keyframes gd-ripple-s { 0% { opacity: .6; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes gd-wave { 0%, 100% { transform: none; } 50% { transform: skewY(-8deg) scaleX(.9); } }
@keyframes gd-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes gd-write { 0%, 100% { transform: none; } 20% { transform: translate(-3px, 2px); } 40% { transform: translate(1px, 0); } 60% { transform: translate(-2px, 2px); } 80% { transform: translate(1px, -1px); } }
@keyframes gd-click { 0% { transform: translate(-6px, -6px); } 60% { transform: none; } 75% { transform: scale(.85); } 100% { transform: none; } }
@keyframes gd-chip { 0%, 100% { transform: none; background: rgba(255, 255, 255, .18); } 30% { transform: scale(1.08); background: rgba(255, 255, 255, .38); } }
@keyframes gd-float { 0%, 100% { transform: none; } 50% { transform: translateY(-7px); } }
@keyframes gd-shadow { 0%, 100% { transform: none; opacity: 1; } 50% { transform: scaleX(.93); opacity: .8; } }
@keyframes gd-jam { 0% { transform: rotate(0); } 40% { transform: rotate(40deg); } 55% { transform: rotate(28deg); } 70% { transform: rotate(36deg); } 100% { transform: rotate(32deg); } }
@keyframes gd-launch { 0% { transform: none; } 30% { transform: scale(1.14); } 100% { transform: none; } }
@keyframes gd-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-5px); } }
@keyframes gd-pulse-h { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 34% { left: 100%; opacity: 1; } 38%, 100% { left: 100%; opacity: 0; } }
@keyframes gd-pulse-hl { 0% { left: 100%; opacity: 0; } 4% { opacity: 1; } 34% { left: 0; opacity: 1; } 38%, 100% { left: 0; opacity: 0; } }
@keyframes gd-pulse-v { 0%, 34% { top: 0; opacity: 0; } 36% { opacity: 1; } 58% { top: 100%; opacity: 1; } 62%, 100% { top: 100%; opacity: 0; } }
@keyframes gd-pulse-c { 0%, 30% { top: 0; opacity: 0; } 34% { opacity: 1; } 58% { top: 100%; opacity: 1; } 62%, 100% { top: 100%; opacity: 0; } }
@keyframes gd-ping { 0%, 58%, 100% { transform: none; } 64% { transform: scale(1.12); } 74% { transform: none; } }
@keyframes gd-ping-ring { 0%, 58% { opacity: 0; transform: scale(1); } 62% { opacity: .8; transform: scale(1); } 86%, 100% { opacity: 0; transform: scale(1.5); } }

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