/* ============================================================
   AIコード健診 (AI Code Kenshin) / style.css
   ============================================================
   - バニラ CSS / ビルド不要
   - モバイルファースト（375px〜）
   - ダークモード自動切替（prefers-color-scheme）
   - BEM 準拠のクラス命名
   ============================================================ */

/* ----- Design tokens ----- */
:root {
  /* Brand */
  --c-teal:       #0a8f8d;
  --c-teal-dark:  #075f68;
  --c-mint:       #bff3e4;
  --c-sky:        #d9ecff;
  --c-coral:      #f06f5d;
  --c-lemon:      #f2c84b;
  --c-charcoal:   #182329;
  --c-off:        #f7fbf8;
  --c-off-dim:    #e9f5ef;

  /* Severity */
  --c-critical:   #dc2626;
  --c-high:       #ea580c;
  --c-medium:     #ca8a04;
  --c-info:       #2563eb;
  --c-safe:       #16a34a;

  /* Semantic (light) — 親しみのある健診クリニック調 */
  --bg:           #f7fbf8;
  --bg-sub:       #e9f5ef;
  --bg-card:      #fffefa;
  --fg:           var(--c-charcoal);
  --fg-mute:      #52626a;
  --border:       rgba(24, 35, 41, 0.13);
  --accent:       var(--c-teal);
  --accent-fg:    #ffffff;
  --danger:       var(--c-critical);
  --link:         var(--c-teal-dark);

  /* Type */
  --font-sans:    "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-strong:  "Hiragino Sans", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-rounded: "Hiragino Maru Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-serif:   "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", Georgia, serif;
  --font-mono:    "SF Mono", "Menlo", "Consolas", "Liberation Mono", "Courier New", monospace;

  /* Layout */
  --max-w:        1200px;
  --radius:       8px;
  --shadow-sm:    0 2px 8px rgba(24,35,41,.06);
  --shadow-md:    0 14px 34px rgba(24,35,41,.11);
}

/* ダークモード対応は意図的に無効化。OS設定に関わらず常にライト配色。 */

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(10,143,141,.06) 0 1px, transparent 1px 48px),
    linear-gradient(180deg, #f7fbf8 0%, #edf8f4 48%, #fff7e4 100%);
  background-size: 48px 48px, auto;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, button { color: inherit; }
input, textarea { font-family: inherit; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
a:hover { color: var(--accent); }

code, pre, kbd {
  font-family: var(--font-mono);
  font-size: .92em;
}

code {
  background: var(--bg-sub);
  padding: .12em .4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

kbd {
  background: var(--bg-card);
  padding: .15em .45em;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
  font-weight: 600;
}

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }

/* ----- Layout ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* 法務・更新履歴ページ（長文本文）はコンテナを狭く保って可読性を維持。
   1200px だと本文が長すぎて読み返しの視線移動が増える。
   既存の <section class="legal-page"> 内の .container だけを絞る形で、
   body にクラス追加すると section の padding と二重適用される問題を回避。 */
.legal-page > .container {
  max-width: 920px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ----- Header ----- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(150%) blur(10px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--fg);
}
.logo__img {
  height: 64px;
  width: auto;
  display: block;
  /* 画像の白背景（#ffffff）をサイト背景（#faf9f5）に自然に溶かす */
  mix-blend-mode: multiply;
}
@media (max-width: 520px) {
  .logo__img { height: 48px; }
}
.site-nav { display: flex; gap: 18px; font-size: .92rem; }
.site-nav a {
  color: var(--fg-mute);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--accent); }

@media (max-width: 520px) {
  .site-nav { display: none; }
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  /* margin-top はゼロ。.step の padding-bottom: 60px が前要素と footer の
     間隔を担うため、ここで margin-top を取ると二重で余白が広くなる */
  margin-top: 0;
  font-size: .92rem;
  color: var(--fg-mute);
}
/* container（max-width 1200px）の中身を中央寄せ。広いビューポートで右側に
   空白ができて「左寄り」に見える問題を解消 */
.site-footer .container {
  text-align: center;
}
.site-footer__brand { margin: 0 0 10px; }
.site-footer__nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  justify-content: center;
}
.site-footer__nav a { color: var(--fg-mute); }
.site-footer__small { font-size: .85rem; opacity: .8; margin: 0; }

/* ----- Step common ----- */
.step { padding: 40px 0 24px; }
.step--1 { padding-top: 24px; }
.step-title {
  font-family: var(--font-rounded);
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  margin: 14px 0 8px;
}
.step-lede { color: var(--fg-mute); margin: 0 0 28px; }
.step__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 28px 0 10px; }
.step__error {
  margin-top: 16px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  border-radius: var(--radius);
  color: var(--danger);
  font-weight: 500;
  /* JS から複数行ヒントを '\n' 区切りで渡せるよう保持 */
  white-space: pre-line;
  line-height: 1.65;
}

