/* Layout: 計測パネルのように数値（px・時間・円）を主役にした、暗い作業画面の上のLP。各セクションはFigmaのフレームラベルを見出しの上に持つ */
/* 色はすべてここのトークンで管理する。ライト版（01 / index.html）は theme-light.css でトークンだけを上書きする */
:root {
  --ink: #0B1020;
  /* 背景 */
  --ink-2: #10172C;
  /* 背景（偶数セクション。セクションの区切りを出す） */
  --panel: #162039;
  /* 面（背景との差を広げて、カードを見分けやすく） */
  --panel-2: #1D2849;
  --line: #2C3858;
  /* 罫線 */
  --fg: #E8ECF7;
  /* 本文 */
  --muted: #9AA6C4;
  /* 補足 */
  --faint: #5F6A8A;
  /* プレースホルダー・未入力 */
  --accent: #7088FF;
  /* ペリウィンクル：操作・リンク */
  --accent-hover: #8A9DFF;
  --accent-ink: #0B1020;
  /* accent・signal の上に載せる文字 */
  --signal: #FFC857;
  /* アンバー：時間・スピードの数値だけに使う */
  --danger: #FF8F8F;
  --shadow-lg: 0 50px 120px rgba(0, 0, 0, .55);
  --shadow-sm: 0 16px 40px rgba(0, 0, 0, .45);
  /* 02 SAMPLES：セクション背景を一段沈め、カードを一段持ち上げてコントラストを出す */
  --samples-bg: #080C18;
  --sample-bg: #1B2546;
  --sample-line: #36436C;
  --thumb-bg: #0E1428;
  --thumb-bar: #111933;
  --figma-btn: #FFC857;
  /* 「Figmaを見る」ボタン（両テーマ共通のイエロー） */
  --figma-btn-hover: #FFD67E;
  --figma-btn-ink: #0B1020;
  /* MVのステージ：Figmaの作業画面に寄せたグラファイト。紺の背景から浮かせる */
  --stage-bg: #2C313D;
  --stage-bar: #252A35;
  --stage-line: #4A5162;
  --stage-fg: #ECEEF3;
  --stage-muted: #AEB4C2;
  --stage-ring: 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 80px color-mix(in srgb, var(--accent) 22%, transparent);
  --chip-bg: #323846;
  --chip-line: #535A6C;
  /* ステージ内のデザインフレーム：白いWebページとして見せる */
  --canvas-bg: #FFFFFF;
  --blk: #E4E8F1;
  --blk-line: #C9D0DE;
  --blk-strong: #8C95AA;
  --blk-hero: linear-gradient(120deg, #5E77F5, #3D52C9);
  --blk-img: linear-gradient(140deg, #C9D3EE, #AEBBE3);
  --code-bg: #22262F;
  --code-comment: #6B7285;
  --code-str: #9FE3C1;
  --f-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --f-body: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1264px;
  /* コンテンツ幅1200px＋左右の余白32px×2 */
  /* 文字サイズ：この5段階＋見出しに絞る */
  --fs-cap: 14px;
  /* 注記・クレジット・小さなラベル */
  --fs-sm: 15px;
  /* カード内の説明・補足 */
  --fs-md: 16px;
  /* 項目・本文 */
  --fs-base: 17px;
  /* リード */
  --fs-h3: 22px;
  /* カード・ブロックの見出し */
  color-scheme: dark;
}

/* ダーク版：重要なコンテンツ（サンプル・お悩み・補足の特徴・対応範囲の標準サービス・料金・フォーム）は、
   ライト版と同じグレーの面にして紺の背景から切り離す（特徴は3つの柱のみ。下の4項目とお悩みは紺のまま）。対応範囲の追加オプションは、優先度を下げて見せるため紺のまま */
:root:not([data-theme="light"]) :is(.sample, .feature, .scope-col:not(.opt), .price-table, .price-card, .form-area) {
  --ink: #FFFFFF;
  /* 入力欄 */
  --panel: #F3F5F9;
  /* 面 */
  --panel-2: #E8ECF3;
  --sample-bg: #F3F5F9;
  --sample-line: #D6DCE8;
  --line: #D6DCE8;
  --fg: #0F1A3A;
  --muted: #566384;
  --faint: #98A1B7;
  --accent: #3651E0;
  --accent-hover: #2740C4;
  --accent-ink: #FFFFFF;
  --signal: #F0A800;
  --danger: #D13B3B;
  --thumb-bg: #E8ECF4;
  --thumb-bar: #E9EDF4;
  color: var(--fg);
  color-scheme: light;
}

:root:not([data-theme="light"]) .sample:hover {
  border-color: #7088FF
}

:root:not([data-theme="light"]) .price-card {
  background: var(--panel)
}

/* 01のMVステージ：外枠を白にし、デザインの作業画面に色をつけてメリハリを出す */
:root:not([data-theme="light"]) {
  --stage-bg: #FFFFFF;
  --stage-bar: #F3F5F9;
  --stage-line: #DCE1EB;
  --stage-fg: #0F1A3A;
  --stage-muted: #566384;
  --stage-ring: 0 0 0 1px rgba(255, 255, 255, .4), 0 0 80px color-mix(in srgb, var(--accent) 30%, transparent);
  --chip-bg: #FFFFFF;
  --chip-line: #DCE1EB;
  --canvas-bg: #DDE4FB;
  --blk: #FFFFFF;
  --blk-line: #B9C4E6;
  --blk-strong: #5E6E9C;
  --blk-img: linear-gradient(140deg, #B8C6F2, #9CAEE8);
  --code-bg: #0F1A3A
}

:root:not([data-theme="light"]) :is(.stage, .chip) {
  --accent: #3651E0;
  --accent-ink: #FFFFFF;
  --signal: #F0A800
}

/* ステージの中だけはステージ用の色で描く */
.stage,
.chip {
  --line: var(--stage-line);
  --fg: var(--stage-fg);
  --muted: var(--stage-muted)
}

* {
  box-sizing: border-box
}

[hidden] {
  display: none !important
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  * {
    animation: none !important;
    transition: none !important
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--ink)
}

a {
  color: var(--accent)
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px))
}

@media (min-width:720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px))
  }
}

.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  text-wrap: balance;
  margin: 0;
  line-height: 1.35
}

/* 改行：日本語は文節の切れ目で折り返し（対応ブラウザ）、最後の行に1〜2文字だけ残らないようにする */
html {
  word-break: auto-phrase
}

p,
li,
dd,
dt,
summary {
  text-wrap: pretty
}

/* PC幅でだけ効かせる改行 */
@media (max-width:1023px) {
  .pc-br {
    display: none
  }
}

p {
  margin: 0
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line)
}

.site-head .wrap {
  max-width: 1440px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg)
}

.brand img {
  display: block;
  width: auto;
  height: 39px
}

.brand em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--signal);
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: .08em
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500
}

.nav a {
  color: var(--muted);
  text-decoration: none
}

.nav a:hover {
  color: var(--fg)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 6px;
  padding: 15px 26px;
  border: 1px solid transparent;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), background-color .45s cubic-bezier(.22, 1, .36, 1), border-color .45s cubic-bezier(.22, 1, .36, 1), color .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s cubic-bezier(.22, 1, .36, 1);
  cursor: pointer;
  font-family: var(--f-body)
}

.btn:hover {
  transform: translateY(-2px)
}

.btn:active {
  transform: translateY(0);
  transition-duration: .15s
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink)
}

.btn-primary:hover {
  background: var(--accent-hover)
}

.btn-ghost {
  border-color: var(--line);
  color: var(--fg);
  background: transparent
}

.btn-ghost:hover {
  border-color: var(--accent)
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px
}

/* 大きなCTA */
.btn-lg {
  font-size: 19px;
  padding: 24px 56px;
  border-radius: 6px;
  min-width: min(100%, 460px);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--accent) 35%, transparent)
}

.btn-lg .arr {
  font-family: var(--f-mono);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1)
}

.btn-lg:hover .arr {
  transform: translateX(4px)
}

.site-head .btn {
  margin-left: 8px
}

/* PC：ボタンは角丸で低く見えるので、ロゴ（.brand img 39px）より少し高くして見た目をそろえる */
@media (min-width:721px) {
  .site-head .btn {
    height: 44px;
    padding-block: 0
  }
}


/* ---------- section scaffolding ---------- */
section {
  padding-block: 112px;
  border-bottom: 1px solid var(--line)
}

/* タイトル上の見た目の余白をそろえる：
   色がはっきり切り替わるセクションは上の余白を --pt に。
   グラデーションで前のセクションとつながるセクションは、前のセクションの下余白と合わせて --pt になるよう上の余白を減らす */
main>section {
  --pt: 140px;
  padding-top: var(--pt)
}

main>section#flow {
  padding-top: calc(var(--pt) - 112px)
}

main>section#samples {
  padding-top: 0
}

section:nth-of-type(even) {
  background: var(--ink-2)
}

/* ---------- セクションの区切り：場所ごとに変える ----------
   ・MVの下／料金→流れ：前のセクションの色からなめらかなグラデーションでつなぐ
   ・特徴→対応範囲：ドットで消えていく／対応範囲→料金・流れ→FAQ：色をはっきり切り替える。流れは左上の背景に光のにじみ
   ・お悩みの前後、お問い合わせの前など、背景が大きく変わるところ：そのまま切り替える
   --prev（直前のセクションの背景色）は main.js が入れる */
main>section {
  position: relative
}

main>section>.wrap {
  position: relative;
  z-index: 1
}

:is(.hero, #features, #scope, #price, #flow) {
  border-bottom: 0
}

:is(#samples, #flow)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 320px;
  pointer-events: none;
  background: linear-gradient(var(--prev, transparent) 0%, color-mix(in srgb, var(--prev, transparent) 82%, transparent) 18%, color-mix(in srgb, var(--prev, transparent) 52%, transparent) 42%, color-mix(in srgb, var(--prev, transparent) 22%, transparent) 68%, color-mix(in srgb, var(--prev, transparent) 6%, transparent) 88%, transparent)
}

