/* いとなす。白基調だけ（2026-11-25 決定、暗い表示は無い）。白地・極太の黒い見出し・青1色。
   差し色は「いとなすが拾った・動いた」所と、申し込みにだけ使う。
   読みやすさのため、本文は 16〜18px、灰色は濃いめ、英字の飾りの札は使わない。
   色はここの変数だけで決める（背景の js/hero/・js/field.js も読む）。 */
:root {
  --bg: #fff;
  --bg-rgb: 255 255 255;
  --bg-1: #f5f6f8;
  --bg-2: #eceef2;
  --bg-3: #e3e6eb;
  --line: #e6e8ec;
  --line-2: #d9dce2;
  --line-3: #b4b9c2;
  --fg: #0b0c0e;
  --fg-2: #30343a;
  --mute: #5b6068;
  --dim: #686d75;
  --sig: #1f3fff;
  --sig-hi: #1733d6;
  --sig-rgb: 31 63 255;
  --on-sig: #fff;
  --dots-off: #e9ebef;
  --field-base: 226 229 234;
  --field-near: 150 156 166;
  --shadow: 0 30px 70px rgb(16 24 48 / .13), 0 2px 8px rgb(16 24 48 / .06);
  --tile: #fff;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Noto Sans JP", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, 0, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gut: max(clamp(16px, 3.4vw, 48px), env(safe-area-inset-left), env(safe-area-inset-right));
  --head: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: light; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.85;
  font-feature-settings: "palt" 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; overflow-wrap: anywhere; line-break: strict;
  word-break: auto-phrase; /* 日本語を文節で折り返す（Chrome 系。ほかは通常の折り返し） */
}
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sig); color: var(--on-sig); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--fg); color: var(--bg); padding: 8px 12px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(100%, 1320px); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- 文字の部品 ---------- */
.w { display: inline-block; white-space: nowrap; }
.ch { position: relative; display: inline-block; }
html.js [data-heading]:not(.is-in) .ch { opacity: 0; }
[data-heading].is-in .ch { opacity: 1; transition: opacity 0s calc(var(--i) * 22ms); }
/* 字が出る直前だけ、点の塊がかかる（data-g は js/type.js が付け外しする） */
.ch[data-g] { color: transparent; }
.ch[data-g]::after { content: attr(data-g); position: absolute; inset: 0; color: var(--sig); text-align: center; }
.caret { display: inline-block; width: .1em; height: .8em; margin-left: .08em; background: var(--sig); vertical-align: -.04em; animation: blink 1.06s steps(1) infinite; }
.caret--s { width: 7px; height: 1em; margin-left: 6px; vertical-align: -3px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 開幕 ---------- */
.opening { display: none; }
html.intro .opening { display: block; position: fixed; inset: 0; z-index: 100; background: var(--bg); cursor: pointer; transition: background .01s linear .5s; }
.opening__lines { position: absolute; inset: 0; display: grid; align-content: center; gap: .04em; width: min(100%, 1320px); margin-inline: auto; padding-inline: var(--gut); transition: opacity .25s; }
.beat { font-size: clamp(44px, 11vw, 172px); font-weight: 900; letter-spacing: -.055em; line-height: 1.04; }
.beat--sig { color: var(--sig); }
.beat:not(.is-in) .ch { opacity: 0; }
.beat.is-in .ch { opacity: 1; transition: opacity 0s calc(var(--i) * 22ms); }
.opening__skip { position: absolute; right: var(--gut); bottom: 22px; font-size: 12px; color: var(--dim); transition: opacity .25s; }
.opening__wipe { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 16), 1fr); grid-template-rows: repeat(var(--rows, 10), 1fr); pointer-events: none; }
.opening__wipe i { background: var(--sig); transform: scale(0); transition: transform .34s var(--ease) var(--d); }
.opening.is-wipe .opening__wipe i { transform: scale(1.04); }
.opening.is-wipe .opening__lines, .opening.is-wipe .opening__skip { opacity: 0; }
.opening.is-out { background: transparent; pointer-events: none; }
.opening.is-out .opening__wipe i { transform: scale(0); transition: transform .42s var(--ease-io) var(--d); }