/* ----- Stepper ----- */
.stepper {
  margin: 0 0 28px;
}
.stepper__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
}
.stepper__item {
  position: relative;
  min-width: 0;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--bg-card) 88%, var(--c-sky));
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-mute);
}
.stepper__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 8px;
  height: 1px;
  background: var(--border);
  transform: translateY(-50%);
}
.stepper__index {
  display: block;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-lemon) 28%, var(--bg-card));
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
}
.stepper__label {
  display: block;
  min-width: 0;
  color: inherit;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
}
.stepper__item.is-completed {
  background: color-mix(in srgb, var(--c-mint) 44%, var(--bg-card));
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  color: var(--c-teal-dark);
}
.stepper__item.is-completed .stepper__index {
  background: var(--accent);
  color: var(--accent-fg);
}
.stepper__item.is-active {
  background: linear-gradient(135deg, var(--accent), #0e7d96);
  border-color: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 24%, transparent);
}
.stepper__item.is-active .stepper__index {
  background: rgba(255,255,255,.18);
  color: var(--accent-fg);
}
.stepper__item.is-inactive {
  opacity: .78;
}

/* ----- Hero (Step 1) ----- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  grid-template-areas:
    "copy mascot"
    "copy launcher";
  align-items: start;
  column-gap: 40px;
  row-gap: 14px;
  padding: 18px 0 28px;
  position: relative;
}
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    grid-template-areas:
      "copy copy"
      "mascot launcher";
    gap: 24px;
    align-items: start;
  }
}
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "mascot"
      "launcher";
  }
}
.hero__copy,
.hero__launcher {
  min-width: 0;
}
.hero__copy {
  grid-area: copy;
  align-self: center;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: 0;
  color: var(--c-teal-dark);
  text-transform: uppercase;
  background: color-mix(in srgb, var(--c-lemon) 28%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--c-lemon) 62%, var(--border));
  padding: 5px 14px;
  border-radius: 100px;
  margin: 0 0 22px;
  font-weight: 800;
}
.hero__title {
  font-family: var(--font-strong);
  font-size: clamp(1.95rem, 3.5vw, 2.85rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0 0 20px;
  text-shadow: 0 2px 0 rgba(255,255,255,.9);
}
/* PC 幅では <br class="br-pc"> で 3 行確定、スマホでは折り返しに任せる */
.hero__title .br-pc { display: none; }
@media (min-width: 720px) {
  .hero__title .br-pc { display: inline; }
}
.hero__title em {
  font-style: normal;
  color: var(--c-coral);
  position: relative;
  display: inline-block;
  max-width: 100%;
  font-weight: 900;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .08em;
  /* em 単位でフォントサイズに比例。375px/27px なら 6.5px、1200px/41px なら 9.8px */
  height: .24em;
  background: color-mix(in srgb, var(--c-lemon) 55%, transparent);
  z-index: -1;
}
.hero__lede {
  color: var(--fg-mute);
  /* タイトル拡大に合わせて lede もやや拡大、可読幅は維持 */
  font-size: 1.06rem;
  line-height: 1.75;
  max-width: 64ch;
  margin: 0 0 22px;
}
.hero__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .9rem;
}
.hero__badges li {
  background: color-mix(in srgb, var(--bg-card) 92%, var(--c-sky));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--fg-mute);
  box-shadow: var(--shadow-sm);
}
.hero__launcher {
  grid-area: launcher;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__mascot {
  grid-area: mascot;
  min-width: 0;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(112px, 145px) minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 14px;
  position: relative;
}
.hero__mascot::before {
  content: "";
  position: absolute;
  inset: 10px 4px 10px 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 16px, rgba(10,143,141,.1) 16px 17px, transparent 17px 34px),
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.2));
  background-size: 34px 100%, auto;
  transform: rotate(-5deg);
  z-index: -1;
}
.hero__robot {
  width: min(138px, 35vw);
  height: auto;
  justify-self: center;
  animation: robotFloat 4.8s ease-in-out infinite;
}
.hero__speech {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  font-size: .86rem;
  line-height: 1.45;
}
.hero__speech-kicker {
  color: var(--c-coral);
  font-size: .75rem;
  font-weight: 800;
}
.hero__speech strong {
  font-size: 1.08rem;
  color: var(--c-teal-dark);
}

