/* ===== 図で見せる(納期・料金・直し・流れ・組み合わせ)2026-10-11 試作 =====
   言葉は強み 01〜03 の動く図(strengths-motion.css)にそろえる:
   - 面: LED の点の地(シアンの点 6px)+ 1px の --edge の枠
   - 色: シアン = ノーマル・コンテの段 / ピンク = ターボ・はじめから無料の直し / 点線 = 掲載のご協力でふえる分 / 黄 = お金がかかる所
   - 字: ラベルは明朝 800(--mono)、数字の読みは本文のゴシック
   動かすのは transform と opacity だけ。画面に入ったときに 1 回だけ出る(.in)。
   動きを減らす設定・「動きを止める」・JS なしでは、はじめから終わりの形で見える */
.dg { --dg-ease: var(--ease, cubic-bezier(0.16, 1, 0.3, 1)); --dg-led: radial-gradient(circle, rgba(69, 200, 255, 0.16) 0 32%, transparent 40%) 0 0 / 6px 6px, #02040a;
  margin: 0; display: grid; gap: 14px; min-width: 0; width: 100%; max-width: 760px; padding: 18px 16px 16px; border: 1px solid var(--line); background: var(--panel); }
.dg-h { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.4; color: var(--ink); }
.dg-h small { font-family: var(--body); font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.dg-lab { font-family: var(--mono); font-weight: 800; font-size: var(--label); letter-spacing: 0.06em; line-height: 1.3; color: var(--muted); }
.dg-notes { margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 3px; color: var(--muted); font-size: 0.78rem; line-height: 1.65; }
.dg-notes li { padding-left: 1em; text-indent: -1em; }
.dg-notes li::before { content: "※ "; }
html.lang-en .dg-notes li::before { content: "* "; }
.dg-key { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8rem; color: var(--soft); }
.dg-key li { display: inline-flex; align-items: center; gap: 6px; }
.dg-key i { width: 18px; height: 8px; flex: 0 0 auto; }
.dg-key small { white-space: nowrap; color: var(--muted); font-size: 0.74rem; }
.k-n { background: var(--cyan); }
.k-t { background: var(--pink); }
.k-y { background: var(--amber); }
.dg-amt { color: var(--amber); font-weight: 700; }

/* ---------- 1 納期: 3 つそろったらスタート → 長さごとの帯(ノーマル / ターボ) ---------- */
.dg-gate { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; }
.dg-gate ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.dg-gate li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; font-size: 0.76rem !important; border: 1px solid #3a4266; font-size: 0.8rem; font-weight: 700; color: var(--ink); background: #0b0e1e; }
.dg-gate li::before { content: ""; width: 9px; height: 5px; margin-top: -3px; border: solid var(--cyan); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.dg-go { margin: 0; display: grid; justify-items: center; gap: 2px; font-size: 0.74rem; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.35; }
.dg-go b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); font-family: var(--body); font-size: 0.62rem; letter-spacing: 0; font-weight: 700; }
.dg-axis { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 10px; align-items: end; }
.dg-axis .sc { position: relative; height: 1.3em; }
.dg-axis .sc span { position: absolute; transform: translateX(-50%); font-family: var(--mono); font-weight: 800; font-size: 0.68rem; color: var(--muted); }
.dg-axis .sc span:first-child { transform: none; }
.dg-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.dg-row { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.dg-len { font-family: var(--display); font-weight: 800; font-size: 0.95rem; color: var(--ink); line-height: 1.2; }
.dg-len small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.68rem; color: var(--muted); }
.dg-track { position: relative; height: 34px; outline: 1px solid var(--edge); background: var(--dg-led);
  /* 1 目盛り = 1 営業日 / 24 時間(全体 5 目盛り) */
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), rgba(31, 78, 102, 0.9) calc(20% - 1px) 20%), radial-gradient(circle, rgba(69, 200, 255, 0.16) 0 32%, transparent 40%); background-size: auto, 6px 6px; }
.dg-track .dg-b { position: absolute; left: 0; width: calc(var(--v) * 20%); transform-origin: 0 50%; }
.dg-track .dg-bn { top: 4px; height: 12px; background: repeating-linear-gradient(90deg, var(--cyan) 0 calc(100% / var(--v) - 2px), transparent calc(100% / var(--v) - 2px) calc(100% / var(--v))); box-shadow: 0 0 10px rgba(69, 200, 255, 0.35); }
.dg-track .dg-bt { bottom: 4px; height: 10px; background: var(--pink); box-shadow: 0 0 10px rgba(255, 61, 139, 0.45); }
.dg-track .dg-next { position: absolute; top: 1px; left: 20%; height: 18px; width: 0; border-left: 2px solid #fff; }
.dg-val { grid-column: 2; margin: 0; display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 0.82rem; line-height: 1.5; }
.dg-val .vn { color: var(--cyan); }
.dg-val .vt { color: var(--pink); }
.dg-val b { color: var(--ink); font-weight: 700; }
.dg-val small { color: var(--soft); font-size: 0.74rem; }
.dg-step { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 10px; align-items: center; font-size: 0.78rem; color: var(--soft); }
.dg-step p { margin: 0; padding: 5px 9px; border: 1px dashed #3a4266; }
.dg-step p b { color: var(--cyan); }
.dg-step p b.t { color: var(--pink); }

/* ---------- 2 料金: 1本 = 4分 のブロックで積む(段々) ---------- */
.dg-price { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.dg-price caption { text-align: left; padding: 0 0 8px; }
.dg-price th, .dg-price td { padding: 5px 6px 5px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; color: var(--soft); font-weight: 400; }
.dg-price thead th { border-top: 0; padding-top: 0; font-family: var(--mono); font-weight: 800; font-size: 0.66rem; letter-spacing: 0.06em; color: var(--muted); vertical-align: bottom; line-height: 1.35; }
.dg-price tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; width: 4rem; }
.dg-price td.yen { text-align: right; white-space: nowrap; color: var(--amber); font-weight: 700; }
.dg-price td.opt { text-align: right; white-space: nowrap; color: var(--soft); font-size: 0.76rem; padding-right: 0; }
.dg-price thead th:nth-last-child(-n+2) { text-align: right; }
.dg-price thead th:last-child { padding-right: 0; }
.dg-price .cnt { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.dg-price .cnt em { font-style: normal; font-size: 0.7rem; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.dg-price { --u: 0.9rem; }
.dg-blk { display: block; flex: 0 0 auto; height: 14px; width: calc(var(--n) * var(--u)); transform-origin: 0 50%;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 calc(var(--u) - 3px), transparent calc(var(--u) - 3px) var(--u)); opacity: 0.9; }
.dg-price tr.base th, .dg-price tr.base td { background: rgba(255, 61, 139, 0.08); }
.dg-price tr.base .dg-blk { background: repeating-linear-gradient(90deg, var(--pink) 0 calc(var(--u) - 3px), transparent calc(var(--u) - 3px) var(--u)); }
.dg-price tr.base em { color: var(--pink); font-weight: 700; }
.dg-price .exn { display: block; font-weight: 400; font-size: 0.66rem; line-height: 1.3; color: var(--pink); white-space: nowrap; }
.dg-rule { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.78rem; color: var(--soft); }
.dg-rule > span { padding: 3px 8px; border: 1px dashed #3a4266; }
.dg-rule b { color: var(--ink); }

/* ---------- 3 直し: 回数を丸で数える ---------- */
.dg-lane { display: grid; gap: 8px; padding: 12px 12px 10px; outline: 1px solid var(--edge); background: var(--dg-led); }
.dg-lane-h { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-weight: 700; font-size: 0.86rem; color: var(--ink); }
.dg-lane-h .dg-lab { color: var(--cyan); }
.dg-cnt { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 4px 8px; align-items: center; }
.dg-cnt > b { font-size: 0.76rem; color: var(--ink); line-height: 1.3; }
.dg-cnt > b small { display: block; font-weight: 400; font-size: 0.68rem; color: var(--muted); }
.dg-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.dg-dots i { width: 15px; height: 15px; border-radius: 50%; flex: 0 0 auto; }
.dg-dots .f { background: var(--pink); box-shadow: 0 0 8px rgba(255, 61, 139, 0.5); }
.dg-dots .fc { background: var(--cyan); box-shadow: 0 0 8px rgba(69, 200, 255, 0.45); }
.dg-dots .p { border: 2px solid var(--cyan); }
.dg-dots .y { display: grid; place-items: center; background: var(--amber); color: #1a1200; font-style: normal; font-weight: 800; font-size: 0.6rem; }
.dg-dots .plus { width: auto; height: auto; border-radius: 0; font-style: normal; font-size: 0.8rem; color: var(--muted); padding: 0 2px; }
.dg-dots .sum { width: auto; height: auto; border-radius: 0; font-style: normal; font-size: 0.8rem; font-weight: 700; color: var(--ink); margin-left: 2px; }
.dg-dots .sum.br { flex-basis: 100%; margin-left: 0; }
.dg-pay { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--soft); }
.dg-pay .dg-dots i { width: 15px; height: 15px; }
.dg-decide { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 700; color: var(--ink); }
.dg-decide::before, .dg-decide::after { content: ""; flex: 1 1 auto; height: 0; border-top: 2px solid var(--pink); }
.dg-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.dg-chips li { padding: 4px 9px; border: 1px solid #3a4266; background: #0b0e1e; font-size: 0.78rem; color: var(--soft); line-height: 1.45; }
.dg-chips li b { color: var(--ink); }
.dg-key .k-f { width: 12px; height: 12px; border-radius: 50%; background: var(--pink); }
.dg-key .k-p { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--cyan); }
.dg-key .k-c { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); }
.dg-key .k-y { width: 12px; height: 12px; border-radius: 50%; }

/* ---------- 4 流れ: 1 本の線(スマホは縦、パソコンは横) ---------- */
.dg-flow { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; counter-reset: dgs; }
.dg-flow > li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 12px; padding: 0 0 14px; }
.dg-flow > li::before { counter-increment: dgs; content: counter(dgs); grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--edge); background: var(--dg-led); font-family: var(--mono); font-weight: 800; font-size: 0.9rem; color: var(--ink); position: relative; z-index: 1; }
.dg-flow > li::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: #2c3360; transform-origin: 50% 0; }
.dg-flow > li:last-child::after { display: none; }
.dg-flow b { font-size: 0.9rem; color: var(--ink); line-height: 1.4; }
.dg-flow p { grid-column: 2; margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.55; }
.dg-flow p em { font-style: normal; color: var(--cyan); }
.dg-flow p .dg-amt { font-size: 0.78rem; }
.dg-flow > li.gate { padding-bottom: 14px; }
.dg-flow > li.gate::before { counter-increment: none; content: "▶"; border-color: var(--ink); background: var(--ink); color: var(--bg); font-size: 0.7rem; border-radius: 50%; }
.dg-flow > li.gate b { color: var(--ink); }
.dg-flow > li.gate .dg-gate ul { margin-top: 4px; }
.dg-flow > li.clock::after, .dg-flow > li.gate::after { background: var(--pink); }
.dg-flow > li.clock::before { border-color: var(--pink); }
.dg-flow .dg-loop { display: inline-block; margin-top: 4px; padding: 2px 8px; border: 1px dashed var(--cyan); color: var(--soft); font-size: 0.74rem; }
.dg-flow .dg-loop::before { content: "↺ "; color: var(--cyan); }

/* ---------- 5 組み合わせ(8分まで) ---------- */
.dg-mx { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 0.8rem; margin: -4px; width: calc(100% + 8px); }
.dg-mx th, .dg-mx td { padding: 8px 8px; text-align: left; vertical-align: top; line-height: 1.4; }
.dg-mx thead th { font-family: var(--mono); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.04em; color: var(--muted); vertical-align: bottom; padding-bottom: 2px; }
.dg-mx thead th small, .dg-mx tbody th small { display: block; font-family: var(--body); font-weight: 700; letter-spacing: 0; font-size: 0.72rem; color: var(--amber); }
.dg-mx tbody th { font-weight: 700; color: var(--ink); width: 5.6rem; border-left: 3px solid var(--cyan); background: #0b0e1e; }
.dg-mx tbody tr.t th { border-left-color: var(--pink); }
.dg-mx tbody tr.u th { border-left-color: var(--muted); color: var(--muted); font-size: 0.74rem; }
.dg-mx td { outline: 1px solid var(--edge); background: var(--dg-led); }
.dg-mx thead td { background: none; outline: 0; }
.dg-mx td b { display: block; font-family: var(--display); font-weight: 800; font-size: 0.98rem; line-height: 1.2; color: var(--ink); }
.dg-mx tr.n td b { color: var(--cyan); }
.dg-mx tr.t td b { color: var(--pink); }
.dg-mx td small { display: block; font-size: 0.7rem; color: var(--soft); }
.dg-mx tr.u td { background: transparent; outline: 1px dashed #3a4266; color: var(--muted); }
.dg-mx tr.u td b { font-family: var(--body); font-weight: 700; font-size: 0.8rem; color: var(--muted); }
.dg-mx .soon { font-size: 0.62rem; }

/* ---------- パソコン ---------- */
@media (min-width: 760px) {
  .dg { padding: 24px 26px 20px; gap: 16px; }
  .dg-h { font-size: 1.2rem; }
  .dg-row, .dg-axis, .dg-step { grid-template-columns: 6rem minmax(0, 1fr); }
  .dg-track { height: 38px; }
  .dg-flow { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 10px; }
  .dg-flow > li { grid-template-columns: minmax(0, 1fr); grid-template-rows: 30px auto auto; padding: 0; }
  .dg-flow > li::before { grid-row: 1; }
  .dg-flow > li::after { left: 30px; right: -10px; top: 14px; bottom: auto; width: auto; height: 2px; transform-origin: 0 50%; }
  .dg-flow p { grid-column: 1; }
  .dg-flow b { padding-top: 6px; }
  .dg-cnt { grid-template-columns: 7rem minmax(0, 1fr); }
  .dg-mx td b { font-size: 1.2rem; }
  .dg-mx tbody th { width: 9rem; }
  .dg-dots i { width: 18px; height: 18px; }
  .dg-price .cnt { display: flex; align-items: center; gap: 8px; }
  .dg-price .cnt em { font-size: 0.76rem; }
  .dg-price { --u: 1.5rem; font-size: 0.88rem; }
}

/* ---------- 画面に入ったときに 1 回だけ(transform と opacity だけ) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.dg-js:not(.motion-paused) .dg:not(.in) :is(.dg-track .dg-b, .dg-blk) { transform: scaleX(0); }
  html.dg-js:not(.motion-paused) .dg:not(.in) :is(.dg-dots i, .dg-track .dg-next, .dg-gate li, .dg-flow > li, .dg-mx td) { opacity: 0; transform: translateY(4px); }
  html.dg-js:not(.motion-paused) .dg:not(.in) .dg-go { opacity: 0; }
  html.dg-js .dg.in .dg-track .dg-b, html.dg-js .dg.in .dg-blk { transition: transform 620ms var(--dg-ease) calc(var(--k, 0) * 70ms + 120ms); }
  html.dg-js .dg.in :is(.dg-dots i, .dg-track .dg-next, .dg-gate li, .dg-flow > li, .dg-mx td) { transition: opacity 180ms steps(3, end) calc(var(--k, 0) * 60ms + 80ms), transform 320ms var(--dg-ease) calc(var(--k, 0) * 60ms + 80ms); }
  html.dg-js .dg.in .dg-go { transition: opacity 180ms steps(3, end) 420ms; }
}

/* 料金の表: メニューの枠の中(幅が狭い)でも、右の列が切れないようにする */
@media (max-width: 430px) {
  .dg-price { font-size: 0.76rem; --u: 0.62rem; }
  .dg-price th, .dg-price td { padding-right: 4px; }
  .dg-price tbody th { width: auto; }
  .dg-price td.opt { font-size: 0.7rem; }
  .dg-price .cnt em { font-size: 0.64rem; }
  .dg-price thead th { font-size: 0.6rem; letter-spacing: 0.02em; }
}