/* 流れ：境目ではなく、セクションの左上の背景にぼかしの光を置く */
#flow {
  background-image: radial-gradient(ellipse 760px 520px at 160px 360px, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%);
  background-repeat: no-repeat
}

/* 特徴→対応範囲：前のセクションの色がドットになって消えていく */
#scope::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(var(--prev, transparent), var(--prev, transparent)) top/100% 8px no-repeat, radial-gradient(circle, var(--prev, transparent) 2.2px, transparent 2.6px) 0 8px/12px 12px;
  -webkit-mask-image: linear-gradient(#000 10%, transparent);
  mask-image: linear-gradient(#000 10%, transparent)
}

/* セクションの区切り：コードのタグ（</section> / <section id>）と、Figmaの選択枠（四隅のハンドル・サイズ表示）を組み合わせる。
   JS（main.js）で各セクションの後ろに .sec-div を差し込む。JSが動かないときは、元の1本線のまま */
.has-sec-div section {
  border-bottom: 0
}

.sec-div {
  position: relative;
  z-index: 2;
  height: 1px;
  background: var(--line);
  pointer-events: none;
  user-select: none
}

.sec-div .wrap {
  position: relative;
  height: 1px
}

.sd-in {
  position: relative;
  height: 1px
}

/* 選択枠の下辺：ハンドルの間だけアクセント色 */
.sd-in::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  transform-origin: left;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1)
}

.sd-h {
  position: absolute;
  top: 0;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 -3px;
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: 1px;
  transition: opacity .3s .7s
}

.sd-h.r {
  left: 100%
}

/* サイズ表示：Figmaの選択時に出る幅×高さのラベル */
.sd-size {
  position: absolute;
  right: 0;
  top: 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 3px;
  padding: 4px 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: opacity .4s .8s
}

/* コードのタグ */
.sd-tag {
  position: absolute;
  left: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--faint);
  white-space: nowrap;
  clip-path: inset(0 0 0 0);
  transition: clip-path .6s steps(20)
}

.sd-tag.close {
  bottom: 12px
}

.sd-tag.open {
  top: 12px;
  transition-delay: .35s
}

.sd-tag b {
  font-weight: 500;
  color: var(--muted)
}

.sd-tag em {
  font-style: normal;
  color: var(--accent)
}

/* 表示範囲に入るまで：線は伸びる前、タグは打たれる前、ハンドルとサイズは非表示 */
.sec-div.is-wait .sd-in::before {
  transform: scaleX(0)
}

.sec-div.is-wait .sd-tag {
  clip-path: inset(0 100% 0 0)
}

.sec-div.is-wait .sd-h,
.sec-div.is-wait .sd-size {
  opacity: 0
}

@media (max-width:560px) {
  .sd-tag {
    font-size: 10px
  }

  .sd-size {
    font-size: 9.5px
  }
}

.frame-label {
  font-variant-ligatures: none;
  font-family: var(--f-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px
}

/* HTMLコメント風：<!-- 02 / SAMPLES --> */
.frame-label::before,
.frame-label::after {
  color: var(--faint);
  font-weight: 600;
  letter-spacing: 0
}

.frame-label::before {
  content: "<!--"
}

.frame-label::after {
  content: "-->"
}

/* VSCodeの「コメント化（⌘/）」のように、行が選択されたあと一瞬で <!-- --> が付く。JSで .is-code → .is-select → 外す の順に切り替える */
.frame-label {
  width: fit-content;
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: 3px
}

.frame-label.is-code {
  color: var(--fg)
}

.frame-label.is-code::before,
.frame-label.is-code::after {
  display: none
}

.frame-label.is-select {
  background: color-mix(in srgb, var(--accent) 22%, transparent)
}

/* コメントのラベル（<!-- 02 / SAMPLES -->）の右横に、画面幅の半分ほどの長さのラインが伸びる（コメント化のあとに再生）。
   ラインは背景になじむ控えめなグラデーション。引き終わった直後に、小さな光のパケットが1回だけ走る。
   位置（--lx / --ly）は main.js がラベルの実寸から入れる */
main {
  overflow-x: clip
}

.sec-head {
  position: relative
}

.sec-head::before {
  content: "";
  position: absolute;
  left: var(--lx, 0px);
  top: var(--ly, 0px);
  width: 50vw;
  height: 2px;
  margin-top: -1px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--h2line, color-mix(in srgb, var(--fg) 18%, transparent)), transparent 70%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(.65, 0, .2, 1)
}

.sec-head.is-lined::before {
  transform: scaleX(1)
}

.sec-head::after {
  content: "";
  position: absolute;
  left: var(--lx, 0px);
  top: var(--ly, 0px);
  margin-top: -2px;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 80%, transparent));
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 30%, transparent)
}

.sec-head.is-lined::after {
  animation: packet 1.4s .95s cubic-bezier(.55, 0, .25, 1) forwards
}

@keyframes packet {
  0% {
    transform: translateX(0);
    opacity: 0
  }

  12% {
    opacity: .75
  }

  80% {
    opacity: .75
  }

  100% {
    transform: translateX(28vw);
    opacity: 0
  }
}

/* 見出しブロック（ラベル・h2・説明文）をMVのテキストの左端に揃える（--hang は main.js が測って入れる）。カードは今の位置のまま */
.sec-head :is(.frame-label, h2, p) {
  margin-left: calc(-1 * var(--hang, 0px))
}

.sec-head .frame-label {
  margin-left: calc(-1 * var(--hang, 0px) - 6px)
}

.sec-head h2 {
  max-width: calc(100% + var(--hang, 0px))
}

@media (prefers-reduced-motion:reduce) {
  .sec-head::before {
    transform: none
  }

  .sec-head.is-lined::after {
    animation: none
  }
}

.sec-head {
  display: grid;
  gap: 20px;
  margin-bottom: 64px
}

.sec-head .frame-label,
.contact .intro .frame-label {
  margin-bottom: -10px
}

.sec-head p {
  max-width: 940px
}

/* 見出しの下に説明文があるときは、間を広めにとる */
.sec-head h2+p {
  margin-top: 14px
}

/* 説明文の1行目を強調する（こんなお悩み） */
.sec-head .lead-em {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(20px, 1.9vw, 26px);
  color: var(--fg);
  line-height: 1.6
}

.sec-head .lead-em span {
  color: var(--signal)
}

.sec-head h2 {
  letter-spacing: .01em;
  font-feature-settings: "palt";
  font-size: clamp(36px, 4.6vw, 66px);
  font-weight: 900;
  line-height: 1.3
}

/* h2：左から1文字ずつタイプされるように表示（JSで1文字ずつ span.ch に分ける） */
.typing .ch {
  opacity: 0
}

.typing.is-typed .ch {
  opacity: 1;
  transition: opacity .01s calc(var(--i) * 45ms)
}

.typing .caret {
  display: inline-block;
  width: .08em;
  height: .9em;
  margin-left: .06em;
  vertical-align: -.08em;
  background: var(--accent);
  opacity: 0
}

.typing.is-typed .caret {
  animation: caret .9s var(--done, 0ms) steps(1) 3 forwards
}

@keyframes caret {
  0% {
    opacity: 1
  }

  50% {
    opacity: 0
  }

  100% {
    opacity: 0
  }
}

.sec-head p {
  color: var(--muted);
  font-size: var(--fs-base)
}

/* ---------- 01 hero ---------- */
.hero {
  padding-block: 96px 150px;
  position: relative;
  overflow: hidden;
  /* 左下のぼかし：次の「実装サンプル」の左上と同じ形で続け、MVから次のセクションへつなぐ */
  background-image: radial-gradient(ellipse 900px 560px at 6% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%)
}

/* MVの格子：線を1本ずつ順番に引いていく（線は main.js が作る） */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--grid-op, .28);
  -webkit-mask-image: radial-gradient(ellipse at 72% 45%, #000 0%, transparent 65%), linear-gradient(#000 60%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse at 72% 45%, #000 0%, transparent 65%), linear-gradient(#000 60%, transparent);
  mask-composite: intersect
}

.hero-grid i {
  position: absolute;
  display: block;
  background: var(--line);
  transition: transform 1.2s cubic-bezier(.65, 0, .2, 1);
  transition-delay: var(--d, 0s)
}

.hero-grid i.v {
  top: 0;
  bottom: 0;
  width: 1px;
  transform: scaleY(0);
  transform-origin: top
}

.hero-grid i.h {
  left: 0;
  right: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left
}

.hero-grid.is-drawn i {
  transform: none
}

@media (prefers-reduced-motion:reduce) {
  .hero-grid i {
    transform: none
  }
}

.hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -160px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  pointer-events: none;
  animation: glow 9s ease-in-out infinite alternate
}

@keyframes glow {
  to {
    transform: translate(-80px, 60px) scale(1.1)
  }
}

.hero .wrap {
  max-width: 1440px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: center
}

.hero-copy {
  container-type: inline-size;
  min-width: 0
}

.hero-copy>* {
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both
}

.hero-copy>*:nth-child(2) {
  animation-delay: .08s
}

.hero-copy>*:nth-child(3) {
  animation-delay: .18s
}

.hero-copy>*:nth-child(4) {
  animation-delay: .26s
}

.hero-copy>*:nth-child(5) {
  animation-delay: .34s
}

.hero-copy>*:nth-child(6) {
  animation-delay: .42s
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px)
  }
}

.hero-kicker {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .06em;
  margin-bottom: 22px
}

.hero h1 {
  font-size: clamp(28px, 4.4vw, 64px);
  font-size: min(clamp(28px, 4.4vw, 64px), 8.3cqi);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3
}

/* 2行固定：行の途中では折り返さず、列幅に合わせて文字サイズを変える */
.hero h1 .ln {
  display: block;
  white-space: nowrap
}

/* MVのポイント：チェックボックス付きのリスト */
.points {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 12px
}

.points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 500;
  color: var(--muted)
}

.points li b {
  color: var(--fg);
  font-weight: 900;
  margin: 0 .15em
}

.points li b.sig {
  color: var(--signal)
}

.points .cb {
  flex: none;
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent)
}

.points .cb::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 3.5px;
  width: 6px;
  height: 11px;
  border: solid var(--accent-ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg)
}