@keyframes robotFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* ----- Domain form ----- */
.domain-form {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c-sky) 26%, var(--bg-card)), var(--bg-card) 62%);
  border: 2px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(7, 95, 104, .14);
  margin: 0;
  position: relative;
  overflow: hidden;
}
.domain-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-lemon), var(--c-coral));
}
.domain-form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}
.domain-form__hint {
  display: block;
  font-weight: 400;
  color: var(--fg-mute);
  font-size: .88rem;
  margin-top: 2px;
}
.domain-form__field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.domain-form__input {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  font-size: 1rem;
  font-family: var(--font-mono);
}
.domain-form__input:focus {
  outline: 3px solid color-mix(in srgb, var(--c-lemon) 42%, transparent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.domain-form__submit { width: 100%; }
.domain-form__error {
  margin-top: 12px;
  color: var(--danger);
  font-weight: 500;
  font-size: .94rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--bg-card);
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn--primary {
  background: linear-gradient(135deg, var(--c-teal), #0e7d96);
  color: var(--accent-fg);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--c-teal-dark), var(--c-teal));
  color: var(--accent-fg);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 34%, transparent);
}

.btn--outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--outline:hover { background: var(--accent); color: var(--accent-fg); }

.btn--text {
  background: transparent;
  color: var(--fg-mute);
  padding-left: 6px; padding-right: 6px;
}
.btn--text:hover { color: var(--accent); }

.btn--small { padding: 6px 14px; min-height: 32px; font-size: .88rem; }
.btn--large { padding: 14px 28px; font-size: 1.05rem; }

/* テキストリンク風ボタン（下線付き、リンクに見える） */
.btn-link {
  background: transparent;
  border: none;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  font: inherit;
  min-height: auto;
  display: inline;
  transition: color .15s ease;
}
.btn-link:hover { color: var(--accent); }
.btn-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----- Catalog dashboard（4 カテゴリのカード型） ----- */
.catalog-dashboard {
  margin: 10px 0 32px;
}
.catalog-dashboard__head {
  margin: 0 0 18px;
  text-align: center;
}
.catalog-dashboard__title {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 800;
  font-family: var(--font-rounded);
  letter-spacing: 0;
}
.catalog-dashboard__title [data-stat] {
  color: var(--accent);
  font-family: var(--font-mono);
}
.catalog-dashboard__lede {
  margin: 0;
  color: var(--fg-mute);
  font-size: .92rem;
}
.catalog-dashboard__grid {
  display: grid;
  /* PC は 2 列 × 2 段、モバイルは 1 列に縦積み */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}
@media (max-width: 600px) {
  .catalog-dashboard__grid {
    grid-template-columns: 1fr;
  }
}
.catalog-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 80%, var(--c-sky)), var(--bg-card) 50%);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 4px solid var(--fg-mute);
}
.catalog-card--leak     { border-top-color: #dc2626; }
.catalog-card--apikey   { border-top-color: var(--c-coral); }
.catalog-card--ai-tool  { border-top-color: var(--c-teal); }
.catalog-card--security { border-top-color: #0369a1; }

.catalog-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.catalog-card__icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-lemon) 28%, var(--bg-card));
  font-size: 1.35rem;
  line-height: 1;
}
.catalog-card__count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--c-teal-dark);
  line-height: 1;
}
.catalog-card__count-unit {
  font-size: .78rem;
  color: var(--fg-mute);
  font-weight: 600;
  letter-spacing: 0;
}
.catalog-card__title {
  margin: 2px 0 0;
  font-size: 1.05rem;
  font-family: var(--font-rounded);
  font-weight: 900;
}
.catalog-card__lede {
  margin: 0;
  color: var(--fg-mute);
  font-size: .88rem;
  line-height: 1.55;
}
.catalog-card__list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 4px;
}
.catalog-card__list li {
  position: relative;
  padding-left: 14px;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.catalog-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
}

@media (max-width: 600px) {
  .catalog-card { padding: 16px; }
  .catalog-card__count { font-size: 1.4rem; }
  .catalog-card__title { font-size: 1rem; }
}

/* ----- Catalog (detects 49) ----- */
.catalog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 32px;
  overflow: hidden;
}
.catalog__summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
}
.catalog__summary::-webkit-details-marker { display: none; }
.catalog__summary::after {
  content: "▸";
  color: var(--accent);
  transition: transform .2s;
}
.catalog[open] .catalog__summary::after { transform: rotate(90deg); }
.catalog__summary-badge {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--fg-mute);
  font-weight: 500;
  letter-spacing: 0;
}
.catalog__body {
  display: grid;
  /* PC は 2 列 × 2 段（CRITICAL/HIGH の上段、MEDIUM/INFO の下段）、モバイルは 1 列 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
@media (max-width: 600px) {
  .catalog__body {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.catalog__col h3 { font-size: .98rem; margin: 0 0 8px; }
.catalog__col ul { margin: 0; padding-left: 20px; font-size: .92rem; color: var(--fg-mute); }
.catalog__col li { margin: 4px 0; }

/* ============================================================
   FAQ セクション（構造化データと同期）
   ============================================================ */
.faq {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.faq__title {
  font-size: 1.4rem;
  margin: 0 0 24px;
  text-align: center;
}
.faq__item {
  margin: 0 0 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.faq__item summary {
  font-weight: 600;
  font-size: .98rem;
  list-style: none;
  position: relative;
  padding-right: 28px;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "▸";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-mute);
  transition: transform .15s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.faq__item p {
  margin: 12px 0 0;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--fg-mute);
}

/* ----- Terms notice (健診前の利用規約同意) ----- */
.terms-notice {
  margin: 0;
  padding: 0;
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 8px;
  font-size: .84rem;
  line-height: 1.65;
  overflow: hidden;
}
.terms-notice__summary {
  position: relative;
  display: block;
  padding: 10px 34px 10px 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--fg);
  list-style: none;
}
.terms-notice__summary::-webkit-details-marker { display: none; }
.terms-notice__summary::after {
  content: "▸";
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--accent);
  transform: translateY(-50%);
  transition: transform .15s ease;
}
.terms-notice[open] .terms-notice__summary::after {
  transform: translateY(-50%) rotate(90deg);
}
.terms-notice__body {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--fg-mute);
}
.terms-notice__body a {
  font-weight: 600;
  color: var(--link);
}
.terms-notice__body strong {
  color: var(--fg);
}

