.story-21{--bg:#eff8fc;--ink:#193654;--accent:#185e8f;--panel:#dcefe9}

.story{background:var(--bg);color:var(--ink);overflow:clip;font-family:"Yu Gothic UI",Meiryo,sans-serif;line-height:1.85}.story *{box-sizing:border-box}.story .wrap{width:min(1280px,90%);margin-inline:auto}.story h2,.story h3,.story p,.story figure{margin:0}.story .hero{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:center;gap:clamp(24px,4vw,72px);min-height:min(780px,86svh);padding-block:clamp(46px,7vw,108px)}.story .pitch{position:relative;z-index:1}.story h1{font-size:clamp(.9rem,1.22vw,1.1rem);font-weight:650;line-height:1.7;margin:.9rem 0 1.5rem}.story .display{font-size:clamp(2.35rem,4.1vw,4.6rem);font-weight:730;line-height:1.33;letter-spacing:-.055em;line-break:strict;word-break:auto-phrase}.story .lead{margin:1.35rem 0;max-width:36em}.story .word{font:italic 400 clamp(1.25rem,2.2vw,2.3rem)/1.15 Georgia,serif;color:var(--accent)}.story .visual{min-width:0}.story .visual svg{display:block;width:100%;height:auto}.story figcaption{display:flex;justify-content:space-between;gap:10px;border-top:1px solid currentColor;padding-top:.55rem;margin-top:.7rem;color:var(--accent);font:500 .76rem/1.5 monospace}.story .cta{display:inline-flex;align-items:center;justify-content:space-between;gap:1.5em;background:var(--ink);color:var(--bg);font-weight:700;padding:.65em 1.25em;text-decoration:none;min-height:46px}.story .cta::after{content:'↗';font-family:Arial}.story .cta:hover{box-shadow:inset 0 -3px var(--accent)}.story .intro,.story .demo,.story .service,.story .closing{padding-block:clamp(52px,7vw,110px)}.story .intro{border-top:1px solid color-mix(in srgb,var(--ink) 32%,transparent)}.story .kicker{font:600 .79rem/1.4 monospace;letter-spacing:.1em;color:var(--accent);margin-bottom:1rem}.story h2{font-size:clamp(1.75rem,3.3vw,3.4rem);line-height:1.4;letter-spacing:-.04em;word-break:auto-phrase}.story h3{font-size:clamp(1.18rem,1.85vw,1.6rem);line-height:1.5}.story .intro .inner,.story .service .inner,.story .closing .inner{display:grid;grid-template-columns:1fr 1fr;gap:clamp(25px,5vw,80px);align-items:start}.story .demo{background:var(--panel)}.story .demo .note{margin:1rem 0 1.75rem;max-width:58em}.story .instrument{display:grid;grid-template-columns:minmax(225px,.72fr) minmax(0,1.28fr);gap:clamp(14px,3vw,44px);border-top:2px solid var(--accent);padding-top:1.5rem}.story .keys{display:flex;align-content:flex-start;align-items:flex-start;gap:9px;flex-wrap:wrap}.story .keys label{display:flex;align-items:center;gap:.4em;flex-wrap:wrap;font-weight:650}.story select,.story button{color:var(--ink);background:var(--bg);border:1px solid currentColor;padding:.55em .85em;min-height:44px;border-radius:3px;font-size:1rem;max-width:100%}.story option{background:var(--bg);color:var(--ink)}.story button:active{transform:translateY(1px)}.story button:hover,.story button[aria-pressed=true]{background:var(--ink);color:var(--bg)}.story .keys select{width:100%}.story .keys input{width:20px;height:20px}.story [data-reset]{background:transparent;text-decoration:underline}.story .output{padding:clamp(20px,3vw,46px);background:var(--bg);min-height:12rem;overflow-wrap:anywhere;border-left:3px solid var(--accent)}.story .output h3,.story .output h4{margin:.4em 0}.story .output article,.story .output aside{padding:.8em 0;border-top:1px solid color-mix(in srgb,var(--ink) 30%,transparent)}.story .output article p{margin:.25em 0}.story .output small{font-weight:650;color:var(--accent)}.story .demo .cta{margin-top:1.7rem}.story .service article+article{border-top:1px solid var(--accent);margin-top:1.4em;padding-top:1.4em}.story .service h3,.story .closing h3{margin-bottom:.6rem}.story .closing{background:var(--panel)}.story details{border-block-start:1px solid currentColor;padding:.6em 0}.story summary{font-weight:700;padding:.65em 0;min-height:44px}.story details p{padding:.5em 0}.story .closing .cta{margin-top:1.2em}
@media(min-width:801px){.story .hero{position:relative}}
@media(max-width:800px){.story .hero,.story .instrument,.story .intro .inner,.story .service .inner,.story .closing .inner{grid-template-columns:1fr}.story .hero{min-height:0;gap:26px;padding-block:36px}.story .display{font-size:clamp(2.05rem,6vw,3.2rem)}.story .visual{width:min(100%,560px);margin:auto}.story .kicker{margin-bottom:.6rem}.story .intro,.story .demo,.story .service,.story .closing{padding-block:46px}.story .keys{align-items:center}.story .keys label{min-height:44px}.story h1{margin:.5rem 0 .9rem}.story .lead{margin:1em 0}}

.story-21 .visual{border-radius:45% 20% 42% 18%;overflow:hidden}.story-21 .visual circle{animation:routeStop .8s ease-out}.story-21 .service article{border-left:5px solid #94d1c2;padding-left:1.3em}.story-21 .instrument{border-left:4px solid #458897;padding-left:1.5em}.story-21 .output{border-radius:0 25px 25px 0}.story-21 .output.changed{animation:routeStop .45s ease-out}
@keyframes routeStop{from{transform:translate(-14px,14px)}}
@media(max-width:800px){.story .hero,.story .instrument,.story .pitch{display:block}.story .visual{margin:20px auto 0;transform:none}.story .visual svg{height:auto;max-height:285px}.story .output{margin-top:1.2rem}.story .hero{padding-block:30px}.story .intro .inner,.story .service .inner,.story .closing .inner{grid-template-columns:minmax(0,1fr)}.story .keys select{width:100%}.story .keys label{flex:1 1 10rem}.story .visual figcaption{font-size:.73rem}}

.story-21 .stage-visual{grid-column:1/-1;display:block;min-width:0;overflow:hidden;margin-bottom:.5rem}
.story-21 .stage-visual svg{display:block;width:100%;height:auto;max-height:300px}
.story-21 .stage-visual svg g,.story-21 .stage-visual svg rect{transition:transform .6s cubic-bezier(.22,.72,.24,1),translate .6s,opacity .35s,scale .45s}
.story-21 .journey-progress{stroke-dashoffset:calc(100 - var(--progress,0));transition:stroke-dashoffset .7s ease}.story-21 .journey-parcel{offset-path:path('M52 148 C105 148 108 74 180 74 S286 151 345 151 S421 69 471 69 H589');offset-distance:calc(var(--progress,0)*1%);offset-rotate:0deg;transition:offset-distance .7s ease!important}.story-21 .journey-gate{transform-origin:491px 78px}.story-21 [data-stage="3"] .journey-gate{transform:rotate(72deg)}
html[data-motion=reduced] .story-21 .stage-visual *,html[data-page-paused] .story-21 .stage-visual *{transition:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce){.story-21 .stage-visual *{transition:none!important;animation:none!important}}

.hero .display { overflow-wrap: normal; line-break: strict; text-wrap: balance; }
.hero .display > [data-wrap-group] { display: inline-block; white-space: nowrap; }


.ai-feature,
.ai-notes {
  padding: clamp(48px, 7vw, 104px) 0;
}
.ai-frame {
  width: min(1150px, 90%);
  margin: 0 auto;
  min-width: 0;
}
.ai-frame > * {
  min-width: 0;
}
.ai-feature h2,
.ai-notes h2 {
  margin: 0 0 0.38em;
  font-size: clamp(1.85rem, 3.9vw, 3.9rem);
  line-height: 1.25;
  letter-spacing: -0.052em;
  color: inherit;
  word-break: auto-phrase;
  text-wrap: balance;
}
.ai-feature header > p:last-child,
.ai-feature .ai-frame > div:first-child > p:last-child {
  max-width: 35em;
}
.ai-caption {
  margin: 0 0 1rem;
  font-weight: 730;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.ai-feature p:not(.ai-caption),
.ai-notes p {
  line-height: 1.85;
}
.ai-notes h2 {
  font-size: clamp(1.55rem, 2.9vw, 2.8rem);
}
.ai-notes .ai-notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4.5vw, 66px);
  margin-top: 1.65rem;
}
.ai-notes h3 {
  margin: 0.4rem 0 0.65rem;
  font-size: clamp(1.1rem, 1.65vw, 1.48rem);
  line-height: 1.55;
  word-break: auto-phrase;
  text-wrap: balance;
}
.ai-notes p {
  margin: 0;
}
.ai-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin: 0.24rem 0.6rem 0.24rem 0;
  min-height: 44px;
  padding: 0.35em 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: inherit;
  text-underline-offset: 0.32em;
}
.ai-jump:after {
  content: "↓";
}
@media (max-width: 740px) {
  .ai-notes .ai-notes-grid {
    grid-template-columns: 1fr;
  }
  .ai-frame {
    width: 89%;
  }
}

