/* kimura portfolio v3 — 仕事を受けるためのトップページ（2026-10-20）
   白地に濃い文字。差し色の藍は線・文字・ボタンの大きさまでにとどめ、面には使わない（10/20 kimura「色きつくない？」）。
   動くもの＝ヒーロー（机の番茶／作品／実演の3案）・作品の帯・作ったものの大画面。
   使わない形＝クリーム地・番号ラベル・等幅の小ラベル・丸いボタン・見出し頭の小さな四角（feedback_ui.md 冒頭） */
:root {
  --bg: #fff; --panel: #f3f4f6; --ink: #0c0e12; --sub: #4a4f58; --mute: #61666f; --line: #e3e5e9;
  --acc: #3d52b8; --acc-ink: #2f3f96; --acc-soft: #eef0f8;
  --dk: #0c0e12; --dk-line: #262a31; --dk-sub: #aeb3bb;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --en: "Inter Tight", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --gut: clamp(16px, 4vw, 48px); --max: 1280px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
/* smooth は読み込みの後に JS で付ける（最初から付けると、iPhone で #contact 付きの URL が途中で止まる） */
html { scroll-padding-top: 76px; }
html.smooth { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--jp); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body { word-break: auto-phrase; line-break: strict; text-wrap: pretty; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---- ボタン ---- */
.btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 8px; font-weight: 700; font-size: 14.5px; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: scale(.96); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 15.5px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-line { border-color: #c9ccd2; color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-line-w { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-line-w:hover { border-color: #fff; }
.btn-w { background: #fff; color: var(--ink); }
.arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* ---- ヘッダー ---- */
.head { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 var(--gut); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.head.is-solid { border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--en); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 50%; }
.nav { display: flex; gap: 4px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--sub); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a[aria-current] { color: var(--ink); }
.head-cta { margin-left: 4px; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer { position: fixed; inset: 68px 0 auto; z-index: 39; display: grid; gap: 4px; padding: 12px var(--gut) 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.drawer[hidden] { display: none; }
.drawer a:not(.btn) { display: flex; align-items: center; min-height: 48px; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 12px; min-height: 52px; }

/* ---- 共通の節 ---- */
main > section, .contact-in, .foot { max-width: var(--max); margin-inline: auto; }
.sec { padding: clamp(88px, 12vw, 160px) var(--gut) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.h2 { font-weight: 900; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.28; text-wrap: balance; }
.sec-lead { color: var(--sub); font-size: 15px; max-width: 36em; }

/* ---- ヒーロー ---- */
.hero { padding: clamp(32px, 4.5vw, 72px) var(--gut) 0; }
.hero-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 14.5px; color: var(--sub); }
.hero-id b { font-family: var(--en); font-size: 17px; font-weight: 700; color: var(--ink); }
.h1 { margin-top: clamp(20px, 3vw, 36px); font-weight: 900; font-size: clamp(44px, 7vw, 112px); line-height: 1.12; }
.h1 em { font-style: normal; color: var(--acc); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-top: clamp(36px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.lead { color: var(--sub); font-size: 15.5px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* 最初の画面＝紙工作の町（生成AIの絵）を全面に敷き、絵の空けた左側（約42%）に見出しを置く。動画が届けば番茶が道を歩く */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; position: relative; max-width: none; min-height: min(calc(100svh - 68px), 880px); padding-inline: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); padding-bottom: clamp(28px, 4vw, 56px); overflow: hidden; background: #f3f4f6; }
.hero-id { order: 1; } .hero .h1 { order: 2; font-size: clamp(40px, 5vw, 84px); } .hero-vis { order: 3; } .hero-foot { order: 4; }
.hero > :not(.hero-vis) { position: relative; z-index: 1; max-width: min(40%, 580px); }
.hero-vis { position: absolute; inset: 0; }
.kv, .kv-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.kv-v { width: calc(100% + 2px); opacity: 0; transition: opacity .8s ease; } /* WebKit で動画の右端に1pxの黒線が出たため少しはみ出させる */
/* 広い画面は絵が幅に比例して大きくなり、本文の枠（--max）から右へ伸びた見出しが赤い家にかかる＝本文を左へ寄せる */
@media (min-width: 1600px) { .hero { padding-left: 7vw; } }
.kv-v.on { opacity: 1; }
/* 画面が2:1より縦長だと絵の左が切れて本文の下に入り込む＝本文の下だけ白く薄める（飾りではなく読むための幕） */
.hero-vis::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 247, 249, .9) 0, rgba(246, 247, 249, .7) 28%, rgba(246, 247, 249, 0) 42%); }
.hero .hero-foot { grid-template-columns: 1fr; border-color: rgba(12, 14, 18, .12); }
/* 横幅が足りない・画面が縦長（3:2より縦）だと、空けた左側が切れて見出しと絵が重なる＝絵を見出しの下の箱へ移す */
@media (max-width: 1240px), (max-aspect-ratio: 3/2) {
  .hero { min-height: 0; }
  .hero > :not(.hero-vis) { max-width: none; }
  .hero-vis::after { content: none; }
  .hero-vis { position: relative; inset: auto; height: min(66vw, 560px); margin: 20px calc(-1 * var(--gut)) 0; }
  .hero .hero-foot { margin-top: 28px; }
}

/* note の記事が流れる帯（見出しは .notes の節・帯だけ画面幅いっぱい） */
.notes .sec-head { margin-bottom: 0; }
.strip { max-width: none !important; margin-top: clamp(32px, 4vw, 52px); padding-top: 4px; overflow: hidden; }
/* 間隔は gap でなく右の余白で取る（gap だと -50% と複製の頭が gap 半分ずれて、1周ごとに跳ねる） */
.strip-track { display: flex; width: max-content; animation: slide 140s linear infinite; }
.strip:hover .strip-track, .strip:has(:focus-visible) .strip-track { animation-play-state: paused; }
.strip li { position: relative; flex: none; width: clamp(260px, 30vw, 460px); margin-right: clamp(12px, 1.4vw, 20px); }
.strip li a { display: block; }
.strip img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 670; object-fit: cover; border-radius: 10px; background: var(--panel); outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; transition: transform .3s var(--ease); }
.strip a:hover img { transform: translateY(-3px); }
.strip span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 10px; font-size: 13.5px; font-weight: 700; line-height: 1.6; color: var(--sub); }
.strip a:hover span { color: var(--ink); }
.strip-more { max-width: var(--max); margin: 18px auto 0; padding-inline: var(--gut); text-align: right; }
@keyframes slide { to { transform: translateX(-50%); } }

.facts { padding: clamp(48px, 6vw, 80px) var(--gut) 0; }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.proof li { padding: 22px 20px 0 0; display: grid; gap: 6px; align-content: start; }
.proof li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.proof b { font-family: var(--en); font-weight: 700; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.proof small { font-family: var(--jp); font-size: .42em; font-weight: 700; margin: 0 .15em; letter-spacing: 0; }
.proof span { font-size: 13.5px; color: var(--sub); }

/* ---- 困りごと → こうなる ---- */
.pain-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pain-list li { display: grid; gap: 6px; padding: 24px 28px 24px 0; border-bottom: 1px solid var(--line); }
.pain-list li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.pain-b { color: var(--mute); font-size: 14px; }
.pain-a { font-weight: 700; font-size: 17.5px; display: flex; gap: 10px; align-items: baseline; line-height: 1.6; }
.pain-a::before { content: "→"; color: var(--acc); font-family: var(--en); flex: none; }

/* 実演：たとえば、週次レポート */
.demo-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(64px, 8vw, 112px); padding: clamp(28px, 4vw, 56px); background: var(--panel); border-radius: 16px; }
.demo-text h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 900; line-height: 1.4; margin-bottom: 14px; }
.demo-text p { color: var(--sub); font-size: 15px; }
.demo { position: relative; min-width: 0; }
.win { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(12, 14, 18, .06); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); }
.win-dots { display: flex; gap: 6px; } .win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe1e5; }
.win-title { min-width: 0; flex: 1; font-size: 13px; font-weight: 700; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 13px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background-color .2s, transform .15s; }
.run:hover { background: #000; } .run:active { transform: scale(.96); }
.run[disabled] { background: #9a9da3; cursor: default; }
.run-tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.win-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.sh { min-width: 0; padding: 14px 16px 18px; }
.sh-src { border-right: 1px solid var(--line); }
.sh-tab { font-size: 12px; font-weight: 700; color: var(--sub); margin-bottom: 10px; }
.sh table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.sh th { font-family: var(--en); font-weight: 500; color: var(--mute); background: #f5f6f8; border: 1px solid var(--line); height: 24px; font-size: 11px; }
.sh td { border: 1px solid var(--line); height: 30px; padding: 0 8px; white-space: nowrap; transition: background-color .3s, color .3s; }
.sh td:first-child, .sh th:first-child { width: 26px; text-align: center; color: var(--mute); background: #f5f6f8; font-family: var(--en); font-size: 11px; padding: 0; }
.sh td:last-child { text-align: right; }
.sh tr.hit td:not(:first-child) { background: var(--acc-soft); color: var(--acc-ink); }
.bars { display: grid; gap: 12px; margin-top: 6px; }
.bars li { display: grid; grid-template-columns: 44px 1fr 30px; align-items: center; gap: 10px; font-size: 12.5px; }
.bars b { font-weight: 700; }
.bar { height: 14px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--acc); border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.bars em { font-style: normal; font-family: var(--mono); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.total { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--sub); display: flex; align-items: baseline; gap: 6px; }
.total b { font-family: var(--en); font-size: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.steps { display: flex; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fafbfc; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.steps li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 8px; transition: background-color .3s, color .3s; }
.steps li + li::before { content: ""; width: 18px; height: 1px; background: var(--line); margin: 0 6px 0 -6px; }
.steps span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e9ebef; font-family: var(--en); font-size: 11px; transition: background-color .3s, color .3s; }
.steps li.on { color: var(--acc-ink); background: var(--acc-soft); }
.steps li.on span, .steps li.done span { background: var(--acc); color: #fff; }
.steps li.done { color: var(--ink); }
.toast { position: absolute; left: -14px; bottom: 104px; display: flex; gap: 12px; align-items: center; width: min(310px, 88%); padding: 14px 16px; background: var(--ink); color: #fff; border-radius: 12px; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .35s, transform .5s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: none; }
.toast-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--acc); font-size: 16px; }
.toast p { display: grid; font-size: 13px; line-height: 1.5; }
.toast span { color: #c4c8cd; font-size: 11.5px; }
.demo-cap { margin-top: 14px; font-size: 12.5px; color: var(--mute); text-align: center; }

/* ---- サービス ---- */
.svc { display: grid; gap: clamp(56px, 7vw, 96px); margin-top: clamp(72px, 9vw, 120px); }
.svc-item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.svc-item:nth-child(even) .svc-media { order: 2; }
.svc-media { aspect-ratio: 3 / 2; width: 100%; border-radius: 14px; overflow: hidden; background: var(--panel); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
/* 紙工作の絵（生成AI）。節ごとに同じ町の別の場面を置く */
.flow-pic { margin: clamp(8px, 2vw, 24px) 0 clamp(28px, 4vw, 48px); border-radius: 14px; overflow: hidden; }
.flow-pic img { width: 100%; height: auto; }
.about-pic { margin-top: clamp(40px, 5vw, 64px); aspect-ratio: 21 / 9; border-radius: 14px; overflow: hidden; }
.about-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.contact-pic { width: 100%; height: auto; margin-top: 32px; border-radius: 14px; }
.svc-text h3 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 900; line-height: 1.4; margin-bottom: 12px; }
.svc-text > p { color: var(--sub); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { font-size: 12.5px; font-weight: 500; padding: 3px 10px; background: var(--panel); border-radius: 6px; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; color: var(--acc-ink); border-bottom: 1px solid currentColor; line-height: 1.4; padding-bottom: 2px; }
.more span { transition: transform .3s var(--ease); }
a:hover > .more span, .more:hover span { transform: translateX(3px); }

/* ---- 実績（濃い面） ---- */
.cases { max-width: none !important; margin-top: clamp(88px, 12vw, 160px); padding: clamp(80px, 10vw, 128px) 0; background: var(--dk); color: #fff; }
.cases > * { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.cases .sec-lead { color: var(--dk-sub); }
.case { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2.2fr); gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--dk-line); }
.case:last-child { border-bottom: 1px solid var(--dk-line); }
.case-who { font-weight: 700; display: grid; line-height: 1.6; }
.case-who small { font-weight: 500; font-size: 13px; color: var(--dk-sub); }
.case-what h3 { font-size: clamp(18px, 1.8vw, 23px); font-weight: 700; line-height: 1.5; }
.case-what p { color: var(--dk-sub); font-size: 14.5px; margin-top: 6px; max-width: 38em; }
.case-st { text-align: right; padding-top: 2px; }
.st { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border: 1px solid var(--dk-line); border-radius: 6px; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6b7078; }
.st-on::before { background: #4fd18b; }

/* ---- 作って配っているもの ---- */
/* 大きな画面1つ＋一覧。一覧に触れると画面が切り替わり、触れていない間は7秒ごとに次へ */
.made-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.made-stage { position: sticky; top: 92px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--panel); outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
.made-stage video, .made-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.made-stage img { object-position: top; background: #fff; }
.made-stage [hidden] { display: none; } /* 上の img, video { display: block } が hidden 属性に勝ってしまうため */
.made-tick { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--acc); transform: scaleX(0); transform-origin: left; }
.made-tick.go { transform: scaleX(1); transition: transform 7s linear; }
.made-list { border-top: 1px solid var(--ink); }
.made-list a { position: relative; display: grid; gap: 2px; padding: 18px 44px 18px 14px; border-bottom: 1px solid var(--line); transition: background-color .25s, color .25s; }
.made-list a::after { content: "→"; position: absolute; right: 14px; top: 50%; translate: 0 -50%; font-family: var(--en); color: #b4b8bf; transition: color .25s, transform .3s var(--ease); }
.made-list a.is-on { background: var(--panel); }
.made-list a.is-on b, .made-list a:hover b { color: var(--acc-ink); }
.made-list a.is-on::after { color: var(--acc); }
.made-list a:hover::after { transform: translateX(3px); }
.made-list b { font-size: 16.5px; font-weight: 700; transition: color .25s; }
.made-list a > span { font-size: 13.5px; color: var(--sub); }

/* ---- 進め方 ---- */
.flow-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow-list li { position: relative; padding: 0 20px 0 0; }
.fl-n { display: flex; align-items: center; gap: 12px; font-family: var(--en); font-weight: 700; font-size: 32px; letter-spacing: -.02em; color: var(--acc); margin-bottom: 14px; line-height: 1; }
.fl-n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.flow-list li:last-child .fl-n::after { display: none; }
.flow-list h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.flow-list h3 small { font-size: 12.5px; color: var(--mute); font-weight: 500; }
.flow-list p { font-size: 14px; color: var(--sub); }

/* ---- 料金 ---- */
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; background: var(--panel); border-radius: 14px; }
.plan-k { font-size: 14px; font-weight: 700; }
.plan-p { display: flex; align-items: baseline; gap: 4px; min-height: 48px; }
.plan-p b { font-family: var(--en); font-weight: 700; font-size: 40px; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.plan-p span { font-weight: 700; font-size: 14px; }
.plan-q { font-weight: 900; font-size: 20px; align-items: center; }
.plan-d { font-size: 13.5px; color: var(--sub); }
.plan-main { background: var(--ink); color: #fff; }
.plan-main .plan-d { color: #c4c8cd; }
.plan-link { outline: 1px solid transparent; outline-offset: -1px; transition: outline-color .2s; }
.plan-link:hover { outline-color: var(--ink); }
.plan-link .more { display: flex; width: max-content; margin-top: 10px; }

/* ---- 自己紹介 ---- */
.about-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px); }
.me { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.me img { width: 72px; height: 72px; border-radius: 50%; background: var(--panel); outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
.me p { display: grid; line-height: 1.5; } .me b { font-size: 17px; } .me span { font-size: 13px; color: var(--mute); }
.about-p { margin-top: 22px; color: var(--sub); font-size: 15.5px; }
.timeline { position: relative; display: grid; gap: 22px; padding-left: 26px; align-self: center; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid #b4b8bf; }
.timeline li.now::before { background: var(--acc); border-color: var(--acc); }
.tl-y { font-family: var(--en); font-size: 13px; font-weight: 600; color: var(--mute); }
.timeline b { font-size: 16.5px; }
.timeline li > span:last-child { font-size: 14px; color: var(--sub); }
.links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.links a { display: grid; gap: 2px; padding: 20px 16px 20px 0; min-height: 44px; transition: color .2s; }
.links li + li a { padding-left: 16px; border-left: 1px solid var(--line); }
.links b { font-size: 15px; } .links span { font-size: 12.5px; color: var(--sub); }
.links a:hover b { color: var(--acc-ink); }

/* ---- よくある質問 ---- */
.faq .sec-head { grid-template-columns: 1fr; }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-weight: 700; font-size: 16.5px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--sub); font-size: 15px; max-width: 46em; }

/* ---- 相談（淡い灰の面に白いフォーム） ---- */
.contact { margin-top: clamp(96px, 12vw, 160px); background: #eceef1; color: var(--ink); padding: clamp(80px, 10vw, 128px) var(--gut) 28px; }
.contact-in, .contact .foot { max-width: calc(var(--max) - 2 * var(--gut)); }
.contact-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
/* 見出しは左右にまたがせる＝左の列が見出し3行分だけ長くなり、絵がフォームより下へはみ出していたため */
.contact-in { row-gap: clamp(28px, 4vw, 44px); }
.contact-h { grid-column: 1 / -1; font-weight: 900; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.25; }
.contact-lead { color: var(--sub); font-size: 15px; }
.contact-points { display: grid; gap: 10px; margin-top: 28px; }
.contact-points li { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; }
.contact-points li::before { content: ""; flex: none; width: 14px; height: 8px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg) translateY(-2px); }
.contact-act { margin-top: 32px; }
.cform { display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); background: #fff; color: var(--ink); border-radius: 16px; }
.cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cf { display: grid; gap: 6px; min-width: 0; }
.cf-l { font-size: 13.5px; font-weight: 700; }
.cf-req { font-size: 12px; color: #fff; background: var(--acc); padding: 0 7px; border-radius: 4px; margin-left: 6px; font-weight: 700; }
.cf-l em { font-style: normal; font-size: 12px; color: var(--mute); margin-left: 6px; font-weight: 500; }
.cform input:not([type=radio]), .cform textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #c9ccd2; border-radius: 8px; background: #fff; font: 16px/1.6 var(--jp); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.cform textarea { resize: vertical; min-height: 150px; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.cform [aria-invalid="true"] { border-color: #c0392b !important; }
.cf-kind { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-kind legend { padding: 0; margin-bottom: 8px; width: 100%; }
.cf-kind label { position: relative; }
.cf-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cf-kind span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #c9ccd2; border-radius: 8px; font-size: 13.5px; font-weight: 700; transition: background-color .2s, color .2s, border-color .2s; cursor: pointer; }
.cf-kind input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.cf-kind input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.cf-kind.is-invalid span { border-color: #c0392b; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cf-note { font-size: 13px; color: var(--mute); }
.cf-status { font-size: 14px; font-weight: 700; min-height: 1em; }
.cf-status:empty { display: none; }
.cf-status.is-err { color: #b42318; }
.cf-done { padding: 40px 32px; background: #fff; color: var(--ink); border-radius: 16px; }
.cf-done h3 { font-size: 22px; margin-bottom: 8px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(64px, 8vw, 100px); padding-top: 20px; border-top: 1px solid #d5d8dd; font-size: 12.5px; color: var(--sub); font-family: var(--en); }
.foot-share { min-height: 44px; border: 0; background: none; color: var(--sub); cursor: pointer; font-size: 13px; }
.foot-share:hover { color: var(--ink); }

/* スマホの下に出る相談ボタン */
.float-cta { display: none; }

/* ---- 現れる（位置を見て付ける。IO だけに頼らない） ---- */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

/* ---- 幅ごと ---- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .head-cta { margin-left: auto; }
  .burger { display: block; margin-left: 0; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .flow-list li:nth-child(3) .fl-n::after { display: none; }
  .links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .links li:nth-child(4) a { padding-left: 0; border-left: 0; }
  .links li:nth-child(n+4) { border-top: 1px solid var(--line); }
  /* 5つを3列に並べると最後の行が1マス空く＝最後の1つを2マス分に広げて行を埋める */
  .links li:last-child { grid-column: span 2; }
  .demo-row { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-foot { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; row-gap: 14px; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li { padding-bottom: 20px; }
  .proof li:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pain-list { grid-template-columns: 1fr; }
  .pain-list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .svc-item { grid-template-columns: 1fr; }
  .svc-item:nth-child(even) .svc-media { order: 0; }
  .case { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .case-what { grid-column: 1 / -1; }
  .made-in { grid-template-columns: 1fr; }
  .made-stage { position: relative; top: auto; }
  /* ヒーロー：縦に積む（名前→見出し→絵→実行→説明） */
  .about-in, .contact-in { grid-template-columns: minmax(0, 1fr); }
  .contact-in { gap: 40px; }
}
@media (max-width: 600px) {
  :root { --gut: 16px; }
  .head { height: 60px; gap: 12px; }
  .drawer { inset: 60px 0 auto; }
  .head-cta { min-height: 44px; padding: 0 16px; font-size: 13.5px; }
  .h1 { font-size: clamp(42px, 13vw, 56px); }
  .cta-row .btn { flex: 1 1 auto; }
  .strip li { width: 72vw; }
  .demo-row { padding: 20px 16px; margin-inline: calc(-1 * var(--gut)); border-radius: 0; }
  .win-body { grid-template-columns: 1fr; }
  .sh-src { border-right: 0; border-bottom: 1px solid var(--line); }
  .toast { left: 8px; right: 8px; width: auto; top: 64px; bottom: auto; }
  .steps { gap: 2px; padding: 10px 12px; }
  .steps li + li::before { width: 10px; margin: 0 4px 0 -4px; }
  .proof li { padding: 18px 12px 18px 0; }
  .proof li + li { padding-left: 14px; }
  .proof li:nth-child(3) { padding-left: 0; }
  .proof span { font-size: 12.5px; }
  .made-list a { padding-left: 0; }
  .made-list a.is-on { background: none; }
  .hero .h1 { font-size: clamp(40px, 12vw, 54px); }
  .about-pic { aspect-ratio: 4 / 3; }
  .flow-list { grid-template-columns: 1fr; row-gap: 28px; }
  .flow-list li { display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; padding: 0; }
  .fl-n { grid-row: 1 / 3; margin: 0; font-size: 26px; }
  .fl-n::after { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links li a, .links li + li a { padding: 16px 12px 16px 0; border-left: 0; }
  .links li:nth-child(even) a { padding-left: 14px; border-left: 1px solid var(--line); }
  .links li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .links li:last-child { grid-column: 1 / -1; } /* 2列だと X だけ半分の幅で残り、上の線も半分で切れていた */
  .cf-row { grid-template-columns: 1fr; }
  .float-cta { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 35; display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 8px 24px -12px rgba(12, 14, 18, .5); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
  .float-cta.on { opacity: 1; transform: none; pointer-events: auto; }
  .foot { flex-direction: column-reverse; align-items: flex-start; padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html, html.smooth { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .strip-track { animation: none; }
  .made-tick { display: none; }
  .strip { overflow-x: auto; padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .js .rise { opacity: 1; transform: none; }
}
