/* サイトドクター（ホームページのセキュリティ診断）のLPだけで使う見た目。
   旧HP（React版）の /security-check の見た目をそのまま移したもの。HP本体の style.css は読み込まない
   （配色・文字がHP本体と違うため、このファイルだけで完結させる）。 */

/* ===== 土台 ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0b2545;
  --navy-2: #1d4ed8;
  --navy-soft: #dbe7f6;
  --ink: #1f2a44;
  --muted: #5b6475;
  --orange: #0e7490; /* 旧LPの変数名のまま。サイトドクターでは青緑 */
  --orange-2: #0891b2;
  --line: #e1e6f0;
  --max-width: 1200px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  background: #f4f7fb;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  letter-spacing: 0.5px;
  line-height: 1.2;
  word-break: auto-phrase;
}

a {
  color: #2f4b8a;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

[hidden] {
  display: none !important;
}

/* ===== 共通の帯・見出し ===== */
.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px var(--space-lg);
}

.narrow {
  max-width: 860px;
}

.band-light {
  background: #ffffff;
}

.band-muted {
  background: #f3f5fa;
}

.heading {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--orange);
}

.section-title {
  margin-top: 8px;
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.heading-light .section-title {
  color: #ffffff;
}

.lead {
  margin: calc(-1 * var(--space-md)) auto var(--space-xl);
  max-width: 720px;
  text-align: center;
  line-height: 1.8;
  color: var(--muted);
}

.note {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ===== 申し込みボタン ===== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(14, 116, 144, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 矢印は文字ではなく飾りで付ける（cta-track.js が拾うボタンの文言に混ぜない） */
.cta::after {
  content: '→';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.95rem;
}

.cta:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(14, 116, 144, 0.4);
}

/* 途中の申し込みの帯 */
.cta-band {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(47, 75, 138, 0.9) 0%, rgba(20, 33, 63, 0) 60%),
    #14213f;
}

.cta-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.cta-band-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

/* ===== LP専用のヘッダー ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0b2545;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.brand-name em {
  font-style: normal;
  color: #0e7490;
}

.brand-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #0e7490;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: #0b5e75;
  color: #fff;
}

/* ===== ファーストビュー（濃い紺で目立たせ、下のセクションと差をつける） ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(8, 145, 178, 0.35), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(29, 78, 216, 0.3), transparent 60%),
    linear-gradient(160deg, #0b2545 0%, #071a33 100%);
  color: #fff;
  padding: 64px 20px 150px;
}

/* 心電図の背景（左から右へ光る波が走る） */
.ecg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  width: 100%;
  height: 150px;
  pointer-events: none;
}

.ecg-base,
.ecg-pulse {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.ecg-base {
  stroke: rgba(94, 234, 212, 0.22);
  stroke-width: 2;
}

.ecg-pulse {
  stroke: #5eead4;
  stroke-width: 3;
  stroke-dasharray: 140 860;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 8px rgba(94, 234, 212, 0.8));
  animation: ecg-run 5s linear infinite;
}

/* 画面の外に出ている間は止める（site-doctor.js が付け外しする） */
.hero.is-offscreen .ecg-pulse {
  animation-play-state: paused;
}

@keyframes ecg-run {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.14);
  color: #99f6e4;
  font-size: 13px;
  font-weight: 700;
}

.hero-title {
  margin: 20px 0 0;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}

/* 見出しは1行ずつ固定して、変なところで折り返さない */
.title-line {
  display: block;
  white-space: nowrap;
}

.title-red {
  color: #ff5c6c;
  background: linear-gradient(transparent 72%, rgba(255, 92, 108, 0.28) 72%);
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 580px;
  font-size: 18px;
  line-height: 1.9;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}

.hero-ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.sub-cta {
  color: #99f6e4;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid rgba(153, 246, 228, 0.45);
  padding-bottom: 2px;
}

.sub-cta:hover {
  color: #99f6e4;
}

.sub-cta::after {
  content: ' ↓';
}

