/* Shiori — the page is one transit line: it runs down the left, fills with colour as
   you scroll, and every feature is a station on it. Everything else stays quiet. */
:root {
  --bg: #f4f6f2;        /* cool paper, the app's own window colour family */
  --paper: #ffffff;
  --ink: #17201c;
  --ink2: #4f5b56;
  --ink3: #646e69;
  --track: #dde3dc;     /* the line before the train has passed */
  --green: #007f54; --orange: #e48a00; --blue: #0067c0; --purple: #7d5ba6; --slate: #5f6f7a;
  --jp: "Zen Kaku Gothic New", "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --sign: "Overpass", "Segoe UI", sans-serif; /* highway / station signage */
  /* the rail: where it runs and how much room it takes on the left */
  --railw: 128px; --rx: 52px; --rail: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.9 var(--jp); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1; letter-spacing: .02em; }
/* headings set tight (proportional kana), body text keeps a little air */
h1, h2, h3, .btn, .top nav { font-feature-settings: "palt" 1; letter-spacing: 0; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- header */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; height: 68px; padding: 0 clamp(16px, 3vw, 40px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--track); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font: 800 21px/1 var(--sign); letter-spacing: .02em; }
.brand small { font: 700 15px/1 var(--jp); color: var(--green); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--ink2); }
.top nav a:hover { color: var(--ink); }
.top nav .go { color: #fff; background: var(--ink); padding: 8px 16px; border-radius: 999px; }
.top nav .go:hover { color: #fff; background: var(--green); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--ink);
  text-decoration: none; font: 700 15px/1 var(--jp); letter-spacing: .04em; color: var(--ink); background: transparent; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: #00633f; border-color: #00633f; }
.btn:active { transform: translateY(1px); }
.btn.big { height: 60px; padding: 0 36px; font-size: 17px; }

/* ---------------------------------------------------------------- the line */
.journey { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.seg { position: relative; padding-left: var(--railw); }
.rail { position: absolute; left: var(--rx); top: 0; bottom: 0; width: var(--rail); background: var(--track); }
.rail .fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p, 0) * 100%); background: var(--c); }
.hero .rail { top: 168px; border-radius: var(--rail) var(--rail) 0 0; }
.hero .rail .fill { border-radius: var(--rail) var(--rail) 0 0; }

/* a station: the badge sits on the line; it lights up once the colour reaches it */
.nb { position: absolute; z-index: 2; left: calc(var(--rx) + var(--rail) / 2 - 27px); width: 54px; height: 54px; display: grid; place-content: center; text-align: center;
  border: 5px solid var(--track); border-radius: 13px; background: var(--paper); color: var(--ink3); line-height: 1;
  transition: border-color .35s, color .35s, transform .45s cubic-bezier(.16, 1, .3, 1); }
.nb small { display: block; font: 800 9px/1 var(--sign); letter-spacing: .06em; margin-bottom: 3px; }
.nb b { display: block; font: 800 19px/1 var(--sign); }
.nb.on { border-color: var(--c); color: var(--ink); transform: scale(1.06); }

/* ---------------------------------------------------------------- hero */
.hero { padding-top: 150px; padding-bottom: 120px; }
.route-title { margin: 0; display: grid; gap: 34px; font: 900 clamp(34px, 5.3vw, 70px)/1.22 var(--jp); letter-spacing: -.01em; }
.stop { position: relative; display: block; }
/* the two stations of the headline, on the rail */
.stop .dot { position: absolute; top: .38em; left: calc(var(--rx) + var(--rail) / 2 - var(--railw) - 17px); width: 34px; height: 34px; border-radius: 50%;
  border: 7px solid var(--green); background: var(--paper); }
