/* ===========================================================================
   SolutionsSales -- HERO, part 2/3: the 4 scenes inside the window.
   Every rule here is the FINAL frame (what no-JS / reduced motion shows).
   Start states and timing live in sales-hero-3.css, only under .is-live.
   Text pairs: --ink/--navy on #FFF & tints >= 9:1, --muted on #FFF 5.3:1,
   on --sa-rail 5.0:1; #FFF on --sa-acc 5.79:1; --st-lead-tx on --st-lead 7.9:1.
   =========================================================================== */

.sa-hero-scene > * { flex-shrink: 0; }
.sa-hero-hd { display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 0 0 10px; }
.sa-hero-t { font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.sa-hero-note { font-size: 13px; line-height: 1.55; color: var(--muted); }
.sa-hero-end, .sa-hero-sortchip, .sa-hero-state, .sa-hero-prio { margin-left: auto; }
.sa-hero-btn { position: relative; display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 5px; background: var(--navy); font-size: 13px; font-weight: 700; line-height: 20px; color: var(--white); white-space: nowrap; }
.sa-hero-toast { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; background: var(--navy); font-size: 13px; line-height: 1.45; color: var(--white); box-shadow: 0 10px 24px -10px rgba(16, 42, 67, 0.6); white-space: nowrap; }

/* ---- ① 発掘: company list scored by AI -------------------------------------- */
.sa-hero-sub2 { margin: -6px 0 10px; }
.sa-hero-tbl { border: 1px solid var(--sa-hair); border-radius: 6px; overflow: hidden; }
.sa-hero-th, .sa-hero-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.9fr) 62px; align-items: center; gap: 8px; padding: 0 10px 0 12px; }
.sa-hero-th { height: 28px; background: var(--sa-rail); border-bottom: 1px solid var(--sa-hair); font-size: 13px; color: var(--muted); }
.sa-hero-c4 { position: relative; justify-self: end; }
.sa-hero-rows { position: relative; }
.sa-hero-row { position: relative; height: 36px; background: var(--white); box-shadow: inset 0 -1px 0 var(--sa-hair); }
.sa-hero-row:last-of-type { box-shadow: none; }
.sa-hero-co { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; color: var(--navy); white-space: nowrap; }
.sa-hero-row .sa-co { width: 22px; height: 22px; font-size: 12px; }
.sa-hero-first { padding: 0 6px; border-radius: 3px; background: var(--sa-acc); font-size: 13px; line-height: 20px; color: var(--white); white-space: nowrap; }
.sa-hero-row.is-top { z-index: 2; }
.sa-hero-row.is-top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #FBF7FC; }
.sa-hero-row.is-top::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sa-acc); }
.sa-hero-dash { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; color: var(--muted); opacity: 0; }
.sa-hero-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: auto !important; padding: 8px 10px; border: 1px solid var(--sa-hair); border-left: 3px solid var(--sa-acc); border-radius: 0 6px 6px 0; font-size: 13px; color: var(--navy); }
.sa-hero-pickx { font-weight: 700; }
.sa-hero-pick > .sa-hero-btn { margin-left: auto; }
.sa-hero-scan { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 36px; background: linear-gradient(90deg, rgba(128, 84, 150, 0) 0%, rgba(128, 84, 150, 0.16) 35%, rgba(128, 84, 150, 0.16) 65%, rgba(128, 84, 150, 0) 100%); box-shadow: inset 0 -2px 0 rgba(128, 84, 150, 0.55); opacity: 0; pointer-events: none; }