.chips {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.chips li::before {
  content: '✓ ';
  color: #4ade80;
  font-weight: 800;
}

/* ===== 結果票 ===== */
.karte-wrap {
  position: relative;
}

.karte {
  position: relative;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dbe4f0;
  box-shadow: 0 24px 60px rgba(11, 37, 69, 0.14);
  padding: 22px 22px 18px;
  overflow: hidden;
}

.karte-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  border-bottom: 2px solid #0b2545;
  padding-bottom: 10px;
}

.karte-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #0b2545;
}

.karte-meta {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.karte-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 15px;
}

.karte-table th {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  padding: 8px 4px;
  border-bottom: 1px solid #e2e8f0;
}

.karte-table td {
  padding: 10px 4px;
  border-bottom: 1px dashed #e2e8f0;
  color: #0f172a;
}

.karte-table td:last-child {
  white-space: nowrap;
  width: 9.5em;
}

.karte-row {
  opacity: 0;
  animation: fade-in 0.35s forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.karte-total {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-weight: 800;
  color: #0b2545;
}

/* 判定の丸 */
.grade {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  vertical-align: middle;
}

.grade-big {
  width: 52px;
  height: 52px;
  font-size: 28px;
  flex: 0 0 auto;
}

.grade-label {
  margin-left: 8px;
  font-size: 13px;
  color: #475569;
}

.grade-a { background: #16a34a; }
.grade-b { background: #65a30d; }
.grade-c { background: #d97706; }
.grade-d { background: #ea580c; }
.grade-e { background: #d7263d; }

/* 「要治療」のはんこ */
.stamp {
  position: absolute;
  left: 22px;
  bottom: 12px;
  padding: 8px 14px;
  border: 4px double #d7263d;
  border-radius: 8px;
  color: #d7263d;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.15em;
  transform: rotate(-12deg) scale(2);
  opacity: 0;
  mix-blend-mode: multiply;
  animation: stamp 0.35s cubic-bezier(0.2, 1.4, 0.5, 1) forwards;
  pointer-events: none;
}

@keyframes stamp {
  to {
    opacity: 0.9;
    transform: rotate(-12deg) scale(1);
  }
}

/* 画面に入るまでは判定とはんこを出さない（site-doctor.js が is-visible を付ける） */
.karte-wrap:not(.is-visible) .karte-row,
.karte-wrap:not(.is-visible) .stamp {
  animation-play-state: paused;
}

.karte-caption {
  margin: 10px 4px 0;
  text-align: right;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== 放っておくと（例） ===== */
.stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.story {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 22px 20px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.story-when {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #d7263d;
  letter-spacing: 0.04em;
}

.story-icon {
  width: 20px;
  height: 20px;
}

.story-title {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 800;
  color: #0b2545;
  flex: 1;
}

.story-cause {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 14px;
  line-height: 1.75;
  color: #334155;
}

.story-cause-label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  background: #0b2545;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ===== 30秒セルフチェック ===== */
.quiz-band {
  background: #eef4ff;
  padding: 72px 20px;
}

.quiz {
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  max-width: 860px;
  display: grid;
  gap: 10px;
}

.quiz-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #dbe4f0;
}

.quiz-no {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0b2545;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.quiz-text {
  font-size: 15.5px;
  color: #0f172a;
  line-height: 1.6;
}

.quiz-buttons {
  display: flex;
  gap: 6px;
}

.quiz-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.quiz-btn[data-answer='yes'][aria-pressed='true'] {
  background: #d7263d;
  border-color: #d7263d;
  color: #fff;
}

.quiz-btn[data-answer='no'][aria-pressed='true'] {
  background: #0b2545;
  border-color: #0b2545;
  color: #fff;
}

.quiz-result {
  margin: 20px auto 0;
  max-width: 860px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 14px;
  background: #fff;
  border: 2px dashed #cbd5e1;
}

.quiz-result.is-on {
  border-style: solid;
  border-color: #0b2545;
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.12);
}

.quiz-result-head {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #0b2545;
}

.quiz-result-text {
  margin: 6px 0 14px;
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
}

/* ===== お悩みのチェックリスト ===== */
.problems {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.problem {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(23, 36, 73, 0.06);
  font-weight: 600;
  line-height: 1.6;
}

.check-box {
  flex: none;
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--orange);
}

.check-icon {
  width: 100%;
  height: 100%;
  padding: 4px;
  color: #ffffff;
}

/* ===== 検査項目 ===== */
.tasks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.task {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(23, 36, 73, 0.07);
}

.task-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-icon-wrap {
  flex: none;
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--navy-soft);
  color: var(--navy-2);
}

.task-icon {
  width: 100%;
  height: 100%;
  padding: 11px;
}

.task-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.task-before,
.task-after {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.task-before {
  background: #f1f3f7;
  color: var(--muted);
}

.task-after {
  background: #fff3ea;
  color: var(--navy);
  font-weight: 700;
}

.badge-before,
.badge-after {
  flex: none;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-before {
  background: #d7dce6;
  color: #4b5568;
}

.badge-after {
  background: var(--orange);
  color: #ffffff;
}

/* ===== この診断の範囲（分かること・分からないこと） ===== */
.scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.scope-card {
  border-radius: 16px;
  padding: 24px 26px;
  border: 1px solid #dbe4f0;
}

.scope-yes {
  background: #ecfdf8;
  border-color: #99e2d0;
}

.scope-no {
  background: #f5f7fa;
  border-color: #dbe1ea;
}

.scope-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
  color: #0b2545;
}

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

.scope-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #1e293b;
}

.scope-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
}

.scope-yes .scope-list li::before {
  content: '✓';
  background: #0e7490;
}

.scope-no .scope-list li::before {
  content: '－';
  background: #94a3b8;
}

/* ===== 特長 ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 26px 28px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(23, 36, 73, 0.07);
}

.feature-no {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: #e8edf7;
}

.feature-icon-wrap {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
}

.feature-icon {
  width: 100%;
  height: 100%;
  padding: 14px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
}

.feature-body {
  line-height: 1.8;
  color: #3f4a5c;
}

/* ===== 結果の例（表） ===== */
.compare-wrap {
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  line-height: 1.5;
}

.compare thead th {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.compare tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--navy);
}

.compare .compare-us {
  background: #fff3ea;
  color: var(--navy);
  font-weight: 800;
}

.compare thead .compare-us {
  border-radius: 14px 14px 0 0;
  background: var(--orange);
  color: #ffffff;
  font-size: 1rem;
}

/* ===== 料金 ===== */
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.price {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-align: center;
}

.price-highlight {
  border: 3px solid var(--orange);
  box-shadow: 0 10px 28px rgba(14, 116, 144, 0.18);
}

.price-name {
  font-weight: 700;
  color: var(--navy-2);
}

.price-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
}

.price-highlight .price-value {
  color: var(--orange);
}

.price-unit {
  margin-left: 2px;
  font-size: 0.9rem;
  font-weight: 700;
}

.price-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #3f4a5c;
}

/* ===== 流れ ===== */
.steps {
  display: flex;
  align-items: stretch;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 40px 24px 44px;
  background: var(--navy-soft);
  /* 左は切り込み、右は矢の先。隣と 8px の白いすき間ができるよう左に 20px 重ねる */
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%, 28px 50%);
  margin-left: -20px;
}

.step:first-child {
  margin-left: 0;
  padding-left: 20px;
  padding-right: 64px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
}

.step-dark {
  background: var(--navy);
}

.step-label {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-2);
}