.stop .t { display: inline-block; }
.lead { max-width: 40em; margin: 40px 0 0; color: var(--ink2); font-size: clamp(16px, 1.45vw, 19px); line-height: 2; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.req { margin: 18px 0 0; font-size: 13px; color: var(--ink2); }
/* who it is for, above the headline */
.eyebrow { margin: 0 0 22px; font: 800 15px/1.5 var(--jp); color: var(--green); letter-spacing: .04em; }
/* the measured numbers, right under the buttons: each goes to its measurement */
.proof { margin: 34px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); gap: 12px; }
.proof a { display: block; height: 100%; padding: 12px 16px; background: var(--paper); border-radius: 12px; border-left: 5px solid var(--c); text-decoration: none; }
.proof a:hover { box-shadow: 0 0 0 1.5px var(--c); }
.proof small { display: block; font-size: 12.5px; color: var(--ink2); line-height: 1.5; }
.proof b { display: block; font: 900 28px/1.25 var(--jp); color: var(--c); letter-spacing: 0; }
.proof span { display: block; font-size: 12.5px; color: var(--ink); line-height: 1.5; }
@media (max-width: 700px) {
  .eyebrow { font-size: 13px; margin-bottom: 14px; }
  .proof { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 22px; }
  .proof a { display: grid; grid-template-columns: 6.6em 1fr; column-gap: 10px; align-items: baseline; padding: 8px 12px; border-left-width: 4px; border-radius: 9px; }
  .proof small { grid-column: 2; grid-row: 1; font-size: 11.5px; }
  .proof b { grid-column: 1; grid-row: 1 / span 2; font-size: 21px; align-self: center; }
  .proof span { grid-column: 2; grid-row: 2; font-size: 11px; color: var(--ink2); }
  .req { font-size: 12px; margin-top: 12px; }
  .hero .lead { margin-top: 22px; line-height: 1.8; }
  .hero .cta { margin-top: 22px; }
  .hero .cta .btn { height: 46px; }
}

/* the page-load moment: the stations drop in, the words follow along the line */
@media (prefers-reduced-motion: no-preference) {
  .stop .dot { transform: scale(0); }
  .stop .t { clip-path: inset(0 100% 0 0); transform: translateX(-12px); }
  .eyebrow, .lead, .cta, .proof, .req { opacity: 0; transform: translateY(10px); }
  .ready .stop .dot { animation: pop .5s cubic-bezier(.16, 1, .3, 1) forwards; }
  .ready .stop .t { animation: draw .9s cubic-bezier(.6, 0, .2, 1) forwards; }
  .ready .s1 .dot { animation-delay: .15s; } .ready .s1 .t { animation-delay: .3s; }
  .ready .s2 .dot { animation-delay: .75s; } .ready .s2 .t { animation-delay: .9s; }
  .ready .eyebrow { animation: rise .6s ease-out .05s forwards; }
  .ready .lead, .ready .cta, .ready .proof, .ready .req { animation: rise .7s ease-out 1.5s forwards; }
  .ready .cta { animation-delay: 1.6s; } .ready .proof { animation-delay: 1.7s; } .ready .req { animation-delay: 1.8s; }
  .hero .rail .fill { transition: height 1.4s cubic-bezier(.6, 0, .2, 1); }
  .scrolling .hero .rail .fill { transition: none; }
}
@keyframes pop { to { transform: scale(1); } }
@keyframes draw { to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* the product: it starts leaning back and straightens up as it scrolls into view */
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: var(--paper);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 40px 80px -36px rgb(16 32 26 / .45), 0 0 0 1px rgb(23 32 28 / .08); }
.shot video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e9ece7; }
/* ---------------------------------------------------------------- hero stage: the app on a route map
   The map is drawn in a 1600×1150 box; the window covers its middle and the lines run in under it. */