/* ---------- 背景の面（js/hero/ の背景を載せられない時だけ、js/field.js の2Dの点の行） ---------- */
.field { position: fixed; inset: 0; width: 100vw; height: 100lvh; z-index: 0; pointer-events: none; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.field.is-on { opacity: 1; }
/* ヒーローの背景（js/hero/cd.js）を載せる場所。ヒーローの中だけ。字より下に置く */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-bg.is-on { opacity: 1; }

/* ---------- 見出しの帯 ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--head); border-bottom: 1px solid transparent; transition: transform .5s var(--ease), background .3s, border-color .3s; }
.header[data-scrolled] { background: rgb(var(--bg-rgb) / .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header[data-hide] { transform: translateY(-100%); }
.header__in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; width: min(100%, 1320px); margin-inline: auto; padding-inline: var(--gut); }
.logo { justify-self: start; display: inline-flex; align-items: center; }
.logo__img { height: 26px; width: auto; }
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--fg-2); }
.nav a { position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sig); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-on { color: var(--fg); }
.nav a.is-on::after { transform: scaleX(1); }
.header__cta { justify-self: end; display: flex; align-items: center; gap: 22px; }
.header__link { font-size: 14px; color: var(--fg-2); transition: color .2s; }
.header__link:hover { color: var(--fg); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--sig); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- ボタン。黒い本体と、矢印の白いマス。指を乗せると青が左から満ちる ---------- */
.btn {
  --h: 58px;
  position: relative; isolation: isolate; display: inline-flex; align-items: stretch; height: var(--h);
  background: var(--fg); color: var(--bg); border-radius: 3px; overflow: hidden;
  font-size: 16px; font-weight: 900; letter-spacing: .02em; white-space: nowrap;
  transform: translate(var(--mx, 0), var(--my, 0)); transition: transform .25s var(--ease), color .25s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sig); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.btn__t { display: flex; align-items: center; padding: 0 26px; }
.btn__go { display: grid; place-items: center; width: var(--h); background: var(--bg); color: var(--sig); border: 2px solid var(--fg); border-left: 0; border-radius: 0 3px 3px 0; overflow: hidden; transition: border-color .25s; }
.btn--s { --h: 40px; font-size: 14px; }
.btn--s .btn__t { padding: 0 16px; }
.btn--full { display: flex; width: 100%; }
.btn--full .btn__t { flex: 1; justify-content: center; }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn--ghost .btn__go { background: transparent; color: var(--fg); border: 0; box-shadow: inset 1px 0 0 var(--line-3); }
.btn--inv { background: var(--bg); color: var(--fg); }
.btn--inv::before { background: var(--fg); }
.btn--inv .btn__go { background: var(--fg); color: var(--bg); border-color: var(--bg); }
@media (hover: hover) {
  .btn:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
  .btn:hover { color: var(--on-sig); }
  .btn:hover .btn__go { border-color: var(--sig); }
  .btn:hover .arrow { animation: arrowRun .7s var(--ease) both; }
  .btn--ghost:hover .btn__go { color: var(--on-sig); box-shadow: none; }
  .btn--inv:hover .btn__go { border-color: var(--fg); background: var(--bg); color: var(--fg); }
}
.btn:active { transform: translate(var(--mx, 0), calc(var(--my, 0px) + 1px)); }
/* 点で描いた矢印 */
.arrow {
  display: block; width: 18px; height: 13px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 5'%3E%3Cpath d='M3 0h.8v.8H3zM4 1h.8v.8H4zM0 2h.8v.8H0zM1 2h.8v.8H1zM2 2h.8v.8H2zM3 2h.8v.8H3zM4 2h.8v.8H4zM5 2h.8v.8H5zM4 3h.8v.8H4zM3 4h.8v.8H3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 5'%3E%3Cpath d='M3 0h.8v.8H3zM4 1h.8v.8H4zM0 2h.8v.8H0zM1 2h.8v.8H1zM2 2h.8v.8H2zM3 2h.8v.8H3zM4 2h.8v.8H4zM5 2h.8v.8H5zM4 3h.8v.8H4zM3 4h.8v.8H3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn--s .arrow { width: 14px; height: 10px; }
@keyframes arrowRun { 0% { transform: none; } 45% { transform: translateX(160%); } 46% { transform: translateX(-160%); } 100% { transform: none; } }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--fg-2); padding: 6px 0; border-bottom: 1px solid var(--line-3); transition: color .2s, border-color .2s; }
.more:hover { color: var(--fg); border-color: var(--sig); }

