/* ===========================================================================
   ServicesCloud — 特徴・強み, 導入効果 (+ cost before/after), 認証・パートナー,
   AI を活用した開発 (light intro), 対応技術 (logo row), team photo band.
   =========================================================================== */

/* spacing by how related two neighbours are (site tokens, design-qa-gate "nhịp"): strengths → outcomes and
   credentials → tech read as one thought (tight); topic changes get the base gap */
.sc-why { --pt: var(--sp-base); --pb: var(--sp-tight); }
.sc-out { --pt: var(--sp-tight); --pb: var(--sp-base); }
.sc-cert { --pt: var(--sp-base); --pb: var(--sp-tight); }
.sc-tech { --pt: var(--sp-tight); --pb: var(--sp-base); }

/* 特徴・強み: two big points with a small diagram each, two short points below */
.sc-why__big { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));   /* 360: one column below ~800px, so each small diagram keeps ≥340px and its labels ≥13px */ margin-top: 32px; border-top: 2px solid var(--navy); }
.sc-why__big > div { display: flex; flex-direction: column; padding: 28px 32px 28px 0; }   /* pictures sit at the cell bottom: the two stay level when the texts differ in length */
.sc-why__big > div + div { padding-left: 32px; border-left: 1px solid var(--line-strong); }
.sc-why__vis { display: block; width: 100%; max-width: 340px; height: auto; margin: auto 0 0; padding-top: 18px; font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; }
/* 日本品質 diagram: a line through the four phases, a tick on each, the bracket under them says what holds.
   The line is drawn left to right, then the ticks appear in turn. Dots / ticks / caption have no resting opacity:0,
   so without script (or with reduced motion) they simply show; only the line needs the reduced-motion override below.
   Scale animations sit on inner groups: the outer <g transform> keeps each tick in place. */
.sc-q-dot, .sc-q-tick { transform-box: fill-box; transform-origin: center; }
html.js .sc-q-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .sc-why__big > .is-in .sc-q-line { animation: sc-draw 1s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
html.js .sc-why__big > .is-in :is(.sc-q-dot, .sc-q-tick) { animation: sc-pop .4s calc(.3s + var(--d, 0s)) both; }
html.js .sc-why__big > .is-in .sc-q-cap { animation: sc-rise .5s 1.6s both; }
.sc-why__small { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 32px; margin-top: 8px; }
.sc-why__small > div { padding: 20px 0; border-top: 1px solid var(--line-strong); }
.sc-why__small h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--navy); }
@media (max-width: 760px) { .sc-why__big > div { padding-right: 0; } .sc-why__big > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-strong); } }   /* one column: no desktop gutter, the diagram keeps its width */

/* 導入効果: result + a tiny picture of it */
.sc-out__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin-top: 32px; border-top: 1px solid var(--line-strong); }
.sc-out__it { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.sc-vis { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.sc-vis__lg { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.sc-vis__ab { font-weight: 700; color: var(--navy); }   /* says which bar is before and which is after */
.sc-vis__lg i { margin-right: 4px; font-style: normal; }
.sc-vis svg { display: block; width: 100%; height: auto; }
.sc-tl { display: flex; height: 10px; overflow: hidden; border-radius: 5px; }
.sc-tl i { display: block; height: 100%; transform-origin: left; }
html.js .sc-out__it.is-in .sc-tl i { animation: sc-grow .6s calc(.3s + var(--d, 0s)) cubic-bezier(.4, 0, .2, 1) both; }
html.js .sc-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .sc-out__it.is-in .sc-draw { animation: sc-draw 1s .5s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes sc-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .sc-out__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sc-out__it { grid-template-columns: 1fr; } }

/* cost structure: without JS both rows are listed with their labels; with JS one bar switches */
.sc-cost { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--navy); }
.sc-cost__k { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .24em; color: var(--muted); }
.sc-bars__k { margin: 20px 0 0; font-size: 13px; font-weight: 700; color: var(--navy); }
.sc-bars { display: flex; max-width: 880px; height: 56px; margin-top: 8px; overflow: hidden; border-radius: 6px; background: var(--white); }
.sc-bars span { display: flex; align-items: center; padding: 0 16px; overflow: hidden; font-size: 13px; font-weight: 700; white-space: nowrap; transition: width .9s cubic-bezier(.4, 0, .2, 1), padding .9s; }
.sc-bars span.is-gone { padding: 0; }
.sc-bar1 { background: var(--navy); color: var(--white); }
.sc-bar2 { background: var(--blue); color: var(--white); }
.sc-bar3 { background: repeating-linear-gradient(135deg, #C6D3E0 0 6px, #D8E2EC 6px 12px); color: var(--navy); }
.sc-cost.is-live .sc-bars__k, .sc-cost.is-live .sc-bars--after { display: none; }
.sc-cost.is-live .sc-bars { margin-top: 20px; }
.sc-cost__note { margin: 12px 0 0; }
.sc-cost__hint { margin: 12px 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.sc-cost__hint[hidden] { display: none; }

/* AI を活用した開発: a light introduction. Text + link on the left, the five items as a plain list on the right
   (not buttons: no amber dot; the two "?" words are the only pressable parts). The destination page holds the detail. */
.sc-ai { --pt: var(--sp-base); --pb: var(--sp-base); }
.sc-ai__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.sc-ai .sc-p { margin-top: 12px; }
.sc-ai__more { margin-top: 16px; }
.sc-ai__more:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }   /* same ring as the page's other controls */
.sc-ai__list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); }
.sc-ai__list li { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line-strong); font-size: 16px; font-weight: 700; color: var(--navy); }
.sc-ai__list li::before { content: ""; flex: none; width: 12px; height: 2px; border-radius: 1px; background: var(--blue); }   /* same blue dash as the problem list */
html.js .sc-ai__grid.is-in .sc-ai__list li { animation: sc-rise .5s calc(.15s + var(--i, 0) * .08s) both; }   /* no resting opacity:0, so reduced motion / no script show the list at once */
@media (max-width: 860px) { .sc-ai__grid { grid-template-columns: 1fr; } }

/* 認証・パートナー */
.sc-cert__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; margin-top: 28px; }
.sc-cert__it { display: flex; flex-direction: column; gap: 12px; }
.sc-cert__it img { align-self: flex-start; width: auto; height: 56px; object-fit: contain; }
.sc-cert__it h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--navy); }

/* 対応技術: official logos first, then the rows */
.sc-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 44px; margin: 28px 0 8px; padding: 24px 28px; border-radius: 12px; background: var(--white); }
.sc-logos img { display: block; width: auto; }
.sc-logos > img:nth-child(1) { height: 40px; } .sc-logos > img:nth-child(2) { height: 30px; } .sc-logos__k8s { height: 34px; }
.sc-logos__tf { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #7B42BC; }
.sc-logos__tf img { height: 30px; }
.sc-tech__rows { margin-top: 8px; }
.sc-tech__row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.sc-tech__row:last-child { border-bottom: 1px solid var(--line-strong); }
.sc-tech__k { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--blue); }
.sc-tech__v { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 16px; color: var(--ink); }
.sc-tech__note { margin: 16px 0 0; }
@media (max-width: 640px) { .sc-tech__row { grid-template-columns: 1fr; gap: 6px; } }

/* team photo band: decoration only, near the end; wipes in when reached */
.sc-band { position: relative; height: clamp(240px, 30vw, 400px); overflow: hidden; }
.sc-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
html.js .sc-band img { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1); }
html.js .sc-band.is-in img { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { html.js .sc-draw, html.js .sc-q-line { stroke-dasharray: none; stroke-dashoffset: 0; } }