.hero h1 .t {
  color: var(--signal);
  position: relative
}

/* MVの見出し：2行目（最短半日〜）を1文字ずつタイプされるように表示し、最後にカーソルを点滅。
   steps() は終了時に0へ戻ることがあるため、ごく短いフェードで表示する */
.hero h1 .c {
  animation: typeIn .03s calc(.7s + var(--i) * 80ms) linear both
}

@keyframes typeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.hero h1 .caret {
  display: inline-block;
  width: .07em;
  height: .9em;
  margin-left: .05em;
  vertical-align: -.08em;
  background: var(--accent);
  opacity: 0;
  animation: caret .9s 1.8s steps(1) 3 forwards
}

.hero .sub {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(17px, 3.3cqi, 23px);
  margin-top: 28px;
  line-height: 1.6
}

.hero .sub span {
  display: block
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px
}

.hero-cta .btn {
  font-size: 17px;
  padding: 16px 44px;
  min-width: 280px
}

.hero-cta .btn-ghost {
  background: var(--panel)
}

/* 3項目はそれぞれ中央揃え。区切りははっきりした実線 */

/* hero visual: Figmaの作業画面を模したステージ。INSPECT→RESPONSIVE→BUILD→QAをループ再生 */
.stage-wrap {
  position: relative;
  perspective: 1800px;
  animation: rise 1s .2s cubic-bezier(.2, .7, .2, 1) both
}

.stage {
  width: 640px;
  max-width: none;
  flex: none;
  position: relative;
  background: var(--stage-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg), var(--stage-ring);
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(4deg);
  transform-origin: 40% 50%;
  animation: float 7s ease-in-out infinite;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1)
}

@keyframes float {

  0%,
  100% {
    translate: 0 0;
    rotate: 0deg
  }

  50% {
    translate: 0 -24px;
    rotate: -.6deg
  }
}

.stage-wrap:hover .stage {
  transform: rotateY(-3deg) rotateX(1deg)
}

@media (max-width:1100px) {
  .stage-wrap {
    margin-right: 0
  }

  .stage {
    transform: none
  }

  .stage-wrap:hover .stage {
    transform: none
  }
}

/* ステージの外に浮かぶチップ */
.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--fg);
  background: var(--chip-bg);
  border: 1px solid var(--chip-line);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: border-color .4s, box-shadow .4s, transform .4s;
  animation: bob 6s ease-in-out infinite
}

.chip i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--muted);
  flex: none;
  transition: background .4s
}

.chip small {
  color: var(--muted);
  font-size: 10.5px
}

.chip.c1 {
  left: -48px;
  top: 54%;
  animation-delay: -1s
}

.chip.c2 {
  right: -18px;
  top: 46%;
  animation-delay: -3s
}

.chip.c3 {
  right: 12%;
  bottom: -18px;
  animation-delay: -4.5s
}

@keyframes bob {

  0%,
  100% {
    translate: 0 0
  }

  50% {
    translate: 0 -8px
  }
}

.stage-wrap[data-phase="inspect"] .c1,
.stage-wrap[data-phase="responsive"] .c2,
.stage-wrap[data-phase="build"] .c3,
.stage-wrap[data-phase="qa"] .c3 {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm), 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent)
}

.stage-wrap[data-phase="inspect"] .c1 i,
.stage-wrap[data-phase="responsive"] .c2 i,
.stage-wrap[data-phase="build"] .c3 i,
.stage-wrap[data-phase="qa"] .c3 i {
  background: var(--signal)
}

@media (max-width:640px) {
  .chip {
    display: none
  }
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--stage-bar);
  flex-wrap: nowrap;
  position: relative
}

.steps {
  min-width: 0
}

.steps {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap
}

.steps li {
  font-size: 11.5px;
  font-family: var(--f-mono);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  transition: background .3s, color .3s, border-color .3s;
  white-space: nowrap
}

.steps li.is-now {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink)
}

.steps li.is-done {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent)
}

.steps li.is-done::before {
  content: "✓ "
}

.steps li b {
  font-weight: 600;
  opacity: .6;
  margin-right: 4px
}

.watch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--signal);
  border: 1px solid color-mix(in srgb, var(--signal) 45%, transparent);
  border-radius: 6px;
  padding: 4px 10px;
  font-variant-numeric: tabular-nums;
  transition: background .3s, color .3s
}

.watch .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1s steps(2) infinite
}

/* 完了表示はバーの外（右下）に重ねて出し、バーの幅・高さを変えない */
.watch {
  position: relative;
  flex: none
}

.watch-done {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 3;
  font-size: 11px;
  letter-spacing: .06em;
  white-space: nowrap;
  background: var(--signal);
  color: var(--accent-ink);
  border-radius: 4px;
  padding: 3px 8px
}

.stage[data-phase="done"] .watch {
  background: var(--signal);
  color: var(--accent-ink)
}

.stage[data-phase="done"] .watch .dot {
  animation: none
}

.stage[data-phase="done"] .watch-done {
  display: inline
}

@keyframes blink {
  50% {
    opacity: .2
  }
}

.stage-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 168px;
  align-items: center;
  gap: 0 16px;
  padding: 30px 30px 22px
}

.fig-frame {
  position: relative;
  min-width: 0
}

.fig-frame .fl {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap
}

.fig-frame .fl b {
  color: var(--accent);
  font-weight: 600
}

.fig-frame .fl .auto {
  color: var(--signal)
}

.canvas {
  border: 1.5px solid var(--accent);
  background: var(--canvas-bg);
  border-radius: 2px;
  padding: 18px;
  display: grid;
  gap: 13px;
  position: relative
}

.canvas .handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border: 1.5px solid var(--accent)
}

.handle.tl {
  top: -4px;
  left: -4px
}

.handle.tr {
  top: -4px;
  right: -4px
}

.handle.bl {
  bottom: -4px;
  left: -4px
}

.handle.br {
  bottom: -4px;
  right: -4px
}

.blk {
  background: var(--blk);
  border-radius: 2px;
  outline: 1.5px solid transparent;
  outline-offset: 3px
}

.blk.nav-b {
  height: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: none
}

.blk.nav-b i {
  display: block;
  height: 6px;
  width: 26px;
  background: var(--blk-line);
  border-radius: 2px
}

.blk.nav-b i:first-child {
  width: 44px;
  background: var(--blk-strong);
  margin-right: auto
}

.blk.nav-b i:last-child {
  width: 34px;
  height: 10px;
  background: var(--accent);
  opacity: .7
}

.blk.hero-b {
  height: 128px;
  background: var(--blk-hero);
  display: grid;
  align-content: center;
  padding: 0 16px;
  gap: 7px
}

.blk.hero-b i {
  display: block;
  height: 9px;
  width: 56%;
  background: #fff;
  opacity: .95;
  border-radius: 2px
}

.blk.hero-b i:nth-child(2) {
  width: 38%;
  opacity: .4;
  height: 6px
}

.blk.hero-b i:nth-child(3) {
  width: 58px;
  height: 14px;
  background: var(--signal);
  opacity: .85;
  margin-top: 4px
}

.row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

.row3 .blk {
  height: 62px
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  align-items: center
}

.split .img {
  height: 70px;
  background: var(--blk-img)
}

.txts {
  display: grid;
  gap: 7px
}

.blk.txt {
  height: 6px;
  background: var(--blk-line)
}

.blk.txt.s {
  width: 64%
}

/* 読み込み：スキャンラインと選択枠 */
.scan {
  position: absolute;
  left: -1px;
  right: -1px;
  top: 0;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 18px 2px rgba(255, 200, 87, .55);
  opacity: 0;
  pointer-events: none
}

.stage[data-phase="inspect"] .scan {
  animation: scan 2.6s linear both
}

@keyframes scan {
  0% {
    top: 0;
    opacity: 0
  }

  6% {
    opacity: 1
  }

  92% {
    opacity: 1
  }

  100% {
    top: 100%;
    opacity: 0
  }
}

.stage[data-phase="inspect"] .pc .blk {
  animation: sel 2.6s both;
  animation-delay: calc(var(--i)*.32s)
}

@keyframes sel {
  0% {
    outline-color: transparent
  }

  12% {
    outline-color: var(--accent);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent)
  }

  55%,
  100% {
    outline-color: color-mix(in srgb, var(--accent) 35%, transparent);
    box-shadow: none
  }
}

.cursor {
  position: absolute;
  left: 72%;
  top: 70%;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s
}

.cursor svg {
  width: 16px;
  height: 16px;
  flex: none
}

.cursor span {
  font-family: var(--f-mono);
  font-size: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 1px 6px;
  border-radius: 3px;
  margin-top: 12px;
  white-space: nowrap
}

.stage[data-phase="inspect"] .cursor {
  opacity: 1;
  animation: cur 2.6s ease-in-out both
}

@keyframes cur {
  0% {
    left: 12%;
    top: 6%
  }

  25% {
    left: 58%;
    top: 24%
  }

  50% {
    left: 22%;
    top: 52%
  }

  75% {
    left: 66%;
    top: 66%
  }

  100% {
    left: 30%;
    top: 86%
  }
}

/* SP設計：PC→SPへの流れ */
.stage .flow {
  position: relative;
  height: 2px;
  align-self: center
}

.stage .flow span {
  display: block;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 6px, transparent 6px 12px);
  opacity: .2;
  transition: opacity .3s
}

.stage .flow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  border: 5px solid transparent;
  border-left: 7px solid var(--signal);
  opacity: .3
}

.stage .flow em {
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--signal);
  opacity: 0;
  transition: opacity .3s;
  white-space: nowrap
}

.stage[data-phase="responsive"] .flow span {
  opacity: 1;
  animation: flowmove .5s linear infinite
}

.stage[data-phase="responsive"] .flow em {
  opacity: 1
}

.stage[data-phase="responsive"] .flow::after {
  opacity: 1
}

@keyframes flowmove {
  to {
    background-position: 12px 0
  }
}

.sp .canvas {
  padding: 11px;
  gap: 9px
}

.sp .blk {
  opacity: .1;
  transform: translateY(8px) scale(.94);
  transition: opacity .45s, transform .45s cubic-bezier(.2, .7, .2, 1)
}