/* ---------- ヒーロー ---------- */
/* 最初の画面はヒーローだけ（高さを中身で決めると、縦に長い画面で下の節がのぞく）。中身は上下の真ん中 */
.hero { position: relative; z-index: 1; min-height: 100svh; display: grid; align-content: center; padding-top: calc(var(--head) + clamp(40px, 8vh, 96px)); padding-bottom: clamp(56px, 8vh, 96px); text-align: center; }
.hero__copy { position: relative; z-index: 1; display: grid; justify-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 8px; margin-bottom: clamp(22px, 3.5vh, 36px); font-size: 14px; color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 999px; background: rgb(var(--bg-rgb) / .86); }
.hero__logos { display: inline-flex; align-items: center; }
.hero__logos { gap: 4px; }
.hero__logos img { width: 26px; height: 26px; padding: 3px; object-fit: contain; background: var(--tile); border: 1px solid var(--line-2); border-radius: 7px; }
.hero__eyebrow > span:last-child { margin-left: 6px; }
.hero__title { font-size: clamp(40px, min(8.6vw, 13vh), 132px); font-weight: 900; line-height: 1.06; letter-spacing: -.05em; }
.hero__lead { text-wrap: balance; max-width: 38em; margin-top: clamp(22px, 3.5vh, 34px); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.95; color: var(--fg-2); }
.hero__cta { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: clamp(28px, 4vh, 40px); }
.hero__fine { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 20px; font-size: 13px; color: var(--mute); }
.hero__fine li { display: inline-flex; align-items: center; gap: 8px; }
.hero__fine li::before { content: ""; width: 9px; height: 5px; border: solid var(--sig); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }
html.js .hero__eyebrow, html.js .hero__cta, html.js .hero__fine { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.hero.is-in .hero__eyebrow, .hero.is-in .hero__cta, .hero.is-in .hero__fine { opacity: 1; transform: none; }
.hero.is-in .hero__cta { transition-delay: .35s; }
.hero.is-in .hero__fine { transition-delay: .45s; }

/* ---------- 試してみる（ヒーローのすぐ下）。頼みごとを押すと、右のチャットでいとなすが答える ---------- */
.sec.try { padding-top: clamp(64px, 7vw, 104px); background: var(--bg-1); }
.try .shead { margin-bottom: clamp(32px, 4vw, 52px); }
.try__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.try__side { display: grid; align-content: start; gap: 12px; }
.try__k { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--mute); }
.try__k:first-child { margin-top: 0; }
.asks { display: grid; gap: 8px; }
.asks button { position: relative; display: grid; gap: 3px; width: 100%; padding: 13px 16px 15px; overflow: hidden; text-align: left; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; transition: border-color .2s, box-shadow .2s, transform .25s var(--ease); }
.asks button:hover { border-color: var(--line-3); transform: translateY(-1px); }
.asks__t { font-size: 12px; font-weight: 700; color: var(--mute); }
.asks__q { font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--fg); }
.asks button[aria-selected="true"] { border-color: var(--sig); box-shadow: 0 0 0 1px var(--sig); }
.asks button[aria-selected="true"] .asks__t { color: var(--sig); }
/* 自動で次へ進むまでの時間（押されたら出さない） */
.asks i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--sig); transform: scaleX(0); transform-origin: 0 50%; }
.asks button.is-timing i { animation: timer var(--dur, 9s) linear both; }
@keyframes timer { to { transform: scaleX(1); } }
.show__switch { display: flex; flex-wrap: wrap; gap: 6px; }
.show__switch button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font-size: 13px; color: var(--fg-2); transition: border-color .2s, background .2s, color .2s; }
.show__switch button:hover { border-color: var(--line-3); }
.show__switch button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.show__switch img { width: 15px; height: 15px; }
.try .cap { margin-top: 16px; }

