/* Locally hosted subsets; no font service or third-party stylesheet. */
@font-face { font-family: "Kuyuri Docs Text"; src: url("/assets/fonts/NotoSansJP-Light.woff2") format("woff2"); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: "Kuyuri Docs Text"; src: url("/assets/fonts/NotoSansJP-Medium.woff2") format("woff2"); font-style: normal; font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Kuyuri Docs Accent"; src: url("/assets/fonts/MPLUS1p-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
:root {
  color-scheme: dark;
  --night: #0d1226; --stone: #171d36; --line: #2b3558; --ink: #e8ecf8;
  --mute: #b4bed8; --rune: #d7e3ff; --edge: #5ccbff; --ember: #f1b36b;
  --button-ink: #0d1226; --error: #ffb5b5;
  --accent: "Kuyuri Docs Accent", "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", sans-serif;
  --gothic: "Kuyuri Docs Text", "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", sans-serif;
  --mono: "Cascadia Code", Consolas, ui-monospace, monospace;
}
.theme-home { --night: #050505; --ink: #ededed; --mute: #a3a3a3; --line: #262626; --stone: rgba(255,255,255,.03); --rune: #ededed; --edge: #ededed; --ember: #ededed; --button-ink: #050505; }
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --night: #f5f6fb; --stone: #fff; --line: #d3d9ea; --ink: #1b2140; --mute: #4c577b; --rune: #22306b; --edge: #1c5fd4; --ember: #94570a; --button-ink: #fff; --error: #a62728; }
  .theme-home { --night: #fff; --ink: #171717; --mute: #737373; --line: #e5e5e5; --stone: #f5f5f5; --rune: #171717; --edge: #171717; --ember: #171717; --button-ink: #fff; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.4rem; }
body { margin: 0; background: var(--night); color: var(--ink); font: 300 17px/1.95 var(--gothic); font-synthesis-weight: none; overflow-wrap: anywhere; line-break: strict; }
strong, b { font-family: var(--gothic); font-weight: 500; }
a { color: var(--edge); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--edge); outline-offset: 4px; }
.skip { position: absolute; top: -10rem; left: 1rem; z-index: 10; padding: .6rem 1rem; background: var(--stone); }
.skip:focus { top: .5rem; }
main, aside, .step-body { min-width: 0; }
img, video { display: block; max-width: 100%; height: auto; }
img { width: auto; }
p { margin: 1rem 0; }
ul, ol { padding-left: 1.6rem; }
li { margin: .4rem 0; }
h1, h2, h3 { font-family: var(--accent); font-weight: 400; line-height: 1.5; }
code { font: .86em var(--mono); background: var(--stone); border: 1px solid var(--line); padding: .08em .4em; border-radius: 4px; }
pre { max-width: 100%; overflow: auto; padding: 1.1rem; background: var(--stone); border: 1px solid var(--line); border-radius: 3px; line-height: 1.65; }
pre code { border: 0; padding: 0; white-space: pre; overflow-wrap: normal; }

/* Shared header with a plain one-pixel divider. */
.top, .foot { max-width: 1180px; margin: auto; padding: 1.4rem 2rem 1.1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 2rem; }
.brand { display: flex; flex-wrap: wrap; gap: 0 .9rem; align-items: baseline; font-family: var(--accent); font-weight: 400; letter-spacing: .04em; }
.shop { color: var(--mute); font-size: 1rem; text-decoration: none; }
.product { color: var(--rune); font-size: 1.25rem; text-decoration: none; letter-spacing: .06em; }
.top nav { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; margin-left: auto; font-size: .92rem; }
.top nav a { color: var(--ink); text-decoration: none; padding-bottom: .15rem; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--line); }
.top nav a[aria-current="page"] { border-bottom-color: var(--edge); }
.boundary { height: 1px; border: 0; margin: 0; background: var(--line); }
.foot { border-top: 1px solid var(--line); padding: 2rem; gap: .4rem 1.8rem; color: var(--mute); font-size: .85rem; }

/* Introduction: film, title and readable sections. */
.hero, .band { max-width: 1180px; margin: auto; padding: 0 2rem; }
.hero video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border-radius: 3px 3px 0 0; }
.hero-text { padding: 2.6rem 0 3.2rem; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: end; }
.hero h1 { font: 400 clamp(1.7rem, 3.7vw, 2.9rem)/1.5 var(--accent); letter-spacing: .02em; margin: 0; color: var(--rune); }
.hero h1 span { display: inline-block; }
.hero p { margin: 0 0 1.2rem; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; }
.btn, button { display: inline-block; padding: .7rem 1.6rem; border: 0; border-radius: 2px; background: var(--rune); color: var(--button-ink); font: 400 1rem/1.8 var(--accent); text-decoration: none; cursor: pointer; }
.btn:hover, button:hover:not(:disabled) { filter: brightness(1.12); }
.actions .plain { color: var(--ink); }
.band { border-top: 1px solid var(--line); padding-top: 3.6rem; padding-bottom: 3.6rem; }
.band > h2 { font: 400 1.75rem/1.5 var(--accent); letter-spacing: .04em; margin: 0 0 1.6rem; color: var(--rune); }
.lede { max-width: 36em; color: var(--mute); margin: -.6rem 0 2.2rem; }
.does { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.does article h3 { font: 400 1.3rem/1.5 var(--accent); margin: 1rem 0 .3rem; }
.does article p { margin: 0; color: var(--mute); font-size: .96rem; }
.does .a { grid-column: 1 / -1; }
.does .words { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 3rem; align-items: baseline; margin-top: 1.1rem; }
.does .words h3 { margin: 0; }
.does .crop { height: 300px; overflow: hidden; border: 1px solid var(--line); background: var(--stone); }
.does .crop img { border: 0; }
.does .crop.whole { display: flex; align-items: center; justify-content: center; background: #282828; }
.triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.triptych figure { position: relative; margin: 0; }
.triptych figcaption { position: absolute; left: .8rem; bottom: .5rem; margin: 0; padding: .1rem .35rem; background: rgba(0,0,0,.7); color: #fff; font-size: .9rem; }
.guide-list { max-width: 48em; margin: 0; padding-left: 1.5rem; }
.guide-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.guide-list a { font-family: var(--accent); font-weight: 400; }
.guide-list span { display: block; color: var(--mute); font-size: .9rem; }
.credits { font-size: .9rem; color: var(--mute); }
.credits h2 { font-size: 1.35rem; }
.more { margin-top: 1.8rem; }

/* Documentation and shared content blocks. */
.layout { max-width: 1180px; margin: auto; padding: 2.4rem 2rem 4rem; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3.6rem; align-items: start; }
.side { position: sticky; top: 1.4rem; max-height: calc(100vh - 2.8rem); overflow-y: auto; font-size: .92rem; }
.side h2 { font: 400 .9rem/1.5 var(--accent); color: var(--mute); margin: 0 0 .6rem; letter-spacing: .08em; }
.side h2 a { color: inherit; text-decoration: none; }
.side ol { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.side li { margin: 0; }
.side li a { display: block; padding: .32rem 0 .32rem .9rem; color: var(--ink); text-decoration: none; border-left: 2px solid var(--line); }
.side li a:hover { border-left-color: var(--mute); }
.side nav[aria-label="説明書"] li a { font-family: var(--accent); font-weight: 400; }
.side li a[aria-current="page"] { border-left-color: var(--edge); color: var(--rune); }
.doc h1 { font: 400 clamp(1.8rem, 3.2vw, 2.5rem)/1.5 var(--accent); letter-spacing: .04em; margin: 0 0 .6rem; color: var(--rune); }
.doc > h1 + p { color: var(--mute); margin: 0 0 2.4rem; }
.doc h2 { font: 400 1.45rem/1.5 var(--accent); color: var(--rune); letter-spacing: .04em; margin: 3.2rem 0 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 2rem; font-size: 1.12rem; }
.doc p, .doc li { max-width: 40em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.2rem; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0 1.4rem; margin: 0; max-width: none; }
.steps > li::before { content: counter(step); font: 400 3.1rem/1 var(--accent); color: var(--edge); text-align: right; padding-top: .1rem; }
.steps > li[data-step]::before { content: attr(data-step); }
.steps h3 { font: 400 1.12rem/1.65 var(--accent); margin: .2rem 0 .3rem; }
.steps p { margin: .3rem 0; max-width: 36em; }
.steps figure { margin: 1rem 0; }
figure { margin: 1.6rem 0; }
figure img { border: 1px solid var(--line); background: var(--stone); }
figure.shot img { width: auto; max-width: 100%; }
figure.shot.video video { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--stone); }
figcaption { font-size: .9rem; color: var(--mute); margin-top: .5rem; max-width: 40em; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; min-width: 7em; padding: .65rem .9rem .65rem 0; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
th { color: var(--mute); font-weight: 500; white-space: nowrap; }
thead th { border-bottom-color: var(--mute); }
td:first-child code { white-space: nowrap; }
.default-value { white-space: nowrap; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.callout, blockquote, .notice { margin: 1.8rem 0; padding: .9rem 1.2rem 1rem; border-left: 3px solid var(--edge); background: color-mix(in srgb, var(--edge) 9%, var(--night)); max-width: 40em; }
.callout > strong:first-child { display: block; color: var(--edge); font: 400 .95rem/1.8 var(--accent); letter-spacing: .08em; margin-bottom: .15rem; }
.callout.warn { border-left-color: var(--ember); background: color-mix(in srgb, var(--ember) 10%, var(--night)); }
.callout.warn > strong:first-child { color: var(--ember); }
.callout p, blockquote p { margin: .2rem 0; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .95rem; }
.pager .next { margin-left: auto; }

/* The existing inquiry form keeps its fields and behavior. */
form { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 3px; background: var(--stone); }
label { display: block; margin-bottom: 1.2rem; font-weight: 500; font-size: .95rem; }
input, select, textarea { display: block; width: 100%; min-width: 0; margin-top: .4rem; padding: .7rem; color: var(--ink); background: var(--night); border: 1px solid var(--line); border-radius: 3px; font: inherit; font-weight: 300; }
textarea { resize: vertical; }
fieldset { min-width: 0; margin: 1.5rem 0; border: 1px solid var(--line); padding: 1rem; }
legend { padding: 0 .4rem; font-size: .9rem; }
.environment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.hint { font-size: .9rem; color: var(--mute); }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
button:disabled { opacity: .5; cursor: not-allowed; }
#form-status[data-state="error"] { color: var(--error); }
#form-status[data-state="success"] { color: var(--edge); }

@media (max-width: 800px) {
  .top, .foot, .hero, .band, .layout { padding-left: 1.1rem; padding-right: 1.1rem; }
  .top nav { margin-left: 0; }
  .hero-text { grid-template-columns: 1fr; padding: 1.8rem 0 2.2rem; }
  .does { display: block; } .does article { margin-bottom: 2.4rem; } .does .words { display: block; }
  .triptych { grid-template-columns: 1fr; }
  .layout { display: block; } .side { position: static; max-height: none; overflow: visible; margin-bottom: 2rem; }
  .steps > li { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 .8rem; } .steps > li::before { font-size: 2.2rem; }
  .doc table { min-width: 34rem; }
  form { padding: 1rem; } .environment { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
