@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body, h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
  ul, ol { padding: 0; }
  img, svg { display: block; max-inline-size: 100%; block-size: auto; }
  button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
  table { border-collapse: collapse; border-spacing: 0; }
  summary { cursor: pointer; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  }
}

@layer base {
  :root {
    --paper: #FFFFFF;
    /* tint の始点色。表の見出しセルなど、グラデーションを敷かない小面積の薄地に使う */
    --paper-2: #F0F6FA;
    --ink: #1F2A33;
    --ink-2: #4B5A66;
    /* placeholder 専用。白地 4.71:1（AA）、入力済みの値（ink）と見分けがつく明るさに留める。ブラウザ既定の darkGray は 2.35:1 で不合格 */
    --ink-3: #66767F;
    /* 主色 blue: リンク・数字・番号円・h2 下線。副色 green: チェック・バッジ小見出し・強みアイコン */
    --blue: #1E5B9E;
    --green: #0F766E;
    /* グラデーションはこの 2 つだけ（CTA・フォーム帯 / FV 背景・交互セクション） */
    --grad: linear-gradient(135deg, #1E5B9E 0%, #0F766E 100%);
    --tint: linear-gradient(160deg, #F0F6FA 0%, #EAF6F2 100%);
    --rule: #D6DEE4;
    --alert-ink: #B3261E;
    --alert-bg: #FFF1EF;
    --alert-rule: #E85D4F;
    --error: #B3261E;

    --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    --fs-body: 1.0625rem;  /* 17px */
    --fs-small: 0.875rem;  /* 14px */
    --fs-xs: 0.8125rem;    /* 13px */
    --fs-h3: 1.25rem;      /* 20px */
    --fs-h2: 1.625rem;     /* 26px SP */
    --fs-h1: 2.125rem;     /* 34px SP */
    --fs-num: 2.25rem;     /* 36px 料金などの数字 */
    --fs-ver: 1.375rem;    /* 22px */

    --radius: 4px;
    --gutter: 16px;
    --section-y: 64px;
    --container: 1120px;
    --measure: 820px;
    --header-h: 64px;
    --cta-fixed-h: 56px;
  }
  @media (min-width: 720px) {
    :root { --gutter: 24px; }
  }
  @media (min-width: 960px) {
    :root { --fs-h2: 2.25rem; --fs-h1: 3.25rem; --section-y: 96px; }
  }

  /* 明色のみのページ。OS がダークでも select のリストやスクロールバーを明色で描かせる */
  html { color-scheme: light; scroll-padding-block-start: calc(var(--header-h) + 16px); }
  /* SP は下端の固定 CTA にフォーカス先が隠れないようにする */
  @media (max-width: 959.98px) { html { scroll-padding-block-end: calc(var(--cta-fixed-h) + 16px); } }
  body {
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.9;
    letter-spacing: 0.02em;
    color: var(--ink);
    background: var(--paper);
    overflow-wrap: anywhere;
    line-break: strict;
  }
  h1, h2, h3 {
    color: var(--ink);
    letter-spacing: -0.01em;
    text-wrap: balance;
    font-weight: 700;
  }
  p, li, dd { text-wrap: pretty; }
  h1 { font-size: var(--fs-h1); line-height: 1.3; }
  h1, h2, h3, .plan__name { word-break: auto-phrase; }
  h2 { font-size: var(--fs-h2); line-height: 1.4; }
  h3 { font-size: var(--fs-h3); line-height: 1.5; }
  a, button, input, select, textarea, label, summary { touch-action: manipulation; }
  a { color: var(--blue); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  small, .small { font-size: var(--fs-small); line-height: 1.7; }
  .note { font-size: var(--fs-small); line-height: 1.7; color: var(--ink-2); }
}

@layer layout {
  .container { inline-size: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
  .measure { max-inline-size: var(--measure); margin-inline: auto; }
  .section { padding-block: var(--section-y); }
  .section + .section:not(.section--tint):not(.section--deep):not(.section--now) { border-block-start: 1px solid var(--rule); }
  .section--now { padding-block: 40px 0; }
  @media (min-width: 960px) { .section--now { padding-block: 56px 0; } }
  .section--tint { background: var(--tint); }
  .section__head { text-align: center; max-inline-size: var(--measure); margin-inline: auto; margin-block-end: 40px; }
  .section__head > * + * { margin-block-start: 20px; }
  /* h2 の下線（blue 3px）。見出しの一部なので margin ではなく疑似要素で持つ */
  .section__head h2::after { content: ""; display: block; inline-size: 48px; block-size: 3px; margin: 16px auto 0; background: var(--blue); }
  .section__head p { text-align: start; }
  @media (min-width: 720px) { .section__head p { text-align: center; } }
  .flow > * + * { margin-block-start: 1.2em; }
  .after { margin-block-start: 40px; }
  .skip-link { position: absolute; inset-block-start: -100px; inset-inline-start: var(--gutter); z-index: 100; padding: 8px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
  .skip-link:focus { inset-block-start: 8px; }
  .sr-only { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  body:has(.cta-fixed) { padding-block-end: calc(var(--cta-fixed-h) + env(safe-area-inset-bottom, 0px)); }
  @media (min-width: 960px) { body:has(.cta-fixed) { padding-block-end: 0; } }
}

@layer components {
  /* ボタン: grad 地に白文字（両端で 6.9:1／5.5:1）。border は ghost と高さを揃えるために透明で持つ */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-block-size: 56px; padding: 10px 32px;
    border: 1px solid transparent; border-radius: var(--radius); background: var(--grad); color: #fff;
    font-weight: 700; text-decoration: none; text-align: center; cursor: pointer;
  }
  .btn:hover { background: var(--blue); }
  .btn:disabled, .btn[aria-disabled="true"] { background: var(--paper-2); border-color: var(--rule); color: var(--ink-2); cursor: default; }
  .btn--sm { min-block-size: 40px; padding: 6px 18px; font-size: var(--fs-small); }
  .btn--ghost { background: var(--paper); border-color: var(--blue); color: var(--blue); }
  .btn--ghost:hover { background: var(--paper-2); }

  /* チェック印（絵文字・アイコンフォントを使わない） */
  .ticks { list-style: none; }
  .ticks li { position: relative; padding-inline-start: 1.5em; }
  .ticks li::before { content: ""; position: absolute; inset-inline-start: 0.15em; inset-block-start: 0.55em; inline-size: 0.5em; block-size: 0.85em; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }

  /* 四角い点の箇条書き */
  .dots { list-style: none; }
  .dots li { position: relative; padding-inline-start: 1.1em; }
  .dots li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.85em; inline-size: 0.4em; block-size: 0.4em; background: var(--green); }
  .dots li + li { margin-block-start: 4px; }

  /* ヘッダー: ワードマークだけ。社名は出さない */
  .site-header { position: sticky; inset-block-start: 0; z-index: 50; background: var(--paper); border-block-end: 1px solid var(--rule); }
  .site-header .container { min-block-size: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .site-header .btn { flex: none; white-space: nowrap; }
  /* SP: 名前が 22 字（2026-10-29 改名）で 390px に収まらないため、ヘッダーのボタンは出さず（下端の固定 CTA が同じ導線）、ワードマークは半角スペースで 2 行に折る */
  @media (max-width: 719.98px) {
    .site-header .container { gap: 12px; }
    .site-header .btn { display: none; }
    .site-header .wordmark { white-space: normal; line-height: 1.3; font-size: 0.9375rem; padding-block: 6px; }
  }
  @media (min-width: 720px) { .nowrap-pc { display: inline-block; } }
  .wordmark { font-weight: 700; color: var(--blue); text-decoration: none; font-size: 1.0625rem; letter-spacing: 0; white-space: nowrap; }
  .wordmark:hover { text-decoration: underline; text-underline-offset: 0.2em; }
  @media (min-width: 720px) { .wordmark { font-size: 1.25rem; } }

  /* FV: 全幅 tint 地、PC は 2 カラム 55/45 を上下中央寄せ。SP は 札→h1→サブ→画像→バッジ→CTA の順で 1 カラム */
  /* 背景の回路風ライン: 装飾なので CSS 背景のみ。テキストの載る側から外して端に寄せる */
  /* 背景のネットワーク模様はけんご支給の素材（archive/plexus-source-1351935.jpg）を青に着色した WebP。幅いっぱいに敷く（けんご指示 2026-10-26） */
  .fv { background: var(--tint); padding-block: 40px 56px; display: grid; align-content: center; }
  /* 模様の上に本文を直置きしない。白箱の内寸は通常の container と同じにして 7 列の列幅を保つ（けんご指示 2026-10-26） */
  .section--boxed { --box-pad: 20px; }
  .section--boxed .container { inline-size: min(100% - var(--gutter) * 2, calc(var(--container) + var(--box-pad) * 2)); padding: 36px var(--box-pad) 32px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
  @media (min-width: 720px) { .section--boxed { --box-pad: 48px; } .section--boxed .container { padding-block: 48px 44px; } }
  /* 模様の上に白 55% を重ねて薄く見せる（2026-10-27 けんご「もっと薄くてもいい」）。濃さは --bg-fade で調整 */
  .section--tech-r { --bg-fade: 0.55; background-image: linear-gradient(rgb(255 255 255 / var(--bg-fade)), rgb(255 255 255 / var(--bg-fade))), url("img/bg-plexus.webp"); background-repeat: no-repeat; background-position: center top; background-size: cover; }
  .section--deep.section--tech-w { background-image: url("img/bg-plexus-white.webp"), var(--grad); background-repeat: no-repeat; background-position: center, 0 0; background-size: cover, auto; }
  .fv__grid { display: grid; gap: 20px; grid-template-areas: "tag" "h1" "lead" "img" "badges" "cta" "micro"; container-type: inline-size; }
  .fv__tag { grid-area: tag; justify-self: start; display: inline-block; padding: 4px 14px; border: 1px solid var(--blue); border-radius: 999px; background: var(--paper); font-size: 0.75rem; letter-spacing: 0; line-height: 1.6; font-weight: 500; color: var(--blue); }
  /* h1 は 2 行固定（コピーの指定）。1 行目「古いPHPを壊さず切り替える」は約 12.7em あり、SP 390px で 34px・PC 1280px で 52px だと折れる。
     そのため .fv__grid の幅に比例させる（390px で約 27px、1280px で約 44px、上限 52px） */
  .fv h1 { grid-area: h1; font-size: clamp(1.625rem, 7.6cqi, 3.25rem); line-height: 1.3; }
  .fv__lead { grid-area: lead; font-size: 1.0625rem; }
  .fv__img { grid-area: img; justify-self: center; }
  /* 画像は白地入りのため、tint 地では multiply で白を抜く（線画の色は 3〜6% 暗くなる程度） */
  /* 横長（1200×848）になったので SP は幅基準。340px 上限で高さ約 240px */
  .fv__img img { inline-size: min(100%, 340px); block-size: auto; mix-blend-mode: multiply; }
  /* Lottie は <picture> の上に重ねて、描けたら <picture> を透明に。両方とも白地入りなので multiply で白を抜く */
  .fv__img { position: relative; }
  .fv__img-anim { position: absolute; inset: 0; mix-blend-mode: multiply; }
  .fv__img-anim svg { display: block; inline-size: 100%; block-size: 100%; }
  .fv__img.is-anim .fv__img-static { opacity: 0; }
  /* SP は 3 列だと「税込55,000円〜」が 4 行に割れるため、1 枚 1 行の横長カードを縦に積む（左 小見出し／中 数字／右 添え書き） */
  .fv__badges { grid-area: badges; display: grid; grid-template-columns: 1fr; gap: 8px; }
  .badge { display: grid; grid-template-columns: 3em 1fr auto; align-items: center; column-gap: 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 14px; text-align: start; }
  .badge dd { display: contents; }
  .badge__k { display: block; font-size: var(--fs-xs); line-height: 1.5; font-weight: 500; color: var(--green); }
  .badge__v { display: block; font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .badge__v small { font-size: 0.75rem; font-weight: 700; }
  .badge__n { display: block; font-size: 0.75rem; line-height: 1.5; color: var(--ink-2); text-align: end; }
  .fv__cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 12px 16px; }
  .fv__cta .btn { flex: 1 1 200px; }
  .fv__micro { grid-area: micro; display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 700; color: var(--ink); }
  .fv__micro li::before { border-width: 0 3px 3px 0; }
  @media (min-width: 720px) {
    .fv { padding-block: 56px 72px; }
    .fv__tag { font-size: 0.9375rem; padding: 6px 18px; }
    .fv__lead { font-size: 1.1875rem; }
    /* 料金バッジだけ「税込55,000円〜」で横に長いので、少し広く取る */
    .fv__badges { grid-template-columns: 1.3fr 1fr 1fr; }
    .badge { display: block; padding: 18px 8px; text-align: center; }
    .badge dd { display: block; }
    .badge__v { margin-block-start: 4px; white-space: normal; }
    .badge__n { margin-block-start: 4px; text-align: center; }
    /* 32px だと「税込55,000円〜」が 55% カラムの 1/3 幅に収まらず折れるため 30px */
    .badge__v { font-size: 1.875rem; }
    .badge__v small { font-size: var(--fs-small); }
    .badge__n { font-size: var(--fs-xs); }
    /* ボタン 2 本でバッジ行と同じ幅に揃える（けんご 2026-10-27 ツラ合わせ指示） */
    .fv__cta .btn { flex: 1 1 0; min-inline-size: 0; }
  }
  @media (min-width: 960px) {
    .fv { min-block-size: clamp(640px, calc(100vh - var(--header-h)), 760px); padding-block: 48px 64px; }
    /* 画像を大きく見せるため 55/45→49/51（けんご 2026-10-27「fv__img もうちょい大きく」）。文側は 1280px で約 537px */
    .fv__grid { grid-template-columns: 49fr 51fr; column-gap: 24px; row-gap: 0; align-items: center; grid-template-areas: "tag img" "h1 img" "lead img" "badges img" "cta img" "micro img"; }
    /* 文側が 49% に狭まった分、1 行目（約 12.7em）が収まるよう係数を下げる（1120px で約 40px、960px で 32px） */
    .fv h1 { margin-block-start: 20px; font-size: clamp(2rem, 3.6cqi, 3.25rem); }
    .fv__lead { margin-block-start: 20px; }
    .fv__badges { margin-block-start: 32px; gap: 12px; }
    .fv__cta { margin-block-start: 32px; }
    /* 太字だと 3 項目が 49% カラムに収まらず折れるので 13〜14px（コンテナ幅に比例）。両端揃えでボタン行・バッジ行と幅を合わせる */
    .fv__micro { margin-block-start: 16px; gap: 4px 20px; font-size: clamp(0.8125rem, 1.25cqi, 0.875rem); }
  }
  @media (min-width: 1024px) {
    /* 1024px 未満は 3 項目が 1 行に入らないので左寄せで自然に折り返す */
    .fv__micro { justify-content: space-between; gap: 4px 8px; }
    .fv__img { justify-self: end; align-self: center; inline-size: min(100%, 720px); }
    .fv__img img { inline-size: 100%; block-size: auto; }
  }

  /* 緊急帯: alert 地はコンテンツ幅の枠に収める（全幅の赤は重いというけんご指示 2026-10-26） */
  .section--alert { background: var(--alert-bg); border: 1px solid var(--alert-rule); border-radius: var(--radius); padding: 36px 20px 32px; }
  .alert__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; text-align: center; }
  .alert__icon { flex: none; inline-size: 36px; block-size: 36px; border-radius: 50%; background: var(--alert-ink); color: #fff; font-weight: 700; font-size: 1.375rem; line-height: 1; display: grid; place-items: center; }
  .pc-only { display: none; }
  @media (min-width: 720px) { .pc-only { display: inline; } }
  .alert__lead { margin-block-start: 16px; text-align: center; font-size: var(--fs-body); line-height: 1.8; }
  .alert__facts { list-style: none; display: grid; gap: 0; margin-block-start: 32px; border-block-start: 1px solid var(--alert-rule); }
  .alert__facts li { padding-block: 16px; border-block-end: 1px solid var(--alert-rule); }
  .alert__facts h3 { font-size: var(--fs-body); }
  .alert__facts p { margin-block-start: 6px; font-size: var(--fs-small); line-height: 1.8; }
  .alert__facts strong { font-weight: 700; color: var(--alert-ink); }
  .alert__tl-title { margin-block-start: 40px; text-align: center; font-size: var(--fs-small); line-height: 1.7; color: var(--ink-2); }
  .alert__note { margin-block-start: 20px; text-align: center; font-size: var(--fs-small); line-height: 1.7; }
  @media (min-width: 720px) {
    .section--alert { padding: 48px 48px 44px; }
    .alert__facts { grid-template-columns: repeat(3, 1fr); border-block-start: 0; }
    .alert__facts li { padding: 8px 24px; border-block-end: 0; border-inline-start: 1px solid var(--alert-rule); }
    .alert__facts li:first-child { padding-inline-start: 0; border-inline-start: 0; }
    .alert__facts li:last-child { padding-inline-end: 0; }
  }

  /* サポート終了タイムライン（SVG は装飾扱い。読み上げは表） */
  .tl { display: none; inline-size: 100%; block-size: auto; margin-block-start: 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
  .tl text { font-family: var(--font); fill: var(--ink); }
  .tl .tl-grid { stroke: var(--rule); stroke-width: 1; }
  .tl .tl-axis { stroke: var(--ink-2); stroke-width: 2; }
  .tl .tl-year { font-size: 12px; fill: var(--ink-2); }
  .tl .tl-ver { font-size: 16px; font-weight: 700; text-anchor: middle; }
  .tl .tl-date { font-size: 12px; text-anchor: middle; fill: var(--ink-2); }
  .tl .tl-dot-ended { fill: var(--alert-rule); }
  .tl .tl-dot-live { fill: var(--green); }
  .tl .tl-today { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
  .tl .tl-today-label { font-size: 13px; font-weight: 700; text-anchor: middle; }
  .tl-table { inline-size: 100%; margin-block-start: 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); font-size: var(--fs-small); line-height: 1.6; overflow: hidden; }
  .tl-table th, .tl-table td { padding: 8px 12px; border-block-end: 1px solid var(--rule); text-align: start; }
  .tl-table th { font-weight: 700; color: var(--ink-2); font-size: var(--fs-xs); }
  .tl-table tbody tr:last-child td { border-block-end: 0; }
  .tl-table .is-ended td:first-child { border-inline-start: 4px solid var(--alert-rule); }
  .tl-table .is-live td:first-child { border-inline-start: 4px solid var(--green); }
  @media (min-width: 720px) {
    .tl { display: block; }
    .tl-table { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  }

  /* 悩み: 左 画像、右 カード 2 列×3 */
  .target { display: grid; gap: 24px; }
  .target__img { inline-size: 100%; block-size: 200px; object-fit: cover; border-radius: var(--radius); }
  .worries { list-style: none; display: grid; gap: 12px; }
  .worries li { position: relative; padding: 14px 16px 14px 48px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
  /* 全部チェック済みで見せる（2026-10-26 けんご指示）。::before が緑の箱、::after が白いチェック */
  .worries li::before { content: ""; position: absolute; inset-inline-start: 16px; inset-block-start: 19px; inline-size: 20px; block-size: 20px; border-radius: 3px; background: var(--green); }
  .worries li::after { content: ""; position: absolute; inset-inline-start: 23px; inset-block-start: 22px; inline-size: 6px; block-size: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .worries strong { display: block; font-weight: 700; color: var(--ink); line-height: 1.6; }
  .worries p { margin-block-start: 4px; font-size: var(--fs-small); line-height: 1.7; color: var(--ink-2); }
  @media (min-width: 720px) { .worries { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 960px) {
    .target { grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
    .target__img { block-size: auto; aspect-ratio: 1; }
  }

  /* 強み 3 枚: 白カード、上に 120px の円マスク画像 */
  .why { list-style: none; display: grid; gap: 16px; }
  .why li { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 24px; }
  .why__img { inline-size: 120px; block-size: 120px; border-radius: 50%; object-fit: cover; margin-inline: auto; border: 2px solid var(--green); }
  .why h3 { margin-block-start: 16px; text-align: center; font-size: var(--fs-h3); }
  .why p { margin-block-start: 12px; font-size: var(--fs-small); line-height: 1.8; }
  @media (min-width: 720px) { .why { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

  /* 7 ステップ: 縦タイムライン。SP は番号の右に見出し＋挿絵＋本文、720px 以上は 番号｜挿絵｜見出し｜本文 の横並び（2026-10-26 けんご指示） */
  .steps { list-style: none; counter-reset: step; display: grid; gap: 28px; }
  .steps li { counter-increment: step; position: relative; padding-inline-start: 56px; display: grid; grid-template-columns: 1fr 64px; column-gap: 12px; align-items: start; }
  .steps li::after { content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 0; inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: var(--fs-h3); line-height: 1; display: grid; place-items: center; }
  .steps li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 20px; inset-block-start: 40px; inline-size: 1px; block-size: calc(100% - 40px + 28px); background: var(--rule); }
  /* SP: 見出しの右に 64px の挿絵、本文は全幅 */
  .steps__img { grid-column: 2; grid-row: 1; inline-size: 64px; block-size: 64px; object-fit: contain; margin-block-start: -12px; }
  .steps__text { display: contents; }
  .steps h3 { grid-column: 1; grid-row: 1; font-size: var(--fs-h3); line-height: 1.5; min-block-size: 40px; display: flex; align-items: center; }
  .steps p { grid-column: 1 / span 2; grid-row: 2; margin-block-start: 6px; font-size: var(--fs-small); line-height: 1.8; }
  /* 流れの見出し補足（日数）は見出しの下に 1 行で */
  .steps h3 { flex-wrap: wrap; }
  .steps h3 small { flex-basis: 100%; font-weight: 400; font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-2); margin-block-start: 2px; }
  @media (min-width: 720px) {
    .steps { gap: 64px; }
    /* 挿絵 160px｜番号→見出し→本文の縦積み。番号は .steps__text::before で描き、つなぎ線は挿絵の中心から次の挿絵へ（2026-10-26 けんご指示） */
    .steps li { grid-template-columns: 160px 1fr; column-gap: 32px; padding-inline-start: 0; align-items: start; }
    .steps li::after { display: none; }
    .steps li:not(:last-child)::before { inset-inline-start: 80px; inset-block-start: 168px; block-size: calc(100% - 168px + 56px); }
    .steps__img { grid-column: 1; grid-row: 1; inline-size: 160px; block-size: 160px; margin-block-start: 0; }
    /* 番号と見出しを横並び、本文はその下（2026-10-26 けんご指示） */
    .steps__text { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; grid-column: 2; grid-row: 1; }
    .steps__text::before { content: counter(step); grid-column: 1; grid-row: 1; display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 22px; line-height: 1; }
    .steps h3 { grid-column: 2; grid-row: 1; font-size: 22px; min-block-size: 44px; display: flex; align-items: center; }
    .steps p { grid-column: 1 / span 2; grid-row: 2; margin-block-start: 10px; font-size: var(--fs-body); }
  }

  .plans { display: grid; gap: 28px; padding-block-start: 14px; }
  .plan { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); display: grid; grid-template-rows: auto 1fr; overflow: clip; }
  .plan__head { padding: 28px 20px 20px; border-block-end: 1px solid var(--rule); }
  .plan__label { display: block; font-size: var(--fs-xs); color: var(--green); font-weight: 500; }
  .plan__name { font-size: var(--fs-h3); margin-block-start: 2px; }
  .plan__price { margin-block-start: 12px; font-weight: 700; font-size: var(--fs-num); line-height: 1.25; color: var(--blue); font-variant-numeric: tabular-nums; }
  .plan__price .tax { font-size: var(--fs-small); font-weight: 700; margin-inline-end: 4px; }
  .plan__price .sup { display: block; font-size: var(--fs-small); font-weight: 400; color: var(--ink-2); }
  .plan__ex { font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-2); margin-block-start: 2px; }
  .plan dl { padding: 4px 20px 24px; }
  .plan dt { font-weight: 700; font-size: var(--fs-small); color: var(--ink-2); margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px solid var(--rule); }
  .plan dt:first-child { border-block-start: 0; padding-block-start: 0; margin-block-start: 12px; }
  .plan dd { font-size: var(--fs-small); line-height: 1.8; margin-block-start: 4px; }
  .plan dd p { margin-block-start: 8px; }
  @media (min-width: 720px) {
    .plans { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto 1fr; gap: 32px; }
    .plan { grid-template-rows: subgrid; grid-row: span 2; }
  }
  .price-after { margin-block-start: 40px; text-align: center; }
  .price-after .note { text-align: start; }
  .price-after > * + * { margin-block-start: 24px; }
  @media (min-width: 720px) { .price-after .note { text-align: center; } }

  /* 署名帯: バージョンの「どこにいる？」（確認方法セクションに置く） */
  .verband-block__title { font-size: var(--fs-h3); font-weight: 700; color: var(--ink); text-align: center; }
  .verband-block__lead { margin-block: 8px 16px; font-size: var(--fs-small); line-height: 1.7; color: var(--ink-2); }
  /* SP では横スクロールと分かるよう、直上に案内文・右端に白フェード（.verband-scroll の擬似要素。影ではなく透明→白の塗り） */
  .verband-scroll { position: relative; }
  .verband-block__scrollhint { margin-block-end: 6px; font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-2); text-align: end; }
  @media (max-width: 719.98px) {
    .verband-scroll::after { content: ""; position: absolute; inset-block: 1px; inset-inline-end: 1px; inline-size: 28px; border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); background: linear-gradient(to right, rgb(255 255 255 / 0), var(--paper)); pointer-events: none; }
  }
  @media (min-width: 720px) { .verband-block__scrollhint { display: none; } }
  .verband-wrap { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
  /* SP 390px で 7.4以前／8.0／8.1 の 3 列が初期表示に入る幅（見出し 72 + 84×3 = 324 < 358） */
  .verband { inline-size: 100%; min-inline-size: 660px; table-layout: fixed; font-variant-numeric: tabular-nums; }
  .verband thead th:first-child { inline-size: 72px; }
  .verband thead th:not(:first-child) { inline-size: 84px; }
  /* PC の列幅（約 100px）では「終了。切／替を相談」と語中で折れるため文節単位にする（非対応ブラウザは無視） */
  .verband th, .verband td { padding: 10px 8px; border: 1px solid var(--rule); text-align: start; vertical-align: top; scroll-snap-align: start; font-weight: 400; word-break: auto-phrase; }
  .verband thead th { border-block-start: 0; }
  .verband th:first-child, .verband td:first-child { border-inline-start: 0; }
  .verband th:last-child, .verband td:last-child { border-inline-end: 0; }
  .verband tbody tr:last-child th, .verband tbody tr:last-child td { border-block-end: 0; }
  .verband thead th:first-child, .verband tbody th { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--paper-2); font-size: var(--fs-small); line-height: 1.7; color: var(--ink-2); font-weight: 700; }
  .verband__num { display: block; font-size: var(--fs-ver); font-weight: 700; line-height: 1.3; color: var(--ink); }
  .verband__num .nobr { display: inline-block; }
  .verband__tag { display: inline-block; font-weight: 700; line-height: 1.6; color: var(--ink); }
  .verband td { font-size: var(--fs-small); line-height: 1.7; }
  /* 終了列は alert 罫 2px 枠。border-collapse の隣接列は 2px を共有する */
  .verband .is-ended { border-inline: 2px solid var(--alert-rule); }
  .verband thead .is-ended { border-block-start: 2px solid var(--alert-rule); }
  .verband tbody tr:last-child .is-ended { border-block-end: 2px solid var(--alert-rule); }
  .verband .is-ended .verband__tag { background: var(--alert-bg); color: var(--alert-ink); padding: 2px 8px; border: 1px solid var(--alert-rule); border-radius: 2px; }
  .verband-block__hint { margin-block-start: 8px; font-size: 0.75rem; line-height: 1.6; color: var(--ink-2); }
  .verband-block__after { margin-block-start: 16px; }
  @media (min-width: 960px) {
    .verband thead th:first-child { inline-size: 112px; }
    .verband thead th:not(:first-child) { inline-size: auto; }
    .verband th, .verband td { padding: 12px 10px; }
    .verband-block__hint { display: none; }
  }

  /* 開閉式（確認方法 5 社・FAQ）。summary の右に + を描き、開いたら − に */
  .acc { border-block-start: 1px solid var(--rule); }
  .acc details { border-block-end: 1px solid var(--rule); }
  .acc summary { list-style: none; display: grid; grid-template-columns: 1fr 24px; align-items: center; gap: 16px; padding-block: 18px; }
  .acc summary::-webkit-details-marker { display: none; }
  .acc summary h3 { font-size: var(--fs-body); line-height: 1.6; }
  /* 「+」「−」は読み上げさせない。代替テキスト構文を知らないブラウザは 1 行目を使う */
  .acc summary::after { content: "+"; content: "+" / ""; inline-size: 24px; block-size: 24px; border: 1px solid var(--ink-2); border-radius: var(--radius); color: var(--ink-2); font-size: 1.125rem; line-height: 1; display: grid; place-items: center; }
  .acc details[open] summary::after { content: "−"; content: "−" / ""; }
  .acc summary:hover h3 { color: var(--blue); }
  .acc .acc__body { padding-block: 0 20px; font-size: var(--fs-small); line-height: 1.8; }
  .acc .acc__body > * + * { margin-block-start: 0.8em; }
  .faq summary h3 { padding-inline-start: 1.6em; position: relative; }
  .faq summary h3::before { content: "Q"; position: absolute; inset-inline-start: 0; color: var(--blue); }
  .faq .acc__body { padding-inline-start: 1.6em; font-size: var(--fs-body); }

  /* 図: WordPress の更新と PHP は別の場所（箱 2 つ、矢印なし） */
  .wpphp { margin-block-start: 48px; }
  .wpphp__title { text-align: center; font-size: var(--fs-h3); font-weight: 700; color: var(--ink); }
  .wpphp__boxes { display: grid; gap: 16px; margin-block-start: 20px; }
  .wpphp__box { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
  .wpphp__label { display: block; padding: 12px 16px; background: var(--paper-2); border-block-end: 1px solid var(--rule); font-weight: 700; }
  .wpphp__body { padding: 16px; font-size: var(--fs-small); line-height: 1.8; }
  .wpphp__body b { display: block; color: var(--ink-2); font-size: var(--fs-xs); }
  .wpphp__cap { margin-block-start: 16px; text-align: center; font-size: var(--fs-small); line-height: 1.7; color: var(--ink-2); }
  @media (min-width: 720px) { .wpphp__boxes { grid-template-columns: 1fr 1fr; gap: 24px; } }

  /* 対応範囲: 2 列（受けている／聞いてから答える） */
  .scope { display: grid; gap: 16px; }
  .scope__col { border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; background: var(--paper); }
  .scope__col > :first-child, .scope dl > div:first-child { margin-block-start: 0; }
  .scope dl > div { margin-block-start: 16px; }
  .scope dt { font-weight: 700; color: var(--ink-2); font-size: var(--fs-small); }
  .scope dd { margin-block-start: 4px; }
  .scope__col > p { margin-block-start: 16px; }
  .scope__col > ul { margin-block-start: 12px; }
  @media (min-width: 960px) { .scope { grid-template-columns: 1fr 1fr; gap: 24px; } }

  /* 流れ 5 ステップ: 番号カード */

  /* フォーム帯: grad 地に白文字、左 白カード、右 白枠 */
  .section--deep { background: var(--grad); color: #fff; }
  .section--deep .section__head h2 { color: #fff; }
  .section--deep .section__head h2::after { background: #fff; }
  .section--deep :focus-visible { outline-color: #fff; }
  .contact__grid { display: grid; gap: 24px; }
  .contact__aside { order: -1; border: 1px solid #fff; border-radius: var(--radius); padding: 24px; }
  .contact__aside h3 { color: #fff; font-size: var(--fs-h3); }
  .contact__aside ul { margin-block-start: 12px; font-size: var(--fs-small); line-height: 1.8; }
  .contact__aside .ticks li::before { border-color: #fff; }
  .contact__aside .ticks li + li { margin-block-start: 8px; }
  .contact__free { margin-block-start: 20px; padding-block-start: 16px; border-block-start: 1px solid #fff; font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
  .form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 24px 16px; }
  .form-card :focus-visible { outline-color: var(--blue); }
  @media (min-width: 720px) { .form-card { padding: 40px; } }
  @media (min-width: 960px) {
    .contact__grid { grid-template-columns: 3fr 2fr; gap: 32px; align-items: start; }
    .contact__aside { order: 0; position: sticky; inset-block-start: calc(var(--header-h) + 24px); }
  }
  .form { display: grid; gap: 24px; }
  .field { display: grid; gap: 6px; }
  .field label, .field .label { font-weight: 700; }
  .req { font-weight: 700; font-size: 0.75rem; line-height: 1; padding: 4px 6px; margin-inline-start: 8px; border: 1px solid var(--ink-2); border-radius: 2px; color: var(--ink-2); vertical-align: 0.15em; }
  .req--on { border-color: var(--blue); color: var(--blue); }
  /* 同意文の本文はリンク先に飛ばさず、チェックの直上で読ませる（けんご指示 2026-10-26）。tabindex=0 なのでキーボードでもスクロールできる */
  .consent { max-block-size: 168px; overflow-y: auto; overscroll-behavior-y: contain; padding: 12px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2); font-size: var(--fs-small); line-height: 1.7; color: var(--ink-2); }
  .consent:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .consent h3 { font-size: var(--fs-small); color: var(--ink); }
  .consent dt { margin-block-start: 10px; font-weight: 700; color: var(--ink); }
  .consent dd { margin-block-start: 2px; }
  .field__hint { font-size: var(--fs-small); line-height: 1.7; color: var(--ink-2); }
  .field input:not([type="checkbox"]), .field select, .field textarea {
    inline-size: 100%; min-block-size: 48px; padding: 10px 12px;
    border: 1px solid var(--ink-2); border-radius: var(--radius); background: var(--paper); color: var(--ink);
  }
  .field textarea { min-block-size: 160px; resize: vertical; }
  .field ::placeholder { color: var(--ink-3); opacity: 1; }
  .field select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'><path d='M1 1l7 7 7-7' fill='none' stroke='%231F2A33' stroke-width='1.5'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center; }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--blue); }
  .field__error { display: none; font-size: var(--fs-small); line-height: 1.7; color: var(--error); font-weight: 700; }
  /* エラー文は常に DOM にあり aria-describedby で結ぶ。表示だけ :user-invalid（操作後）に限る */
  .field:has(:user-invalid) .field__error { display: block; }
  /* メールは「未入力」と「形式誤り」で文を分ける。placeholder-shown = 値が空 */
  .field:has(:user-invalid:placeholder-shown) .field__error--format { display: none; }
  .field:has(:user-invalid:not(:placeholder-shown)) .field__error--empty { display: none; }
  .field:has(:user-invalid) input, .field:has(:user-invalid) select, .field:has(:user-invalid) textarea { border-color: var(--error); border-width: 2px; }
  .field--check { grid-template-columns: auto 1fr; align-items: start; gap: 6px 0; }
  .field--check input { inline-size: 24px; block-size: 24px; margin: 6px 0 0; accent-color: var(--blue); }
  .field--check label { font-weight: 400; padding-inline-start: 12px; }
  .field--check .field__error { grid-column: 1 / -1; }
  /* role=alert は最初から描画されている必要があるため display を切り替えない。空のあいだは hp と同じ不可視化でグリッドから外す */
  .form__alert { padding: 12px 16px; border: 2px solid var(--error); border-radius: var(--radius); color: var(--error); font-weight: 700; }
  .form__alert:empty { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .form__actions { display: grid; gap: 12px; justify-items: start; }
  .form__actions .btn { inline-size: 100%; }
  @media (min-width: 720px) { .form__actions .btn { inline-size: auto; min-inline-size: 260px; } }
  .hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* フッター: ワードマーク／プライバシーポリシー／© の 1 行 */
  .site-footer { background: var(--ink); color: #fff; padding-block: 28px; font-size: var(--fs-small); line-height: 1.7; }
  .site-footer a { color: #fff; }
  .site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
  /* ink 地では blue の focus リングが見えないため白にする */
  .site-footer :focus-visible { outline-color: #fff; }
  .site-footer .container { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: center; align-items: center; text-align: center; }
  .site-footer .wordmark { color: #fff; font-size: var(--fs-body); }
  @media (min-width: 720px) { .site-footer .container { justify-content: space-between; } }

  /* 固定 CTA（SP のみ）。フォームが見えている間は JS が hidden を付ける */
  .cta-fixed { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40; padding-block-end: env(safe-area-inset-bottom, 0px); background: var(--paper); border-block-start: 1px solid var(--rule); }
  .cta-fixed .container { block-size: var(--cta-fixed-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cta-fixed .btn { min-block-size: 44px; }
  .cta-fixed p { font-size: 0.75rem; line-height: 1.4; color: var(--ink-2); }
  .cta-fixed[hidden] { display: none; }
  @media (min-width: 960px) { .cta-fixed { display: none; } }

  /* thanks / error */
  .page { padding-block: var(--section-y); }
  .page h1 { font-size: var(--fs-h2); }
  .page h2 { font-size: var(--fs-h3); }
  .page .flow { margin-block-start: 24px; }
  .page ol { padding-inline-start: 1.4em; }
  .page ul { padding-inline-start: 1.2em; }
  .page .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
}

@layer components {
  /* thanks.html / error.html のフッターが参照する */
  .site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
}