/* ----- Device note (PC 推奨案内) ----- */
.device-note {
  display: none;
  margin: 0;
  padding: 10px 12px;
  background: var(--bg-sub);
  border-radius: 8px;
  font-size: .8rem;
  line-height: 1.6;
}
.device-note__body {
  margin: 0;
  color: var(--fg-mute);
}
.device-note__body strong {
  color: var(--accent);
}

/* ----- Mascot assistant note ----- */
.assistant-note {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 18px 0 22px;
  padding: 14px 16px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--c-mint) 46%, var(--bg-card)), var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.assistant-note__avatar {
  width: 58px;
  height: auto;
  align-self: end;
  filter: drop-shadow(0 6px 10px rgba(7, 95, 104, .16));
}
.assistant-note__body {
  margin: 0;
  color: var(--fg-mute);
  font-size: .94rem;
  line-height: 1.65;
}
.assistant-note__body strong {
  display: block;
  color: var(--c-teal-dark);
  font-family: var(--font-rounded);
  font-size: 1rem;
}
.assistant-note__body span {
  display: block;
}

/* ----- Method note ----- */
.method-note {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--c-mint) 54%, var(--bg-card)), var(--bg-card));
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
}
.method-note__title { font-size: 1.05rem; margin: 0 0 8px; }
.method-note__list { margin: 0 0 10px; padding-left: 22px; }
.method-note__list li { margin: 4px 0; }
.method-note__foot { margin: 0; color: var(--fg-mute); font-size: .88rem; }

/* ----- Breadcrumb ----- */
.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0 0 20px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--fg-mute);
}
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb li:not(:last-child)::after { content: "→"; color: var(--border); }
.breadcrumb__done { color: var(--fg-mute); }
.breadcrumb__current { color: var(--accent); font-weight: 600; }

/* ----- Tabs（旧スタイル、step3 結果フィルターで利用中） ----- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 22px 0 0; }
.tabs__btn {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  padding: 10px 20px;
  color: var(--fg-mute);
  font-weight: 600;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.tabs__btn.is-active {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--accent);
  position: relative;
}
.tabs__btn.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--bg-card);
}
.tabpanel {
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px;
}

/* ----- Method cards（step2 所有権確認の方法選択、tabs 機能拡張） -----
   .tabs / .tabs__btn を上書きしてカード型 UI に。
   role="tablist" / role="tab" は維持（既存の app.js 切替ロジックそのまま使える） */
.method-cards.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  border-bottom: none;
  margin: 22px 0 0;
}
.method-card.tabs__btn {
  display: grid;
  gap: 6px;
  padding: 16px 18px 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 78%, var(--c-sky)), var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
  color: var(--fg);
}
.method-card.tabs__btn:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: var(--shadow-md);
}
.method-card.tabs__btn.is-active {
  border-color: var(--accent);
  border-width: 2px;
  padding: 15px 17px 17px; /* border 増加分を補正 */
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c-mint) 46%, var(--bg-card)), var(--bg-card));
  box-shadow: var(--shadow-md);
}
.method-card.tabs__btn.is-active::after {
  content: none; /* 旧 tabs の下線を消す */
}
.method-card__icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-lemon) 28%, var(--bg-card));
  font-size: 1.35rem;
  line-height: 1;
}
.method-card__title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--fg);
}
.method-card.tabs__btn.is-active .method-card__title {
  color: var(--accent);
}
.method-card__lede {
  color: var(--fg-mute);
  font-size: .88rem;
  line-height: 1.5;
  font-weight: 400;
}
.method-card__hint {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: 0;
  font-weight: 400;
  margin-top: 2px;
}

/* method-cards 配下の tabpanel は border-top も付ける（旧 tabs では border-top: none） */
.method-cards + .tabpanel,
.method-cards ~ .tabpanel {
  border-top: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 14px;
}

