/* v8：スマホを先に組み、広い画面で足す。横にスクロールする部品は置かない。
   色と書体は v5 から引き継ぎ（白い面・墨・青／見出しは明朝、本文と操作はゴシック）。 */
:root {
  --paper: #fff; --mist: #f1f3f5; --ink: #14171a; --sub: #3a414a; --pale: #59616b; --faint: #c5cad1; --line: #dde1e6;
  --blue: #0b4f9e; --blue-soft: #9cc4f0; --blue-wash: #eef4fb; --red: #b93a2c; --night: #0d0f12; --night-line: #2a2e35;
  --font: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "BIZ UDGothic", "Hiragino Kaku Gothic ProN", monospace;
  --gut: 20px; --header: 56px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.8; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; line-break: strict; overflow-wrap: anywhere; word-break: auto-phrase; text-wrap: pretty;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; touch-action: manipulation; }
.ph { display: inline-block; text-indent: 0; }
.nb { white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: 10px 26px; border: 1.5px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.4; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn--small { min-height: 44px; padding: 6px 16px; font-size: 14.5px; white-space: nowrap; flex: none; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--wide { width: 100%; }

/* ---------- 上の帯 ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
  display: flex; align-items: center; gap: 10px; padding-inline: var(--gut);
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s;
}
.mark { display: grid; text-decoration: none; line-height: 1.25; margin-right: auto; min-height: 44px; align-content: center; }
.mark__a { font-weight: 700; font-size: 15px; white-space: nowrap; }
.mark__b { font-size: 11px; color: var(--pale); display: none; }
.nav { display: none; }
.header__ind {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; min-width: 0;
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header__ind span { overflow: hidden; text-overflow: ellipsis; max-width: 7.5em; }
.header__ind small { font-size: 12px; font-weight: 400; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.header.is-night { background: rgba(13, 15, 18, .96); color: #fff; border-color: var(--night-line); }
.header.is-night .mark__b { color: #9aa3ad; }
.header.is-night .header__ind small { color: var(--blue-soft); }
.header.is-night .btn { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- 冒頭 ---------- */
.hero { padding-top: var(--header); display: flex; flex-direction: column; }
.hero__body { order: 1; }
.hero__media { order: 2; }
.hero__media { position: relative; height: clamp(170px, 52vw, 34svh); overflow: hidden; background: var(--mist); }
.hero__media img, .hero__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(13, 15, 18, .55), rgba(13, 15, 18, 0)); pointer-events: none; }
.hero__cap { position: absolute; z-index: 1; left: var(--gut); right: var(--gut); bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; }
.hero__cap small { font-size: 11px; font-weight: 400; opacity: .9; text-align: right; }
.hero__body { padding: 26px var(--gut) 28px; }
.hero__to { font-family: var(--head); font-size: 17px; margin-bottom: 10px; }
.hero__label { font-size: 13px; font-weight: 700; color: var(--sub); line-height: 1.6; }
.hero__title { font-family: var(--head); font-weight: 600; font-size: clamp(27px, 7.7vw, 36px); line-height: 1.38; letter-spacing: .01em; margin-top: 12px; }
.hero__q { display: block; text-indent: -.42em; }
.hero__a { display: block; font-family: var(--font); font-size: 17px; font-weight: 700; line-height: 1.7; letter-spacing: .02em; margin-top: .8em; }
.hero__lead { margin-top: 14px; color: var(--sub); font-size: 15.5px; max-width: 30em; }
.pick { margin-top: 22px; scroll-margin-top: calc(var(--header) + 16px); }
.pick__q { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.pick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick__btn {
  position: relative; appearance: none; display: grid; align-content: center; gap: 2px; text-align: left;
  min-height: 62px; padding: 9px 12px; border: 1px solid #aab1ba; border-radius: 2px; background: #fff; cursor: pointer; overflow: hidden;
  transition: background .25s, color .25s, border-color .25s;
}
.pick__btn b { font-size: 15px; line-height: 1.35; }
.pick__btn small { font-size: 12.5px; line-height: 1.4; color: var(--pale); }
.pick__btn:hover { border-color: var(--ink); }
.pick__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick__btn[aria-pressed="true"] small { color: #c5cad1; }
.pick__btn::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.pick__btn.is-showing::after { animation: bar var(--hold, 5s) linear both; }
.hero__sub { margin-top: 16px; font-size: 14.5px; }
.hero__sub a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }

/* ---------- 見出しの共通 ---------- */
.sec__title { font-family: var(--head); font-weight: 600; font-size: clamp(24px, 6.6vw, 30px); line-height: 1.45; letter-spacing: .01em; }
.sec__lead { margin-top: 12px; color: var(--sub); max-width: 34em; }
.sec__head { margin-bottom: 28px; }
.kicker { font-size: 13px; font-weight: 700; color: var(--blue); line-height: 1.6; }
.kicker small { font-size: 12px; font-weight: 400; color: var(--pale); margin-left: .6em; }

/* ---------- 見本を動かす ---------- */
.make { background: var(--mist); padding: 44px 0 48px; }
.make__title { font-family: var(--head); font-weight: 600; font-size: clamp(22px, 6vw, 28px); line-height: 1.5; margin-top: 6px; text-indent: -.42em; }
.make__lead { margin-top: 10px; color: var(--sub); font-size: 16px; max-width: 32em; }
#maker { margin-top: 22px; }
.mk { display: grid; gap: 16px; }
.mk__view { background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 28px -22px rgba(20, 23, 26, .45); min-width: 0; }
.mk__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.mk__bar b { font-family: var(--head); font-size: 17px; font-weight: 600; }
.mk__bar span { font-size: 12.5px; color: var(--pale); }
.mk__screen { padding: 12px 14px 6px; }
.mk__screen svg { width: 100%; height: auto; touch-action: pan-y; }
.mk__stats { display: flex; gap: 12px; padding: 6px 14px 2px; }
.mk__stats > div { flex: 1 1 0; min-width: 0; }
.mk__stats dt { font-size: 13px; color: var(--sub); line-height: 1.4; }
.mk__stats dd { display: flex; align-items: baseline; gap: 4px; line-height: 1.3; white-space: nowrap; }
.mk__stats b { font-family: var(--head); font-weight: 600; font-size: 27px; font-variant-numeric: tabular-nums; }
.mk__stats--3 { gap: 8px; }
.mk__stats--3 b { font-size: clamp(20px, 6.4vw, 27px); }
.mk__stats span { font-size: 13px; color: var(--sub); }
.mk__say { padding: 8px 14px 14px; font-size: 15px; line-height: 1.7; min-height: 5.6em; }
.mk.is-bad .mk__say { box-shadow: inset 3px 0 0 var(--red); }
.mk.is-done .mk__say { box-shadow: inset 3px 0 0 var(--blue); }
.mk__panel { display: grid; gap: 14px; min-width: 0; }
.mk__q b { display: block; font-size: 17px; }
.mk__q span { display: block; font-size: 14.5px; color: var(--sub); line-height: 1.5; }
.mk__rules { display: grid; gap: 8px; }
.rule {
  appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 9px 14px; text-align: left;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 2px; font-size: 15.5px; font-weight: 700; line-height: 1.45; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.rule__box { position: relative; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--ink); background: #fff; transition: background .2s, border-color .2s; }
.rule__box::after { content: ""; position: absolute; left: 6px; top: 1.5px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.rule[aria-pressed="true"] { background: var(--blue-wash); border-color: var(--blue); }
.rule[aria-pressed="true"] .rule__box { background: var(--blue); border-color: var(--blue); }
.rule[aria-pressed="true"] .rule__box::after { transform: rotate(45deg) scale(1); }
.mk.is-on .rule.is-next { animation: nudge 1.9s ease-out infinite; }
.mk__code { background: var(--night); color: #eef1f5; padding: 12px 14px 14px; font-family: var(--mono); font-size: 13px; line-height: 1.75; letter-spacing: 0; }
.mk__codebar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; margin-bottom: 6px; font-family: var(--font); font-size: 12.5px; color: #c3cad3; }
.mk__codebar small { font-size: 12px; }
.ln { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.75em; }
.ln i { font-style: normal; color: #a9b2bd; }
.ln--rule { color: var(--blue-soft); padding-left: 1.2em; text-indent: -1.2em; }
.ln--rule::before { content: "+ "; color: #6f9fd6; }
.ln.is-typing::after { content: ""; display: inline-block; width: .5em; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--blue-soft); }
.mk__done { border-top: 2px solid var(--ink); padding-top: 12px; }
.mk__donehead { font-size: 16px; font-weight: 700; line-height: 1.6; }
.mk__delta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 4px; }
.mk__delta span { flex-basis: 100%; font-size: 13.5px; color: var(--sub); }
.mk__delta b { font-family: var(--head); font-weight: 600; font-size: clamp(30px, 9vw, 40px); line-height: 1.25; white-space: nowrap; }
.mk__delta b:first-of-type { color: var(--pale); }
.mk__delta i { font-style: normal; font-size: 22px; color: var(--pale); }
.mk__zero { margin-top: 4px; font-size: 15px; }
.mk__zero b { font-family: var(--head); font-size: 24px; font-weight: 600; margin-inline: 2px; }
.mk:not(.is-done) .mk__done { display: none; }
.mk.is-done .mk__done { animation: rise .6s var(--ease) both; }
.mk__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; }
.mk__alt { appearance: none; background: none; border: 0; padding: 0; min-height: 44px; font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.mk__hint { font-size: 13px; color: var(--sub); line-height: 1.6; }

/* 道具：板取り */
.nest__sheet { fill: #f7f8fa; stroke: var(--ink); stroke-width: 9; }
.nest__rest { fill: rgba(11, 79, 158, .1); }
.nest__over, .nest__overlabel { opacity: 0; transition: opacity .3s; }
.nest.is-over .nest__over, .nest.is-over .nest__overlabel { opacity: 1; }
.nest__overlabel { font-family: var(--font); font-size: 104px; font-weight: 700; fill: var(--red); }
.nest__part { transition: transform .75s var(--ease); }
.nest__part rect { stroke: #fff; stroke-width: 9; transition: fill .3s; }
.nest__part.t0 rect { fill: #0b4f9e; } .nest__part.t1 rect { fill: #3f78bd; } .nest__part.t2 rect { fill: #7ba6d6; }
.nest__part.t3 rect { fill: #a9c4e2; } .nest__part.t4 rect { fill: #5d6b7c; } .nest__part.t5 rect { fill: #93a0ae; }
.nest__part.is-out rect { fill: var(--red); }
/* 道具：工程表 */
.gantt__col { cursor: pointer; }
.gantt__col rect { fill: transparent; }
.gantt__col.is-sun rect { fill: #f1f3f5; }
.gantt__col.is-rain rect { fill: #e1edfb; }
.gantt__day { font-family: var(--head); font-size: 21px; font-weight: 600; text-anchor: middle; fill: var(--ink); }
.gantt__week { font-family: var(--font); font-size: 17px; text-anchor: middle; fill: var(--pale); }
.gantt__col.is-sun .gantt__week { fill: var(--red); }
.gantt__col.is-rain .gantt__week { fill: var(--blue); font-weight: 700; }
.gantt__rule { stroke: var(--line); stroke-width: 1; }
.gantt__name { font-family: var(--font); font-size: 21px; fill: var(--ink); }
.gantt__cell { transition: transform .65s var(--ease); pointer-events: none; }
.gantt__cell rect { fill: #5d6b7c; transition: fill .3s; }
.gantt__cell.is-wash rect { fill: #7ba6d6; }
.gantt__cell.is-paint rect { fill: var(--blue); }
.gantt__cell.is-bad rect { fill: var(--red); }
.gantt__dry { opacity: 0; transition: opacity .3s, transform .65s var(--ease); pointer-events: none; }
.gantt__dry.is-on { opacity: 1; }
.gantt__dry rect { fill: none; stroke: #3f78bd; stroke-width: 2; stroke-dasharray: 5 4; }
.gantt__dry text { font-family: var(--font); font-size: 17px; text-anchor: middle; fill: #3f78bd; }
/* 道具：シフト表 */
.shift__day rect { fill: var(--mist); }
.shift__day text { font-family: var(--font); font-size: 22px; font-weight: 700; text-anchor: middle; fill: var(--ink); }
.shift__day.is-bad rect { fill: #f9e3df; }
.shift__day.is-bad text { fill: var(--red); }
.shift__name { font-family: var(--font); font-size: 22px; fill: var(--ink); }
.shift__cell rect { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.shift__v { font-family: var(--font); font-size: 24px; text-anchor: middle; fill: var(--ink); }
.shift__cell.v0 rect { fill: #f1f3f5; } .shift__cell.v0 .shift__v { fill: #7d8691; }
.shift__cell.v2 rect { fill: var(--ink); } .shift__cell.v2 .shift__v { fill: #fff; }
.shift__cell.is-bad rect { stroke: var(--red); stroke-width: 5; }
.shift__req { fill: var(--blue); }
.shift__cell.is-flip { animation: blink .55s ease-out; }
/* 道具：配達の順番 */
.route { background: #f1f3f5; cursor: crosshair; }
.route__streets line { stroke: #fff; stroke-width: 9; }
.route__river { fill: none; stroke: #d3e4f6; stroke-width: 26; stroke-linecap: round; }
.route__naive { fill: none; stroke: #aab1ba; stroke-width: 2.5; stroke-dasharray: 6 6; }
.route__best { fill: none; stroke: var(--blue); stroke-width: 4.5; stroke-linejoin: round; stroke-linecap: round; }
.route.is-raw .route__best { stroke: #5d6b7c; }
.route__pts circle { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.route__pts text { font-family: var(--font); font-size: 18px; font-weight: 700; text-anchor: middle; fill: var(--ink); }
.route__pts .is-am circle { fill: var(--blue); stroke: var(--blue); }
.route__pts .is-am text { fill: #fff; }
.route__depot rect { fill: var(--ink); }
.route__depot text { font-family: var(--font); font-size: 20px; font-weight: 700; fill: var(--ink); }
/* 道具：表の整理 */
.grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; line-height: 1.5; }
.grid th, .grid td { border: 1px solid var(--line); padding: 5px 6px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.grid thead th { background: var(--mist); font-weight: 700; font-size: 12px; }
.grid th:first-child { width: 26px; padding-inline: 0; text-align: center; background: var(--mist); color: var(--pale); }
.grid th:nth-child(2), .grid td:nth-child(2) { width: 27%; }
.grid th:nth-child(4), .grid td:nth-child(4) { width: 28%; }
.grid td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.grid td.is-flash { animation: flash .9s ease-out both; }
.sum { display: none; margin-top: 10px; padding-top: 8px; border-top: 2px solid var(--ink); }
.sum.is-on { display: block; animation: rise .5s var(--ease) both; }
.sum__title { font-size: 12.5px; font-weight: 700; }
.sum__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.sum.is-graph .sum__list li { grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) auto; }
.sum__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum__bar { display: none; height: 10px; background: var(--mist); }
.sum.is-graph .sum__bar { display: block; }
.sum__bar i { display: block; height: 100%; width: var(--w); background: var(--blue); transform-origin: left; animation: grow .7s var(--ease) both; }
.sum__val { font-family: var(--head); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum__val small { font-family: var(--font); font-size: 11px; font-weight: 400; margin-left: 2px; }
.sum__note { font-size: 12px; color: var(--red); line-height: 1.6; }
.sum__note:empty { display: none; }

/* 見本のあと */
.after { margin-top: 28px; padding-top: 22px; border-top: 2px solid var(--ink); }
.after__say { font-family: var(--head); font-weight: 600; font-size: clamp(19px, 5.2vw, 24px); line-height: 1.6; }
.after .btn { margin-top: 16px; width: 100%; }
.after__note { margin-top: 16px; font-size: 14px; line-height: 1.75; color: var(--sub); max-width: 46em; }
.swap { margin-top: 26px; border-top: 1px solid #cfd4da; border-bottom: 1px solid #cfd4da; }
.swap summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; font-size: 15.5px; font-weight: 700; cursor: pointer; list-style: none; }
.swap summary::-webkit-details-marker { display: none; }
.swap summary svg { width: 20px; height: 20px; flex: none; transition: transform .25s; }
.swap[open] summary svg { transform: rotate(180deg); }
.swap__list { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 16px; }
.swap__btn { appearance: none; min-height: 44px; padding: 6px 14px; background: #fff; border: 1px solid #aab1ba; border-radius: 2px; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.swap__btn:hover { border-color: var(--ink); }
.swap__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* ---------- ほかに頼めること ---------- */
.ask { padding: 0 0 52px; }
.ask__photo { margin-inline: calc(var(--gut) * -1); }
.ask__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--mist); }
.ask__photo figcaption { padding: 6px var(--gut) 0; font-size: 11.5px; color: var(--pale); text-align: right; }
.ask__body { padding-top: 30px; }
.qa { margin: 20px 0 22px; border-top: 1px solid var(--ink); }
.qa__item { border-bottom: 1px solid var(--line); }
.qa__item summary { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 2px 12px; align-items: center; padding: 13px 0; min-height: 56px; cursor: pointer; list-style: none; }
.qa__item summary::-webkit-details-marker { display: none; }
.qa__v { grid-column: 1; font-size: 12.5px; font-weight: 700; line-height: 1.5; display: flex; align-items: center; gap: 6px; }
.qa__v::before { content: ""; width: 9px; height: 9px; background: currentColor; flex: none; }
.qa__v.v-yes { color: var(--blue); } .qa__v.v-cond { color: var(--ink); } .qa__v.v-no { color: var(--red); } .qa__v.v-na { color: var(--pale); }
.qa__q { grid-column: 1; font-weight: 700; font-size: 15.5px; line-height: 1.6; }
.qa__chev { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; transition: transform .25s; }
.qa__item[open] .qa__chev { transform: rotate(180deg); }
.qa__a { padding: 0 32px 16px 0; font-size: 16px; color: var(--sub); }
.qa__more { appearance: none; display: flex; align-items: center; width: 100%; min-height: 50px; padding: 0; background: none; border: 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ask .btn { width: 100%; }

/* ---------- 作るもの ---------- */
.services { padding: 52px 0; border-top: 1px solid var(--line); }
.group { border-top: 1px solid var(--ink); padding: 20px 0 22px; }
.group__top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.group__photo { aspect-ratio: 1; overflow: hidden; background: var(--mist); }
.group__photo img { width: 100%; height: 100%; object-fit: cover; }
.group__verb { font-family: var(--head); font-weight: 600; font-size: 36px; line-height: 1.2; }
.group__lead { font-size: 15px; color: var(--sub); line-height: 1.65; margin-top: 4px; }
.svc { margin-top: 14px; display: grid; gap: 12px; }
.svc__name { font-size: 16px; font-weight: 700; line-height: 1.5; }
.svc__line { font-size: 15.5px; color: var(--sub); line-height: 1.75; }
.svc__items { display: none; }

/* ---------- 進め方 ---------- */
.flow { padding: 52px 0; background: var(--mist); }
.steps { display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 10px; }
.step__no { grid-row: 1 / span 4; font-family: var(--head); font-weight: 500; font-size: 46px; line-height: 1; }
.step h3 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.step__text { font-size: 16px; color: var(--sub); margin-top: 4px; line-height: 1.7; }
.step__get { margin-top: 8px; padding-top: 8px; border-top: 1px solid #cfd4da; font-size: 14.5px; font-weight: 700; line-height: 1.6; }
.step__get b { display: block; font-size: 13px; font-weight: 400; color: var(--sub); }
.facts { margin-top: 40px; padding-top: 22px; border-top: 2px solid var(--ink); }
.facts__title { font-family: var(--head); font-weight: 600; font-size: 22px; line-height: 1.5; }
.facts__list { margin-top: 12px; }
.facts__list > div { padding: 12px 0; border-bottom: 1px solid #cfd4da; }
.facts__list dt { font-size: 13px; font-weight: 700; color: var(--blue); }
.facts__list dd { font-size: 15px; line-height: 1.75; }
.facts__list li { position: relative; padding-left: 1em; }
.facts__list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 5px; height: 5px; background: var(--ink); }

/* ---------- 最後に ---------- */
.reveal { background: var(--night); color: #fff; padding: 40px 0 60px; }
.reveal__rows { overflow: hidden; display: grid; gap: 8px; }
.reveal__row { display: flex; gap: 8px; width: max-content; will-change: transform; }
.reveal__row figure { flex: none; width: clamp(132px, 34vw, 280px); aspect-ratio: 3 / 2; overflow: hidden; background: #1b1e23; }
.reveal__row img { width: 100%; height: 100%; object-fit: cover; }
.reveal__row:nth-child(2) { transform: translateX(-22%); }
.reveal__body { padding-top: 36px; }
.reveal__pre { font-size: 14px; color: var(--blue-soft); font-weight: 700; }
.reveal__title { font-family: var(--head); font-weight: 600; font-size: clamp(24px, 6.6vw, 32px); line-height: 1.5; margin-top: 8px; }
.reveal__sub { margin-top: 16px; color: #e5e9ee; max-width: 36em; }
.reveal__list { margin-top: 26px; border-top: 1px solid var(--night-line); }
.reveal__list > div { padding: 13px 0; border-bottom: 1px solid var(--night-line); }
.reveal__list dt { font-size: 13.5px; color: #b9c1cb; }
.reveal__list dd { font-size: 16px; line-height: 1.75; }

/* ---------- 相談する ---------- */
.contact { padding: 52px 0 56px; }
.contact__note { margin-top: 12px; font-size: 14.5px; font-weight: 700; }
.form { margin-top: 26px; display: grid; gap: 18px; }
.field label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.field label small { font-size: 13.5px; font-weight: 400; color: var(--sub); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px; font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; border: 1px solid #7d8691; border-radius: 2px; }
.field textarea { min-height: 124px; resize: vertical; }
.field input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field__err { margin-top: 6px; font-size: 14px; color: var(--red); }
.form__msg { padding: 12px 14px; background: var(--mist); font-size: 14.5px; line-height: 1.75; }

/* ---------- 下の帯・画面下の相談ボタン ---------- */
.footer { border-top: 1px solid var(--line); padding: 26px 0 104px; font-size: 13px; color: var(--sub); }
.footer__name { font-weight: 700; color: var(--ink); }
.footer__note { margin-top: 6px; line-height: 1.75; }
.footer__c { margin-top: 8px; font-family: var(--head); }
.dock { position: fixed; inset: auto 0 0 0; z-index: 40; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.dock.is-on { transform: translateY(0); }
.dock .btn { min-height: 50px; }

/* ---------- 業界を選んだときの幕 ---------- */
.curtain { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--ink); color: #fff; pointer-events: none; clip-path: inset(100% 0 0 0); }
.curtain p { display: grid; gap: 8px; text-align: center; padding: 0 var(--gut); opacity: 0; transform: translateY(14px); }
.curtain b { font-family: var(--head); font-weight: 600; font-size: clamp(32px, 9vw, 64px); line-height: 1.3; }
.curtain span { font-size: 15px; color: #c9d0d8; }
.curtain i { font-style: normal; color: #fff; font-weight: 700; margin-right: .2em; }
.curtain.is-in { clip-path: inset(0 0 0 0); transition: clip-path .3s cubic-bezier(.7, 0, .2, 1); }
.curtain.is-in p { opacity: 1; transform: none; transition: opacity .2s .1s, transform .3s .1s var(--ease); }
.curtain.is-out { clip-path: inset(0 0 100% 0); transition: clip-path .38s cubic-bezier(.7, 0, .2, 1); }
.curtain.is-out p { opacity: 1; transform: none; }
.hero__media canvas { opacity: 0; transition: opacity .5s; }
.hero__media canvas.is-ready { opacity: 1; }
.after.is-ready .btn { animation: nudge 1.9s ease-out 3; }

/* ---------- 動き ---------- */
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 rgba(11, 79, 158, .45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(11, 79, 158, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flash { 0% { background: #cfe2f8; } 100% { background: transparent; } }
@keyframes blink { 0% { opacity: .15; } 100% { opacity: 1; } }

/* 小さいスマホ（幅360px以下） */
@media (max-width: 360px) {
  :root { --gut: 16px; }
  .header { gap: 6px; }
  .mark__a { font-size: 14px; }
  .btn--small { padding: 6px 12px; font-size: 14px; }
  .header__ind { gap: 5px; font-size: 12.5px; }
  .header__ind span { max-width: 4.6em; }
  .rule { font-size: 15px; gap: 10px; padding-inline: 12px; }
}
/* ============================================================
   少し広い画面（タブレットから）
   ============================================================ */
@media (min-width: 640px) {
  :root { --gut: 32px; }
  .pick__grid { grid-template-columns: repeat(4, 1fr); }
  .after .btn, .ask .btn { width: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .step { grid-template-columns: 1fr; }
  .step__no { grid-row: auto; margin-bottom: 8px; }
  .facts__list > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; }
  .group__top { grid-template-columns: 140px minmax(0, 1fr); gap: 22px; }
  .svc { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; }
}
/* スマホ：道具の下に札が見える高さがあるとき（tools.js が is-stick を付ける）だけ、押している間、道具が上に残る */
@media (max-width: 959px) {
  .mk.is-stick .mk__view { position: sticky; top: calc(var(--header) + 4px); z-index: 2; }
  .grid { font-size: 12.5px; }
  .grid th, .grid td { padding: 3px 6px; }
  .sum { margin-top: 8px; padding-top: 6px; }
  .sum__list li { padding: 1px 0; }
  .sum__val { font-size: 15.5px; }
  .mk__screen { padding: 10px 12px 4px; }
}
/* ============================================================
   広い画面（パソコン）
   ============================================================ */
@media (min-width: 960px) {
  :root { --gut: clamp(40px, 5vw, 80px); --header: 64px; }
  body { font-size: 17px; }
  .mark__b { display: block; }
  .nav { display: flex; gap: 26px; margin-right: 18px; font-size: 14.5px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
  .nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .header__ind { font-size: 14px; margin-right: 6px; }
  .header__ind span { max-width: none; }
  .dock { display: none; }
  .footer { padding-bottom: 40px; }

  .hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100svh; }
  .hero__media { height: auto; min-height: calc(100svh - var(--header)); }
  .hero__media::after { height: 30%; }
  .hero__cap { left: 28px; right: 28px; bottom: 22px; font-size: 15px; }
  .hero__cap small { font-size: 12.5px; }
  .hero__body { align-self: center; padding: 28px clamp(32px, 4vw, 64px) 28px var(--gut); }
  .hero__label { font-size: 14.5px; }
  .hero__title { font-size: clamp(34px, 3.25vw, 54px); line-height: 1.34; margin-top: 14px; }
  .hero__a { font-size: 20px; margin-top: .7em; }
  .pick { margin-top: 30px; }
  .pick__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pick__btn { min-height: 64px; padding: 10px 16px; }
  .pick__btn b { font-size: 16px; }
  .pick__btn small { font-size: 13px; }

  .sec__title { font-size: clamp(32px, 3vw, 46px); }
  .sec__head { margin-bottom: 44px; }
  .make { padding: 88px 0 96px; }
  .make__title { font-size: clamp(30px, 2.9vw, 42px); }
  .make__lead { font-size: 17px; }
  #maker { margin-top: 36px; }
  .mk { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .mk__view { position: sticky; top: calc(var(--header) + 20px); }
  .mk__bar { padding: 14px 22px; }
  .mk__bar b { font-size: 21px; }
  .mk__bar span { font-size: 13px; }
  .mk__screen { padding: 22px 22px 8px; }
  .mk__stats { padding: 10px 22px 4px; gap: 24px; }
  .mk__stats dt { font-size: 14px; }
  .mk__stats b { font-size: 40px; }
  .mk__stats span { font-size: 14px; }
  .mk__say { padding: 10px 22px 22px; font-size: 16px; min-height: 5em; }
  .mk__q b { font-size: 19px; }
  .mk__q span { font-size: 15px; }
  .rule { min-height: 62px; font-size: 17px; padding: 10px 18px; }
  .rule:hover { background: var(--blue-wash); }
  .mk__code { font-size: 14px; padding: 16px 18px 18px; }
  .mk__codebar { font-size: 13px; }
  .grid { font-size: 15px; }
  .grid thead th { font-size: 13px; }
  .grid th, .grid td { padding: 8px 10px; }
  .grid th:first-child { width: 34px; }
  .sum__list li { font-size: 15px; padding: 6px 0; }
  .sum__val { font-size: 21px; }
  .after { margin-top: 56px; padding-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: center; }
  .after__say { font-size: clamp(24px, 2.2vw, 30px); }
  .after .btn { margin-top: 0; }
  .after__note { grid-column: 1 / -1; font-size: 14px; }
  .swap { margin-top: 40px; }
  .mk__donehead { font-size: 17px; }

  .ask { padding: 96px 0; }
  .ask__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
  .ask__photo { margin: 0; position: sticky; top: calc(var(--header) + 24px); }
  .ask__photo img { aspect-ratio: 4 / 5; }
  .ask__photo figcaption { padding-inline: 0; }
  .ask__body { padding-top: 0; }
  .qa__q { font-size: 17px; }
  .qa__a { font-size: 16px; }

  .services { padding: 96px 0; }
  .group { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 80px); padding: 34px 0 40px; }
  .group__top { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: start; }
  .group__photo { aspect-ratio: 4 / 5; }
  .group__verb { font-size: 60px; }
  .group__lead { font-size: 16px; margin-top: 10px; }
  .svc { margin-top: 6px; grid-template-columns: 1fr; gap: 22px; }
  .svc__name { font-size: 19px; }
  .svc__line { font-size: 16px; }
  .svc__items { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 6px; font-size: 13.5px; color: var(--pale); }

  .flow { padding: 96px 0; }
  .steps { gap: 48px; }
  .step__no { font-size: 72px; }
  .step h3 { font-size: 21px; }
  .step__text { font-size: 16px; }
  .facts { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; padding-top: 32px; }
  .facts__title { font-size: 28px; }
  .facts__list { margin-top: 0; }
  .facts__list > div:first-child { padding-top: 0; }
  .facts__list dd { font-size: 16px; }

  .reveal { padding: 72px 0 104px; }
  .reveal__rows { gap: 12px; }
  .reveal__row { gap: 12px; }
  .reveal__body { padding-top: 72px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(40px, 5vw, 80px); align-items: start; }
  .reveal__pre, .reveal__title, .reveal__sub { grid-column: 1; }
  .reveal__title { font-size: clamp(34px, 3.3vw, 52px); }
  .reveal__list { grid-column: 2; grid-row: 1 / span 3; margin-top: 8px; }

  .contact { padding: 104px 0 112px; }
  .contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .form { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   v9：見本の「その先」。結果を資料にする → 連絡の文を下書きする → 人のOK → 送って記録する
   ============================================================ */
.nx { margin-top: 34px; }
.nx__head b { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(23px, 6.2vw, 30px); line-height: 1.5; }
.nx__head > span { display: block; margin-top: 6px; color: var(--sub); font-size: 16px; }
.nx__list { margin-top: 22px; }
.nx__step { position: relative; padding: 0 0 30px 28px; opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .7s var(--ease); }
.nx__step.is-in { opacity: 1; transform: none; }
.nx__step::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: -10px; width: 2px; background: var(--blue); }
.nx__step::after { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; background: var(--blue); }
.nx__tag { font-size: 13px; font-weight: 700; color: var(--blue); line-height: 1.6; }
.nx__h { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.5; }
.nx__body { margin-top: 12px; }
/* 紙の資料 */
.paper, .mail, .deck { background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 30px -22px rgba(20, 23, 26, .5); }
.paper { padding: 16px 16px 14px; }
.paper__t { font-family: var(--head); font-weight: 600; font-size: 19px; line-height: 1.4; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.paper__meta { margin-top: 10px; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.paper__rows { margin-top: 4px; }
.paper__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.paper__rows dd { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paper__foot { margin-top: 10px; font-size: 13px; color: var(--sub); line-height: 1.6; }
.paper__grid { width: 100%; margin-top: 10px; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; line-height: 1.4; text-align: center; }
.paper__grid th, .paper__grid td { border: 1px solid var(--line); padding: 5px 0; font-weight: 400; }
.paper__grid thead th { background: var(--mist); font-weight: 700; }
.paper__grid tr > :first-child { width: 23%; text-align: left; padding-left: 6px; white-space: nowrap; }
.paper__grid td.is-night { background: var(--ink); color: #fff; }
.paper__grid td.is-off { background: var(--mist); color: #6a737e; }
/* スライド */
.deck { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px 22px 18px; padding: 6.5cqw 7cqw 6cqw; opacity: 0; transform: translateX(7%); transition: opacity .45s, transform .6s var(--ease); }
.slide.is-on { opacity: 1; transform: none; }
.slide__h { font-family: var(--head); font-weight: 600; font-size: 18px; font-size: 5.4cqw; line-height: 1.4; }
.slide--title { justify-content: center; background: var(--blue); color: #fff; }
.slide--title .slide__h { font-size: 27px; font-size: 8.6cqw; }
.slide__s { margin-top: 2cqw; font-size: 14px; font-size: 4.3cqw; }
.slide__bars { flex: 1; display: grid; align-content: center; gap: 7px; gap: 2.3cqw; }
.slide__bars li { display: grid; grid-template-columns: 31% 1fr auto; align-items: center; gap: 2.4cqw; font-size: 12.5px; font-size: 3.8cqw; line-height: 1.3; }
.slide__bars span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide__bars i { height: 14px; height: 4.6cqw; background: linear-gradient(to right, var(--blue) var(--w), var(--mist) var(--w)); }
.slide__bars b { font-family: var(--head); font-weight: 600; font-size: 14px; font-size: 4.5cqw; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slide__pts { flex: 1; display: grid; align-content: center; gap: 8px; gap: 2.6cqw; counter-reset: pt; }
.slide__pts li { position: relative; padding-left: 8cqw; font-size: 15px; font-size: 4.7cqw; font-weight: 700; line-height: 1.45; }
.slide__pts li::before { counter-increment: pt; content: counter(pt); position: absolute; left: 0; top: -.18em; font-family: var(--head); font-weight: 600; font-size: 6.4cqw; color: var(--blue); }
.slide__no { position: absolute; right: 4cqw; bottom: 2.4cqw; font-size: 10px; font-size: 3cqw; color: var(--pale); }
.slide--title .slide__no { color: #fff; }
.deck__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.deck__next { appearance: none; min-height: 48px; padding: 0; background: none; border: 0; font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.deck__no { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
/* 連絡の文 */
.mail__row { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.mail__row span { font-size: 13px; font-weight: 400; color: var(--pale); }
.mail__body { display: grid; gap: 2px; padding: 14px 16px 16px; font-size: 16px; line-height: 1.7; }
.mail__body b { font-weight: 700; background: linear-gradient(transparent 62%, #d6e6f8 62%); }
/* 人が決める所：ここだけ夜の色の帯にして、境目をはっきり見せる */
.nx__gate { margin: 0 calc(var(--gut) * -1) 30px; padding: 24px var(--gut) 24px calc(var(--gut) + 28px); background: var(--night); color: #fff; }
.nx__gate::before { display: none; }
.nx__gate::after { left: var(--gut); top: 31px; background: #fff; }
.nx__gate .nx__tag { color: var(--blue-soft); }
.nx__gate .nx__h { font-family: var(--head); font-weight: 600; font-size: 23px; line-height: 1.45; }
.nx__check { margin-top: 12px; border-top: 1px solid #3a4049; }
.nx__check > div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid #3a4049; }
.nx__check dt { font-size: 13.5px; color: #b9c1cb; }
.nx__check dd { font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.nx__btns { display: grid; gap: 4px; margin-top: 16px; }
.nx__ok { width: 100%; background: #fff; border-color: #fff; color: var(--ink); }
.nx__ok:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--ink); }
.nx__ok:disabled { background: transparent; border-color: #6b7480; color: #fff; cursor: default; }
.nx__gate.is-in .nx__ok:not(:disabled) { animation: nudgeW 1.9s ease-out infinite; }
.nx__fix { appearance: none; justify-self: start; min-height: 48px; padding: 0; background: none; border: 0; color: #fff; font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.nx__fixsay { font-size: 14.5px; line-height: 1.7; color: #e5e9ee; }
.nx__sample { margin-top: 8px; font-size: 13px; color: #b9c1cb; }
/* 送る・記録する */
.nx__last { padding-bottom: 6px; }
.nx__last::before { display: none; }
.nx:not(.is-ok) .nx__last::after { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }

.nx__sends { margin-top: 10px; counter-reset: sd; border-top: 1px solid #cfd4da; }
.nx__sends li { position: relative; counter-increment: sd; min-height: 54px; padding: 13px 0 13px 40px; border-bottom: 1px solid #cfd4da; font-size: 16px; line-height: 1.6; color: var(--sub); transition: color .35s, background .35s; }
.nx__sends li::before { content: counter(sd); position: absolute; left: 4px; top: 8px; font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.5; color: #7d8691; transition: color .35s; }
.nx__sends li.is-on { color: var(--ink); font-weight: 700; background: linear-gradient(to right, var(--blue-wash), var(--blue-wash)); }
.nx__sends li.is-on::before { color: var(--blue); }
.nx__later { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--sub); }
.nx__later b { display: block; font-size: 13px; color: var(--blue); }
.nx__sum { margin-top: 26px; padding-top: 20px; border-top: 2px solid var(--ink); animation: rise .6s var(--ease) both; }
.nx__sum b { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(23px, 6.2vw, 30px); line-height: 1.5; }
.nx__sum > span { display: block; margin-top: 8px; font-size: 16px; line-height: 1.75; color: var(--sub); }
@keyframes nudgeW { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
@media (min-width: 960px) {
  .nx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 64px; margin-top: 64px; align-items: start; }
  .nx__head { position: sticky; top: calc(var(--header) + 32px); }
  .nx__list { margin-top: 0; }
  .nx__gate { margin-inline: 0; padding: 26px 30px 26px 58px; }
  .nx__gate::after { left: 30px; top: 33px; }
  .nx__btns { grid-template-columns: auto auto; justify-content: start; gap: 4px 24px; align-items: center; }
  .nx__ok { width: auto; }
  .nx__sum { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .nx__step, .slide { transition: none; }
}

/* ============================================================
   v9：冒頭（何を作る人か＋作ったものの見本の棚）、写真の札、できることの一覧
   ============================================================ */
.header__ind { display: none; }
.hero { display: block; padding-top: var(--header); }
.hero__body { order: 0; padding: 30px var(--gut) 0; }
.hero__label { font-size: 13.5px; font-weight: 700; color: var(--blue); line-height: 1.6; }
.hero__title { margin-top: 8px; font-weight: 800; font-size: clamp(36px, 10.2vw, 46px); line-height: 1.28; letter-spacing: 0; }
.hero__lead { margin-top: 16px; max-width: 28em; color: var(--ink); font-size: 17px; line-height: 1.75; }
.hero__act { display: grid; gap: 4px; padding: 14px var(--gut) 40px; }
.hero__alt { display: inline-flex; align-items: center; justify-self: start; min-height: 48px; font-size: 15.5px; text-underline-offset: 5px; }
.hero__act .btn { width: 100%; }
/* 棚 */
.shelf { margin: 26px var(--gut) 0; }
.shelf__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; border: 1px solid #cfd4da; }
.shelf__panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.shelf__panel.is-on { opacity: 1; visibility: visible; transition: opacity .4s; }
.shelf__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.shelf__tabs.is-three { grid-template-columns: repeat(3, 1fr); }
.shelf__tab { position: relative; appearance: none; min-height: 52px; padding: 4px 2px; background: none; border: 0; font-size: 14px; line-height: 1.3; color: var(--sub); cursor: pointer; }
.shelf__tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.shelf__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink); transform: scaleX(0); transition: transform .3s var(--ease); }
.shelf__tab[aria-selected="true"]::after { transform: none; }
.shelf__cap { min-height: 4.4em; padding: 12px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--sub); }
/* 動画の見本 */
.vid { position: absolute; inset: 0; background: #fff; }
.vid__svg { width: 100%; height: 100%; }
.v-s { opacity: 0; }
.v-s1 { opacity: 1; }
.v-small { font: 700 24px var(--font); letter-spacing: .08em; }
.v-title { font-family: var(--head); font-weight: 800; font-size: 68px; letter-spacing: .02em; }
.v-mid { font: 700 30px var(--font); }
.v-num { font-family: var(--head); font-weight: 800; font-size: 212px; fill: var(--blue); }
.v-call { font-family: var(--head); font-weight: 800; font-size: 46px; fill: var(--blue); text-anchor: middle; }
.v-calllabel { font: 700 21px var(--font); fill: var(--ink); text-anchor: middle; }
.v-say { font: 700 27px var(--font); fill: var(--ink); }
.v-memo { font-family: var(--head); font-weight: 600; font-size: 28px; fill: var(--ink); }
.v-memolabel { font: 700 23px var(--font); fill: var(--ink); }
.v-row line { stroke: var(--faint); stroke-width: 4; }
.v-row path { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: square; }
.v-end { font-family: var(--head); font-weight: 800; font-size: 41px; fill: var(--ink); text-anchor: middle; }
.v-cap text { font: 700 33px var(--font); fill: var(--blue); text-anchor: middle; }
.vid__bar { position: absolute; inset: auto 0 0 0; height: 4px; background: #e3e7ec; }
.vid__bar i { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.vid__pp { position: absolute; left: 0; top: 0; width: 44px; height: 44px; padding: 0; border: 0; background: linear-gradient(rgba(20, 23, 26, .82), rgba(20, 23, 26, .82)) 6px 6px / 30px 30px no-repeat; cursor: pointer; }
.vid__pp::before, .vid__pp::after { content: ""; position: absolute; top: 15px; width: 4px; height: 12px; background: #fff; }
.vid__pp::before { left: 15px; } .vid__pp::after { left: 23px; }
.vid__pp.is-paused::before { left: 16px; top: 13px; width: 0; height: 0; background: none; border: solid transparent; border-width: 8px 0 8px 12px; border-left-color: #fff; }
.vid__pp.is-paused::after { display: none; }
/* 資料の見本（棚の中では枠なし・いっぱいに） */
.deck--shelf { position: absolute; inset: 0; aspect-ratio: auto; border: 0; box-shadow: none; cursor: pointer; }
.slide__grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 2.2cqw 5cqw; }
.slide__grid li { padding-bottom: 1.6cqw; border-bottom: 1px solid var(--line); font-size: 15px; font-size: 4.5cqw; font-weight: 700; line-height: 1.4; }
/* Webサイトの見本：このページの画面が、ゆっくり下へ流れる */
.webshot { position: absolute; inset: 0; overflow: hidden; background: var(--mist); }
.webshot img { position: absolute; left: 50%; top: 0; width: 46%; max-width: none; transform: translateX(-50%); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -20px rgba(20, 23, 26, .5); animation: pan 22s ease-in-out infinite alternate; }
@keyframes pan { from { transform: translate(-50%, 0); } to { transform: translate(-50%, calc(-100% + 56.25cqw)); } }
.shelf__stage { container-type: inline-size; }
/* 仕事の道具の見本：流れ */
.chain { position: absolute; inset: 0; display: grid; align-content: center; gap: 1.3cqw; padding: 0 9cqw; background: #fff; counter-reset: ch; }
.chain li { position: relative; padding-left: 8cqw; font-size: 15px; font-size: 4.3cqw; font-weight: 700; line-height: 1.5; color: var(--ink); animation: chainOn 7.5s linear infinite both; }
.chain li::before { content: ""; position: absolute; left: 0; top: .42em; width: 3cqw; height: 3cqw; background: var(--blue); }
.chain li::after { content: ""; position: absolute; left: 1.35cqw; top: 1.4em; width: 2px; height: 1.1em; background: var(--blue); }
.chain li:last-child::after { display: none; }
.chain li.is-human { color: var(--ink); }
.chain li.is-human::before { background: var(--ink); }
.chain li:nth-child(2) { animation-delay: 1s; } .chain li:nth-child(3) { animation-delay: 2s; } .chain li:nth-child(4) { animation-delay: 3s; } .chain li:nth-child(5) { animation-delay: 4.4s; }
@keyframes chainOn { 0% { opacity: .22; } 6%, 100% { opacity: 1; } }
.shelf__panel:not(.is-on) .chain li, .shelf__panel:not(.is-on) .webshot img { animation: none; }

/* 見本の区画の頭：問いと、近い仕事を選ぶ写真の札 */
.make { padding-top: 52px; }
.make__intro { padding-bottom: 36px; margin-bottom: 32px; border-bottom: 2px solid var(--ink); }
.make__ask { font-size: clamp(27px, 7.6vw, 36px); line-height: 1.4; text-indent: -.42em; }
.pick { margin-top: 22px; }
.pick__grid { gap: 0 16px; border-top: 1px solid var(--ink); }
.pick__btn { display: grid; align-content: center; gap: 1px; min-height: 72px; padding: 10px 4px 10px 14px; border: 0; border-bottom: 1px solid #cfd4da; border-radius: 0; background: none; color: var(--ink); }
.pick__btn::after { display: block; left: 0; top: 14px; bottom: 14px; width: 3px; height: auto; background: var(--blue); transform: scaleY(0); transform-origin: center; transition: transform .25s var(--ease); animation: none; }
.pick__btn b { font-size: 16px; line-height: 1.4; }
.pick__btn small { font-size: 13.5px; line-height: 1.45; color: var(--sub); }
.pick__btn:hover { border: 0; border-bottom: 1px solid var(--ink); }
.pick__btn:hover::after, .pick__btn[aria-pressed="true"]::after { transform: none; }
.pick__btn[aria-pressed="true"] { background: #fff; color: var(--ink); border: 0; border-bottom: 1px solid var(--ink); }
.pick__btn[aria-pressed="true"] small { color: var(--blue); }
/* 選んだ仕事の写真（見本の頭） */
.make__photo { margin: 0 calc(var(--gut) * -1) 20px; }
.make__photo img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; background: #dfe3e8; }
.make__photo figcaption { padding: 5px var(--gut) 0; font-size: 11.5px; color: var(--pale); text-align: right; }
.make__title { font-size: clamp(22px, 6vw, 28px); }
/* おまかせ */
.mk__go { display: grid; gap: 4px; }
.mk__auto { width: 100%; }
.mk__auto:disabled { background: var(--blue); border-color: var(--blue); cursor: default; }
.mk__or { font-size: 14px; color: var(--sub); line-height: 1.65; }
.nx__re { margin-top: 10px; font-size: 13px; color: var(--sub); line-height: 1.6; }

/* できること */
.services { border-top: 0; padding: 56px 0; }
.svcs { border-top: 1px solid var(--ink); }
.svcs > li { padding: 18px 0 19px; border-bottom: 1px solid var(--line); }
.svcs h3 { font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.4; }
.svcs p { margin-top: 4px; font-size: 16px; line-height: 1.75; }
.svcs small { display: block; margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--sub); }
.svcs small b { display: block; font-size: 12.5px; color: var(--blue); }
.ask { padding-top: 0; }

@media (min-width: 640px) {
  .hero__act { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 4px 28px; }
  .hero__act .btn { width: auto; }
  .shelf__cap { min-height: 3em; }
  .svcs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .svcs > li { border-top: 1px solid var(--ink); border-bottom: 0; }
  .mk__auto { width: auto; justify-self: start; }
}
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); grid-template-rows: 1fr auto auto 1fr; gap: 0 64px; min-height: min(100svh, 900px); padding: calc(var(--header) + 40px) var(--gut) 48px; }
  .hero__body { grid-column: 1; grid-row: 2; padding: 0; }
  .hero__act { grid-column: 1; grid-row: 3; padding: 0; }
  .shelf { grid-column: 2; grid-row: 1 / -1; align-self: center; }
  .hero__label { font-size: 15px; }
  .hero__title { font-size: clamp(38px, 3.85vw, 60px); line-height: 1.3; margin-top: 14px; }
  .hero__title .ph { white-space: nowrap; }
  .hero__title .ph:nth-child(2)::after { content: "\A"; white-space: pre; }
  .hero__lead { margin-top: 24px; font-size: 18px; }
  .hero__act { margin-top: 36px; }
  .shelf { margin: 0; }
  .shelf__stage { box-shadow: 0 30px 60px -36px rgba(20, 23, 26, .55); }
  .shelf__tab { min-height: 56px; font-size: 15.5px; }
  .shelf__cap { font-size: 15px; }
  .make { padding-top: 88px; }
  .make__intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 56px; align-items: start; padding-bottom: 56px; margin-bottom: 52px; }
  .make__intro .sec__lead { grid-column: 1; }
  .pick { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .pick__grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .pick__btn { min-height: 84px; }
  .pick__btn b { font-size: 17px; }
  .make__head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 56px; align-items: center; }
  .make__photo { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .make__photo img { aspect-ratio: 16 / 6; }
  .make__photo figcaption { padding-inline: 0; }
  .make__head .kicker, .make__head .make__title, .make__head .make__lead { grid-column: 1; }
  .make__ask { font-size: clamp(34px, 3.4vw, 46px); }
  .services { padding: 96px 0; }
  .svcs { grid-template-columns: repeat(3, 1fr); }
  .svcs > li { padding: 22px 0 30px; }
  .svcs h3 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .webshot img, .chain li { animation: none; }
}

@media (max-width: 360px) {
  .shelf__tab { font-size: 12.5px; letter-spacing: 0; white-space: nowrap; }
  .hero__title { font-size: 35px; }
}