.junction {
  color: #eefbfa;
  background: #183a4b;
}
.junction .ai-frame {
  display: grid;
  grid-template-columns: 0.87fr 1.13fr;
  align-items: center;
  gap: clamp(24px, 5vw, 88px);
}
.junction-device {
  background: #ecf6f3;
  color: #1a3847;
  border-radius: 16px 2px 16px 2px;
  border: 3px solid #9bb9b3;
  padding: clamp(16px, 3.4vw, 38px);
  box-shadow: 7px 7px #0e2835;
}
.junction-sign {
  border-left: 5px solid #d6a044;
  padding: 0.15em 0.8em;
}
.junction-sign small {
  font-weight: 700;
}
.junction-sign p {
  margin: 0.3em 0;
  font-size: clamp(1.1rem, 2.1vw, 1.65rem);
  font-weight: 720;
}
.junction-diagram {
  height: 94px;
  position: relative;
  margin: 0.8em 0;
  background: repeating-linear-gradient(0deg, #e1efed 0 15px, #c8deda 16px);
}
.junction-diagram svg {
  width: 95%;
  height: 100%;
  display: block;
}
.junction-diagram span {
  position: absolute;
  right: 5px;
  top: 9%;
  font-size: 0.75rem;
  font-weight: 800;
  background: #e1efed;
  padding: 0 4px;
}
.junction-diagram span + span {
  top: auto;
  bottom: 10%;
}
.junction-upper,
.junction-lower {
  fill: none;
  stroke: #146862;
  stroke-width: 6;
  stroke-dasharray: 510;
  stroke-dashoffset: 510;
}
.junction-device:has(input[value="draft"]:checked) .junction-upper,
.junction-device:has(input[value="wait"]:checked) .junction-lower {
  stroke-dashoffset: 0;
}
.junction-device fieldset {
  border: 0;
  padding: 0;
  margin: 1rem 0;
}
.junction-device legend {
  font-size: 0.88rem;
  font-weight: 700;
}
.junction-device label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  gap: 0.35em;
  margin-right: 0.7em;
}
.junction-device input {
  width: 1.08rem;
  height: 1.08rem;
  accent-color: #146862;
}
.junction-exit {
  background: white;
  padding: 1rem;
  border-left: 4px solid #41796f;
}
.junction-exit h3 {
  font-size: 1.22rem;
  margin-bottom: 0.4rem;
}
.junction-device:has(input[value="draft"]:checked) .j-wait,
.junction-device:has(input[value="wait"]:checked) .j-draft {
  display: none;
}
.story-21 .ai-notes {
  background: #e3ece6;
}
.story-21 .ai-notes article {
  border-left: 2px dashed #537f78;
  padding-left: 1.2rem;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="normal"] .junction-diagram path {
    transition: stroke-dashoffset 0.66s ease-in-out;
  }
  html[data-motion="normal"] .junction[data-seen="true"] .junction-sign {
    animation: junction-accept 0.6s cubic-bezier(0.2, 0.8, 0.25, 1);
  }
  @keyframes junction-accept {
    from {
      transform: translateY(-17px) rotate(-2deg);
    }
  }
}
@media (max-width: 740px) {
  .junction .ai-frame {
    grid-template-columns: 1fr;
  }
}
.junction {
  background: #d8ebe8;
  color: #17394b;
  border-block: 1px solid #8aafa6;
}
.junction .ai-frame {
  display: block;
}
.junction header h2 {
  font-size: clamp(2.05rem, 3.75vw, 3.6rem);
}
.junction-device {
  margin-top: clamp(22px, 3.5vw, 48px);
  background: #f7fbf7;
  border: 1px solid #7b9a8f;
}
.junction-diagram {
  background: #e2eee8;
}
.junction-device label {
  font-weight: 660;
}
@media (min-width: 820px) {
  .junction header {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    column-gap: clamp(30px, 6vw, 94px);
  }
  .junction header .ai-caption {
    grid-column: 1/-1;
  }
  .junction header h2 {
    margin: 0;
  }
  .junction header p:last-child {
    margin: 0;
  }
  .junction-device {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.2fr;
    gap: 12px clamp(12px, 2vw, 28px);
    align-items: center;
    padding: clamp(20px, 3.2vw, 36px);
  }
  .junction-sign,
  .junction-device fieldset {
    grid-column: 1;
  }
  .junction-sign {
    grid-row: 1;
  }
  .junction-device fieldset {
    grid-row: 2;
  }
  .junction-diagram {
    grid-row: 1/3;
    grid-column: 2;
    width: 100%;
    height: 130px;
  }
  .junction-exit {
    grid-row: 1/3;
    grid-column: 3;
    border-left: 3px dashed #5d8476;
  }
  .junction-sign p {
    font-size: clamp(1.05rem, 1.9vw, 1.52rem);
  }
}