.stage:not([data-phase="inspect"]) .sp .blk {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i)*.28s)
}

.sp .blk.nav-b {
  height: 10px
}

.sp .blk.nav-b i:first-child {
  width: 30px
}

.sp .blk.nav-b i:last-child {
  width: 12px;
  height: 10px;
  background: var(--blk-line);
  opacity: 1
}

.sp .blk.hero-b {
  height: 96px;
  padding: 0 9px;
  gap: 5px
}

.sp .blk.hero-b i:nth-child(3) {
  width: 40px;
  height: 11px
}

.sp .blk.card {
  height: 38px
}

/* 検証：チェックバッジ */
.ok {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: #9FE3C1;
  background: rgba(11, 16, 32, .9);
  border: 1px solid rgba(159, 227, 193, .4);
  border-radius: 3px;
  padding: 2px 7px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s, transform .35s;
  white-space: nowrap
}

.stage[data-phase="qa"] .ok,
.stage[data-phase="done"] .ok {
  opacity: 1;
  transform: none
}

.stage[data-phase="qa"] .sp .ok {
  transition-delay: .35s
}

/* 実装：コードが1行ずつ書かれる */
.code {
  font-variant-ligatures: none;
  margin: 0 30px 28px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  overflow-x: auto
}

.code .ln {
  display: block;
  white-space: pre;
  clip-path: inset(0 100% 0 0);
  opacity: .6;
  transition: clip-path .5s steps(24), opacity .2s
}

.stage[data-phase="build"] .code .ln,
.stage[data-phase="qa"] .code .ln,
.stage[data-phase="done"] .code .ln {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transition-delay: calc(var(--i)*.38s)
}

.code .ln:first-child {
  clip-path: none !important;
  opacity: 1
}

.code .k {
  color: var(--accent)
}

.code .s {
  color: var(--code-str)
}

.code .c {
  color: var(--code-comment)
}

/* ---------- 02 samples ---------- */
.samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px
}

@media (max-width:1000px) {
  .samples {
    grid-template-columns: 1fr
  }
}

#samples {
  background: var(--samples-bg)
}

/* 特徴：MV・サンプルと同じほわっとしたぼかしを、右上と左下の対角に置く。左下はセクションの下端より手前で消えるようにする */
#features {
  background-image: radial-gradient(ellipse 860px 560px at 96% 4%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%), radial-gradient(ellipse 880px 380px at 4% 74%, color-mix(in srgb, #8B5CF6 13%, transparent), transparent 70%);
  background-repeat: no-repeat
}

/* MVから続くぼかし（上）と、MVの色からのグラデーション（その下）を背景に重ねる */
#samples {
  background-image: radial-gradient(ellipse 900px 560px at 6% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(ellipse 820px 600px at 100% 1180px, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), linear-gradient(var(--prev, transparent), color-mix(in srgb, var(--prev, transparent) 50%, transparent) 120px, transparent 320px);
  background-repeat: no-repeat
}

#samples::before {
  display: none
}

.sample {
  background: var(--sample-bg);
  border: 1px solid var(--sample-line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s
}

.sample:hover {
  border-color: var(--accent)
}

.thumb {
  aspect-ratio: 16/9;
  max-width: 100%;
  position: relative;
  background: var(--thumb-bg);
  border-bottom: 1px solid var(--sample-line);
  overflow: hidden
}

.thumb .bar {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--thumb-bar);
  border-bottom: 1px solid var(--sample-line)
}

.thumb .bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line)
}

.thumb .bar span {
  margin-left: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

/* ページ全体のスクリーンショットを、ブラウザのようにスクロールして見られる窓 */
.thumb .shot {
  position: absolute;
  inset: 26px 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable
}

.thumb .shot img {
  display: block;
  width: 100%;
  height: auto
}

.thumb .shot:focus-visible {
  outline-offset: -2px
}

/* スクロールバー：カードの罫線・補足色に合わせる */
.thumb .shot::-webkit-scrollbar {
  width: 12px
}

.thumb .shot::-webkit-scrollbar-track {
  background: var(--thumb-bar);
  border-left: 1px solid var(--sample-line)
}

.thumb .shot::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted) 75%, transparent);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  min-height: 40px
}

.thumb .shot::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent)
}

@supports not selector(::-webkit-scrollbar) {
  .thumb .shot {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--muted) 75%, transparent) var(--thumb-bar)
  }
}

.s-body {
  padding: 22px 24px 20px;
  display: grid;
  gap: 14px;
  flex: 1;
  align-content: start
}

.s-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap
}

/* SAMPLE 01：対応範囲の STANDARD と同じ角丸のラベル */
.s-title .no {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  word-spacing: -.3em;
  line-height: 1.5;
  align-self: center
}

.s-title h3 {
  font-size: var(--fs-h3);
  font-weight: 700
}

.spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--sample-line);
  border: 1px solid var(--sample-line);
  border-radius: 8px;
  overflow: hidden;
  margin: 0
}

.spec div {
  padding: 10px 18px 8px;
  background: var(--sample-bg);
  min-width: 0
}

.spec dt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4
}

.spec dd {
  margin: 0;
  font-family: var(--f-mono);
  font-size: clamp(22px, 2.3vw, 32px);
  white-space: nowrap;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.4;
  font-variant-numeric: tabular-nums
}

.spec dd small {
  font-size: 13px;
  margin-left: 4px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted)
}

.spec dd.time {
  color: var(--signal)
}

.s-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px
}

.s-links .btn {
  padding: 12px 12px;
  white-space: nowrap
}

@media (max-width:400px) {
  .s-links {
    grid-template-columns: 1fr
  }
}

.btn-figma {
  background: var(--figma-btn);
  color: var(--figma-btn-ink)
}

.btn-figma:hover {
  background: var(--figma-btn-hover)
}

.s-credit {
  font-size: 12px;
  color: var(--muted);
  border-top: 2px solid var(--sample-line);
  padding-top: 12px;
  line-height: 1.6
}

.s-credit a {
  color: var(--muted)
}

.fine {
  font-size: var(--fs-cap);
  color: var(--muted);
  margin-top: 28px;
  line-height: 1.8
}

/* ---------- 03 pains ---------- */
.pains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 72px;
  margin-inline: calc(-1 * var(--hang, 0px)) !important;
  padding: 0;
  margin: 0;
  list-style: none
}

@media (max-width:1000px) {
  .pains {
    grid-template-columns: 1fr
  }
}

/* BEFORE → AFTER：1組を1枚のカードとしてくっつけ、継ぎ目に丸い矢印を置く。組と組の間は広くあける */
.pains-head {
  display: none
}

/* お悩みを左上、解決策を右下に少しずらして重ねる */
.pain {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: stretch;
  isolation: isolate;
  --shift: 18px
}

.pain-q,
.pain-a {
  position: relative;
  padding: 24px 22px
}

/* お悩みと解決策はまっすぐな継ぎ目でつなぎ、継ぎ目の中央に角丸の四角い矢印を置く */
.pain-q {
  display: flex;
  align-items: center;
  min-height: 160px;
  margin-bottom: var(--shift);
  padding: 39px 78px 39px 36px;
  border-radius: 4px;
  position: relative;
  z-index: 0;
  background: none
}

/* 紺と白の面：継ぎ目はまっすぐ。白い面を紺の上に少し重ねる */
/* 影は filter ではなく box-shadow で付ける（iPhoneでは filter を重ねると描画の負荷が大きく、表示が一瞬消えたり再読み込みされたりする原因になる） */
.pain-q::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 4px;
  background: color-mix(in srgb, var(--fg) 14%, var(--ink));
  box-shadow: 0 14px 28px rgba(0, 0, 0, .3)
}

.pain-a {
  z-index: 1;
  display: flex;
  align-items: center;
  margin-top: var(--shift);
  padding: 39px 32px 39px 36px;
  color: #0B1020
}

/* 白い面は継ぎ目を斜めにする（上が右、下が左に寄る） */
.pain-a::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  right: 0;
  left: -44px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .4)
}

.pain-arrow {
  position: absolute;
  z-index: 2;
  left: -65px;
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border-radius: 4px;
  background: var(--signal);
  box-shadow: 0 0 0 4px #fff
}

.pain-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1020' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center/26px 26px no-repeat
}

.pain-a p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: #3A4257
}

.pain-a p strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 19px;
  color: #E59A00
}

@media (max-width:560px) {
  .pain {
    grid-template-columns: 1fr;
    --shift: 0px
  }

  .pain-q::before {
    border-radius: 4px 4px 0 0
  }

  .pain-a::before {
    left: 0;
    border-radius: 0 0 4px 4px
  }

  .pain-q {
    padding-right: 24px
  }

  .pain-q {
    padding: 28px 24px;
    border-radius: 4px 4px 0 0
  }

  .pain-arrow {
    left: 50%;
    top: -21px;
    margin: 0 0 0 -21px
  }

  .pain-arrow::after {
    transform: rotate(90deg)
  }

  .pain-a {
    border-radius: 0 0 4px 4px;
    padding: 32px 22px 22px
  }
}

.pain-q p {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--fg) 72%, transparent)
}

.pain-q p strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 19px;
  color: var(--fg)
}

.solve {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px
}

.solve p {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(24px, 2.8vw, 38px)
}

.solve p span {
  color: var(--signal)
}

/* ---------- 04 features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none
}

/* 1を上に横長で大きく（タイトル左・説明右）、2・3を下に2列 */
@media (min-width:901px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .feature:first-child {
    grid-column: 1/-1
  }

  .feature:first-child .ed {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 48px;
    align-items: center;
    padding: 92px 48px 44px
  }

  .feature:first-child h3 {
    grid-row: span 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    font-size: clamp(32px, 3.4vw, 48px);
    border-bottom: 0;
    padding: 0 48px 0 0;
    margin: 0;
    border-right: 2px solid var(--line)
  }

  .feature:first-child p {
    font-size: 17px;
    max-width: 34em
  }

  .feature:first-child p:first-of-type {
    align-self: end
  }

  .feature:first-child p.note {
    align-self: start;
    font-size: var(--fs-cap)
  }
}

