/* ===========================================================================
   SolutionsCoding -- 選ばれる理由: photo band + ruled reason rows, each with a
   flat AVATAR CODING micro-window (264x136, aria-hidden decoration; sized for
   the type floor: Japanese 13px, Latin 12px).
   Port of the ChatOps .co-why rows. Colour tokens, the check (.cd-feat-ck)
   and the motion vocabulary (.cd-feat-in / .cd-feat-pop) come from
   coding-feat.css / coding-feat-2.css. Final frame = default; start states
   only under html.cd-motion [data-cd-latch]:not(.cd-seen).
   No .dc-term lives in this section, so the rising titles / texts never hold
   a popover.
   =========================================================================== */
.cd-why-lead { margin: 12px 0 0; max-width: 860px; font-family: 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 2; color: var(--muted); }
@supports not (word-break: auto-phrase) { .cd-why-lead, .cd-feat-cap { word-break: keep-all; } }
.cd-why { margin-top: clamp(28px, 3vw, 40px); }
.cd-why-band { margin: 0 0 clamp(32px, 3.4vw, 48px); }
/* wide band 2400:974; phones get their own 4:3 cut through <picture> */
.cd-why-frame { overflow: hidden; aspect-ratio: 2400 / 974; background: var(--surface-2); }
.cd-why-frame > picture { display: block; height: 100%; }
.cd-why-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 599.98px) { .cd-why-frame { aspect-ratio: 4 / 3; } }

/* ---------- ruled rows: window | title | text (desktop) ------------------- */
.cd-why-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); }
.cd-why-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding: 24px 0 28px; }
/* the row rule is a pseudo-element so it can draw from the left */
.cd-why-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cd-rule); transform-origin: left center; }
.cd-why-h { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--navy); }
.cd-why-h > span { display: inline-block; }
.cd-why-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; }
@media (min-width: 600px) {
  .cd-why-item { grid-template-columns: 264px minmax(0, 1fr); column-gap: 32px; row-gap: 8px; }
  .cd-why-ui { grid-row: 1 / span 2; }
}
@media (min-width: 1024px) {
  .cd-why-item { grid-template-columns: 264px minmax(0, 17em) minmax(0, 1fr); column-gap: clamp(32px, 3.4vw, 56px); align-items: start; padding: 32px 0; }
  .cd-why-ui { grid-row: auto; }
}