.story-21 .hero .visual { border-radius: 0; overflow: visible; }
.story-21 .hero .approval-line { border-radius: 15px 15px 2px 2px; border: 1px solid #8aa89b; }
.story-21 .approval-line circle { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="normal"] .dispatch-parcel { animation: stop-at-review 8s linear infinite; }
}
@keyframes stop-at-review {
  0%, 100% { transform: translate(0,0); }
  13% { transform: translate(100px,0); }
  18% { transform: translate(137px,-17px); }
  29% { transform: translate(205px,-84px); }
  33% { transform: translate(237px,-99px); }
  41% { transform: translate(285px,-99px); }
  46% { transform: translate(320px,-113px); }
  56%, 73% { transform: translate(371px,-163px); }
  79% { transform: translate(320px,-113px); }
  83% { transform: translate(285px,-99px); }
  86% { transform: translate(237px,-99px); }
  93% { transform: translate(137px,-17px); }
  95% { transform: translate(100px,0); }
}
.story-21 .return-ticket { grid-column: 1 / -1; margin: 0; max-width: 52rem; width: 100%; justify-self: end; border: 1px solid #8aa39a; border-left: 9px solid #315c65; background: #f3f6ec; color: #294c4b; }
.story-21 .return-ticket figcaption { padding: .6rem .85rem; margin: 0; border: 0; background: #dae8da; color: #2f524b; }
.return-ticket svg { display: block; width: 100%; height: auto; }
.hold-cart { offset-path: path("M51 85H188Q214 85 237 106l33 28q18 16 45 16h202"); offset-rotate: 0deg; offset-anchor: 0 0; offset-distance: calc(var(--cg-progress, .6) * 100%); }
.return-labels { display: grid; grid-template-columns: .9fr 1.1fr; border-top: 1px dashed #95aa98; }
.story-21 .return-labels p { padding: .7rem .9rem; margin: 0; font-size: .94rem; }
.return-labels strong { display: block; margin-bottom: .2rem; color: #244e46; }
.return-labels p + p { border-left: 1px dashed #95aa98; }
@media (max-width: 800px) {
  .story-21 .hero { display: grid; grid-template-columns: minmax(0,1fr); gap: .7rem; }
  .story-21 .hero .pitch { display: contents; }
  .story-21 .hero .word { grid-row: 1; }
  .story-21 .hero h1 { grid-row: 2; margin: 0; }
  .story-21 .hero .display { grid-row: 3; }
  .story-21 .hero .visual { grid-row: 4; margin: 0; width: 100%; }
  .story-21 .hero .lead { grid-row: 5; margin: .4rem 0; }
  .story-21 .dispatch-actions { grid-row: 6; }
}
@media (max-width: 480px) {
  .return-labels { grid-template-columns: 1fr; }
  .return-labels p + p { border-left: 0; border-top: 1px dashed #95aa98; }
}