@media (max-width:900px) {
  .features {
    grid-template-columns: 1fr
  }
}

/* タブ風：番号だけの小さなタブを本文の面に乗せる */
.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0
}

/* FEATURE 番号：カードの左上の角に、色付きのラベルを差し込む（リボン風のあしらい） */
.feature .tabs {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: -8px
}

.feature .tab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 8px 22px 8px 26px;
  background: var(--signal);
  color: #0B1020;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--signal) 35%, transparent)
}

/* 左にはみ出した部分の折り返し（小さな三角の影） */
.feature .tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent color-mix(in srgb, var(--signal) 55%, #000) transparent transparent
}

.feature .tab b {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: inherit;
  letter-spacing: 0
}

.feature .ed {
  flex: 1;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 84px 26px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px
}

.feature h3 {
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
  font-size: clamp(19px, 1.75vw, 23px);
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap
}

.feature h3 em {
  font-style: normal;
  color: var(--signal)
}

.feature p {
  color: color-mix(in srgb, var(--fg) 78%, var(--muted));
  font-size: var(--fs-sm);
  line-height: 1.75;
  word-break: normal
}

.feature p.note {
  color: var(--muted)
}

.feature .note {
  font-size: var(--fs-cap)
}

.sub-head {
  margin-top: 80px;
  margin-bottom: 24px;
  font-size: var(--fs-h3);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 16px
}

.sub-head::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line)
}

.sub-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px
}

.subf {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 12px;
  align-content: start
}

.subf-ic {
  width: 44px;
  height: 44px;
  margin-left: -8px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%)
}

.subf-ic svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.subf b {
  display: block;
  font-size: 18px;
  line-height: 1.45
}

.subf b+span {
  grid-column: 1/-1;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.75;
  display: block;
  word-break: normal;
  text-wrap: pretty
}

/* ---------- 05 scope ---------- */
.scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start
}

@media (max-width:820px) {
  .scope {
    grid-template-columns: 1fr
  }
}

.scope-col {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  background: var(--panel)
}

/* 追加オプションの点線の枠：border の点線は大きさが変わると点の間隔が動くため、背景の線で描いて固定する */
.scope-col.opt {
  --dash: #8E9BF5;
  border: 0;
  padding: 50px;
  background:
    repeating-linear-gradient(90deg, var(--dash) 0 6px, transparent 6px 12px) left top/100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--dash) 0 6px, transparent 6px 12px) left bottom/100% 2px no-repeat,
    repeating-linear-gradient(180deg, var(--dash) 0 6px, transparent 6px 12px) left top/2px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--dash) 0 6px, transparent 6px 12px) right top/2px 100% no-repeat
}

/* 対応範囲：標準サービスは黄色の面＋紺の線、追加オプションは白い面＋点線の枠（両テーマ共通） */
#scope .scope-col:not(.opt) {
  --fg: #0B1020;
  --muted: #545B6E;
  --line: #0B1020;
  --accent: #4256F0;
  --accent-ink: #FFFFFF;
  background: #FFC857;
  border-color: #FFC857;
  color: #0B1020
}

#scope .scope-col.opt {
  --fg: #0B1020;
  --muted: #545B6E;
  --line: #DADDE4;
  background-color: #FFFFFF;
  color: #0B1020
}

.scope-col h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px
}

.scope-col h3 .pill {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink)
}

.scope-col.opt h3 .pill {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--muted)
}

.scope-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0
}

.scope-col li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 2px solid var(--line);
  font-size: var(--fs-md)
}

.scope-col li:first-child {
  border-top: 0
}

.scope-col li .v {
  font-size: var(--fs-cap);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  text-align: right
}

.scope-col li .v.in {
  color: var(--accent)
}

.scope-col li .v.hl {
  color: var(--signal)
}

/* ---------- 06 pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: start
}

@media (max-width:900px) {
  .price-grid {
    grid-template-columns: 1fr
  }
}

.price-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel)
}

.price-table .cap {
  padding: 20px 24px;
  border-bottom: 2px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline
}

.price-table .cap b {
  font-family: var(--f-display);
  font-size: var(--fs-h3)
}

/* 料金のタイトル：左に太めの線 */
.price-table .cap b,
.price-card .lbl {
  position: relative;
  padding-left: 16px
}

.price-table .cap b::before,
.price-card .lbl::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  bottom: .2em;
  width: 5px;
  border-radius: 3px;
  background: var(--accent)
}

.price-table .cap span {
  font-size: var(--fs-cap);
  color: var(--muted)
}

.price-table table {
  width: 100%;
  border-collapse: collapse
}

.price-table td {
  padding: 18px 24px;
  border-top: 2px solid var(--line);
  vertical-align: middle
}

.price-table tr:first-child td {
  border-top: 0
}

.ruler {
  display: grid;
  grid-template-columns: 100px auto;
  align-items: center;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 16px;
  font-variant-numeric: tabular-nums
}

.ruler .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
  justify-self: start
}

.price-table td.p {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 28px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums
}

.price-table td.p small {
  font-size: var(--fs-cap);
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px
}

.price-table td.p.ask {
  font-family: var(--f-body);
  font-size: 17px;
  color: var(--muted);
  font-weight: 500
}

.price-table .incl {
  padding: 16px 24px;
  border-top: 2px solid var(--line);
  font-size: var(--fs-cap);
  color: var(--muted);
  background: var(--panel-2)
}

.price-side {
  display: grid;
  gap: 12px
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  display: grid;
  gap: 6px
}

.price-card .lbl {
  display: block;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg)
}

.price-card .amt {
  font-family: var(--f-mono);
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums
}

.price-card .amt small {
  font-size: var(--fs-cap);
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px
}

.price-card .amt.tbd {
  font-family: var(--f-body);
  font-size: 20px;
  color: var(--signal)
}

/* 料金：追加オプションの一覧（WordPress化だけ金額、それ以外は要見積もり） */
/* 料金：追加オプション。WordPress化とその他を、同じ形（名前の下に金額／要見積もり）で並べる */
.opt-card {
  gap: 0
}

.opt-card .lbl {
  margin-bottom: 0
}

.opt-card .lbl+.opt-block {
  padding-top: 10px
}

.opt-block {
  display: grid;
  gap: 8px;
  padding: 18px 0
}

.opt-block+.opt-block {
  border-top: 2px solid var(--line)
}

.opt-block:last-child {
  padding-bottom: 0
}

.opt-head {
  display: grid;
  gap: 4px
}

.opt-head .opt-price {
  padding-left: 14px
}

.opt-name {
  position: relative;
  padding-left: 14px;
  font-size: 17px !important;
  font-weight: 900;
  color: var(--fg) !important;
  line-height: 1.5 !important
}

.opt-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent)
}

.opt-price {
  font-family: var(--f-mono);
  font-size: 24px !important;
  font-weight: 700;
  color: var(--fg) !important;
  line-height: 1.2 !important;
  white-space: nowrap
}

.opt-price small {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px
}

.opt-items {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  display: grid;
  gap: 2px
}

.opt-items li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8
}

.opt-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: 6px;
  height: 1.5px;
  background: var(--muted)
}

.opt-desc {
  padding-left: 14px
}

.price-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7
}

/* 注釈は料金表のすぐ下（左の列）に置く */
@media (min-width:901px) {
  .price-grid {
    grid-template-rows: auto 1fr
  }

  .price-side {
    grid-column: 2;
    grid-row: 1/span 2
  }

  .price-grid .notes {
    grid-column: 1;
    align-self: start
  }
}

.notes {
  margin-top: 4px;
  display: grid;
  gap: 4px;
  font-size: var(--fs-cap);
  color: var(--muted);
  padding: 0;
  list-style: none
}

.notes li::before {
  content: "※ "
}

.center-cta {
  margin-top: 56px;
  display: flex;
  justify-content: center
}

/* ---------- 07 flow ---------- */
/* Claude Code の出力のように、ドットと線でステップをつなぐ縦のタイムライン */
.flow {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  max-width: 960px
}

.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 28px 120px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 6px;
  padding-bottom: 40px
}

.flow li:last-child {
  padding-bottom: 0
}

/* ドット */
.flow li::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  margin-top: 11px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent)
}

.flow li:last-child::before {
  background: var(--signal);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--signal) 24%, transparent)
}

/* ドット同士をつなぐ線 */
.flow li::after {
  content: "";
  position: absolute;
  left: 12.5px;
  top: 34px;
  bottom: 4px;
  width: 3px;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 35%, transparent))
}

.flow li:last-child::after {
  display: none
}

.flow li .n {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap
}

.flow li h3 {
  grid-column: 3;
  grid-row: 1;
  font-size: 24px;
  line-height: 1.5
}

/* 結果の行：⎿ で前の行にぶら下げる */
.flow li p {
  grid-column: 3;
  grid-row: 2;
  position: relative;
  padding-left: 28px;
  font-size: var(--fs-md);
  color: var(--muted);
  line-height: 1.8
}

.flow li p::before {
  content: "⎿";
  position: absolute;
  left: 2px;
  top: -.1em;
  font-family: var(--f-mono);
  color: var(--faint)
}

@media (max-width:640px) {
  .flow li {
    grid-template-columns: 28px minmax(0, 1fr)
  }

  .flow li .n {
    grid-column: 2
  }

  .flow li h3,
  .flow li p {
    grid-column: 2
  }

  .flow li h3 {
    grid-row: 2
  }

  .flow li p {
    grid-row: 3
  }
}

.flow-note {
  margin-top: 40px;
  font-size: var(--fs-cap);
  color: var(--muted)
}

/* ---------- 08 faq ---------- */
.faq {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--line)
}

.faq details {
  border-bottom: 2px solid var(--line);
  overflow: hidden
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 48px 26px 0;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.6;
  position: relative;
  display: flex;
  gap: 14px
}

.faq summary::-webkit-details-marker {
  display: none
}

.faq summary .q {
  font-family: var(--f-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  flex: none;
  line-height: 1.5
}

/* ＋／−アイコン：対応範囲のアコーディオンと同じ、角丸の四角の枠 */
.faq summary::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 6px;
  border: 2px solid var(--accent);
  background: transparent;
  transition: background-color .3s cubic-bezier(.22, 1, .36, 1)
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  background: linear-gradient(var(--accent), var(--accent)) center/12px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center/2px 12px no-repeat;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1)
}

