/* Open case studies: meaningful diagrams, horizontal text, clear blue accents. */
.system-examples { position: relative; scroll-margin-top: 110px; padding: 90px 0; background: transparent; color: #171c22; }
.system-examples .section-heading { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 22px 76px; align-items: end; text-align: left; max-width: none; margin: 0 0 58px; }
.system-examples .section-heading__eyebrow { grid-column: 1 / -1; justify-content: flex-start; font-size: 14px; letter-spacing: .02em; color: #245cce; margin: 0; }
.system-examples .section-heading__title { font-size: clamp(28px,2.8vw,36px); line-height: 1.65; letter-spacing: -.01em; margin: 0; }
.system-examples .section-heading__rule { display: none; }
.system-examples .section-heading__lead { color: #424c59; font-size: 17px; line-height: 1.95; max-width: none; margin: 0; }
.system-examples__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px 76px; align-items: start; }
.system-example { position: relative; min-width: 0; padding: 30px 0 0; border: 0; border-top: 1px solid #cbd5e3; border-radius: 0; background: transparent; }
.system-example:nth-child(3) { margin-top: 48px; }
.system-example__index { display: block; margin-bottom: 22px; color: #245cce; font-family: var(--font-sans-en); font-size: 27px; line-height: 1; font-weight: 500; }
.system-example__label { color: #245cce; font-size: 14px; font-weight: 600; margin: 0 0 15px; }
.system-example h3 { font-size: clamp(22px,2vw,27px); color: #171c22; line-height: 1.7; letter-spacing: -.015em; margin: 0 0 26px; }
.system-example p,.system-example dd { color: #424c59; font-size: 17px; line-height: 1.9; }
.system-example dl { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.system-example dt { font-size: 15px; color: #245cce; font-weight: 600; margin: 0 0 10px; }
.system-example dd { margin: 0; }
.system-example--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 0 60px; padding: 38px 0 32px; border-top: 2px solid #245cce; border-bottom: 1px solid #cbd5e3; }
.system-example--featured .system-example__index { grid-column: 1; grid-row: 1; }
.system-example--featured .system-example__label { grid-column: 1; grid-row: 2; }
.system-example--featured h3 { grid-column: 1; grid-row: 3; }
.system-example--featured .system-case-flow { grid-column: 2; grid-row: 1 / 4; }
.system-example--featured dl { grid-column: 1 / -1; margin: 36px 0 0; padding-top: 30px; border-top: 1px solid #e0e5ed; }
.system-case-flow { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; align-items: center; position: relative; margin: 0; }
.system-case-flow__before { background: #f6f7fa; border: 1px solid #dae1eb; border-radius: 6px; padding: 22px 26px; margin-right: 35px; }
.system-case-flow__before>span,.system-case-flow__built>span { display: block; font-size: 14px; font-weight: 500; color: #505b68; margin-bottom: 10px; }
.system-case-flow__before>strong { color: #171c22; font-size: 22px; font-weight: 600; }
.system-case-flow__before p { font-size: 16px; margin: 7px 0 0; }
.system-case-flow__arrow { font-size: 25px; line-height: 1; text-align: center; transform: rotate(90deg); color: #245cce; }
.system-case-flow__built { background: #245cce; border: 1px solid #245cce; border-radius: 6px; padding: 24px 26px; margin-left: 28px; }
.system-case-flow__built>span { color: #e5edff; }
.system-case-flow__built>div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.system-case-flow__built strong { color: #fff; font-size: 16px; line-height: 1.8; font-weight: 500; }
.system-case-flow__built i { font-size: 14px; color: #e5edff; font-style: normal; }
.system-example__mini-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin: 28px 0; }
.system-example__mini-flow span { position: relative; border: 1px solid #d0dcf0; border-radius: 4px; padding: 14px 18px; background: #f4f7fc; color: #245cce; font-size: 16px; line-height: 1.6; font-weight: 500; }
.system-example__mini-flow i { font-style: normal; font-size: 16px; color: #245cce; }
.system-example__note,.system-examples__note { font-size: 14px!important; color: #505b68!important; line-height: 1.9; margin-top: 24px; }
.system-examples__note { text-align: left; max-width: 920px; margin: 38px 0 0; }
.system-examples__links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 18px; margin-top: 30px; }
.system-examples__links .btn { font-size: 16px; letter-spacing: 0; white-space: normal; }
@media (max-width: 1050px) { .system-examples .section-heading { grid-template-columns: minmax(0,1fr); gap: 22px; }.system-examples__grid { gap: 42px; }.system-example--featured { gap: 0 32px; }.system-case-flow__before { margin-right: 12px; }.system-case-flow__built { margin-left: 12px; }.system-example__mini-flow span { padding-inline: 14px; font-size: 15px; } }
@media (max-width: 767px) {
 .system-examples { padding: 64px 0; }
 .system-examples .section-heading { margin: 0 0 35px; }
 .system-examples .section-heading__title { font-size: 27px; }
 .system-examples .section-heading__lead { font-size: 16px; }
 .system-examples__grid { grid-template-columns: minmax(0,1fr); gap: 35px; }
 .system-example,.system-example--featured { display: block; padding: 28px 0; margin: 0; }
 .system-example:nth-child(3) { margin-top: 0; }
 .system-example__index { font-size: 25px; }
 .system-example h3 { font-size: 23px; }
 .system-example h3 br { display: none; }
 .system-example p,.system-example dd { font-size: 16px; }
 .system-example dl,.system-example--featured dl { grid-template-columns: minmax(0,1fr); gap: 25px; }
 .system-case-flow { margin-top: 28px; }
 .system-case-flow__before { padding: 20px; margin: 0 12px 0 0; }
 .system-case-flow__built { padding: 20px; margin: 0 0 0 12px; }
 .system-case-flow__built strong { font-size: 15px; }
 .system-example__mini-flow { gap: 8px; }
 .system-example__mini-flow span { font-size: 14px; padding: 12px; }
 .system-examples__links .btn { width: 100%; font-size: 15px; }
}

/* Progressive scrollytelling: every case stays in the reading order. */
.case-story__stage[hidden],.case-story__scene[hidden] { display: none; }
.case-story__stage { min-width: 0; }
.case-story__heading { display: flex; align-items: baseline; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #d9e1ed; }
.case-story__count { color: #245cce; font-family: var(--font-sans-en); font-size: 52px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.case-story__caption { font-size: 17px; font-weight: 600; line-height: 1.6; color: #171c22; }
.case-story__total { margin-left: auto; color: #657185; font: 14px var(--font-sans-en); white-space: nowrap; }
.case-story__canvas { position: relative; width: 100%; aspect-ratio: 560 / 450; max-height: calc(100svh - 300px); min-height: 260px; background: radial-gradient(ellipse at 55% 50%,#f3f7fe,transparent 70%); }
.case-story__scene { display: block; width: 100%; height: 100%; overflow: visible; }
.case-story__scene text { font-family: var(--font-sans-ja); font-size: 20px; font-weight: 500; fill: #24344e; }
.case-story__guide { fill: none; stroke: #c7d6ed; stroke-width: 2; }
.case-story__signal { fill: none; stroke: #245cce; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 18 150; animation: case-route 3.2s linear infinite; }
.case-story__paper rect { fill: #fff; stroke: #a6bbdc; stroke-width: 1.5; }
.case-story__paper path { fill: none; stroke: #b9cce8; stroke-width: 2; }
.case-story__core rect { fill: #245cce; }
.case-story__core text,.case-story__sheet text { fill: #fff; }
.case-story__core path { stroke: #a9c4ff; stroke-width: 3; }
.case-story__node rect { fill: #fff; stroke: #245cce; stroke-width: 1.5; }
.case-story__junction { fill: #245cce; }
.case-story__node--first { animation: case-node 3.8s ease-in-out infinite; }
.case-story__node--last { animation: case-node 3.8s ease-in-out 1.3s infinite; }
.case-story__schedule rect { fill: #245cce; transform-box: fill-box; transform-origin: left; animation: case-schedule 4s ease-in-out infinite; }
.case-story__schedule rect:nth-child(2) { animation-delay: .6s; }
.case-story__schedule rect:nth-child(3) { animation-delay: 1.2s; }
.case-story__scan { fill: #7eadff55; stroke: #245cce; stroke-width: 1; animation: case-scan 3.8s ease-in-out infinite; }
.case-story__sheet rect { fill: #245cce; }
.case-story__cells rect { fill: #88aef0; animation: case-cell 3.8s ease-in-out infinite; }
.case-story__cells rect:nth-child(2) { animation-delay: .5s; }
.case-story__cells rect:nth-child(3) { animation-delay: 1s; }
.case-story__scene .case-story__annotation { font-size: 18px; fill: #505f74; }
.case-story__scene .case-story__process { font-size: 18px; fill: #245cce; }
.case-story__track { height: 2px; background: #e1e8f3; overflow: hidden; }
.case-story__track span { display: block; height: 100%; width: 33.333%; background: #245cce; transform: translateX(calc(var(--case-active,0) * 100%)); transition: transform .65s cubic-bezier(.22,1,.36,1); }
.case-story__controls { display: flex; align-items: stretch; margin-top: 18px; gap: 9px; }
.case-story__controls button { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; min-width: 0; min-height: 46px; border: 1px solid #d4deee; background: #fff; color: #55647b; font: 14px var(--font-sans-en); padding: 10px 12px; border-radius: 3px; cursor: pointer; transition: background .2s,color .2s; }
.case-story__controls button span { font: 14px var(--font-sans-ja); white-space: nowrap; }
.case-story__controls button[aria-pressed=true] { color: #fff; background: #245cce; border-color: #245cce; }
.case-story__controls button:focus-visible { outline: 3px solid #245cce; outline-offset: 4px; }
.case-story__hint { font-size: 13px!important; color: #566379; line-height: 1.8!important; margin: 14px 0 0; }
.case-story.is-paused * { animation-play-state: paused!important; transition: none!important; }
.case-story.is-outside * { animation-play-state: paused!important; }
.case-story:not(.is-paused) .case-story__scene.is-entering { animation: case-scene-in .7s cubic-bezier(.22,1,.36,1) both; }
@keyframes case-route { to { stroke-dashoffset: -168; } }
@keyframes case-node { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes case-schedule { 0%,100% { transform: scaleX(.65); } 50% { transform: scaleX(1); } }
@keyframes case-scan { 0%,100% { transform: translateY(-28px); } 50% { transform: translateY(125px); } }
@keyframes case-cell { 0%,15%,100% { opacity: .25; } 35%,80% { opacity: 1; } }
@keyframes case-scene-in { from { opacity: .3; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 901px) {
 .case-story.is-enhanced { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: clamp(50px,6.5vw,100px); }
 .case-story.is-enhanced .case-story__stage { position: sticky; top: 118px; align-self: start; }
 .case-story.is-enhanced .system-examples__grid { display: block; min-width: 0; }
 .case-story.is-enhanced .system-example { display: block; margin: 0; padding: 38px 0 96px; min-height: 72svh; border-top: 1px solid #cbd5e3; border-bottom: 0; transition: border-color .3s; }
 .case-story.is-enhanced .system-example.is-current { border-top-color: #245cce; }
 .case-story.is-enhanced .system-example:last-child { padding-bottom: 50px; }
 .case-story.is-enhanced .system-example__index { font-size: 16px; margin-bottom: 22px; }
 .case-story.is-enhanced .system-example h3 { font-size: clamp(23px,2.2vw,29px); }
 .case-story.is-enhanced .system-example h3 br { display: none; }
 .case-story.is-enhanced .system-example dl { display: grid; grid-template-columns: 1fr; gap: 23px; margin: 26px 0 0; padding: 26px 0 0; border-top: 1px solid #e0e5ed; }
 .case-story.is-enhanced .system-example p,.case-story.is-enhanced .system-example dd { font-size: 17px; line-height: 1.9; }
 .case-story.is-enhanced .system-case-flow { display: block; margin: 30px 0; }
 .case-story.is-enhanced .system-case-flow__before { padding: 0; margin: 0 0 18px; border: 0; border-radius: 0; background: transparent; }
 .case-story.is-enhanced .system-case-flow__before>strong { font-size: 19px; }
 .case-story.is-enhanced .system-case-flow__before p { font-size: 15px; }
 .case-story.is-enhanced .system-case-flow__arrow { display: none; }
 .case-story.is-enhanced .system-case-flow__built { padding: 18px 22px; margin: 0; background: #f1f5fc; border: 0; border-left: 3px solid #245cce; border-radius: 0; }
 .case-story.is-enhanced .system-case-flow__built strong,.case-story.is-enhanced .system-case-flow__built>span,.case-story.is-enhanced .system-case-flow__built i { color: #245cce; }
 .case-story.is-enhanced .system-case-flow__built strong { font-size: 15px; }
 .case-story.is-enhanced .system-example__mini-flow { gap: 8px; }
 .case-story.is-enhanced .system-example__mini-flow span { font-size: 15px; padding: 12px; }
 .case-story.is-enhanced .system-example--featured { border-top-width: 2px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
 .case-story.is-enhanced { gap: 36px; }
 .case-story__heading { gap: 12px; }
 .case-story__count { font-size: 44px; }
 .case-story__caption { font-size: 15px; }
 .case-story__scene text { font-size: 22px; }
 .case-story__controls { gap: 6px; }
 .case-story__controls button { padding-inline: 7px; gap: 5px; }
}
@media (max-width: 900px) {
 .case-story__stage { display: none; }
 .case-story .system-examples__grid { display: block; }
 .case-story .system-example,.case-story .system-example--featured { display: block; margin: 0; padding: 34px 0 42px; }
 .case-story .system-example dl { grid-template-columns: 1fr; }
 .case-story .system-case-flow { margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
 .case-story * { animation: none!important; transition: none!important; }
}