.stage { position: relative; margin: 56px 0 0; aspect-ratio: 1600 / 1150; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ln { fill: none; stroke: var(--c); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.st .dot, .st .badge { fill: var(--paper); stroke: var(--c); }
.st .dot { stroke-width: 7; }
.st .badge { stroke-width: 6; }
.st .code, .st .num { font-family: "Overpass", sans-serif; font-weight: 800; text-anchor: middle; fill: var(--ink); }
.st .code { font-size: 11px; letter-spacing: .06em; fill: var(--ink2); }
.st .num { font-size: 19px; }
.st .tag { font: 700 21px "Overpass", "Zen Kaku Gothic New", sans-serif; text-anchor: middle; fill: var(--ink2); paint-order: stroke; stroke: var(--bg); stroke-width: 8px; stroke-linejoin: round; }
.st .tag.start { text-anchor: start; }
.train { fill: var(--paper); stroke: var(--c); stroke-width: 6; opacity: 0; transition: opacity .4s; }
.train.go { opacity: 1; }
.win { position: absolute; left: 7%; top: 13.04%; width: 86%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--paper);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 50px 90px -40px rgb(16 32 26 / .5), 0 0 0 1px rgb(23 32 28 / .08);
  transform-origin: 50% 0; transform: perspective(1800px) rotateX(calc(var(--tilt, 0) * 12deg)) scale(calc(1 - var(--tilt, 0) * .04)); will-change: transform; }
.win video { width: 100%; height: 100%; object-fit: cover; background: #e9ece7; }

/* first paint, after the headline: the window rises onto the map, the lines are laid out to it,
   their stations appear, and then the trains start running in */
@media (prefers-reduced-motion: no-preference) {
  .js .win { opacity: 0; translate: 0 40px; filter: blur(6px); }
  .js .ready .win { animation: arrive 1s cubic-bezier(.16, 1, .3, 1) 1.2s forwards; }
  .js .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .ready .ln { animation: lay 1.1s cubic-bezier(.6, 0, .2, 1) calc(1.7s + var(--d)) forwards; }
  .js .st { opacity: 0; transform: scale(.5); transform-box: fill-box; transform-origin: center; }
  .js .ready .st { animation: pop-in .5s cubic-bezier(.16, 1, .3, 1) calc(1.9s + var(--d)) forwards; }
}
@keyframes arrive { to { opacity: 1; translate: 0 0; filter: none; } }
@keyframes lay { to { stroke-dashoffset: 0; } }
@keyframes pop-in { to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .st .tag { display: none; } }

/* a feature's screen opens from the line side once its station lights up */
@media (prefers-reduced-motion: no-preference) {
  .js .feature .shot { clip-path: inset(0 100% 0 0 round 14px); transition: clip-path 1s cubic-bezier(.16, 1, .3, 1); }
  .js .feature.seen .shot { clip-path: inset(0 0 0 0 round 14px); }
}

/* ---------------------------------------------------------------- features */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: 110px; padding-bottom: 110px; }
.feature .nb { top: calc(110px + 6px); }
.feature h2 { margin: 0 0 18px; font: 900 clamp(25px, 2.7vw, 36px)/1.4 var(--jp); letter-spacing: -.005em; }
.feature p { margin: 0; color: var(--ink2); max-width: 34em; }
.feature ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 34em; }
.feature li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.75; color: var(--ink); }
/* small stops in the line's colour */
.feature li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 12px; height: 12px; border-radius: 50%; border: 3.5px solid var(--c); background: var(--paper); }
.feature .text { align-self: start; padding-top: 4px; }