@media (max-width: 600px) {
  .method-card.tabs__btn { padding: 14px 14px 16px; }
  .method-card.tabs__btn.is-active { padding: 13px 13px 15px; }
  .method-card__title { font-size: 1rem; }
}

/* ----- Guide lists (Step 2) ----- */
.guide { padding-left: 22px; margin: 0; }
.guide > li { margin: 0 0 18px; }
.guide__sub { color: var(--fg-mute); font-size: .92rem; margin: 6px 0 0; }
.guide__tips { padding-left: 20px; color: var(--fg-mute); font-size: .92rem; margin-top: 8px; }
.guide__tips li { margin: 3px 0; }
.guide__url { display: inline-block; margin-top: 6px; word-break: break-all; }
.guide__fallback {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--c-medium) 8%, var(--bg-card));
  border-left: 3px solid var(--c-medium);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--fg);
  line-height: 1.7;
}
.guide__fallback strong { color: var(--accent); }

.code-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .9rem;
  margin: 8px 0 0;
  word-break: break-all;
}
.code-box code {
  background: transparent;
  border: none;
  padding: 0;
  flex: 1;
}

/* ----- Result header ----- */
.result-header { margin-bottom: 22px; text-align: center; }
.result-header__eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.result-header__title {
  font-family: var(--font-rounded);
  font-size: clamp(1.5rem, 4.2vw, 2.2rem);
  letter-spacing: 0;
  margin: 0 0 8px;
}
.result-header__meta { color: var(--fg-mute); margin: 0; }

/* ----- Summary ----- */
.summary { margin: 0 0 30px; }
.summary__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.summary__item {
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--border));
  border-top: 4px solid var(--fg-mute);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
}
.summary__count { display: block; font-family: var(--font-mono); font-size: 2rem; font-weight: 700; line-height: 1; }
.summary__label { display: block; margin-top: 6px; font-size: .85rem; color: var(--fg-mute); }

.summary__item--critical { border-top-color: var(--c-critical); }
.summary__item--critical .summary__count { color: var(--c-critical); }
.summary__item--high     { border-top-color: var(--c-high); }
.summary__item--high .summary__count     { color: var(--c-high); }
.summary__item--medium   { border-top-color: var(--c-medium); }
.summary__item--medium .summary__count   { color: var(--c-medium); }
.summary__item--info     { border-top-color: var(--c-info); }
.summary__item--info .summary__count     { color: var(--c-info); }
.summary__item--safe     { border-top-color: var(--c-safe); }
.summary__item--safe .summary__count     { color: var(--c-safe); }

