/* G354 のページ(チケット 2059)。見本 2036・2053(w0r/build.py)の CSS を本物のページの形に写した。
   色は studio.css の 6 つ(--bg --thin --t1 --t2 --t3 --ac)だけ。字は studio.css と同じ 3 つの並び。 */
:root { --bg:#FAFAF8; --thin:#E3E3DE; --t1:#111110; --t2:#565653; --t3:#696965; --ac:#C8412C; }
@font-face { font-family: "TYO Wordmark"; src: url(/fonts/tyo-wordmark.woff2) format("woff2"); font-display: block; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html:not([data-lang="ja"]) .ja { display: none; }
html[data-lang="ja"] .en { display: none; }
body { background: var(--bg); color: var(--t1); font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
.top { display: flex; align-items: baseline; gap: 28px; padding: 22px 36px 0; font-size: 11px; letter-spacing: 1.6px; color: var(--t2); }
.top .mark { display: inline-flex; align-items: center; gap: 11px; align-self: flex-start; margin-top: -3px; font-family: "TYO Wordmark", Georgia, serif; font-size: 29px; letter-spacing: 0; line-height: 1; color: var(--t1); }
.top .mark img { width: 34px; height: 34px; display: block; } .top .sp { flex: 1; }
.top .lang { display: flex; gap: 6px; } .top .lang i { font-style: normal; color: var(--t3); }
.top .lang button { font-size: 11px; letter-spacing: 1.6px; color: var(--t3); padding: 4px 0; }
.top .lang button[aria-pressed="true"] { color: var(--t1); text-decoration: underline; text-decoration-color: var(--ac); text-underline-offset: 4px; }
.top .back { color: var(--t2); }
.col { max-width: 1104px; margin: 0 auto; padding: 0 32px; }
.lbl { font-size: 15px; font-weight: 500; letter-spacing: 2.4px; color: var(--t3); text-transform: uppercase; }
html[data-lang="ja"] .lbl { letter-spacing: 1.2px; }
h1, h2, h3, .line { text-wrap: balance; }   /* DESIGN.md §2.3 見出しは行の長さをそろえる */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--thin); }
.hero h1 { font-size: 72px; font-weight: 700; letter-spacing: -2.16px; line-height: 1; margin-top: 20px; }
.hero .line { font-size: 50px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.05; margin-top: 28px; }
.hero .sub { font-size: 19px; line-height: 1.5; color: var(--t2); max-width: 640px; margin-top: 28px; }
.hero .commit { font-family: "SF Mono", Menlo, monospace; font-size: 14px; color: var(--t3); margin-top: 16px; overflow-wrap: anywhere; }
.demo { display: grid; grid-template-columns: 300px 1fr; gap: 40px 56px; padding: 64px 0; border-bottom: 1px solid var(--thin); }
.demo .dh { grid-column: 1 / -1; } .demo .how + .how { margin-top: 4px; color: var(--t2); }
.demo h2 { font-size: 30px; font-weight: 700; letter-spacing: -.9px; line-height: 1; margin-top: 14px; }
.demo .how { font-size: 19px; line-height: 1.5; margin-top: 20px; white-space: nowrap; }
.demo .foot { font-size: 16px; line-height: 1.4; color: var(--t3); margin-top: 28px; }
.ctl .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--t3); }
.ctl input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer; --fill: 100%; }
/* つまみ(2061): 溝 1px var(--thin)・済みの所 var(--t1)・つまみ 2×20 の var(--ac)。押せる高さは 48px のまま。済みの所の幅は page.js が --fill で渡す */
.ctl input::-webkit-slider-runnable-track { height: 1px; border: 0; background: linear-gradient(var(--t1), var(--t1)) 0 0 / var(--fill) 100% no-repeat, var(--thin); }
.ctl input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 2px; height: 20px; margin-top: -9.5px; border: 0; border-radius: 0; background: var(--ac); }
.ctl input::-moz-range-track { height: 1px; border: 0; background: var(--thin); }
.ctl input::-moz-range-progress { height: 1px; background: var(--t1); }
.ctl input::-moz-range-thumb { width: 2px; height: 20px; border: 0; border-radius: 0; background: var(--ac); }
.ctl input:focus { outline: none; } .ctl input:focus-visible { outline: 1px solid var(--t2); outline-offset: 2px; }
.live { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--thin); }
.live .k { font-size: 14px; font-weight: 500; letter-spacing: 2.2px; color: var(--t3); }
.live .v { font-size: 32px; font-weight: 700; letter-spacing: -.5px; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.live .v2 { font-size: 14px; color: var(--t3); margin-top: 8px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.btns { display: flex; gap: 24px; align-items: baseline; margin-top: 24px; }
.again { font-size: 22px; font-weight: 700; color: var(--ac); letter-spacing: .2px; padding: 6px 0; }
.again.sub { font-size: 16px; font-weight: 500; color: var(--t2); }
.seed { font-size: 14px; color: var(--t3); margin-top: 6px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.stage { border: 1px solid var(--t1); position: relative; align-self: start; }
.stage canvas { display: block; width: 100%; touch-action: none; }
#a-canvas { aspect-ratio: 200 / 128; cursor: crosshair; } #b-canvas { aspect-ratio: 720 / 560; cursor: grab; }
.legend { display: flex; gap: 24px; font-size: 14px; color: var(--t2); }
.legend > span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.legend .s::before { background: var(--ac); } .legend .n::before { border: 1px solid var(--t2); width: 6px; height: 6px; }
.spec, .res { padding: 64px 0; border-bottom: 1px solid var(--thin); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 28px; }
.two h3 { font-size: 19px; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--t1); }
.two li { list-style: none; font-size: 16px; line-height: 1.4; padding: 12px 0; border-bottom: 1px solid var(--thin); }
.two .muted li { color: var(--t2); }
.size { font-size: 16px; color: var(--t3); margin-top: 16px; }
.res .rule { font-size: 19px; line-height: 1.5; margin-top: 20px; max-width: 720px; }
.res .rule.cmp { font-size: 16px; color: var(--t2); margin-top: 12px; }
.scene { margin-top: 44px; } .scene h3 { font-size: 19px; font-weight: 600; }
.steps { font-size: 14px; color: var(--t3); margin-top: 6px; }
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 14px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 14px; font-weight: 500; color: var(--t3); padding: 10px 8px 10px 0; border-bottom: 1px solid var(--t1); vertical-align: bottom; }
td { font-size: 16px; padding: 14px 8px 14px 0; border-bottom: 1px solid var(--thin); vertical-align: top; } td.n, th.n { text-align: right; white-space: nowrap; }
td .k { display: none; }
html[data-lang="ja"] h1, html[data-lang="ja"] h2, html[data-lang="ja"] h3, html[data-lang="ja"] .line { word-break: keep-all; overflow-wrap: anywhere; }
td.e .st { display: block; font-size: 13px; color: var(--t3); margin-top: 4px; }
.none { font-size: 16px; color: var(--t2); padding: 14px 0; border-bottom: 1px solid var(--thin); margin-top: 14px; }
.dev { margin-top: 44px; } .dev dl { display: grid; grid-template-columns: 200px 1fr; margin-top: 14px; }
.dev dt, .dev dd { font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--thin); } .dev dd.u { color: var(--t3); }
.src { font-size: 14px; color: var(--t3); margin-top: 28px; line-height: 1.5; } .src p + p { margin-top: 6px; } .src p { overflow-wrap: anywhere; }
footer { display: flex; gap: 28px; padding: 40px 0 56px; font-size: 13px; letter-spacing: 1.6px; color: var(--t3); }
/* 携帯の縦 */
@media (max-width: 720px) {
  .top { padding: 16px 16px 0; flex-wrap: wrap; gap: 8px 14px; font-size: 10px; letter-spacing: 1.2px; }
  .top .sp { display: none; } .top .mark { flex: 1 0 auto; }
  .col { padding: 0 24px; }
  .hero { padding: 48px 0 44px; }
  .hero .line { font-size: 30px; letter-spacing: -.9px; margin-top: 20px; }
  .hero .sub { font-size: 16px; line-height: 1.45; margin-top: 18px; }
  .demo { display: flex; flex-direction: column; gap: 0; padding: 44px 0; }
  .demo .stage { order: 2; margin-top: 20px; } .demo .side { order: 3; margin-top: 16px; }
  .demo .how { font-size: 15px; line-height: 1.45; margin-top: 14px; }
  .demo h2 { font-size: 26px; }
  .live { margin-top: 12px; } .live .v { font-size: 26px; }
  .demo .foot { font-size: 14px; margin-top: 16px; }
  #b-canvas { aspect-ratio: 3 / 4; }
  .two { display: block; } .two > div + div { margin-top: 36px; }
  .res .rule { font-size: 16px; line-height: 1.45; }
  .scene { margin-top: 32px; } .scene h3 { font-size: 16px; }
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px 0; border-bottom: 1px solid var(--thin); }
  td { border: 0; padding: 0; font-size: 15px; } td.e { grid-column: 1 / -1; } td.n { text-align: left; white-space: normal; }
  td .k { display: block; font-size: 12px; color: var(--t3); margin-bottom: 2px; }
  .dev dl { grid-template-columns: 120px 1fr; } .dev dd { font-size: 14px; }
}
@media (max-width: 370px) { .demo .how { font-size: 14px; } .col { padding: 0 20px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