/* ---------- 節の共通 ---------- */
.sec { position: relative; z-index: 3; background: var(--bg); padding-block: clamp(88px, 10vw, 150px); border-top: 1px solid var(--line); }
.eyebrow { margin-bottom: 16px; font-size: 14px; font-weight: 700; color: var(--sig); }
.h2 { font-size: clamp(30px, 4vw, 60px); font-weight: 900; line-height: 1.14; letter-spacing: -.045em; }
.lead { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.95; color: var(--fg-2); max-width: 34em; }
.shead { display: grid; gap: 28px; margin-bottom: clamp(44px, 5.5vw, 72px); }
.shead--row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 48px; }
.note { margin-top: 20px; font-size: 13px; color: var(--dim); line-height: 1.8; }
.panel { position: relative; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.panel__bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--mute); }
.panel__bar > :last-child:not(:first-child) { margin-left: auto; }
html.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
html.js .rv.is-in { opacity: 1; transform: none; }

/* 点の数字（js/dots.js が SVG を入れる） */
[data-dots] svg { display: block; fill: currentColor; }
[data-dots] .off { fill: var(--dots-off); }
html.js [data-dots] .on { opacity: 0; transition: opacity .12s linear calc(var(--k) * 1ms); }
html.js [data-dots].is-lit .on { opacity: 1; }

/* ---------- 始め方 ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps3 > li { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 28px 28px 24px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 6px; }
.steps3__n { color: var(--sig); }
.steps3__n svg { height: 28px; width: auto; }
.steps3 h3 { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.steps3 p { font-size: 15px; line-height: 1.85; color: var(--fg-2); }
.steps3__viz { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 92px; margin-top: 8px; padding: 16px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; }
.addbtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-3); border-radius: 5px; font-size: 13px; font-weight: 700; color: var(--fg); background: var(--bg-2); }
.chips { display: flex; gap: 10px; padding-left: 4px; }
.chips img { object-fit: contain; }
.addrow { display: flex; gap: 6px; width: 100%; }
.addrow img { width: 22px; height: 22px; object-fit: contain; }
.bubble { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg); }
.outchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--fg); background: var(--bg-3); border: 1px solid var(--line-2); }
.outchip::before { content: ""; width: 6px; height: 6px; background: var(--sig); }
.how__cta { display: flex; align-items: center; gap: 24px; margin-top: 40px; }
.how__cta p { font-size: 14px; color: var(--mute); }

/* ---------- 仕組みを足す ---------- */
.build__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.build .h2 { margin-bottom: 28px; }
.pipeline { margin-top: 36px; border-top: 1px solid var(--line-2); }
.pipeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 16px 0 18px; border-bottom: 1px solid var(--line-2); }
.pipeline li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--sig); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease) calc(var(--k) * 260ms + 200ms); }
.pipeline.is-in li::after { transform: scaleX(1); }
.pipeline span { grid-row: 1 / 3; padding-top: 2px; font-family: var(--mono); font-size: 14px; color: var(--sig); }
.pipeline b { font-size: 18px; font-weight: 900; }
.pipeline em { font-style: normal; font-size: 14px; color: var(--mute); }
/* 右の列: 上に D の形（4段に合わせて変わる）、下に足してきた仕組みの一覧 */
.build__side { position: sticky; top: calc(var(--head) + 24px); display: grid; gap: 16px; }
.build__morph { position: relative; height: clamp(200px, 22vw, 280px); }
.log { position: relative; }
.log__list li { display: grid; grid-template-columns: 18px 8.4em 1fr; gap: 10px; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.log__list li:last-child { border-bottom: 0; }
html.js .log__list li { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease) calc(var(--k) * 120ms), transform .7s var(--ease) calc(var(--k) * 120ms); }
html.js .log.is-in .log__list li { opacity: 1; transform: none; }
.log__p { font-family: var(--mono); color: var(--sig); font-weight: 600; }
.log__list b { font-weight: 700; }
.log__d { font-size: 14px; color: var(--fg-2); }
.log__list .is-yours { background: var(--bg-2); }
.log__list .is-yours b { color: var(--sig); }