/* ----- Result grade（A / B / C / D / F、E は未使用） ----- */
.result-grade {
  margin: 0 0 18px;
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
  border-left: 6px solid var(--fg-mute);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.result-grade--A { border-left-color: #15803d; }
.result-grade--B { border-left-color: #6d8d13; }
.result-grade--C { border-left-color: #ca8a04; }
.result-grade--D { border-left-color: #c2410c; }
.result-grade--F { border-left-color: #dc2626; }

.result-grade__inner {
  display: grid;
  grid-template-columns: minmax(132px, 168px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
}
.result-grade__badge {
  width: min(100%, 168px);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
}
.result-grade__badge--A { background: #dcfce7; color: #14532d; border-color: #86efac; }
.result-grade__badge--B { background: #ecfccb; color: #243100; border-color: #bef264; }
.result-grade__badge--C { background: #fef3c7; color: #422006; border-color: #facc15; }
.result-grade__badge--D { background: #ffedd5; color: #431407; border-color: #fb923c; }
.result-grade__badge--F { background: #dc2626; color: #fff; border-color: #b91c1c; }

.result-grade__letter {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(3.6rem, 9vw, 5.1rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: 0;
}
.result-grade__label {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
}
.result-grade__eyebrow {
  margin: 0 0 8px;
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 0;
}
.result-grade__title {
  font-family: var(--font-rounded);
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.result-grade__lede {
  margin: 0 0 8px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 700;
}
.result-grade__description {
  margin: 0;
  color: var(--fg-mute);
}

@media (max-width: 600px) {
  .result-grade__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
  .result-grade__badge {
    width: min(100%, 140px);
    margin: 0 auto;
  }
}

.urgent-fixes {
  border-top: 1px solid var(--border);
  padding: 20px 24px 24px;
  background: color-mix(in srgb, var(--bg-sub) 45%, transparent);
}
.urgent-fixes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 0 12px;
}
.urgent-fixes__title {
  margin: 0;
  font-size: 1.02rem;
}
.urgent-fixes__note {
  margin: 0;
  color: var(--fg-mute);
  font-size: .86rem;
}
.urgent-fixes__list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.urgent-fixes__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.urgent-fixes__severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.3;
}
.urgent-fixes__severity--critical { background: var(--c-critical); }
.urgent-fixes__severity--high { background: #c2410c; }
.urgent-fixes__body { display: block; min-width: 0; }
.urgent-fixes__name {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.45;
}
.urgent-fixes__meta {
  display: block;
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.urgent-fixes__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
  color: var(--accent);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  white-space: nowrap;
}
.urgent-fixes__action:hover {
  background: var(--accent);
  color: var(--accent-fg);
}
@media (max-width: 600px) {
  .urgent-fixes { padding: 16px; }
  .urgent-fixes__item {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: 'sev body' 'action action';
  }
  .urgent-fixes__severity { grid-area: sev; }
  .urgent-fixes__body { grid-area: body; }
  .urgent-fixes__action { grid-area: action; justify-self: end; }
}

/* check-row へのスクロール時、固定ヘッダ分の余白を確保し、ハイライト */
.check-table tr.check-row {
  scroll-margin-top: 96px;
}
.check-table tr.check-row.is-focused {
  box-shadow: inset 4px 0 0 var(--accent), inset 0 0 0 9999px color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ----- Findings ----- */
.findings { display: flex; flex-direction: column; gap: 14px; margin: 0 0 40px; }

.finding {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--fg-mute);
  border-radius: var(--radius);
  overflow: hidden;
}
.finding--critical { border-left-color: var(--c-critical); }
.finding--high     { border-left-color: var(--c-high); }
.finding--medium   { border-left-color: var(--c-medium); }
.finding--info     { border-left-color: var(--c-info); }

.finding__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}
.finding__summary::-webkit-details-marker { display: none; }
.finding__summary::after {
  content: "▸";
  margin-left: auto;
  color: var(--fg-mute);
  transition: transform .2s;
}
.finding[open] .finding__summary::after { transform: rotate(90deg); }

.finding__badge {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  letter-spacing: 0;
}
.finding--critical .finding__badge { background: var(--c-critical); }
.finding--high .finding__badge     { background: var(--c-high); }
.finding--medium .finding__badge   { background: var(--c-medium); }
.finding--info .finding__badge     { background: var(--c-info); }

.finding__title { flex: 1; min-width: 0; }
.finding__id { color: var(--fg-mute); font-family: var(--font-mono); font-size: .82rem; margin-right: 10px; }

.finding__body {
  padding: 0 18px 18px;
  border-top: 1px dashed var(--border);
}
.finding__body h4 { font-size: .98rem; margin: 18px 0 6px; color: var(--accent); }
.finding__body h4:first-child { margin-top: 14px; }
.finding__body p { margin: 0 0 8px; }
.finding__body ol, .finding__body ul { padding-left: 22px; }
.finding__body pre {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: .88rem;
  margin: 8px 0;
}
.finding__body code {
  background: var(--bg-sub);
  font-size: .9em;
}
.finding__body pre code { border: none; padding: 0; background: transparent; }

.finding__meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: .82rem;
  color: var(--fg-mute); padding: 10px 0 2px;
  border-top: 1px dashed var(--border);
  margin-top: 10px;
}

.findings__empty {
  background: color-mix(in srgb, var(--c-safe) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-safe) 35%, transparent);
  color: var(--c-safe);
  padding: 22px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
}

/* ----- All checks (full 142-items checklist) ----- */
.all-checks {
  margin: 40px 0 30px;
}
.all-checks__title {
  font-size: 1.3rem;
  margin: 0 0 6px;
}
.all-checks__lede {
  color: var(--fg-mute);
  margin: 0 0 16px;
  font-size: .94rem;
}
.all-checks__filters {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.all-checks__filter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg-mute);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  cursor: pointer;
  font-size: .9rem;
  transition: color .15s, background .15s, border-color .15s;
}
.all-checks__filter:hover { color: var(--accent); }
.all-checks__filter.is-active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.all-checks__filter-count {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 .4em;
  margin-left: .35em;
  background: rgba(0,0,0,0.08);
  border-radius: 100px;
  font-size: .82em;
  font-family: var(--font-mono);
}
.all-checks__filter.is-active .all-checks__filter-count {
  background: rgba(255,255,255,0.2);
}
.all-checks__groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.check-group__summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: .96rem;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}
.check-group__summary::-webkit-details-marker { display: none; }
.check-group__summary::after {
  content: "▸";
  margin-left: auto;
  color: var(--fg-mute);
  transition: transform .2s;
  font-size: .8em;
}
.check-group[open] .check-group__summary::after { transform: rotate(90deg); }
.check-group__count {
  font-family: var(--font-mono);
  color: var(--fg-mute);
  font-size: .82rem;
  font-weight: 500;
}
.check-group__body {
  border-top: 1px solid var(--border);
  overflow-x: auto;
}
.check-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.check-table th,
.check-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.check-table th {
  background: var(--bg-sub);
  font-weight: 600;
  color: var(--fg-mute);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}
.check-table tbody tr:last-child td { border-bottom: none; }
.check-table td.check-id { font-family: var(--font-mono); font-size: .82rem; color: var(--fg-mute); white-space: nowrap; }
.check-table td.check-status { text-align: center; font-size: 1.1em; width: 60px; font-weight: 700; }
.check-table tr.check-row--detected { background: color-mix(in srgb, var(--c-critical) 5%, transparent); }
.check-table tr.check-row--detected .check-status { color: var(--c-critical); }
.check-table tr.check-row--safe .check-status { color: var(--c-safe); }

.check-severity {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  white-space: nowrap;
}
.check-severity--critical { background: var(--c-critical); }
.check-severity--high     { background: var(--c-high); }
.check-severity--medium   { background: var(--c-medium); }
.check-severity--info     { background: var(--c-info); }

.check-table .is-hidden { display: none; }

/* ============================================================
   CTA セクション（法人相談誘導）
   ------------------------------------------------------------
   背景にアクセントグラデーション、強い境界、ベリエットしたボタン、
   3 列の bullets で「何をしてくれるか」を視覚的に示す。
   ============================================================ */
.cta {
  position: relative;
  margin: 64px 0 32px;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--c-mint) 42%, var(--bg-card)) 0%, var(--bg-card) 54%, color-mix(in srgb, var(--c-lemon) 24%, var(--bg-card)) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  box-shadow: 0 8px 24px -16px color-mix(in srgb, var(--accent) 50%, transparent);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-lemon), var(--c-coral));
}
.cta__inner {
  padding: 48px 40px 40px;
  text-align: center;
}
.cta__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: 0;
  color: var(--accent);
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 5px 14px;
  border-radius: 100px;
  margin: 0 0 20px;
}
.cta__title {
  font-family: var(--font-rounded);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 900;
  margin: 0 0 24px;
  line-height: 1.5;
  letter-spacing: 0;
}
.cta__title em {
  font-style: normal;
  color: var(--c-coral);
  position: relative;
  display: inline-block;
}
.cta__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .08em;
  height: 6px;
  background: color-mix(in srgb, var(--c-lemon) 52%, transparent);
  z-index: -1;
}
.cta__lede {
  max-width: 56ch;
  color: var(--fg);
  margin: 0 auto 14px;
  line-height: 1.85;
  text-align: left;
}
.cta__lede:last-of-type { margin-bottom: 28px; }

/* 提供価値の 3 つの bullets */
.cta__bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 auto 32px;
  max-width: 760px;
}
.cta__bullets li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  background: color-mix(in srgb, var(--bg-card) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: var(--radius);
  text-align: center;
}
.cta__bullet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-lemon) 32%, transparent);
  font-size: 1.4rem;
  line-height: 1;
}
.cta__bullet-text {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--fg);
}
.cta__bullet-text strong {
  color: var(--fg);
  font-weight: 700;
}
@media (max-width: 720px) {
  .cta__bullets {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cta__inner { padding: 36px 24px 28px; }
}

/* CTA ボタン */
.cta__button-row {
  text-align: center;
  margin: 0 0 16px;
}
.cta__btn {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.cta__btn-arrow {
  font-size: 1.1rem;
  transition: transform .15s ease;
}
.cta__btn:hover .cta__btn-arrow {
  transform: translateX(4px);
}

.cta__sub {
  color: var(--fg-mute);
  font-size: .82rem;
  margin: 0;
  text-align: center;
  line-height: 1.7;
}

/* ----- Loading overlay ----- */
.loading {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.loading.is-visible { display: flex; }
.loading__inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  min-width: 260px;
}
.loading__spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading__text { font-weight: 600; margin: 0 0 4px; }
.loading__sub { color: var(--fg-mute); font-size: .88rem; margin: 0; }

/* ----- Reduce motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .step { padding: 28px 0 48px; }
  .stepper { margin-bottom: 20px; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "mascot"
      "launcher";
    gap: 18px;
    padding-top: 4px;
  }
  .hero__mascot {
    order: 2;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .hero__launcher {
    order: 3;
  }
  /* 注: 旧 .hero__title font-size 上書きは PR #106 で削除。
     base の clamp(1.7rem, 3.4vw, 2.6rem) 一本で 375〜1200px 全域を扱う。
     旧 760px clamp(...8vw, 2.2rem) は 760/761 境界で 35px → 27px の段差が
     出ていたため統合した。 */
  .hero__lede {
    font-size: .96rem;
  }
  .hero__robot {
    width: min(190px, 58vw);
  }
  .hero__speech {
    width: min(280px, 100%);
  }
  .device-note {
    display: block;
  }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .stepper__list { gap: 6px; }
  .stepper__item {
    min-height: 58px;
    padding: 9px 8px;
  }
  .stepper__item:not(:last-child)::after {
    right: -6px;
    width: 6px;
  }
  .stepper__index {
    padding: 2px 6px;
    font-size: .68rem;
  }
  .stepper__label {
    font-size: .76rem;
  }
  .hero__badges {
    gap: 8px;
    font-size: .82rem;
  }
  .hero__badges li {
    padding: 5px 10px;
  }
  .domain-form {
    padding: 18px;
  }
  .domain-form__input,
  .domain-form__submit {
    min-height: 46px;
  }
  .assistant-note {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 12px;
  }
  .assistant-note__avatar {
    width: 46px;
  }
}

/* ============================================================
   Legal pages (privacy.html / terms.html)
   ============================================================ */
.legal-page {
  padding: 32px 0 64px;
}
.legal-page__header {
  margin: 0 0 28px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--border);
}
.legal-page__eyebrow {
  margin: 0 0 6px;
  font-size: .82rem;
  letter-spacing: 0;
  color: var(--accent);
  text-transform: uppercase;
}
.legal-page__title {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  margin: 0 0 8px;
}
.legal-page__meta {
  margin: 0;
  font-size: .88rem;
  color: var(--fg-mute);
}
.legal-page__meta time + time::before {
  content: " ／ ";
  color: var(--border);
}