.step-dark .step-label {
  color: #ffb27a;
}

.step-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-items li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 8px;
  border-radius: 6px;
  background: #ffffff;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--navy);
}

.step-dark .step-items li {
  background: #2a3d73;
  color: #f4f6fb;
}

/* ===== よくある質問 ===== */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq-q {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::before {
  content: 'Q';
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  font-size: 0.85rem;
  color: #ffffff;
}

.faq-q::after {
  content: '+';
  margin-left: auto;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy-2);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 var(--space-lg) var(--space-md) calc(var(--space-lg) + 36px);
  line-height: 1.8;
  color: #3f4a5c;
}

/* ===== 申し込み ===== */
.apply {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(47, 75, 138, 0.9) 0%, rgba(20, 33, 63, 0) 55%),
    #14213f;
}

.apply-lead {
  margin: calc(-1 * var(--space-md)) 0 var(--space-lg);
  text-align: center;
  line-height: 1.8;
  color: #c3d0ea;
}

/* フォームは濃い帯の上でも白いカードで見せる */
.form-card {
  background: #ffffff;
  border: 1px solid #e1e5ee;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  padding: var(--space-xl);
  color: #2a3342;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lead-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.field .req {
  color: #c0392b;
  margin-left: 6px;
  font-size: 11px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cfd6e3;
  border-radius: 8px;
  padding: 12px 14px;
  color: #2a3342;
  font-family: inherit;
  font-size: 15px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa4b5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #2f4b8a;
  box-shadow: 0 0 0 3px rgba(47, 75, 138, 0.15);
}