/* ---- ② アプローチ: AI draft, waiting for the person ------------------------- */
.sa-hero-state { display: grid; }
.sa-hero-state > * { grid-area: 1 / 1; justify-self: end; }
.sa-hero-busy { opacity: 0; }
.sa-hero-mail { border: 1px solid var(--sa-hair); border-radius: 6px; }
.sa-hero-f { display: flex; gap: 10px; padding: 6px 12px; border-bottom: 1px solid var(--sa-hair); color: var(--navy); }
.sa-hero-fl { flex: none; width: 34px; font-size: 13px; color: var(--muted); }
.sa-hero-f:nth-child(2) { font-weight: 700; }
.sa-hero-txt { padding: 8px 12px 10px; line-height: 1.75; color: var(--ink); }
.sa-hero-type { display: block; width: fit-content; max-width: 100%; white-space: nowrap; }
.sa-hero-f .sa-hero-type { display: inline-block; }
.sa-hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: auto; padding-top: 10px; }
.sa-hero-act { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.sa-hero-wait { padding: 0 7px; border-radius: 3px; background: var(--st-lead); font-size: 13px; font-weight: 700; line-height: 20px; color: var(--st-lead-tx); white-space: nowrap; }
.sa-hero-cursor { position: absolute; right: 12px; top: 13px; width: 14px; height: 18px; background: var(--ink); clip-path: polygon(0 0, 0 78%, 26% 60%, 44% 100%, 58% 94%, 40% 56%, 76% 56%); opacity: 0; filter: drop-shadow(0 0 1px #FFF); }
.sa-hero-toast--sent { top: 14px; right: 16px; opacity: 0; }

/* ---- ③ 反応: measured reactions + reply detected ---------------------------- */
.sa-hero-sent { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--sa-hair); border-radius: 6px; }
.sa-hero-sentx { display: flex; flex-direction: column; min-width: 0; color: var(--navy); }
.sa-hero-marks { display: flex; gap: 6px; margin: 10px 0 8px !important; }
.sa-hero-marks li { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px 1px 7px; border: 1px solid var(--sa-hair); border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 20px; color: var(--navy); }
.sa-hero-marks li::before { content: "✓"; color: var(--st-nur); }
.sa-hero-marks li.is-reply { border-color: var(--sa-acc); background: var(--sa-tint); color: var(--sa-acc-ink); }
.sa-hero-marks li.is-reply::before { color: var(--sa-acc-ink); }
.sa-hero-log li { display: flex; align-items: center; gap: 10px; padding: 5px 2px; border-bottom: 1px dashed var(--sa-hair); font-size: 13px; color: var(--ink); }
.sa-hero-log time { flex: none; width: 36px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sa-hero-log span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sa-hero-log span::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sa-rule); }
.sa-hero-log li.is-reply { font-weight: 700; color: var(--sa-acc-ink); }
.sa-hero-log li.is-reply span::before { background: var(--sa-acc); }
.sa-hero-toast--reply { right: 16px; bottom: 16px; }
.sa-hero-toast--reply > span { display: flex; flex-direction: column; font-size: 13px; color: var(--sa-chrome-tx); }
.sa-hero-toast--reply b { font-size: 13px; color: var(--white); }
.sa-hero-bell { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sa-acc); box-shadow: inset 0 0 0 6px var(--sa-acc), inset 0 0 0 11px #FFF; }
.sa-hero-bell::after { content: ""; position: absolute; inset: 0; border: 2px solid #A88BBA; border-radius: 50%; opacity: 0; }

/* ---- ④ フォロー: AI reads the reply ------------------------------------------ */
.sa-hero-scene--3 .sa-hero-hd .sa-hero-t { font-size: 14px; }
.sa-hero-prio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sa-hero-quote { position: relative; overflow: hidden; padding: 8px 12px; border-left: 3px solid var(--sa-rule); border-radius: 0 6px 6px 0; background: var(--sa-rail); color: var(--ink); }
.sa-hero-lbl { font-size: 13px; font-weight: 700; color: var(--muted); }
.sa-hero-read { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, rgba(128, 84, 150, 0), rgba(128, 84, 150, 0.18), rgba(128, 84, 150, 0)); opacity: 0; pointer-events: none; }
.sa-hero-sum { margin: 8px 0 !important; padding: 7px 12px; border-radius: 6px; background: var(--sa-tint); color: var(--ink); font-weight: 700; }
.sa-hero-next { padding: 9px 12px 10px; border: 1px solid var(--sa-hair); border-left: 3px solid var(--sa-acc); border-radius: 0 6px 6px 0; }
.sa-hero-nhd { color: var(--navy); }
.sa-hero-sum > .sa-ai, .sa-hero-nhd > .sa-ai { margin-right: 8px; vertical-align: 1px; }
.sa-hero-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 !important; color: var(--ink); }
.sa-hero-blanks { display: inline-flex; gap: 6px; }
.sa-hero-blanks > span { padding: 0 8px; border: 1px dashed #A88BBA; border-radius: 4px; font-size: 13px; line-height: 20px; color: var(--sa-acc-ink); white-space: nowrap; }
.sa-hero-nft { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }

/* ---- phone: secondary details drop out, text stays full-size --------------- */
/* narrow film (phone, or the 2-column layout below 1200px): drop 従業員 */
@media (max-width: 759px), (min-width: 1024px) and (max-width: 1199px) {
  .sa-hero-th, .sa-hero-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) 56px; }
  .sa-hero-c3 { display: none; }
  .sa-hero-lbl { display: none; }
}
@media (max-width: 759px) {
  .sa-hero-th, .sa-hero-row { padding: 0 8px 0 10px; }
  .sa-hero-scene--1 .sa-hero-foot > .sa-hero-note { width: 100%; }
  .sa-hero-scene--2 .sa-hero-hd .sa-hero-end { display: none; }
  .sa-hero-toast--sent { top: 10px; right: 10px; }
  .sa-hero-toast--reply { right: 10px; bottom: 10px; }
  .sa-hero-nft > .sa-hero-btn { display: none; }
}