.legal-page article h2 {
  font-size: 1.18rem;
  margin: 40px 0 14px;
  padding: 6px 0 8px 14px;
  border-left: 4px solid var(--accent);
  border-bottom: 2px solid var(--border);
  line-height: 1.4;
}
.legal-page article h2:first-of-type {
  margin-top: 8px;
}
.legal-page article h3 {
  font-size: 1rem;
  margin: 26px 0 10px;
  padding: 0 0 4px 10px;
  border-left: 3px solid var(--border);
  color: var(--fg);
  line-height: 1.4;
}
.legal-page article p {
  margin: 0 0 14px;
  line-height: 1.9;
}
.legal-page article p + ul,
.legal-page article p + ol,
.legal-page article p + table,
.legal-page article p + dl {
  margin-top: -4px;
}
.legal-page article ul,
.legal-page article ol {
  margin: 0 0 18px;
  padding-left: 1.4em;
}
.legal-page article ul li,
.legal-page article ol li {
  margin: 0 0 8px;
  line-height: 1.85;
}
.legal-page article ul li::marker {
  color: var(--accent);
}
.legal-page article dl {
  margin: 0 0 18px;
  padding: 4px 0;
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.legal-page article dt,
.legal-page article dd {
  padding: 12px 14px;
  margin: 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}
.legal-page article dt {
  font-weight: 700;
  background: var(--bg-sub);
  color: var(--fg);
}
.legal-page article dd {
  color: var(--fg);
}
@media (max-width: 560px) {
  .legal-page article dl {
    grid-template-columns: 1fr;
  }
  .legal-page article dt {
    border-bottom: 0;
    padding-bottom: 4px;
  }
  .legal-page article dd {
    padding-top: 6px;
  }
}
.legal-page article .legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.legal-page article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: .92rem;
}
.legal-page article th,
.legal-page article td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}
.legal-page article tr:last-child th,
.legal-page article tr:last-child td {
  border-bottom: 0;
}
.legal-page article th {
  background: var(--bg-sub);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: 0;
  color: var(--fg);
}
.legal-page article thead th {
  border-bottom: 2px solid var(--border);
}
.legal-page article tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--bg-sub) 50%, transparent);
}
.legal-page__contact {
  margin: 28px 0 0;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.legal-page__contact p {
  margin: 0 0 6px;
}
.legal-page__contact p:last-child {
  margin: 0;
}
.legal-page__back {
  margin: 32px 0 0;
  font-size: .92rem;
}

/* ============================================================
   Ad slots (Google AdSense placeholders)
   - 各ステップのステッパー直上＋アクション直下に横長バナーを配置
   - 両サイドのスカイスクレイパー（旧 .ad-side）は廃止。横長レイアウトに集約
   ============================================================ */
/*
   .ad-slot は AdSense レスポンシブ広告 (<ins data-ad-format="auto">) の親。
   AdSense の <ins> は親要素から幅を継承して表示サイズを決めるため、
   block レイアウトで幅を確実に確保する（flex にすると <ins> が width:0 になり
   "No slot size for availableWidth=0" エラーになる）。
*/
.ad-slot {
  margin: 32px 0;
  min-height: 100px;
  text-align: center;
  overflow: hidden;
}
.ad-slot--banner {
  min-height: 100px;
}
/* AdSense の <ins> は width:100% で親の幅を確実に取る */
.ad-slot > ins.adsbygoogle {
  display: block;
  width: 100%;
}
.ad-slot__placeholder {
  font-size: .82rem;
  color: var(--fg-mute);
  font-family: var(--font-mono);
  letter-spacing: 0;
  pointer-events: none;
}