.faq details.is-open summary::before {
  background: var(--accent)
}

.faq details.is-open summary::after {
  transform: rotate(180deg);
  background: linear-gradient(#fff, #fff) center/12px 2px no-repeat
}

.faq summary:hover::before {
  background: color-mix(in srgb, var(--accent) 14%, transparent)
}

.faq details.is-open summary:hover::before {
  background: var(--accent)
}

@media (max-width:720px) {

  .faq summary::before,
  .faq summary::after {
    width: 24px;
    height: 24px;
    margin-top: -12px
  }
}

.faq .a {
  padding: 0 48px 28px 40px;
  color: var(--muted);
  font-size: var(--fs-base)
}

/* ---------- 09 contact ---------- */
.contact .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start
}

@media (max-width:900px) {
  .contact .wrap {
    grid-template-columns: 1fr
  }
}

.contact h2 {
  font-feature-settings: "palt";
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.3
}

.contact .intro {
  display: grid;
  gap: 20px
}

.contact .topics {
  margin-top: 16px
}

.contact .intro p {
  color: var(--muted);
  font-size: var(--fs-base)
}

.topics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 2px solid var(--line)
}

.topics li {
  padding: 12px 0;
  border-bottom: 2px solid var(--line);
  font-size: var(--fs-md);
  display: flex;
  gap: 12px;
  align-items: baseline
}

.topics li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  transform: translateY(-2px)
}

.form-area {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
  scroll-margin-top: 96px
}

@media (max-width:560px) {
  .form-area {
    padding: 24px 20px
  }
}

.pane {
  animation: pane-in .45s cubic-bezier(.2, .7, .2, 1)
}

@keyframes pane-in {
  from {
    opacity: 0;
    transform: translateY(10px)
  }
}

form {
  display: grid;
  gap: 22px
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start
}

.field label {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 24px
}

.field label .req {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--danger);
  border: 1px solid currentColor;
  padding: 0 6px;
  border-radius: 3px;
  line-height: 1.6
}

.field label .hint {
  margin-left: auto;
  font-weight: 500
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238A94AD' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px
}

.field textarea {
  line-height: 1.7;
  resize: vertical
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint)
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: none
}

.field .hint {
  font-size: 13px;
  color: var(--muted)
}

.field .err {
  font-size: 13px;
  line-height: 1.5;
  color: var(--danger)
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger)
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start
}

@media (max-width:560px) {
  .two {
    grid-template-columns: 1fr
  }
}

.form-area .btn {
  width: 100%
}

.fsubmit {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  margin-top: 10px
}

.agree {
  font-size: var(--fs-cap);
  color: var(--muted)
}

.agree a {
  color: var(--muted)
}

.confirm h3,
.done h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px
}

.confirm>p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px
}

.confirm-list {
  margin: 0 0 24px;
  border-top: 2px solid var(--line)
}

.confirm-list div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 2px solid var(--line)
}

@media (max-width:560px) {
  .confirm-list div {
    grid-template-columns: 1fr;
    gap: 2px
  }
}

.confirm-list dt {
  font-size: 13px;
  color: var(--muted)
}

.confirm-list dd {
  margin: 0;
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

.confirm-list dd.empty {
  color: var(--faint)
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

.actions .btn {
  white-space: nowrap;
  padding-inline: 16px
}

@media (max-width:560px) {
  .actions {
    grid-template-columns: 1fr
  }
}

.done {
  text-align: center;
  padding-block: 24px 8px;
  display: grid;
  gap: 14px;
  justify-items: center
}

.done .mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 28px;
  animation: pop .5s cubic-bezier(.2, .9, .3, 1.3)
}

@keyframes pop {
  from {
    transform: scale(.5);
    opacity: 0
  }
}

.done p {
  color: var(--muted);
  font-size: var(--fs-md);
  max-width: 30em
}

.done .btn {
  width: auto;
  margin-top: 8px
}

/* ---------- scroll reveal（画面外の要素だけを隠して、表示範囲に入ったら出す） ---------- */
.rv {
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1)
}

.rv.is-hidden {
  opacity: 0;
  transform: translateY(28px)
}

/* ---------- footer ---------- */
footer {
  padding-block: 48px
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted)
}

/* 左：運営元｜セキュリティ方針（縦線で区切る） */
.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px
}

.foot-links>*+* {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
  line-height: 1.2
}

/* お問い合わせとフッターの境目：端末によって小数点の丸めで1pxのすき間ができ、明るいページ背景が線のように見えるのを防ぐ */
footer {
  border-top: 0 !important;
  position: relative;
  margin-top: -2px;
  box-shadow: 0 -2px 0 var(--footer-bg, #0B1020)
}

#contact {
  border-bottom: 0
}

.copy {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .02em
}

.copy .c {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1;
  vertical-align: -.08em
}

footer a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: 2px;
  transition: color .25s
}

footer a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1)
}

footer a:hover {
  color: var(--fg)
}

footer a:hover::before {
  transform: scaleX(1);
  transform-origin: left
}

/* ---------- ページトップボタン：少しスクロールすると右下に出る ---------- */
.page-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 30;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  border-radius: 4px;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.22, 1, .36, 1), visibility 0s .45s, background-color .45s cubic-bezier(.22, 1, .36, 1)
}

.page-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s
}

.page-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1)
}

.page-top span {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1
}

.page-top:hover {
  background: var(--accent-hover)
}

.page-top:hover svg {
  transform: translateY(-3px)
}

@media (max-width:560px) {
  .page-top {
    width: 48px;
    height: 48px
  }
}

/* ---------- 02 ダーク：MVはダーク、サンプル・特徴・料金・FAQを明るい面にした「ライト寄り」 ---------- */
:root:not([data-theme="light"]) :is(#samples, #features, #price, #faq) {
  --ink: #F4F5F7;
  --ink-2: #FFFFFF;
  --panel: #FFFFFF;
  --panel-2: #EDEFF3;
  --line: #DADDE4;
  --fg: #0B1020;
  --muted: #545B6E;
  --faint: #979DAD;
  --accent: #4256F0;
  --accent-hover: #2F42D6;
  --accent-ink: #FFFFFF;
  --signal: #F0A800;
  --samples-bg: #EEF0F4;
  --sample-bg: #FFFFFF;
  --sample-line: #D6D9E1;
  --thumb-bg: #E9EBF0;
  --thumb-bar: #F7F8FB;
  --h2line: #D5D9E2;
  background-color: #FFFFFF;
  color: var(--fg);
  color-scheme: light;
  border-bottom-color: transparent
}

:root:not([data-theme="light"]) #faq {
  background-color: #F4F5F7
}

:root:not([data-theme="light"]) :is(#samples, #features, #price) :is(.sample, .feature, .price-table, .price-card) {
  --panel: #FFFFFF;
  --sample-bg: #FFFFFF
}

/* 区切り：ライト版と同じく、境目はまっすぐ切り替え、各セクションの背景にやわらかいぼかしの光を置いて自然につなぐ */
:root:not([data-theme="light"]) :is(#samples, #pains, #features, #scope, #price, #flow, #faq, #contact) {
  padding-top: var(--pt)
}

:root:not([data-theme="light"]) #samples {
  background-color: #EEF0F4;
  background-image: radial-gradient(ellipse 900px 520px at 6% 0%, rgba(66, 86, 240, .14), transparent 70%), radial-gradient(ellipse 820px 600px at 100% 1180px, rgba(66, 86, 240, .12), transparent 70%)
}

:root:not([data-theme="light"]) :is(#samples, #flow, #scope)::before {
  content: none
}

/* 紺のセクションは、上端の中央から青い光がにじむ（前の明るいセクションとのつなぎ） */
:root:not([data-theme="light"]) :is(#pains, #scope, #flow, #contact) {
  background-image: radial-gradient(ellipse 70% 260px at 50% 0%, rgba(112, 136, 255, .18), transparent 75%)
}

:root:not([data-theme="light"]) #flow {
  background-image: radial-gradient(ellipse 70% 260px at 50% 0%, rgba(112, 136, 255, .18), transparent 75%), radial-gradient(ellipse 760px 520px at 160px 420px, rgba(112, 136, 255, .10), transparent 70%)
}

/* MV → 実装サンプル：MVの下端で、中央から広がる光と一緒にサンプルの明るい面へ溶けていく */
:root:not([data-theme="light"]) .hero {
  background-image:
    radial-gradient(ellipse 60% 150px at 50% 100%, rgba(238, 240, 244, .55), transparent 80%),
    linear-gradient(to bottom, transparent 0, transparent calc(100% - 150px), rgba(30, 40, 90, .55) calc(100% - 110px), rgba(90, 108, 190, .55) calc(100% - 72px), rgba(190, 200, 240, .85) calc(100% - 30px), #EEF0F4 100%),
    radial-gradient(ellipse 900px 560px at 6% 100%, rgba(112, 136, 255, .16), transparent 70%);
  background-repeat: no-repeat
}

:root:not([data-theme="light"]) #samples {
  background-image: radial-gradient(ellipse 820px 600px at 100% 1180px, rgba(66, 86, 240, .12), transparent 70%)
}