/* ---------- 実行モード ---------- */
.mode { border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-1); overflow: hidden; }
.mode__tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-2); }
.mode__tabs button { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 10px; padding: 20px 24px; text-align: left; color: var(--fg-2); border-left: 1px solid var(--line-2); transition: color .3s; }
.mode__tabs button:first-of-type { border-left: 0; }
.mode__tabs b { font-size: 18px; font-weight: 900; }
.mode__tabs span { font-family: var(--mono); font-size: 12px; color: var(--dim); transition: color .3s; }
.mode__tabs button:hover { color: var(--fg); }
.mode__tabs button[aria-selected="true"], .mode__tabs button[aria-selected="true"] span { color: var(--on-sig); }
.mode__thumb { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 25%; background: var(--sig); transform: translateX(calc(var(--i, 1) * 100%)); transition: transform .55s var(--ease); }
.mode__view { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mode__ask { display: grid; gap: 10px; align-content: start; min-height: 260px; padding: 34px; border-right: 1px solid var(--line-2); }
.mode__lbl { font-size: 13px; color: var(--dim); }
.mode__req { min-height: 3.2em; margin-bottom: 14px; font-size: clamp(19px, 1.9vw, 26px); font-weight: 700; line-height: 1.55; }
.mode__req [data-mode-req]::after { content: ""; display: inline-block; width: 8px; height: 1em; margin-left: 4px; background: var(--sig); vertical-align: -.12em; animation: blink 1.06s steps(1) infinite; }
.mode__does { font-size: 16px; color: var(--fg-2); }
.mode__meter { display: grid; gap: 24px; align-content: start; padding: 34px; }
.mode__meter div { display: grid; gap: 9px; }
.mode__meter dt { font-size: 13px; color: var(--mute); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.meter i { height: 12px; background: var(--line-2); transition: background .25s calc(var(--k) * 70ms); }
.meter i.is-on { background: var(--fg); }
.meter[data-meter="credit"] i.is-on { background: var(--sig); }
.mode__notes { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.mode__notes li { padding: 26px 34px; font-size: 15px; line-height: 1.85; color: var(--fg-2); }
.mode__notes li + li { border-left: 1px solid var(--line-2); }
.mode__notes b { display: block; margin-bottom: 4px; font-size: 17px; color: var(--fg); }

/* ---------- 安心して任せる ---------- */
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.trust__grid li { display: grid; gap: 12px; align-content: start; padding: 30px 26px 34px; border-left: 1px solid var(--line-2); }
.trust__grid li:first-child { border-left: 0; }
/* 項目ごとの小さな D の形 */
.trust__ic { position: relative; display: block; width: 72px; height: 72px; margin: -6px 0 6px -6px; }
.trust__grid h3 { font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.trust__grid p { font-size: 14px; line-height: 1.9; color: var(--fg-2); }

/* ---------- つながる（ヒーローのすぐ下） ---------- */
.links__k { margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--fg-2); }
.chats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 40px; }
.tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 6px; font-size: 14px; transition: border-color .35s, background .35s, transform .35s var(--ease); }
.tile img { width: 24px; height: 24px; flex: none; object-fit: contain; }
.tile b { font-weight: 700; line-height: 1.35; }
.tile--chat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px 16px; }
.tile--chat img, .tile__own { width: 40px; height: 40px; margin-bottom: 8px; border-radius: 9px; }
.tile--chat b { font-size: 16px; font-weight: 900; }
.tile--chat span:not(.tile__own) { font-size: 12px; color: var(--mute); line-height: 1.5; }
.tile:hover { border-color: var(--line-3); background: var(--bg-2); }
.tile.is-hot { border-color: var(--sig); background: rgb(var(--sig-rgb) / .08); transform: translateY(-2px); }
.int { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.int__tools { display: grid; gap: 22px; }
.int__tools .links__k { margin-bottom: -8px; }
.tg__h { margin-bottom: 8px; font-size: 13px; color: var(--mute); }
.tg__l { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.int__more { padding: 16px 18px; font-size: 14px; line-height: 1.8; color: var(--fg-2); border: 1px dashed var(--line-3); border-radius: 6px; }
.int__more b { margin-right: 6px; color: var(--fg); }
.int__feed { position: sticky; top: calc(var(--head) + 24px); }
.feed { font-size: 12px; }
.feed li { display: grid; grid-template-columns: 42px 18px 1fr; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--dim); animation: feedIn .6s var(--ease) both; }
.feed li:first-child { background: var(--bg-2); }
.feed time { font-family: var(--mono); }
.feed img { width: 18px; height: 18px; object-fit: contain; }
.feed p { display: grid; gap: 1px; min-width: 0; }
.feed__s { font-size: 12px; color: var(--mute); }
.feed__t { font-size: 14px; color: var(--fg-2); }
.feed__t b { font-weight: 700; color: var(--sig-hi); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- 料金 ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; padding: 30px 24px 24px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 6px; }
.plan h3 { font-size: 18px; font-weight: 700; color: var(--fg-2); }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-size: clamp(36px, 3.4vw, 48px); font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.plan__price span { font-size: 15px; color: var(--mute); }
.plan__for { font-size: 14px; color: var(--mute); }
.plan__list { display: grid; align-content: start; gap: 8px; margin: 14px 0 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.plan__list li { position: relative; padding-left: 24px; font-size: 15px; color: var(--fg-2); line-height: 1.6; }
.plan__list li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 10px; height: 5px; border: solid var(--fg); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan--free { border-color: var(--sig); background: linear-gradient(var(--bg-1), var(--bg-1)) padding-box; box-shadow: 0 0 0 1px var(--sig); }
.plan--free .plan__list li::before { border-color: var(--sig); }
.plan--ent { background: var(--bg-2); }
.plan--ent .plan__price b { font-size: clamp(30px, 2.6vw, 38px); }
.plan__badge { position: absolute; top: -1px; right: 20px; transform: translateY(-50%); padding: 4px 12px; font-size: 13px; font-weight: 900; color: var(--on-sig); background: var(--sig); border-radius: 999px; }
.plans__more { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 16px; padding: 22px 28px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 15px; color: var(--fg-2); }
.plans__more b { color: var(--fg); font-weight: 700; }

/* ---------- よくある質問 ---------- */
.faq__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.faq__list details { border-top: 1px solid var(--line-2); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-2); }
.faq__list summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; transition: color .2s; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--sig-hi); }
.pm { position: relative; flex: none; width: 14px; height: 14px; margin-top: 7px; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] .pm::after { transform: rotate(0deg); }
.faq__a { padding: 0 0 26px; max-width: 46em; font-size: 16px; line-height: 1.95; color: var(--fg-2); }