/* ---------------------------------------------------------------- transfer: more features */
.more { padding-top: 120px; padding-bottom: 120px; }
.more .nb { top: 120px; }
.nb.transfer { width: 64px; height: 64px; left: calc(var(--rx) + var(--rail) / 2 - 32px); border-radius: 50%; }
.nb.transfer b, .nb.terminus b { font: 900 15px/1 var(--jp); letter-spacing: .04em; }
.more h2 { margin: 6px 0 44px; font: 900 clamp(25px, 2.7vw, 36px)/1.4 var(--jp); }
/* each one is a short branch line with its own colour */
.lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 56px; }
.lines li { position: relative; padding-left: 30px; }
.lines li::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 2px; width: 4px; border-radius: 2px; background: color-mix(in srgb, var(--l) 35%, transparent); }
.lines li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--l); background: var(--paper); }
.lines h3 { margin: 0 0 4px; font: 700 17px/1.5 var(--jp); }
/* ---------------------------------------------------------------- compared with Explorer */
.compare { padding-top: 40px; padding-bottom: 120px; }
.compare .nb { top: 40px; }
.compare h2 { margin: 6px 0 12px; font: 900 clamp(25px, 2.7vw, 36px)/1.4 var(--jp); }
.cmp-lead { margin: 0 0 30px; color: var(--ink2); max-width: 40em; }
.cmp-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--track); background: var(--paper); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
.cmp th, .cmp td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--track); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font: 700 13px/1.4 var(--jp); color: var(--ink2); background: var(--bg); }
.cmp thead th.me { color: var(--green); }
.cmp tbody th { width: 30%; font-weight: 700; }
.cmp td { color: var(--ink2); line-height: 1.7; }
.cmp td.me { background: color-mix(in srgb, var(--green) 5%, var(--paper)); color: var(--ink); }
.cmp .y, .cmp .p, .cmp .n { display: inline-block; min-width: 3.4em; margin-right: 10px; padding: 1px 8px; border-radius: 999px; font: 700 12px/1.7 var(--jp); text-align: center; }
.cmp .y { background: var(--green); color: #fff; }
.cmp .p { background: color-mix(in srgb, var(--orange) 18%, var(--paper)); color: #8a5300; }
.cmp .n { background: var(--track); color: var(--ink2); }
/* phones: one card per row, each side labelled */
@media (max-width: 640px) {
  .cmp { min-width: 0; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { padding: 12px 16px; border-bottom: 1px solid var(--track); }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp th, .cmp td { padding: 4px 0; border: 0; background: none !important; }
  .cmp tbody th { width: auto; margin-bottom: 2px; }
  .cmp td::before { display: block; font: 700 11px/1.6 var(--jp); color: var(--ink3); }
  .cmp td.me::before { content: "Shiori"; color: var(--green); }
  .cmp td:not(.me)::before { content: "エクスプローラー"; }
}
.lines p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--ink2); }

/* ---------------------------------------------------------------- terminus */
.download { padding-top: 140px; padding-bottom: 160px; }
.rail.end { bottom: auto; height: calc(140px + 36px); }
.nb.terminus { top: 140px; width: 72px; height: 72px; left: calc(var(--rx) + var(--rail) / 2 - 36px); border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 11px var(--track); transition: border-color .35s, box-shadow .35s, color .35s, transform .45s cubic-bezier(.16, 1, .3, 1); }
.nb.terminus.on { box-shadow: 0 0 0 6px var(--bg), 0 0 0 11px var(--c); }
.dl-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.dl-body img { width: 104px; height: 104px; filter: drop-shadow(0 18px 24px rgb(0 80 50 / .25)); }
.dl-body h2 { margin: 8px 0 0; font: 900 clamp(30px, 4vw, 52px)/1.3 var(--jp); }
.dl-body p { margin: 0; color: var(--ink2); max-width: 36em; }
.dl-body .btn { margin-top: 12px; }
.dl-body .note { font-size: 13px; color: var(--ink3); margin-top: 6px; }
.dl-body .btn + .note, .dl-btns + .note { margin-top: 18px; }
.dl-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dl-btns .btn { margin-top: 12px; }

.foot { max-width: 1320px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 26px clamp(16px, 3vw, 40px) 40px; font-size: 13px; color: var(--ink3); border-top: 1px solid var(--track); }
.f-brand { display: flex; align-items: center; gap: 8px; }
.f-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.f-links a { text-decoration: none; }
.f-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------------------------------------------------------------- terms / privacy
   The page title is a station sign (駅名標): the name, its reading, and a band in the line's
   colour naming the stations on either side. The articles are a short line of their own,
   drawn as a route map on the left that lights up the article being read. */
.doc { max-width: 1120px; margin: 0 auto; padding: 116px clamp(20px, 5vw, 48px) 88px; }

.sign { position: relative; max-width: 860px; margin: 0 auto; background: var(--paper); border-radius: 22px; overflow: hidden;
  border: 1px solid var(--track); box-shadow: 0 40px 80px -56px rgba(23, 32, 28, .45); }
.sign-body { padding: clamp(34px, 6vw, 58px) 24px clamp(26px, 4vw, 38px); text-align: center; }
.sign h1 { margin: 0; font: 900 clamp(36px, 6.4vw, 68px)/1.15 var(--jp); letter-spacing: .06em; }
.sign .reading { margin: 12px 0 0; font: 700 clamp(15px, 1.8vw, 19px)/1 var(--sign); color: var(--ink3); letter-spacing: .06em; }
.sign-band { position: relative; display: flex; justify-content: space-between; align-items: center; height: 58px; padding: 0 clamp(14px, 3vw, 28px);
  background: var(--c); color: #fff; font: 700 15px/1 var(--jp); }
.sign-band a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 8px; }
.sign-band a:hover span:not(.arw) { text-decoration: underline; text-underline-offset: 4px; }
.sign-band .arw { font: 800 18px/1 var(--sign); transition: transform .2s; }
.sign-band .prev:hover .arw { transform: translateX(-4px); }
.sign-band .next:hover .arw { transform: translateX(4px); }
.sign-band::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, #fff 35%, transparent); }
.doc .meta { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--ink3); }

.doc-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); margin-top: 64px; }
.doc .intro { grid-column: 2; margin: 0 0 8px; font-size: 17px; line-height: 2; color: var(--ink); max-width: 40em; }