/* ---------- SP（スマートフォン）調整 ---------- */
@media (max-width:720px) {

  /* ヘッダー：ロゴを1行に収める */
  .site-head .wrap {
    gap: 12px;
    min-height: 56px
  }

  .brand {
    white-space: nowrap;
    gap: 8px
  }

  .brand img {
    height: 32px
  }

  .site-head .btn {
    height: 36px;
    padding: 0 14px;
    font-size: 13px
  }

  /* 見出し */
  .sec-head h2 {
    font-size: clamp(28px, 8vw, 36px)
  }

  .sec-head p {
    font-size: 15px
  }

  .sec-head p br.pc-br {
    display: none
  }

  /* 特徴：FEATUREラベルをカードの内側に収める */
  .feature .tabs {
    left: -6px;
    top: 16px
  }

  .feature .tab {
    padding: 6px 16px 6px 20px;
    font-size: 12px
  }

  .feature .tab b {
    font-size: 18px
  }

  .feature .ed {
    padding: 68px 22px 24px
  }

  .feature h3 {
    white-space: normal;
    font-size: 22px
  }

  /* 料金表：px表記を1行に収め、金額を少し小さく */
  .price-table .cap {
    padding: 20px 20px
  }

  .price-table td {
    padding: 18px 16px
  }

  .ruler {
    display: block;
    font-size: 13px;
    white-space: nowrap
  }

  .ruler .bar {
    display: none
  }

  .price-table td.p {
    font-size: 21px
  }

  .price-table td.p small {
    font-size: 11px;
    margin-left: 2px
  }

  .price-table td.p.ask {
    font-size: 14px
  }

  .price-table .incl {
    padding: 16px 20px
  }

  .price-card {
    padding: 24px 20px
  }

  .opt-price {
    font-size: 22px !important
  }

  /* サンプルの仕様表：数値を1行に収める */
  .spec div {
    padding: 12px 14px 10px
  }

  .spec dd {
    font-size: 22px;
    white-space: nowrap
  }

  .spec dd small {
    font-size: 11px;
    margin-left: 2px
  }

  .s-body {
    padding: 22px 18px 20px
  }

  /* 対応範囲 */
  .scope-col {
    padding: 28px 22px
  }

  .scope-col li {
    padding: 14px 0;
    font-size: 15px
  }

  /* MVのチェックリスト */
  .points li {
    font-size: 15px;
    gap: 12px;
    align-items: flex-start
  }

  .points .cb {
    margin-top: 2px
  }

  /* お悩み */
  .pains {
    gap: 28px
  }

  .pain-q {
    min-height: 0;
    padding: 24px 22px
  }

  .pain-a {
    padding: 28px 22px 22px
  }
}

/* ---------- 1100px以下：ハンバーガーメニュー ---------- */
.menu-btn {
  display: none
}

@media (max-width:1100px) {
  .site-head .btn {
    margin-left: auto
  }

  .menu-btn {
    display: grid;
    align-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: 4px;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: none;
    cursor: pointer
  }

  .menu-btn span {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: var(--fg);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .2s
  }

  .menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
  }

  .menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0
  }

  .menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
  }

  /* メニューは画面全体に広げ、中だけスクロールできる（開いている間、ページはスクロールしない） */
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--head-h, 64px);
    bottom: 0;
    z-index: 19;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 24px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--ink);
    font-size: 16px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s, transform .35s cubic-bezier(.22, 1, .36, 1), visibility 0s .35s
  }

  .nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--fg)
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s
  }
}

/* メニューを開いている間：ページはスクロールさせず、ヘッダーは画面上部に固定、TOPボタンは隠す */
html.menu-open {
  overflow: hidden
}

html.menu-open .site-head {
  position: fixed;
  left: 0;
  right: 0;
  top: 0
}

html.menu-open main {
  padding-top: var(--head-h, 64px)
}

html.menu-open .page-top {
  opacity: 0 !important;
  visibility: hidden !important
}

/* 幅の狭いスマホ：ロゴ画像は幅をとるので、ロゴ・ボタン・間隔を縮めてハンバーガーメニューまで1行に収める */
@media (max-width:430px) {
  .site-head .wrap {
    gap: 8px
  }

  .brand {
    gap: 6px
  }

  .brand img {
    height: 7.2vw
  }

  .site-head .btn {
    height: 34px;
    padding: 0 10px;
    font-size: 12px
  }
}

@media (max-width:340px) {
  .brand img {
    height: 6.2vw
  }

  .site-head .btn {
    height: 30px;
    padding: 0 6px;
    font-size: 11px
  }
}

/* メニューを画面全体に広げるため、ヘッダーのぼかし（固定配置の基準になってしまう）を外す */
@media (max-width:1100px) {
  .site-head {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--ink)
  }
}

/* ---------- MV：721〜1100px は右のイメージを背景として文字の後ろに敷く ---------- */
@media (max-width:1100px) and (min-width:721px) {
  .hero .wrap {
    display: block
  }

  .hero .wrap::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -60px;
    bottom: -60px;
    left: 0;
    width: 74%;
    pointer-events: none;
    background: linear-gradient(90deg, var(--ink) 52%, color-mix(in srgb, var(--ink) 80%, transparent) 72%, transparent)
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    max-width: 600px
  }

  .stage-wrap {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    right: 32px;
    width: calc(52% - 32px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: .9;
    pointer-events: none
  }

  .chip {
    display: none
  }
}

/* ---------- MV：SPは見出しの下・ボタンの上にイメージを置く ---------- */
@media (max-width:720px) {
  .hero .wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0
  }

  .hero-copy {
    display: contents
  }

  .hero-kicker {
    order: 1
  }

  .hero h1 {
    order: 2
  }

  .hero .sub {
    order: 3
  }

  /* イラスト：中央寄りに大きめに置き、浮き上がる動きの分（上下24px）も見切れないよう余白をとる */
  .stage-wrap {
    order: 4;
    position: relative;
    z-index: 0;
    align-self: center;
    display: flex;
    justify-content: center;
    width: 94%;
    margin: -40px 0 -64px;
    padding-top: 50px;
    pointer-events: none;
  }

  .hero .sub {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 6px var(--ink), 0 0 14px var(--ink), 0 1px 2px color-mix(in srgb, var(--ink) 80%, transparent)
  }

  .hero-kicker {
    margin-bottom: 16px
  }

  .hero-cta {
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 28px
  }

  .hero-cta .btn {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    padding: 13px 8px;
    white-space: nowrap
  }

  .hero-cta {
    order: 5;
    position: relative;
    z-index: 2
  }

  .points {
    order: 6;
    position: relative;
    z-index: 2
  }

  .chip {
    display: none
  }

  .hero h1 {
    font-size: clamp(24px, 7.3vw, 34px)
  }

  /* SP：お悩みのテキストと矢印の間をあける */
  .pain-q {
    padding-bottom: 40px
  }

  .pain-a {
    padding-top: 38px
  }

  .pc-only {
    display: none
  }

  /* SP：大きなCTAボタン */
  .btn-lg {
    min-width: 0;
    width: 100%;
    font-size: 15px;
    padding: 14px 16px;
    white-space: nowrap
  }
}

/* SP：本文とFAQの文字サイズ */
@media (max-width:720px) {
  :root {
    --fs-md: 15px;
    --fs-base: 15px
  }

  .faq summary {
    font-size: 15px;
    padding: 20px 40px 20px 0;
    gap: 10px
  }

  .faq summary .q {
    font-size: 15px
  }

  .faq .a {
    font-size: 15px;
    padding: 0 0 22px 28px
  }
}

/* ハンバーガーメニューの背景：淡い青の円形グラデーション */
@media (max-width:1100px) {
  .nav {
    background-color: var(--ink);
    background-image:
      radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent) 22%, transparent) 0, transparent 38%),
      radial-gradient(circle at 8% 82%, color-mix(in srgb, #8B5CF6 16%, transparent) 0, transparent 42%),
      radial-gradient(circle at 60% 60%, color-mix(in srgb, var(--accent) 10%, transparent) 0, transparent 30%);
    background-repeat: no-repeat
  }
}

@media (max-width:720px) {

  /* お悩みの文字 */
  .pain-q p,
  .pain-a p,
  .pain-q p strong,
  .pain-a p strong {
    font-size: 15px
  }

  /* 細かな作業の見出し上 */
  .sub-head {
    margin-top: 56px !important;
    margin-bottom: 24px !important
  }

  /* フッター：区切り線なし・中央揃え */
  footer .wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 12px
  }

  .foot-links {
    flex-direction: column;
    justify-content: center;
    gap: 6px
  }

  .foot-links>*+* {
    margin: 0;
    padding: 0;
    border: 0
  }
}

@media (max-width:720px) {

  /* ハンバーガーメニューの背景のグラデーションを小さく（位置は同じ） */
  .nav {
    background-image:
      radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent) 22%, transparent) 0, transparent 22%),
      radial-gradient(circle at 8% 82%, color-mix(in srgb, #8B5CF6 16%, transparent) 0, transparent 26%),
      radial-gradient(circle at 60% 60%, color-mix(in srgb, var(--accent) 10%, transparent) 0, transparent 18%)
  }

  /* SPのサブタイトル類の文字サイズ */
  .flow li h3 {
    font-size: 18px
  }

  .flow li .n {
    font-size: 13px
  }

  .feature h3 {
    font-size: 19px
  }

  .s-title h3 {
    font-size: 18px
  }

  .scope-col h3 {
    font-size: 19px
  }

  .sub-head {
    font-size: 19px
  }

  .subf b {
    font-size: 16px
  }

  .price-table .cap b,
  .price-card .lbl {
    font-size: 17px
  }

  .opt-name {
    font-size: 15px !important
  }

  .pains-head,
  .solve p {
    font-size: 20px
  }

  .sec-head .lead-em {
    font-size: 17px
  }

  .confirm h3,
  .done h3 {
    font-size: 18px
  }

  .field label {
    font-size: 14px
  }

  .topics li {
    font-size: 15px
  }

  .frame-label {
    font-size: 15px
  }
}

/* ハンバーガーメニュー：ライト版でもメニューの中は紺 */
@media (max-width:1100px) {
  .nav {
    --ink: #0B1020;
    --fg: #E8ECF7;
    --line: #26314F;
    --accent: #7088FF;
    background-color: #0B1020;
    color: var(--fg)
  }

  .nav a {
    color: #E8ECF7
  }
}

@media (max-width:720px) {

  /* お悩みの矢印を小さく */
  .pain-arrow {
    width: 32px;
    height: 32px;
    top: -16px;
    margin: 0 0 0 -16px
  }

  .pain-arrow::after {
    background-size: 20px 20px
  }

  /* FAQ：タップ時のハイライトを出さない */
  .faq summary {
    -webkit-tap-highlight-color: transparent
  }

  /* フッター上の余白 */
  footer {
    padding-block: 12px 40px
  }

  .faq details,
  .faq summary * {
    -webkit-tap-highlight-color: transparent
  }
}