/* ---------- micro-window: same stage tint + bleeding window as 特長 -------- */
.cd-why-ui { position: relative; width: 264px; height: 136px; overflow: hidden; padding: 10px 0 0 10px; border-radius: 8px; background: var(--cd-stage); pointer-events: none; user-select: none; -webkit-user-select: none; }
.cd-why-win { height: 100%; overflow: hidden; border-radius: 6px 0 0 0; background: #FFF; box-shadow: 0 1px 2px rgba(16,42,67,0.08); font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; font-size: 13px; line-height: 1.5; color: var(--ink); }
.cd-why-bar { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; background: var(--cd-chrome); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: #FFF; white-space: nowrap; }
.cd-why-bar svg { width: 14px; height: 14px; }
/* rows 02-04: a light header strip, not the navy brand bar, so the list does not stack
   four identical bars (consistency is not repetition; only row 01 carries the brand) */
.cd-why-hd { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-bottom: 1px solid #E3E6EA; background: #F4F6F8; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: #46566A; white-space: nowrap; }
.cd-why-hd svg { width: 13px; height: 13px; fill: none; stroke: #B8531A; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cd-why-ui .cd-feat-ck { width: 14px; height: 14px; }
.cd-why-ui .cd-feat-ck::after { width: 6px; height: 3.5px; border-width: 0 0 1.5px 1.5px; }
.cd-why-ring { position: relative; display: grid; place-items: center; flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--cd-rule); }
.cd-why-ring > i { position: absolute; inset: 0; border-radius: 50%; }

/* 01: this week, Mon-Fri, each day marked */
.cd-why-cap { padding: 8px 10px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.cd-why-week { display: grid; grid-template-columns: repeat(5, 32px); gap: 10px; padding: 8px 10px 0; }
.cd-why-week li { display: grid; justify-items: center; gap: 4px; }
.cd-why-week span { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.cd-why-week .cd-why-ring { width: 16px; height: 16px; }
.cd-why-week .cd-why-ring > i { background: var(--acc); }

/* 02: model picker; the mark moves Claude -> Gemini (row = 20px) */
.cd-why-models { --row: 20px; position: relative; padding: 3px 0 0; -webkit-mask-image: linear-gradient(#000 83px, transparent 102px); mask-image: linear-gradient(#000 83px, transparent 102px); }   /* row 5 fades out: the list goes on */
.cd-why-models img { flex: none; width: 12px; height: 12px; }
.cd-why-models .cd-why-more { font-weight: 500; color: var(--muted); }
.cd-why-models .cd-why-more::before { visibility: hidden; }
.cd-why-models p { position: relative; display: flex; align-items: center; gap: 7px; height: var(--row); padding: 0 10px; font-size: 13px; font-weight: 700; color: var(--navy); }
.cd-why-models p::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--cd-rule); }
.cd-why-pick { position: absolute; left: 0; right: 0; top: 3px; height: var(--row); background: var(--tint); box-shadow: inset 2px 0 0 var(--acc); transform: translateY(calc(2 * var(--row))); }
.cd-why-pick::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--acc); box-shadow: inset 0 0 0 2px var(--tint), 0 0 0 1.5px var(--acc); }

/* 03: connections; 04: checklist */
.cd-why-rows { padding: 4px 0 0; }
.cd-why-rows li { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-bottom: 1px solid var(--cd-line-2); white-space: nowrap; }
.cd-why-rows li:last-child { border-bottom: 0; }
.cd-why-rows svg { width: 13px; height: 13px; fill: none; stroke: var(--cd-neu); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cd-why-rows b { font-size: 13px; color: var(--navy); }
.cd-why-ok { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding-right: 12px; font-size: 13px; font-weight: 700; color: var(--cd-ok); transform-origin: right center; }
.cd-why-checks .cd-why-ring { width: 15px; height: 15px; }
.cd-why-checks .cd-feat-ck { width: 15px; height: 15px; }

/* ---------- motion: band wipe, then per row (--o x 160ms): rule draws,
   title +90ms, text +170ms, the micro-window plays its own --t ------------- */
html.cd-motion [data-cd-latch]:not(.cd-seen) .cd-why-frame { clip-path: inset(0 100% 0 0); }
html.cd-motion [data-cd-latch]:not(.cd-seen) .cd-why-img { transform: scale(1.04); }
html.cd-motion .cd-seen .cd-why-frame { clip-path: inset(0); transition: clip-path var(--dur-2) var(--ease-soft) calc(var(--o, 0) * 160ms); }
html.cd-motion .cd-seen .cd-why-img { transition: transform 1.4s var(--ease-out) calc(var(--o, 0) * 160ms); }
html.cd-motion .cd-why-item[data-cd-latch]:not(.cd-seen)::after { transform: scaleX(0); }
html.cd-motion .cd-why-item.cd-seen::after { transition: transform var(--dur-2) var(--ease-out) calc(var(--o, 0) * 160ms); }
html.cd-motion .cd-why-item[data-cd-latch]:not(.cd-seen) :is(.cd-why-h, .cd-why-p) { opacity: 0; transform: translateY(12px); }
html.cd-motion .cd-why-item.cd-seen :is(.cd-why-h, .cd-why-p) { transition: opacity var(--dur-1) var(--ease-soft), transform var(--dur-1) var(--ease-out); transition-delay: calc(var(--o, 0) * 160ms + 90ms); }
html.cd-motion .cd-why-item.cd-seen .cd-why-p { transition-delay: calc(var(--o, 0) * 160ms + 170ms); }
html.cd-motion [data-cd-latch]:not(.cd-seen) .cd-why-pick { transform: none; }
html.cd-motion .cd-seen .cd-why-pick { transition: transform 0.4s var(--ease-soft) calc(var(--o, 0) * 160ms + var(--t, 0ms)); }
