/* ===========================================================================
   SolutionsCoding -- 特長: alternating rows (framed AVATAR CODING window +
   text column), the shared mini-window vocabulary, crops 01 (スキル) and 02
   (エージェント). Port of the ChatOps .co-feat rows with this page's names.
     coding-feat-2.css  crops 03-05, caption, terms, and ALL motion of the
                        特長 + 選ばれる理由 crops (one vocabulary, one file)
     coding-why.css     選ばれる理由 band + rows + micro-windows
   The window reuses the hero's visual language (coding-hero*.css): navy bar,
   orange brand tile, tinted request bubble, the green check. Nothing inside
   a crop is clickable: no border-on-hover, no hover at all (aria-hidden).
   Every rule here is a FINAL frame; start states live in coding-feat-2.css
   under html.cd-motion [data-cd-latch]:not(.cd-seen) only.
   Type floor (owner rule 2026-10-04): Japanese >= 13px, Latin >= 12px.
   Inside the windows: titles 14px, bubbles / labels 13px, brand / code 12px.
   =========================================================================== */
.cd-feat, .cd-why {
  --acc: #B8531A; --acc-ink: #9A4413; --tint: #FBEFE7; --edge: #E8C2A8;
  --cd-chrome: #102A43; --cd-mark: #E07A3E;
  --cd-line: #E3E6EA; --cd-line-2: #EEF1F4; --cd-rule: #C6D3E0;
  --cd-ok: #2A7240; --cd-ok-tint: #EAF5EC;        /* 5.2:1 */
  --cd-know: #1D5E94; --cd-know-tint: #E8F0F8;    /* 5.9:1 */
  --cd-neu: #46566A; --cd-neu-tint: #EEF1F4;      /* 6.6:1 */
  --cd-gfx: #7E93A8;                              /* graphics only */
  --cd-stage: linear-gradient(145deg, #F6E7DC 0%, #EEF0F3 58%, #E8ECF0 100%);   /* = hero stage */
  --cd-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- rows: picture first in the DOM, sides swap on even rows -------- */
.cd-feat { display: grid; row-gap: clamp(64px, 7.4vw, 112px); margin-top: clamp(36px, 4vw, 60px); }
.cd-feat-row { --stage-h: 360px; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 24px; align-items: center; }
.cd-feat-text { min-width: 0; }
@media (min-width: 760px) {
  .cd-feat-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 4.4vw, 72px); }
  .cd-feat-row:nth-child(even) > .cd-feat-stage { grid-column: 2; grid-row: 1; }
  .cd-feat-row:nth-child(even) > .cd-feat-text { grid-column: 1; grid-row: 1; }
}
@media (min-width: 1024px) {
  .cd-feat-row { --stage-h: 400px; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
  .cd-feat-row:nth-child(even) { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); }
}
/* number 01-05 in the accent with a short rule (replaces the ChatOps eyebrow icon) */
.cd-feat-no { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.18em; line-height: 1.5; color: var(--acc); font-variant-numeric: tabular-nums; }
.cd-feat-no::after { content: ""; width: 28px; height: 2px; background: var(--acc); }
.cd-feat-h { margin: 0 0 14px; font-size: clamp(20px, 1.8vw, 25px); font-weight: 700; line-height: 1.55; color: var(--navy); }
.cd-feat-h > span { display: inline-block; }
.cd-feat-p { margin: 0; font-family: 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 2; color: var(--muted); word-break: auto-phrase; overflow-wrap: break-word; }

/* ---------- the crop: tinted stage, window inset top-left, bleeding off the
   right and bottom edges (cut from a larger screen). The stage is the size
   container; the window has a fixed height from 440px of crop width and
   grows with its content below that. */
