/* ===========================================================================
   SolutionsSales -- "rest" block, part 2: 導入実績 / 導入フロー / FAQ.
   Same motion contract as sales-rest.css. Base tier = product colour #805496
   (core carries the product colour). Contrast (measured): white on #805496
   5.79, --sa-tint role line on #805496 4.95, white on module tile #69457B
   7.67, --sa-tint icons on #69457B 6.55, seam #9470A8 on #FFF 4.08,
   --muted on #FFF 5.48, accent on #F7F9FB 5.49.
   =========================================================================== */
.sa-rest-case svg { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 導入実績: Sald sits ON the AVATAR SALES base ------------------------- */
.sa-rest-case__grid { display: grid; gap: 40px; }
.sa-rest-case__h2 { margin-bottom: 20px; }
.sa-rest-case__lead { max-width: 46em; margin: 0; color: var(--ink); }
.sa-rest-case__more { margin: 24px 0 0; }
.sa-rest-case__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 16px; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--navy); transition: color var(--dur-3) var(--ease-soft), border-color var(--dur-3) var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .sa-rest-case__link:hover { color: var(--sa-acc); border-color: var(--sa-acc); } }
.sa-rest-case__link:active { color: var(--sa-acc); border-color: var(--sa-acc); }
.sa-rest-case__link:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 2px; }
.sa-rest-case__note { margin: 8px 0 0; font-family: 'Noto Sans JP', sans-serif; font-size: 13px; line-height: 1.8; color: var(--muted); }
.sa-rest-case__stack { --side: clamp(14px, 5%, 44px); position: relative; }
.sa-rest-case__tier { position: relative; border-radius: 12px; padding: 20px 20px 22px; }
.sa-rest-case__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin-bottom: 14px; }
.sa-rest-case__name { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 17px; line-height: 1.5; font-weight: 700; color: var(--navy); }
.sa-rest-case__mods { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sa-rest-case__mod { display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 10px 14px; border-radius: 8px; font-family: 'Noto Sans JP', sans-serif; font-size: 14.5px; font-weight: 500; line-height: 1.6; }
.sa-rest-case__tier--top { z-index: 1; margin: 0 var(--side); background: var(--white); border: 1px solid var(--line-strong); box-shadow: 0 16px 34px rgba(16, 42, 67, .14); }
.sa-rest-case__logo { width: auto; height: 40px; margin: -6px -8px -6px 0; }
.sa-rest-case__role { margin: -6px 0 12px; font-size: 13px; line-height: 1.6; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.sa-rest-case__tier--top .sa-rest-case__mod { background: var(--surface-2); color: var(--ink); }
.sa-rest-case__tier--top .sa-rest-case__mod svg { color: var(--muted); }
.sa-rest-case__seam { display: flex; justify-content: space-around; height: 26px; margin: 0 calc(var(--side) + 12%); }
.sa-rest-case__seam i { width: 2px; background: linear-gradient(#9470A8, var(--sa-acc)); transform-origin: 50% 100%; }
.sa-rest-case__tier--base { padding: 22px 20px 20px; background: var(--sa-acc); color: var(--white); box-shadow: 0 24px 48px rgba(74, 38, 96, .26); }
.sa-rest-case__tier--base .sa-rest-case__name { color: var(--white); }
.sa-rest-case__tier--base .sa-rest-case__role { color: var(--sa-tint); }
.sa-rest-case__tier--base .sa-rest-case__name::before { content: ""; width: 16px; height: 16px; border-radius: 4px; background: var(--white); box-shadow: inset 0 0 0 3px #C9A8DA; }
.sa-rest-case__tier--base .sa-rest-case__mod { background: #69457B; border: 1px solid rgba(255, 255, 255, .18); color: var(--white); }
.sa-rest-case__tier--base .sa-rest-case__mod svg { color: var(--sa-tint); }
@media (min-width: 560px) {
  .sa-rest-case__mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-rest-case__tier { padding: 22px 24px 24px; }
}
@media (min-width: 1024px) {
  .sa-rest-case__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: center; }
}
html.sa-motion .sa-rest-case__tier--base { transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
html.sa-motion .sa-rest-case__tier--base .sa-rest-case__mod { transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
html.sa-motion .sa-rest-case__tier--base .sa-rest-case__mod:nth-child(1) { transition-delay: .25s; }
html.sa-motion .sa-rest-case__tier--base .sa-rest-case__mod:nth-child(2) { transition-delay: .33s; }
html.sa-motion .sa-rest-case__tier--base .sa-rest-case__mod:nth-child(3) { transition-delay: .41s; }
html.sa-motion .sa-rest-case__tier--base .sa-rest-case__mod:nth-child(4) { transition-delay: .49s; }
html.sa-motion .sa-rest-case__seam i { transition: transform .45s var(--ease-out) .65s; }
html.sa-motion .sa-rest-case__seam i:nth-child(2) { transition-delay: .72s; }
html.sa-motion .sa-rest-case__seam i:nth-child(3) { transition-delay: .79s; }
html.sa-motion .sa-rest-case__tier--top { transition: opacity .55s var(--ease-out) .85s, transform .8s cubic-bezier(.2, .9, .3, 1.12) .85s; }
html.sa-motion .sa-rest-case__tier--top .sa-rest-case__mod { transition: opacity .5s var(--ease-out) 1.3s; }
html.sa-motion .sa-rest-case__tier--top .sa-rest-case__mod + .sa-rest-case__mod { transition-delay: 1.4s; }
html.sa-motion .sa-rest-case__stack[data-sa-latch]:not(.sa-seen) .sa-rest-case__tier--base { opacity: 0; transform: translateY(28px); }
html.sa-motion .sa-rest-case__stack[data-sa-latch]:not(.sa-seen) .sa-rest-case__tier--base .sa-rest-case__mod { opacity: 0; transform: translateY(10px); }
html.sa-motion .sa-rest-case__stack[data-sa-latch]:not(.sa-seen) .sa-rest-case__seam i { transform: scaleY(0); }
html.sa-motion .sa-rest-case__stack[data-sa-latch]:not(.sa-seen) .sa-rest-case__tier--top { opacity: 0; transform: translateY(-34px); }
html.sa-motion .sa-rest-case__stack[data-sa-latch]:not(.sa-seen) .sa-rest-case__tier--top .sa-rest-case__mod { opacity: 0; }

/* ---- 導入フロー: open timeline, the line reaches each step in turn -------- */
.sa-rest-flow__list { --node: 20px; --gap: 30px; margin: 0; padding: 0; list-style: none; display: grid; gap: var(--gap); }
.sa-rest-flow__step { position: relative; padding-left: 42px; }
.sa-rest-flow__step:not(:last-child)::before, .sa-rest-flow__step:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--node) / 2 - 1px); top: calc(var(--node) / 2 + 2px); width: 2px; height: calc(100% + var(--gap)); }
.sa-rest-flow__step::before { background: var(--sa-rule); }
.sa-rest-flow__step::after { --off: scaleY(0); background: var(--sa-acc); transform-origin: 50% 0; }
.sa-rest-flow__node { position: absolute; z-index: 1; left: 0; top: 2px; width: var(--node); height: var(--node); border: 2px solid var(--sa-acc); border-radius: 50%; background: var(--white); }
.sa-rest-flow__node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--sa-acc); }
.sa-rest-flow__step:last-child .sa-rest-flow__node { background: var(--sa-acc); box-shadow: 0 0 0 5px var(--sa-tint); }
.sa-rest-flow__no { margin: 0 0 6px; font-size: 13px; line-height: 24px; font-weight: 700; letter-spacing: .18em; color: var(--sa-acc); }
.sa-rest-flow__h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.6; font-weight: 700; color: var(--navy); }
.sa-rest-flow__tx { margin: 0; font-family: 'Noto Sans JP', sans-serif; font-size: 15px; line-height: 1.95; color: var(--muted); }
@media (min-width: 900px) {
  .sa-rest-flow__list { --gap: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sa-rest-flow__step { padding: calc(var(--node) + 22px) 8px 0 0; }
  .sa-rest-flow__step:not(:last-child)::before, .sa-rest-flow__step:not(:last-child)::after { left: calc(var(--node) + 4px); top: calc(var(--node) / 2 - 1px); width: calc(100% + var(--gap) - var(--node) - 8px); height: 2px; }
  .sa-rest-flow__step::after { --off: scaleX(0); transform-origin: 0 50%; }
  .sa-rest-flow__node { top: 0; }
}
html.sa-motion .sa-rest-flow__step::after { transition: transform .5s linear; transition-delay: calc(var(--i) * .42s + .2s); }
html.sa-motion .sa-rest-flow__node::after { transition: transform .35s cubic-bezier(.34, 1.5, .5, 1); transition-delay: calc(var(--i) * .42s); }
html.sa-motion .sa-rest-flow__step > p, html.sa-motion .sa-rest-flow__step > h3 { transition: opacity .55s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i) * .42s + .05s); }
.sa-rest-flow__step:nth-child(1) { --i: 0; }
.sa-rest-flow__step:nth-child(2) { --i: 1; }
.sa-rest-flow__step:nth-child(3) { --i: 2; }
.sa-rest-flow__step:nth-child(4) { --i: 3; }
html.sa-motion .sa-rest-flow__list[data-sa-latch]:not(.sa-seen) .sa-rest-flow__step::after { transform: var(--off); }
html.sa-motion .sa-rest-flow__list[data-sa-latch]:not(.sa-seen) .sa-rest-flow__node::after { transform: scale(0); }
html.sa-motion .sa-rest-flow__list[data-sa-latch]:not(.sa-seen) .sa-rest-flow__step > p,
html.sa-motion .sa-rest-flow__list[data-sa-latch]:not(.sa-seen) .sa-rest-flow__step > h3 { opacity: 0; transform: translateY(12px); }

/* ---- FAQ: site .faq pattern; only focus / hover / open fade added -------- */
.sa-rest-faq .faq__q { transition: color var(--dur-3) var(--ease-soft); }
html:not(.js) .sa-rest-faq .faq__q { cursor: default; }   /* no JS: panels stay open, nothing to toggle */
html:not(.js) .sa-rest-faq .faq__mark { visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .sa-rest-faq .faq__q:hover, .sa-rest-faq .faq__q:hover .faq__mark { color: var(--sa-acc); } }
.sa-rest-faq .faq__q:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 2px; }
html.sa-motion .sa-rest-faq .faq__item.is-open .faq__panel { animation: sa-rest-open .35s var(--ease-out) both; }
@keyframes sa-rest-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .sa-rest-case *, .sa-rest-flow *, .sa-rest-flow *::before, .sa-rest-flow *::after, .sa-rest-faq * { transition: none !important; animation: none !important; }
}