/* ---------- 最後。升目が差し色に変わる ---------- */
.final { position: relative; z-index: 3; display: grid; align-items: center; min-height: 92svh; padding-block: 120px; overflow: hidden; background: var(--bg); color: var(--on-sig); }
html:not(.js) .final { background: var(--sig); }
.final__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 16), 1fr); grid-template-rows: repeat(var(--rows, 10), 1fr); }
.final__grid i { background: var(--sig); transform: scale(0); transition: transform .5s var(--ease) var(--d); }
.final.is-on .final__grid i { transform: scale(1.04); }
/* 最後の節の A の札（色が満ちた後に、見出しの右に浮かぶ） */
.final-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.final__in { position: relative; z-index: 1; }
html.js .final__in { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease) .45s, transform .9s var(--ease) .45s; }
html.js .final.is-on .final__in { opacity: 1; transform: none; }
.final__title { margin-left: -.05em; font-size: clamp(48px, min(10vw, 16vh), 164px); font-weight: 900; line-height: 1.04; letter-spacing: -.055em; }
.final__lead { max-width: 30em; margin-top: 30px; font-size: clamp(16px, 1.35vw, 20px); font-weight: 500; line-height: 1.9; color: var(--on-sig); opacity: .86; }
.final__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 44px; }
.final__more { font-size: 15px; font-weight: 700; padding: 6px 0; border-bottom: 1px solid currentColor; }