.cd-feat-stage { --inset: 16px; position: relative; overflow: hidden; padding: var(--inset) 0 0 var(--inset); border-radius: 12px; background: var(--cd-stage); container-type: inline-size; pointer-events: none; user-select: none; -webkit-user-select: none; }
@media (min-width: 760px) { .cd-feat-stage { --inset: 24px; border-radius: 14px; } }
@media (min-width: 1024px) { .cd-feat-stage { --inset: 32px; border-radius: 16px; } }
.cd-feat-win { display: flex; flex-direction: column; height: calc(var(--stage-h) - var(--inset)); overflow: hidden; border-radius: 8px 0 0 0; background: #FFF; box-shadow: 0 1px 2px rgba(16,42,67,0.08), 0 20px 40px -28px rgba(16,42,67,0.4); font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; font-size: 13px; line-height: 1.6; color: var(--ink); }
@container (max-width: 439.98px) { .cd-feat-win { height: auto; } }
.cd-feat-win > * { flex-shrink: 0; }
:where(.cd-feat-stage, .cd-why-ui) :where(p, ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.cd-feat-stage, .cd-why-ui) svg { display: block; flex: none; }
.cd-feat-ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cd-feat-stage code, .cd-feat-cli { font-family: var(--cd-mono); }

/* navy bar = the hero's top bar, scaled down */
.cd-feat-top { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: var(--cd-chrome); color: #FFF; white-space: nowrap; }
.cd-feat-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.cd-feat-brand svg { width: 18px; height: 18px; }
/* panel header: accent icon, title, quiet note */
.cd-feat-hd { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-bottom: 1px solid var(--cd-line); white-space: nowrap; }
.cd-feat-hd > .cd-feat-ic { color: var(--acc); }
.cd-feat-hd b { font-size: 14px; color: var(--navy); }
.cd-feat-hd small { font-size: 13px; color: var(--muted); }
.cd-feat-v1 .cd-feat-hd small { margin-left: -4px; }
@container (max-width: 339.98px) { .cd-feat-v2 .cd-feat-hd small, .cd-feat-v3 .cd-feat-hd small, .cd-feat-v4 .cd-feat-hd small, .cd-feat-v5 .cd-feat-hd small { display: none; } }

/* ---------- shared parts: avatar, message, bubble, tag, check ------------- */
.cd-feat-av { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #3E6A8F; font-size: 13px; font-weight: 700; font-style: normal; line-height: 1; color: #FFF; }
.cd-feat-av[data-c="2"] { background: var(--navy-mid); }
.cd-feat-av[data-c="ai"] { background: #FFF url("assets/coding-ai-face.webp") center / cover no-repeat; color: transparent; box-shadow: 0 0 0 1px rgba(16, 42, 67, 0.14); }   /* NAL's AI character "Avatar" wherever the assistant speaks; the "AI" text stays for screen readers */
.cd-feat-msg { display: flex; align-items: flex-start; gap: 8px; }
.cd-feat-msg > div { min-width: 0; flex: 1 1 auto; }
.cd-feat-msg--self { flex-direction: row-reverse; }
.cd-feat-msg--self > div { display: flex; flex-direction: column; align-items: flex-end; }
.cd-feat-who { margin-bottom: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.cd-feat-who b { margin-right: 1px; color: var(--navy); }
.cd-feat-bub { display: inline-block; max-width: 100%; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: var(--tint); font: 400 13px/1.65 'Noto Sans JP', sans-serif; color: var(--navy); word-break: auto-phrase; overflow-wrap: break-word; }
.cd-feat-msg--self .cd-feat-bub { border-radius: 12px 12px 4px 12px; }
.cd-feat-bub--ai { background: #F1F3F5; color: var(--ink); }
.cd-feat-bub code { padding: 0 4px; border-radius: 3px; background: #FFF; box-shadow: inset 0 0 0 1px var(--cd-line); font-size: 12px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.cd-feat-tag { flex: none; padding: 0 6px; border-radius: 3px; background: var(--cd-neu-tint); font-size: 13px; font-weight: 700; line-height: 20px; color: var(--cd-neu); white-space: nowrap; }
.cd-feat-tag[data-k="acc"] { background: var(--tint); color: var(--acc-ink); }
.cd-feat-tag[data-k="know"] { background: var(--cd-know-tint); color: var(--cd-know); }
/* the hero's green check */
.cd-feat-ck { display: grid; place-items: center; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--cd-ok); font-style: normal; }
.cd-feat-ck::after { content: ""; width: 6px; height: 3.5px; margin-top: -2px; border: solid #FFF; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.cd-feat-ok, .cd-feat-done { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; background: var(--cd-ok-tint); font-weight: 700; color: var(--cd-ok); white-space: nowrap; }
.cd-feat-ok { align-self: start; justify-self: start; margin-left: 32px; padding: 2px 9px 2px 4px; font-size: 13px; line-height: 20px; transform-origin: left center; }

/* ---------- 01 スキル: two people, one standard. Lanes stack in narrow crops,
   sit side by side from 440px; the shared result bar closes the window. */
.cd-feat-v1__body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.cd-feat-lane { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 14px; }
.cd-feat-lane + .cd-feat-lane { border-top: 1px solid var(--cd-line-2); }
@container (min-width: 440px) {
  /* the two lanes share row tracks (subgrid): request, AI answer and chip line
     up across both people, so the two identical results land side by side */
  .cd-feat-v1__body { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; align-content: stretch; }
  .cd-feat-lane { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; row-gap: 10px; align-content: start; padding: 18px 16px; }
  .cd-feat-lane + .cd-feat-lane { border-top: 0; border-left: 1px solid var(--cd-line-2); }
}
.cd-feat-foot { display: flex; align-items: center; gap: 8px; margin: 0 14px 14px; padding: 8px 12px; border-radius: 8px; background: var(--tint); font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--acc-ink); }

/* ---------- 02 エージェント: four stages, a line walks through them -------- */
.cd-feat-v2__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.cd-feat-task { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--navy); }
.cd-feat-flow { --leg0: scaleX(0); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 44px 4px 40px; border: 1px solid var(--cd-line); border-radius: 10px; }
.cd-feat-node { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; min-width: 0; text-align: center; }
.cd-feat-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #FFF; box-shadow: inset 0 0 0 1.5px var(--cd-rule); }
.cd-feat-dot .cd-feat-ck { width: 26px; height: 26px; }
.cd-feat-dot .cd-feat-ck::after { width: 9px; height: 5px; border-width: 0 0 2px 2px; }
/* legs: grey track, orange progress on top; each runs from the previous dot */
.cd-feat-node + .cd-feat-node::before, .cd-feat-node + .cd-feat-node::after { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--cd-line); transform-origin: left center; }
.cd-feat-node + .cd-feat-node::after { background: var(--acc); }
.cd-feat-node__b { display: grid; gap: 1px; min-width: 0; }
.cd-feat-node__b b { font-size: 14px; line-height: 1.5; color: var(--navy); }
.cd-feat-node__b small { font-size: 13px; line-height: 1.5; color: var(--muted); }
.cd-feat-done { align-self: flex-start; margin-top: auto; padding: 5px 12px 5px 6px; font-size: 13px; line-height: 20px; }
.cd-feat-done .cd-feat-ck { width: 16px; height: 16px; }
/* narrow crops: the same flow, top to bottom */
@container (max-width: 439.98px) {
  .cd-feat-v2__body { gap: 12px; padding: 14px; }
  .cd-feat-flow { --leg0: scaleY(0); grid-template-columns: minmax(0, 1fr); padding: 6px 14px; }
  .cd-feat-node { grid-template-columns: 26px minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 12px; min-height: 48px; text-align: left; }
  .cd-feat-node__b { display: flex; align-items: baseline; gap: 10px; }
  .cd-feat-node + .cd-feat-node::before, .cd-feat-node + .cd-feat-node::after { top: auto; right: auto; left: 12px; bottom: 50%; width: 2px; height: 100%; transform-origin: center top; }
  .cd-feat-done { margin-top: 0; }
}