/* route map (built by legal.js from the article headings) */
.route { grid-row: 1 / span 3; position: sticky; top: 100px; align-self: start; }
.route[hidden] { display: none; }
.route ol { position: relative; list-style: none; margin: 0; padding: 0; }
.route ol::before, .route ol::after { content: ""; position: absolute; left: 9px; top: 18px; width: 4px; border-radius: 2px; }
.route ol::before { bottom: 18px; background: var(--track); }
.route ol::after { height: var(--fill, 0px); background: var(--ink); transition: height .45s cubic-bezier(.4, 0, .2, 1); }
.route li { position: relative; }
.route a { display: flex; align-items: center; gap: 14px; padding: 7px 0; text-decoration: none; font-size: 14px; line-height: 1.5; color: var(--ink3); transition: color .2s; }
.route a:hover { color: var(--ink); }
.route i { position: relative; z-index: 1; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 4px solid var(--track);
  transition: border-color .3s, background .3s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.route .passed i { border-color: var(--c); }
.route .passed a { color: var(--ink2); }
.route .here i { border-color: var(--c); background: var(--c); box-shadow: inset 0 0 0 4px var(--paper); transform: scale(1.18); }
.route .here a { color: var(--ink); font-weight: 700; }

/* articles: each heading carries a station number, like the features on the top page */
.articles { grid-column: 2; list-style: none; margin: 0; padding: 0; }
.articles > li { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 22px; padding: 34px 0; border-top: 1px solid var(--track); scroll-margin-top: 90px; }
.articles > li:first-child { border-top: 0; }
.articles > li > * { grid-column: 2; }
.articles .no { grid-column: 1; grid-row: 1 / span 9; width: 58px; height: 58px; border-radius: 14px; border: 5px solid var(--c, var(--green)); background: var(--paper);
  display: grid; place-content: center; text-align: center; }
.articles .no small { display: block; font: 800 9px/1 var(--sign); letter-spacing: .06em; margin-bottom: 3px; color: var(--ink2); }
.articles .no b { display: block; font: 800 20px/1 var(--sign); }
.articles h2 { margin: 2px 0 10px; font: 700 clamp(19px, 2vw, 22px)/1.55 var(--jp); }
.articles p, .articles li li { font-size: 15.5px; line-height: 1.95; color: var(--ink2); }
.articles p { margin: 0 0 10px; max-width: 40em; }
.articles ul { margin: 0 0 10px; padding: 0; list-style: none; max-width: 40em; }
.articles ul li { position: relative; margin: 4px 0; padding-left: 20px; }
.articles ul li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--c, var(--green)); }
.articles a { text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.articles a:hover { text-decoration-color: currentColor; }
.articles code { font: 500 .88em/1 Consolas, "BIZ UDGothic", monospace; background: var(--paper); border: 1px solid var(--track); padding: 3px 7px; border-radius: 7px; white-space: nowrap; color: var(--ink); }
.articles strong { color: var(--ink); font-weight: 700; }

.contact { grid-column: 2; display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 22px; align-items: start; margin-top: 8px; padding: 30px 30px 30px 18px;
  border-radius: 22px; background: var(--ink); color: #dfe6e1; }
.contact::before { content: "?"; grid-row: 1 / span 2; justify-self: end; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font: 800 20px/1 var(--sign); }
.contact h2 { margin: 4px 0 6px; font: 700 18px/1.5 var(--jp); color: #fff; }
.contact p { margin: 0; font-size: 15px; line-height: 1.9; }
.contact a { color: #fff; text-underline-offset: 3px; }

/* first paint: the name settles, the band runs out from the left, then the sign's dot,
   its neighbours and the route map's stations appear in turn */
@media (prefers-reduced-motion: no-preference) {
  .sign-band { transform-origin: left; transform: scaleX(0); }
  .sign-band > a, .sign-band::after { opacity: 0; }
  .sign h1, .sign .reading { opacity: 0; transform: translateY(10px); }
  .ready .sign h1 { animation: rise .7s cubic-bezier(.2, .7, .2, 1) .05s forwards; }
  .ready .sign .reading { animation: rise .7s cubic-bezier(.2, .7, .2, 1) .2s forwards; }
  .ready .sign-band { animation: run .8s cubic-bezier(.6, 0, .2, 1) .35s forwards; }
  .ready .sign-band::after { animation: dot .45s cubic-bezier(.16, 1, .3, 1) 1.05s forwards; }
  .ready .sign-band > a { animation: fade .5s ease-out 1.1s forwards; }
  .route li { opacity: 0; transform: translateX(-8px); }
  .ready .route li { animation: rise .45s ease-out forwards; animation-delay: calc(1.1s + var(--i) * 60ms); }
}
@keyframes run { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }
@keyframes dot { from { opacity: 1; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 920px) {
  .doc { padding-top: 96px; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); margin-top: 44px; }
  .route { display: none; }
  .doc .intro, .articles, .contact { grid-column: 1; }
  .sign-band { height: 50px; font-size: 13px; }
  .sign-band::after { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
}
@media (max-width: 560px) {
  .articles > li, .contact { grid-template-columns: 42px minmax(0, 1fr); column-gap: 16px; }
  .articles .no { width: 42px; height: 42px; border-width: 4px; border-radius: 11px; }
  .articles .no small { font-size: 7px; } .articles .no b { font-size: 15px; }
  .contact { padding: 24px 22px 24px 12px; }
  .contact::before { width: 32px; height: 32px; font-size: 16px; }
  .sign-band .long { display: none; }
  .sign h1 { font-size: 7.4vw; letter-spacing: .02em; }
  .articles code { font-size: .82em; padding: 2px 5px; }
}

/* ---------------------------------------------------------------- narrow screens: the rail becomes thin */
@media (max-width: 920px) {
  :root { --railw: 56px; --rx: 14px; --rail: 5px; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding-top: 80px; padding-bottom: 80px; }
  .feature .nb { top: 80px; }
  .nb { width: 38px; height: 38px; border-width: 4px; border-radius: 10px; left: calc(var(--rx) + var(--rail) / 2 - 19px); }
  .nb small { font-size: 7px; } .nb b { font-size: 14px; }
  .nb.transfer { width: 44px; height: 44px; left: calc(var(--rx) + var(--rail) / 2 - 22px); }
  .nb.terminus { width: 48px; height: 48px; left: calc(var(--rx) + var(--rail) / 2 - 24px); box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px var(--track); }
  .nb.terminus.on { box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px var(--c); }
  .nb.transfer b, .nb.terminus b { font-size: 11px; }
  .stop .dot { width: 24px; height: 24px; border-width: 5px; left: calc(var(--rx) + var(--rail) / 2 - var(--railw) - 12px); }
  .hero { padding-top: 120px; padding-bottom: 80px; }
  .hero .rail { top: 136px; }
  .route-title { gap: 22px; }
  .lines { grid-template-columns: 1fr; gap: 26px; }
  .more, .download { padding-top: 80px; padding-bottom: 100px; }
  .more .nb, .nb.terminus { top: 80px; }
  .rail.end { height: calc(80px + 24px); }
}
@media (max-width: 560px) {
  .top nav a:not(.go) { display: none; }
  .route-title { font-size: 28px; }
}
/* break Japanese headings between phrases, not inside a word */
h1, h2, h3 { word-break: auto-phrase; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .win { transform: none; }
  .nb { transition: none; }
}

/* ---------------------------------------------------------------- measured: the log viewer against Sakura Editor */
.vs { padding-top: 40px; padding-bottom: 120px; }
.vs .nb { top: 40px; }
.vs h2 { margin: 6px 0 12px; font: 900 clamp(25px, 2.7vw, 36px)/1.4 var(--jp); }
.vs h3 { margin: 0 0 18px; font: 900 clamp(20px, 2vw, 25px)/1.4 var(--jp); }
.vs-body { max-width: 1080px; }
.vs-lead { margin: 0 0 30px; color: var(--ink2); max-width: 44em; }
.num { font-variant-numeric: tabular-nums; }

/* the race: one lane each, on one time scale */
.race { padding: 22px clamp(18px, 3vw, 32px) 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--track); }
.race-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.race-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.race-tabs button { font: 700 14px/1.3 var(--jp); padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--track); background: var(--paper); color: var(--ink2); cursor: pointer; text-align: left; }
.race-tabs button small { display: block; font: 600 11.5px/1.4 var(--sign); letter-spacing: .02em; color: var(--ink3); }
.race-tabs button[aria-selected="true"] { border-color: var(--c); color: var(--ink); background: color-mix(in srgb, var(--c) 6%, var(--paper)); }
.again { margin-left: auto; font: 700 13px/1 var(--jp); padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; }
.again:hover { background: var(--ink); color: #fff; }
.lane { display: grid; grid-template-columns: 150px minmax(0, 1fr) 110px; gap: 16px; align-items: center; padding: 10px 0; }
.lane + .lane { border-top: 1px dashed var(--track); }
.lane .who { font: 700 15px/1.3 var(--jp); }
.lane .who small { display: block; font: 500 12px/1.5 var(--jp); color: var(--ink3); }
.lane .track { position: relative; height: 18px; border-radius: 9px; background: var(--bg); overflow: hidden; }
.lane .track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--f, 0) * 100%); border-radius: 9px; }
.lane.sakura .track i { background: repeating-linear-gradient(-45deg, #8c9691 0 8px, #9aa49f 8px 16px); }
.lane.shiori .track i { background: var(--c); }
.lane .t { font: 800 22px/1 var(--sign); text-align: right; letter-spacing: -.01em; }
.lane.sakura .t { color: var(--ink2); }
.lane.shiori .t { color: var(--c); }
.lane.shiori.done .track i { animation: flash .6s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } to { box-shadow: 0 0 0 14px transparent; } }
.race-result { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 0; min-height: 48px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.race.finished .race-result { opacity: 1; transform: none; }
.race-result .x { font: 800 40px/1 var(--sign); color: var(--c); letter-spacing: -.02em; white-space: nowrap; }
.race-result span { color: var(--ink2); font-weight: 700; }

/* the three numbers */
.xs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 34px 0 0; border-top: 2px solid var(--ink); }
.xs > div { padding: 18px 20px 4px 0; }
.xs > div + div { padding-left: 24px; border-left: 1px solid var(--track); }
.xs dt { font: 700 14px/1.5 var(--jp); color: var(--ink2); }
.xs dd { margin: 4px 0 0; }
.xs b { display: block; font: 800 clamp(44px, 6vw, 72px)/1 var(--sign); letter-spacing: -.03em; color: var(--ink); }
.xs b i { font-style: normal; font-size: .5em; margin-left: 4px; color: var(--c); }
.xs dd span { display: block; margin-top: 8px; font: 600 14px/1.5 var(--sign); color: var(--ink3); }

/* ten changes of the condition: two timelines on one scale (22.5 s) */
.ten { margin: 56px 0 0; }
.ten figcaption { margin-bottom: 18px; color: var(--ink2); }
.ten figcaption b { display: block; font: 900 clamp(20px, 2vw, 25px)/1.4 var(--jp); color: var(--ink); margin-bottom: 4px; }
.tl { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px; gap: 16px; align-items: center; padding: 8px 0; }
.tl .who { font: 700 15px/1.3 var(--jp); }
.tl b { font: 800 22px/1 var(--sign); text-align: right; }
.tl.shiori b { color: var(--c); }
.tl .bar { position: relative; display: flex; height: 26px; }
.tl.sakura .bar i { flex: 0 0 10%; border-right: 2px solid var(--bg); background: #9aa49f; transform-origin: left; transform: scaleX(0); }
.tl.shiori .bar .load { flex: 0 0 5.33%; background: color-mix(in srgb, var(--c) 45%, var(--paper)); transform-origin: left; transform: scaleX(0); }
.tl.shiori .bar .tick { flex: 0 0 3px; margin-left: 1px; background: var(--c); transform: scaleY(0); }
.ten.go .tl.sakura .bar i { animation: grow .35s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: calc(var(--i) * .22s); }
.ten.go .tl.shiori .bar .load { animation: grow .3s cubic-bezier(.3, .7, .2, 1) forwards; }
.ten.go .tl.shiori .bar .tick { animation: pop .2s ease-out forwards; animation-delay: calc(.3s + var(--i) * .05s); }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes pop { to { transform: scaleY(1); } }
.tl-note { margin: 14px 0 0; color: var(--ink2); }
.tl-note b { color: var(--c); }

/* why: one reader against many, read once */
.why { margin-top: 64px; }
.why-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.how { margin: 0; }
.how .doc { position: relative; height: 150px; border-radius: 14px; background: repeating-linear-gradient(to bottom, var(--paper) 0 13px, var(--bg) 13px 15px); border: 1px solid var(--track); overflow: hidden; }
.how .scan { position: absolute; left: 0; right: 0; height: 3px; top: 0; background: #8c9691; box-shadow: 0 0 12px #8c9691; }
.how.shiori .scan { background: var(--c); box-shadow: 0 0 12px var(--c); }
.how figcaption { margin-top: 14px; color: var(--ink2); font-size: 15px; line-height: 1.8; }
.how figcaption b { display: block; color: var(--ink); font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .vs.seen .how.sakura .scan { animation: sweep 2.25s linear infinite; }
  .vs.seen .how.shiori .scan { animation: lanes 2.25s ease-in-out infinite; }
}
.how.shiori .c1 { top: 0; } .how.shiori .c2 { top: 25px; } .how.shiori .c3 { top: 50px; }
.how.shiori .c4 { top: 75px; } .how.shiori .c5 { top: 100px; } .how.shiori .c6 { top: 125px; }
@keyframes sweep { from { top: 0; } to { top: 100%; } }
/* every core reads its own part at the same moment, done long before the single reader */
@keyframes lanes { 0% { transform: translateY(0); opacity: 1; } 14% { transform: translateY(22px); opacity: 1; } 18%, 100% { transform: translateY(22px); opacity: 0; } }
.how.shiori .doc::after { content: "完了"; position: absolute; right: 12px; bottom: 10px; font: 700 13px/1 var(--jp); color: var(--c); opacity: 0; }
.vs.seen .how.shiori .doc::after { animation: done 2.25s steps(1) infinite; }
@keyframes done { 0% { opacity: 0; } 16% { opacity: 1; } }
.reasons { list-style: none; counter-reset: r; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.reasons li { counter-increment: r; position: relative; padding-top: 16px; border-top: 3px solid var(--c); color: var(--ink2); font-size: 15px; line-height: 1.8; }
.reasons b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

.vs-table { margin-top: 56px; }
.vs-table .cmp tbody th { width: 24%; }
.vs-table .cmp td { width: 38%; }
@media (max-width: 640px) {
  .vs-table .cmp td.me::before { content: "Shiori"; }
  .vs-table .cmp td:not(.me)::before { content: "サクラエディタ"; }
}
.method { margin-top: 28px; padding: 14px 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--track); color: var(--ink2); font-size: 14px; line-height: 1.8; }
.method summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.method p { margin: 10px 0 0; }
.method code { font: 600 .92em var(--sign); background: var(--bg); padding: 1px 6px; border-radius: 5px; }

/* disk: measured times as bars on one scale */
.speed-cmp { margin: 22px 0 0; max-width: 34em; }
.sc-title { margin: 14px 0 6px !important; font-size: 13.5px; font-weight: 700; color: var(--ink) !important; }
.sc { display: grid; grid-template-columns: 116px minmax(0, 1fr) 64px; gap: 12px; align-items: center; height: 26px; font-size: 13.5px; }
.sc span { color: var(--ink); font-weight: 700; }
.sc i { display: block; height: 10px; border-radius: 0 5px 5px 0; background: var(--c); width: var(--w); transform-origin: left; }
.sc.dim span { color: var(--ink2); font-weight: 500; }
.sc.dim i { background: #9aa49f; }
.sc b { font: 800 15px/1 var(--sign); text-align: right; }
.sc.dim b { color: var(--ink2); }
.sc-note { margin: 10px 0 0 !important; font-size: 12.5px; color: var(--ink3) !important; line-height: 1.7; }
@media (prefers-reduced-motion: no-preference) {
  .feature:not(.seen) .sc i { transform: scaleX(0); }
  .feature.seen .sc i { transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) .2s; }
}

@media (max-width: 920px) {
  .vs { padding-top: 40px; padding-bottom: 90px; }
  .xs { grid-template-columns: 1fr; }
  .xs > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--track); }
  .why-pair, .reasons { grid-template-columns: 1fr; }
  .lane, .tl { grid-template-columns: 96px minmax(0, 1fr) 76px; gap: 10px; }
}
@media (max-width: 640px) {
  /* the name and time above, the track below */
  .lane { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who t" "track track"; row-gap: 8px; }
  .lane .who { grid-area: who; } .lane .t { grid-area: t; } .lane .track { grid-area: track; }
  .tl { grid-template-columns: 76px minmax(0, 1fr) 58px; }
  .race-result { flex-wrap: wrap; }
  .race-result .x { font-size: 32px; }
  .lane .t, .tl b { font-size: 17px; }
}

/* measured: the search against Explorer and Sakura Editor */
.vs-video { margin: 0 0 34px; max-width: 960px; }
.runs .cmp th small, .runs .cmp td small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink3); line-height: 1.6; }
.runs .cmp td b { display: block; font: 800 20px/1.3 var(--sign); color: var(--ink); }
.runs .cmp td.me b { color: var(--c); }
.runs .cmp tbody th { width: 30%; }
.runs .cmp td { width: auto; }
.vs-search .sc-note { margin-top: 14px !important; }
@media (max-width: 640px) {
  .runs .cmp tbody th { width: auto; }
  .runs .cmp td:nth-child(3)::before { content: "Shiori 1 回目"; }
  .runs .cmp td:nth-child(4)::before { content: "Shiori 2 回目"; }
  .runs .cmp td:nth-child(5)::before { content: "Shiori 3 回目"; }
  .runs .cmp td:nth-child(6)::before { content: "次に起動したあと"; }
  .runs .cmp td:not(.me)::before { content: "相手"; }
}