/* ---------- フッター ---------- */
.footer { position: relative; z-index: 3; background: var(--bg); border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__op { font-size: 13px; color: var(--mute); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; font-size: 13px; color: var(--mute); }
.footer__nav a:hover { color: var(--fg); }
.footer__c { width: 100%; font-size: 12px; color: var(--dim); }

/* ---------- 規約などの文書のページ ---------- */
.doc-head { display: flex; justify-content: space-between; align-items: center; height: 64px; padding-inline: var(--gut); border-bottom: 1px solid var(--line); }
.doc-head__r { display: flex; align-items: center; gap: 18px; }
.doc { width: min(100%, 820px); margin-inline: auto; padding: 64px var(--gut) 120px; }
.doc__h { margin-bottom: 20px; font-size: clamp(32px, 4vw, 48px); font-weight: 900; letter-spacing: -.04em; line-height: 1.2; }
.doc__meta { font-size: 13px; color: var(--mute); }
.doc section { padding-top: 36px; }
.doc h2 { margin-bottom: 12px; font-size: 19px; font-weight: 900; }
.doc p, .doc li { font-size: 15px; line-height: 2; color: var(--fg-2); }
.doc ol { list-style: decimal; padding-left: 1.6em; display: grid; gap: 6px; }
.doc > .doc__meta:last-of-type { margin-top: 8px; }
.doc > p.doc__meta + p.doc__meta { margin-top: 0; }

/* ---------- 右下の申し込み ---------- */
.dock { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.dock[data-shown] { opacity: 1; transform: none; pointer-events: auto; }
.dock__x { display: grid; place-items: center; width: 40px; height: 40px; background: var(--bg); border: 1px solid var(--line-3); border-radius: 3px; color: var(--mute); }
.dock__x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dock__x:hover { color: var(--fg); }

/* ---------- 幅ごと ---------- */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .plans { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .tg__l { grid-template-columns: repeat(3, 1fr); }
  .chats { grid-template-columns: repeat(4, 1fr); }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid li:nth-child(3) { border-left: 0; }
  .trust__grid li:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 960px) {
  :root { --head: 58px; }
  .nav, .header__link { display: none; }
  .header__in { grid-template-columns: 1fr auto; }
  .try__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .try__side { gap: 10px; }
  .asks { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 4px; scroll-snap-type: x proximity; }
  .asks::-webkit-scrollbar, .show__switch::-webkit-scrollbar { display: none; }
  .asks button { flex: none; width: min(74vw, 280px); scroll-snap-align: start; }
  .show__switch { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .show__switch button { flex: none; }
  .shead--row { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .steps3 { grid-template-columns: 1fr; }
  .build__grid { grid-template-columns: 1fr; }
  .build__side { position: static; }
  .mode__view { grid-template-columns: 1fr; }
  .mode__ask { border-right: 0; border-bottom: 1px solid var(--line-2); min-height: 0; }
  .mode__notes { grid-template-columns: 1fr; }
  .mode__notes li + li { border-left: 0; border-top: 1px solid var(--line-2); }
  .int { grid-template-columns: 1fr; }
  .int__feed { position: static; }
  .chats { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: 1fr; gap: 24px; }
  .faq__in { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .header .btn--s .btn__t { padding: 0 12px; font-size: 13px; }
  .header__cta { gap: 10px; }
  .hero { text-align: left; }
  .hero__copy { justify-items: start; }
  .hero__title { font-size: clamp(36px, 10.4vw, 52px); }
  /* ヒーロー: 字は上から、下に背景の作業台の帯（道具の札は字の横に入れない。js/hero/cd.js も同じ帯に置く） */
  .hero { align-content: start; min-height: 0; padding-top: calc(var(--head) + 36px); padding-bottom: 290px; }
  .hero__eyebrow { height: 36px; flex-wrap: nowrap; gap: 6px; padding: 0 12px 0 5px; margin-bottom: 22px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
  .hero__eyebrow > span:last-child { margin-left: 0; }
  .hero__logos { gap: 3px; }
  .hero__logos img { width: 20px; height: 20px; padding: 2px; border-radius: 5px; }
  /* 節の間を詰める（画面が細いと、PC と同じ余白では間延びする） */
  .sec { padding-block: 72px; }
  .shead { gap: 18px; margin-bottom: 36px; }
  /* つながる: チャットは4つ並び、道具はロゴと名前の小さな札を詰めて並べる。届いたものは4行まで */
  .chats { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
  .tile--chat { align-items: center; gap: 2px; padding: 12px 4px 10px; text-align: center; }
  .tile--chat img, .tile__own { width: 30px; height: 30px; margin-bottom: 4px; border-radius: 7px; }
  .tile--chat b { font-size: 12px; line-height: 1.3; }
  .tile--chat span:not(.tile__own) { display: none; }
  .tg__l { display: flex; flex-wrap: wrap; gap: 6px; }
  .tg__l .tile { gap: 7px; padding: 7px 11px 7px 8px; font-size: 13px; }
  .tg__l .tile img { width: 18px; height: 18px; }
  .feed li:nth-child(n+5) { display: none; }
  .hero__cta { flex-wrap: wrap; justify-content: flex-start; gap: 18px; }
  .hero__cta .btn { width: 100%; }
  .hero__cta .btn__t { flex: 1; justify-content: center; }
  .hero__fine { justify-content: flex-start; flex-direction: column; gap: 4px; }
  .btn { --h: 54px; }
  .mode__tabs button { flex-direction: column; gap: 0; padding: 14px 12px; }
  .mode__tabs b { font-size: 15px; }
  .mode__ask, .mode__meter { padding: 24px 20px; }
  .mode__notes li { padding: 20px; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__grid li { border-left: 0; border-top: 1px solid var(--line-2); }
  .trust__grid li:first-child { border-top: 0; }
  /* 安心して任せる: 絵は左、見出しと文は右 */
  .trust__grid li { grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; padding: 22px 18px 24px; }
  .trust__ic { grid-row: span 2; width: 56px; height: 56px; margin: -4px 0 0 -4px; }
  .steps3 > li { gap: 10px; padding: 22px 20px 20px; }
  .steps3__viz { min-height: 0; }
  .build__morph { height: 170px; }
  /* 料金: 横に送って見る（縦に4枚並べると3画面ぶんになる） */
  .plans { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding: 18px var(--gut) 6px; scroll-padding-inline: var(--gut); }
  .plans::-webkit-scrollbar { display: none; }
  .plans > li { flex: 0 0 86%; scroll-snap-align: start; }
  .plans { align-items: flex-start; }
  .plan { grid-template-rows: auto; }
  /* 最後の節: スマホは札を出さないので、画面いっぱいの高さにしない */
  .final { min-height: 0; padding-block: 96px 104px; }
  .how__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .how__cta .btn__t, .final__cta .btn__t { flex: 1; justify-content: center; }
  .final__cta .btn { width: 100%; }
  /* 右下の申し込みは出さない（見出しの帯にいつも「無料で始める」がある。下に重なると本文が隠れる） */
  .dock { display: none; }
  .footer__nav { gap: 0 20px; margin-left: 0; }
  .footer__nav a { display: inline-block; padding: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