.faq summary {
  -webkit-tap-highlight-color: transparent
}

@media (max-width:720px) {

  /* ラベル横のラインに走る光は、線が短いSPでは目立ちすぎるので出さない */
  .sec-head.is-lined::after {
    animation: none;
    opacity: 0
  }
}

@media (max-width:720px) {

  /* SPのMVイラストもPCと同じく、左側が奥に下がって見える角度をつける */
  .stage-wrap {
    perspective: 600px
  }

  .stage {
    transform: rotateY(-9deg) rotateX(4deg)
  }

  .stage-wrap:hover .stage {
    transform: rotateY(-9deg) rotateX(4deg)
  }
}

/* フォーム：選択肢の文字サイズ。SPは16pxにして、iPhoneで入力時に画面が拡大されるのも防ぐ */
.field select option {
  font-size: 15px
}

@media (max-width:720px) {

  .field input,
  .field textarea,
  .field select {
    font-size: 16px
  }

  .field select option {
    font-size: 16px
  }
}

/* ---------- 対応範囲：各項目をアコーディオンにして、開くと説明が出る ---------- */
.scope-acc details {
  border-top: 2px solid var(--line);
  overflow: hidden
}

.scope-acc details:first-child {
  border-top: 0
}

.scope-acc summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 48px 18px 0;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent
}

.scope-acc summary::-webkit-details-marker {
  display: none
}

/* ＋／−アイコン：角丸の小さな四角の中に＋。開くと四角が塗りつぶされ、＋が回転して−になる */
.scope-acc summary::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 6px;
  border: 2px solid var(--acc-c, var(--accent));
  background: transparent;
  transition: background-color .3s cubic-bezier(.22, 1, .36, 1), border-color .3s
}

.scope-acc summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  background: linear-gradient(var(--acc-c, var(--accent)), var(--acc-c, var(--accent))) center/12px 2px no-repeat, linear-gradient(var(--acc-c, var(--accent)), var(--acc-c, var(--accent))) center/2px 12px no-repeat;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1)
}

.scope-acc details.is-open summary::before {
  background: var(--acc-c, var(--accent))
}

.scope-acc details.is-open summary::after {
  transform: rotate(180deg);
  background: linear-gradient(#fff, #fff) center/12px 2px no-repeat
}

.scope-acc summary:hover::before {
  background: color-mix(in srgb, var(--acc-c, var(--accent)) 14%, transparent)
}

.scope-acc details.is-open summary:hover::before {
  background: var(--acc-c, var(--accent))
}

/* 標準サービス（黄色の面）は紺、追加オプションは青 */
#scope .scope-col:not(.opt) {
  --acc-c: #0B1020
}

.scope-a {
  display: grid;
  gap: 10px;
  padding: 0 8px 20px 0
}

.scope-a p {
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--muted)
}

.scope-a p.note {
  font-size: var(--fs-cap)
}

@media (max-width:720px) {
  .scope-acc summary {
    padding: 15px 40px 15px 0;
    font-size: 15px
  }

  .scope-acc summary::before,
  .scope-acc summary::after {
    width: 24px;
    height: 24px;
    margin-top: -12px
  }

  .scope-a p {
    font-size: 14px
  }
}

/* 特徴2の「詳しくはこちら」：対応範囲のSPデザイン生成の項目へ */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap
}

.more-link span {
  transition: transform .35s cubic-bezier(.22, 1, .36, 1)
}

.more-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px
}

.more-link:hover span {
  transform: translateX(3px)
}

#opt-sp {
  scroll-margin-top: calc(var(--head-h, 64px) + 24px)
}

/* フォーム：スパム対策の見えない入力欄、送信エラー */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.send-err {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6
}

#btn-send:disabled {
  opacity: .6;
  cursor: progress;
  transform: none
}

/* SP専用の改行・余白 */
.sp-br,
.fine-gap,
.sp-gap {
  display: none
}

@media (max-width:720px) {
  .sp-br {
    display: inline
  }

  .fine-gap {
    display: block;
    height: 8px
  }

  .sp-gap {
    display: block;
    height: 10px
  }

  /* 文節単位の改行をやめて行末まで文字を詰め、右側が不自然に空かないようにする */
  .feature p,
  .subf b+span,
  .price-table .incl,
  .price-card p,
  .opt-desc,
  .scope-a p,
  .fine {
    word-break: normal;
    line-break: strict;
    text-wrap: pretty
  }

  /* お問い合わせの見出し：「まずはデザインデータを共有して、」を1行に収める */
  .contact h2 {
    font-size: clamp(20px, 5.6vw, 26px)
  }

  /* 料金：注記の上下の余白 */
}

/* Safari（iPhone・Mac）は text-wrap:pretty で行の長さをそろえようとして早めに改行し、右側が大きく空く。
   Safariだけが対応している hanging-punctuation で判定し、Safariでは通常の改行にする */
@supports (hanging-punctuation:first) {

  p,
  li,
  dd,
  dt,
  summary,
  .subf b+span,
  .feature p,
  .price-table .incl,
  .price-card p,
  .opt-desc,
  .scope-a p,
  .fine,
  .agree {
    text-wrap: wrap
  }
}

@media (max-width:720px) {

  /* MVの見出し：少し大きく、行送りも広く */
  .hero h1 {
    font-size: clamp(24px, 7.55vw, 34px);
    line-height: 1.42
  }

  /* MVの説明文：少し小さく、影も弱めに */
  .hero .sub {
    font-size: 15px;
    line-height: 1.7;
    text-shadow: 0 0 4px var(--ink), 0 0 10px var(--ink)
  }
}

/* 実装サンプル：サムネイルがスクロールできることを伝える案内。スクロールすると消える */
.thumb {
  position: relative
}

.scroll-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(11, 16, 32, .78);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .4s, transform .4s
}

.scroll-hint svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: hintBob 1.6s ease-in-out infinite
}

@keyframes hintBob {

  0%,
  100% {
    transform: translateY(-2px)
  }

  50% {
    transform: translateY(3px)
  }
}

.thumb.is-scrolled .scroll-hint {
  opacity: 0;
  transform: translate(-50%, 6px)
}

@media (prefers-reduced-motion:reduce) {
  .scroll-hint svg {
    animation: none
  }
}

/* ---------- FAQチャットボット：LP用の調整（faq-bot.css は変更せず、ここで上書きする） ----------
   開くボタンを、右下に立つキャラクター（me.webp）と、その左上の「…」の吹き出しにする。
   ボタンの文字（launcherLabel）は読み上げ用に残し、画面には出さない */
html .fb-root .fb-launcher{
  /* ページトップボタン（右から20px・幅56px）と中心線をそろえる：20 + (56 - 88) / 2 = 4px */
  right:calc(max(20px, env(safe-area-inset-right, 0px)) - 16px);
  /* ページトップボタン（下から20px・高さ56px）の上に置く */
  bottom:calc(max(20px, env(safe-area-inset-bottom, 0px)) + 56px + 14px);
  width:88px;height:154px;padding:0;border-radius:0;
  background:url("../img/me.webp") center bottom/contain no-repeat;box-shadow:none;
  font-size:0;color:transparent;
  filter:drop-shadow(0 6px 10px rgba(11,16,32,.18));
  transition:transform .35s cubic-bezier(.22,1,.36,1)}
html .fb-root .fb-launcher:hover{transform:translateY(-4px)}
/* 吹き出し（左上）：角の立った四角に、右下へ尖ったしっぽ。線がギザギザにならないよう SVG で描く。
   枠線なし（白い面＋紺の「…」）。枠を付ける場合は path に stroke='色' stroke-width='2' を追加する */
html .fb-root .fb-launcher::before{
  content:"";position:absolute;left:-50px;top:-22px;width:60px;height:48px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 48'%3E%3Cpath d='M1 1H51V35H46L58 46.5L35 35H1Z' fill='%23fff'/%3E%3Ccircle cx='17' cy='18' r='2.6' fill='%230B1020'/%3E%3Ccircle cx='26' cy='18' r='2.6' fill='%230B1020'/%3E%3Ccircle cx='35' cy='18' r='2.6' fill='%230B1020'/%3E%3C/svg%3E") center/contain no-repeat;
  animation:fbBubble 4s ease-in-out infinite}
html .fb-root .fb-launcher::after{content:none}
@keyframes fbBubble{0%,100%{translate:0 0}50%{translate:0 -4px}}
/* ページトップボタンが小さくなる幅（560px以下）に合わせて切り替える。中心線：20 + (48 - 70) / 2 = 9px */
@media (max-width:560px){
  html .fb-root .fb-launcher{width:70px;height:122px;right:calc(max(20px, env(safe-area-inset-right, 0px)) - 11px);
    bottom:calc(max(20px, env(safe-area-inset-bottom, 0px)) + 48px + 12px)}
  html .fb-root .fb-launcher::before{left:-46px;top:-20px}
}
@media (prefers-reduced-motion:reduce){html .fb-root .fb-launcher::before{animation:none}}
/* MVの間は隠し、ページトップボタンと同じタイミング（少しスクロールしたら）で表示する。表示の切り替えは main.js */
html .fb-root .fb-launcher{opacity:0;visibility:hidden;translate:0 12px;transition:transform .35s cubic-bezier(.22,1,.36,1),opacity .45s cubic-bezier(.22,1,.36,1),translate .45s cubic-bezier(.22,1,.36,1),visibility 0s .45s}
html.show-bot .fb-root .fb-launcher{opacity:1;visibility:visible;translate:0 0;transition-delay:0s}
/* ボットの画面は section 要素なので、LP側の section の余白・背景・区切り線が効かないよう打ち消す */
html .fb-root section.fb-window{padding:0;margin:0;border:0;background:var(--fb-white)}
/* LP側の改行ルール（文節改行・行長そろえ）を、ボットの中では使わない */
.fb-root,.fb-root *{word-break:normal;line-break:strict;text-wrap:wrap;letter-spacing:normal}
/* ハンバーガーメニューを開いている間は、キャラクターも隠す */
html.menu-open .fb-root .fb-launcher{display:none}

