/* ===========================================================================
   SolutionsSales preview -- 特長 (FRAGMENT:feat), part 1: layout, text column,
   shared crop atoms. Part 2 (sales-feat-2.css) = crops 01-02, part 3
   (sales-feat-3.css) = crops 03-05, part 4 (sales-feat-4.css) = motion.
   No rule in one part overrides another, so load order does not matter.

   The section is sec--line (white page) so it alternates with the tinted
   画面イメージ band above it. Each crop shows a view the hero and the mockup
   do not: 01 two drafts side by side, 02 reply triage, 03 run status,
   04 sender settings, 05 report.

   Zig-zag rows: product crop (.sa-stage.sa-feat-shot, aria-hidden, not
   clickable: no border, shadow or hover) + text column (label, h3, p).
   DOM order is crop -> text, so stacked rows (< 1024px) show the picture
   first; from 1024px even rows swap sides by grid placement only.

   Container queries: the base styles ARE the compact crop, readable at any
   width. @container rules only add columns once the crop is wide enough, so
   a browser without container queries gets the compact crop.
   =========================================================================== */
.sa-feat-list { display: grid; row-gap: clamp(64px, 7.4vw, 112px); margin-top: clamp(36px, 4vw, 60px); }
.sa-feat-row { --sa-feat-h: 400px; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 24px; align-items: center; }
/* Below 1024px a half-width crop is too small to read (about 350px at 768),
   so rows stay stacked: picture on top, text below. */
@media (min-width: 1024px) {
  .sa-feat-row { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); column-gap: clamp(40px, 4.4vw, 72px); }
  .sa-feat-row:nth-child(even) { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); }
  .sa-feat-row:nth-child(even) > .sa-feat-shot { grid-column: 2; grid-row: 1; }
  .sa-feat-row:nth-child(even) > .sa-feat-text { grid-column: 1; grid-row: 1; }
}

/* ---- text column ----------------------------------------------------------
   Label = stroke icon + number + function name, in the accent ink
   (#6E4585 on #FFF 7.9:1). Body --muted on #FFF 5.6:1. */
.sa-feat-text { min-width: 0; max-width: 40em; }
.sa-feat-eye { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.5; color: var(--sa-acc-ink); }
.sa-feat-eye svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sa-feat-no { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.sa-feat-no::after { content: ""; width: 1px; height: 12px; background: currentColor; opacity: 0.4; }
.sa-feat-h { margin: 0 0 14px; font-size: clamp(20px, 1.8vw, 25px); font-weight: 700; line-height: 1.55; color: var(--navy); word-break: auto-phrase; }
.sa-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; text-wrap: pretty; }
.sa-feat-cap { margin-top: clamp(48px, 5vw, 72px); }

/* ---- crop frame: fixed window height once the crop is 440px wide ---------- */
.sa-feat-shot { container-type: inline-size; }
.sa-feat-win { display: flex; flex-direction: column; }
@container (min-width: 440px) { .sa-feat-shot > .sa-feat-win { height: calc(var(--sa-feat-h) - var(--inset)); } }
.sa-feat-shot svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sa-feat-shot table { margin: 0; }
/* Extra lines only where the crop has room for them. */
.sa-feat-shot .sa-feat-more { display: none; }
@container (min-width: 460px) {
  .sa-feat-shot li.sa-feat-more { display: flex; }
  .sa-feat-shot tr.sa-feat-more { display: table-row; }
}

/* User chip at the right of the product bar (sales-ui .sa-top). */
.sa-feat-me { display: grid; place-items: center; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font-size: 12px; font-weight: 700; color: var(--white); }

/* Page header inside a window: title, sub page, meta at the right. */
.sa-feat-ph { flex: none; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--sa-hair); white-space: nowrap; }
.sa-feat-ph b { font-size: 13px; color: var(--navy); }
.sa-feat-ph__sub { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sa-feat-ph__sub::before { content: "›"; color: #7E93A8; }
.sa-feat-ph__meta { display: inline-flex; align-items: center; gap: 4px; min-width: 0; margin-left: auto; overflow: hidden; font-size: 13px; color: var(--muted); text-overflow: ellipsis; }
@container (max-width: 379.98px) { .sa-feat-ph__meta:not(.sa-feat-ok) { display: none; } }
/* Positive state text: green #237A52 on #FFF 5.43:1. */
.sa-feat-ok { color: var(--st-nur); font-weight: 700; }
.sa-feat-live { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Tabs under a page header (03 run status, 05 report). */
.sa-feat-tabs { flex: none; display: flex; gap: 16px; padding: 0 14px; border-bottom: 1px solid var(--sa-hair); white-space: nowrap; }
.sa-feat-tabs span { font-size: 13px; line-height: 32px; color: var(--muted); }
.sa-feat-tabs .is-on { font-weight: 700; color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }

/* Two-line cell: name + role / detail. */
.sa-feat-2l { display: grid; min-width: 0; line-height: 1.45; }
.sa-feat-2l > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-feat-2l b { font-size: 13px; color: var(--navy); }
.sa-feat-2l small { font-size: 13px; color: var(--muted); }

/* Selected row: quiet surface + accent bar (the AI tint stays for AI marks). */
.sa-feat-sel { position: relative; }
.sa-feat-sel::before { content: ""; position: absolute; inset: 0; background: var(--surface-2); box-shadow: inset 3px 0 0 var(--sa-acc); }
.sa-feat-sel > * { position: relative; }

/* Flat chips. --muted on --sa-flat 4.93:1; "--on" = navy chip, #FFF 14.5:1. */
.sa-feat-tag { flex: none; padding: 0 6px; border-radius: 3px; background: var(--sa-flat); font-size: 13px; font-weight: 700; line-height: 20px; color: var(--muted); white-space: nowrap; }
.sa-feat-tag--on { background: var(--navy); color: var(--white); }

/* Footnote line inside a window, check icon in green. */
.sa-win .sa-feat-note { display: flex; align-items: center; gap: 6px; padding: 10px 14px 12px; font-size: 13px; color: var(--muted); }
.sa-feat-note svg { color: var(--st-nur); }

/* Overlay slot: typing dots and the AI text share one cell, so the dots
   never add height. Dots exist only while motion plays (sales-feat-4.css). */
.sa-feat-type { display: grid; }
.sa-feat-type > * { grid-area: 1 / 1; }
.sa-feat-dots { display: none; align-self: start; }
.sa-feat-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--sa-acc); }

/* 03 at phone widths: step names wrap instead of being cut ("返信なし：2通目を送信"
   carries the branch meaning, so an ellipsis loses it). */
@media (max-width: 399.98px) {
  .sa-feat-v3 .sa-feat-2l > * { white-space: normal; overflow: visible; }
  .sa-feat-v3 .sa-feat-steps li { height: auto; min-height: 46px; padding-block: 8px; }
}