.field textarea {
  resize: vertical;
}

/* ボット対策の隠し項目（人には見えない） */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.turnstile {
  margin: 4px 0;
  min-height: 65px;
}

.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid #172449;
  border-radius: 6px;
  background: #172449;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.submit:hover {
  background: #0e1731;
  border-color: #0e1731;
}

.submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-note {
  font-size: 12px;
  color: #5d6878;
}

.form-error {
  font-size: 12px;
  color: #c0392b;
}

/* LINE での申し込み：送ってもらう3つ・友だち追加ボタン・QR（QR は PC だけ） */
.line-apply {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.line-steps {
  margin: 0;
  padding-left: 1.4em;
  list-style: decimal;
  align-self: stretch;
  font-weight: 500;
  line-height: 1.9;
}

.line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 16px 32px;
  border-radius: 999px;
  background: #06c755; /* LINE の公式ボタンの色 */
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.3);
}

.line-btn:hover {
  background: #05b34c;
}

@media (max-width: 767px) {
  .line-btn {
    min-width: 0;
    width: 100%;
  }
}

.form-thanks {
  text-align: center;
}

.form-thanks h3 {
  margin-bottom: var(--space-sm);
  color: #111827;
}

/* ===== LP専用のフッター ===== */
.footer {
  background: #0b2545;
  color: rgba(255, 255, 255, 0.8);
  padding: 28px 20px;
  text-align: center;
  font-size: 13px;
}

.footer-brand {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== 動きを減らす設定の人には、止まった状態だけを出す ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ecg-pulse {
    animation: none;
    opacity: 0;
  }
  .karte-row,
  .stamp {
    animation: none;
    opacity: 1;
  }
  .stamp {
    opacity: 0.9;
    transform: rotate(-12deg);
  }
  .cta,
  .quiz-btn,
  .faq-q::after {
    transition: none;
  }
}

/* ===== 画面の幅ごとの調整 ===== */
@media (max-width: 960px) {
  .tasks,
  .features,
  .prices {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    flex-direction: column;
    gap: 8px;
  }

  .step,
  .step:first-child {
    margin-left: 0;
    padding: 20px;
    clip-path: none;
    border-radius: 12px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .stories {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 44px;
  }
  .hero-title {
    font-size: min(8.4vw, 56px);
  }
}

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

@media (max-width: 680px) {
  .inner {
    padding: 64px var(--space-md);
  }

  .problems,
  .tasks,
  .features,
  .prices {
    grid-template-columns: 1fr;
  }

  .cta {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.05rem;
  }

  .cta-band-text {
    font-size: 1.1rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .lead-form .row {
    grid-template-columns: 1fr;
  }

  /* モバイルでは外側の余白と二重に効いて入力欄が狭くなるため詰める */
  .form-card {
    padding: var(--space-lg) var(--space-md);
  }
}

@media (max-width: 560px) {
  .quiz-item {
    grid-template-columns: auto 1fr;
  }
  .quiz-buttons {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .quiz-result {
    flex-direction: column;
  }
  .stamp {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .brand-sub {
    display: none;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .header-cta {
    padding: 8px 14px;
    font-size: 13px;
  }
}
