/* ============================================================
   広告費ムダ診断AI — style.css
   Design: Flat SaaS Product UI  (Stripe / Vercel / Notion)
   Rule: 6 colors only · no gradient · no shadow · no navy BG
   Colors: #2563EB · #F8FAFC · #FFFFFF · #0F172A · #E2E8F0 · #EF4444
   ============================================================ */

/* ── TOKENS ── */
:root {
  --blue:    #2563EB;
  --blue-bg: #EFF6FF;   /* blue tint for highlights — derived, not new */
  --bg:      #F8FAFC;
  --card:    #FFFFFF;
  --text:    #0F172A;
  --text-2:  #64748B;   /* secondary text — tint of --text */
  --text-3:  #94A3B8;
  --border:  #E2E8F0;
  --red:     #EF4444;
  --red-bg:  #FEF2F2;

  --font: 'Noto Sans JP', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --r:    8px;
  --r-lg: 12px;
  --r-xl: 16px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
input, select, textarea, button { font-family: var(--font); }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ── */
.container,
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.pc-only { display: inline; }

/* ── ANIMATIONS ── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse   { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  height: 56px;
}
.header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-mark { color: var(--blue); }
.logo-text em { color: var(--blue); font-style: normal; }
.header-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}

/* ============================================================
   HERO  — light BG, no navy
   ============================================================ */
.hero {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 72px 20px 64px;  /* generous top — main entry point */
}
.hero-bg-grid { display: none; }
.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid #BFDBFE;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.hero-title {
  font-size: 32px;          /* h1 — spec */
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero-title em { font-style: normal; color: var(--blue); }
.title-accent { color: var(--blue); }
.title-accent::after { display: none; }

.hero-body {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  row-gap: 12px;
}
.hm-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px;
}
.hm-item:first-child { padding-left: 0; }
.hm-num {
  font-family: var(--mono);
  font-size: 14px;      /* 補助情報 — 仕様14px */
  font-weight: 600;
  color: var(--text-2); /* グレー寄り */
  line-height: 1;
  letter-spacing: -0.01em;
}
.hm-label { font-size: 11px; color: var(--text-3); }
.hm-divider { width: 1px; height: 24px; background: var(--border); }

/* ============================================================
   FORM SECTION
   ============================================================ */
.form-section    { padding: 80px 0; }

/* ── Card ── */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.form-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg);   /* ①ページ背景と同じ — カード本体の白より沈む */
}
.form-step-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid #BFDBFE;
  padding: 3px 10px;
  border-radius: 99px;
  flex-shrink: 0;
}
.form-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.form-card-sub { font-size: 12px; color: var(--text-3); }

.field-group {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.field-group:last-of-type { border-bottom: none; }

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.field-required {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid #FECACA;
  padding: 1px 7px;
  border-radius: 99px;
}
.field-optional {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 99px;
}
.field-hint {
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg);
  border-left: 3px solid var(--border);
  padding: 10px 14px;
  margin-bottom: 12px;
  line-height: 1.65;
  border-radius: 0 var(--r) var(--r) 0;
}
.field-hint strong { color: var(--text); }
.field-error {
  font-size: 13px;
  color: var(--red);
  margin-top: 8px;
  display: none;
  padding: 8px 12px;
  background: var(--red-bg);
  border: 1px solid #FECACA;
  border-radius: var(--r);
}

/* URL input */
.url-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.url-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #DBEAFE;
}
.url-prefix {
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  background: var(--bg);
  border-right: 1px solid var(--border);
  height: 44px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  user-select: none;
}
.url-input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--mono);
  color: var(--text);
  outline: none;
  min-width: 0;
}
.url-status { padding: 0 10px; font-size: 13px; flex-shrink: 0; }
.url-status.ok   { color: #16A34A; }
.url-status.fail { color: var(--red); }

/* Number inputs */
.num-wrap { display: flex; align-items: center; max-width: 280px; }
.num-input {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--r) 0 0 var(--r);
  background: var(--card);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  width: 170px;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.num-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #DBEAFE;
  z-index: 1;
  position: relative;
}
.num-input:focus + .num-unit { border-color: var(--blue); }
.num-unit {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: border-color 0.15s;
}
.spend-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.preset-btn {
  padding: 4px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.preset-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-bg);
}

/* Media tiles */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.media-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  user-select: none;
}
.media-tile:hover { border-color: var(--blue); background: var(--blue-bg); }
.media-tile.selected { border-color: var(--blue); background: var(--blue-bg); }
.media-tile input { display: none; }
.mt-icon { font-size: 20px; flex-shrink: 0; }
.mt-body { flex: 1; min-width: 0; }
.mt-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.mt-sub  { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.mt-check {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.media-tile.selected .mt-check { background: var(--blue); border-color: var(--blue); }
.media-tile.selected .mt-check::after {
  content: '';
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
.media-tile.selected .mt-name { color: var(--blue); }

/* Select */
.select-input {
  width: 100%;
  padding: 11px 36px 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.select-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #DBEAFE;
}

/* Agency toggle */
.agency-toggle { display: flex; gap: 10px; }
.toggle-tile {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  user-select: none;
}
.toggle-tile input { display: none; }
.toggle-tile:hover { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); }
.toggle-tile.selected { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); font-weight: 600; }

/* Submit area */
.form-submit-area {
  padding: 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

/* ── PRIMARY BUTTON ── */
.btn-diagnose,
.btn-diagnose-step2,
.btn-step2-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.15s;
}
.btn-diagnose:hover,
.btn-diagnose-step2:hover,
.btn-step2-submit:hover { background: #1d4ed8; }
.btn-diagnose:active { background: #1e40af; }

.btn-main-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 24px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.15s;
  text-decoration: none;
  margin-bottom: 8px;
}
.btn-main-cta:hover { background: #1d4ed8; text-decoration: none; color: #fff; }

.form-trust { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.trust-chip {
  font-size: 12px;
  color: var(--text-3);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 99px;
}

.btn-step2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.btn-step2:hover { background: #1d4ed8; }

.btn-skip {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 13px;
  font-family: var(--font);
  text-decoration: underline;
  padding: 8px;
  text-align: center;
}

/* ============================================================
   LOADING
   ============================================================ */
.loading-section { padding: 80px 0; }
.loading-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}
/* top progress bar */
.loading-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
}
.loading-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 3px;
  background: var(--blue);
  animation: shimmer 1.6s ease infinite;
}
.loading-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.loading-spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.loading-title { font-size: 15px; font-weight: 600; color: var(--text); }
.loading-url   { font-family: var(--mono); font-size: 12px; color: var(--text-3); word-break: break-all; margin-top: 2px; }

.loading-steps { display: flex; flex-direction: column; gap: 8px; }
.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  opacity: 0.4;
  transition: opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.loading-step.active {
  opacity: 1;
  border-color: var(--blue);
  background: var(--card);
  box-shadow: 0 0 0 3px #DBEAFE;
}
.loading-step.done {
  opacity: 1;
  border-color: #BBF7D0;
  background: #F0FDF4;
}
.ls-check {
  font-size: 13px;
  font-weight: 700;
  color: #16A34A;
  width: 16px;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.loading-step.done .ls-check { opacity: 1; transform: scale(1); }
.ls-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.2s, opacity 0.2s, width 0.2s;
}
.loading-step.active .ls-dot { background: var(--blue); animation: pulse 1s infinite; }
.loading-step.done   .ls-dot { opacity: 0; width: 0; overflow: hidden; }
.ls-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.loading-step.active .ls-text { color: var(--blue); font-weight: 600; }
.loading-step.done   .ls-text { color: #16A34A; }
.ls-status { font-size: 12px; color: var(--text-3); }

/* ============================================================
   RESULTS — shared utilities
   ============================================================ */
.results-section { padding: 80px 0; }

/* section spacing */
.results-section > .container-sm > * + *,
.results-section > .container > * + * { margin-top: 24px; }

/* Standard card */
.section-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
}
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.section-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid #BFDBFE;
  padding: 3px 9px;
  border-radius: 99px;
  flex-shrink: 0;
  margin-top: 2px;
}
.section-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.section-sub   { font-size: 13px; color: var(--text-3); }

/* ============================================================
   STEP1 RESULTS
   ============================================================ */

/* Waste hero — the main result card */
.waste-hero {
  background: #0F172A;   /* 重要カード — 3層目 */
  border: none;
  border-radius: var(--r-xl);
  padding: 40px 24px;
  text-align: center;
}
.wh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.12);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.wh-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  margin-bottom: 10px;
}
/* 結果金額 — 40px / tabular-nums */
.wh-amount {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.wh-year {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,.45);
  margin-bottom: 12px;
}
.wh-desc {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

/* S1 KPI Grid */
.s1-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;  /* カード間 24px 統一 */
}

/* KPI Cards — shared */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  border-top-width: 3px;
  transition: border-color 0.12s;
}
.kpi-card.good { border-top-color: #16A34A; }
.kpi-card.warn { border-top-color: #D97706; }
.kpi-card.bad  { border-top-color: var(--red); }
.kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 8px;
}
/* 指標カードの数字 — 28px / tabular-nums で桁揃え */
.kpi-value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
  animation: countUp 0.4s ease;
}
.kpi-card.good .kpi-value { color: #16A34A; }
.kpi-card.warn .kpi-value { color: #D97706; }
.kpi-card.bad  .kpi-value { color: var(--red); }
.kpi-bench { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.kpi-status {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid transparent;
}
.kpi-card.good .kpi-status { color: #16A34A; background: #F0FDF4; border-color: #BBF7D0; }
.kpi-card.warn .kpi-status { color: #D97706; background: #FFFBEB; border-color: #FDE68A; }
.kpi-card.bad  .kpi-status { color: var(--red); background: var(--red-bg); border-color: #FECACA; }
.kpi-explain {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
  line-height: 1.6;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* S1 LP Card */
.s1-lp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
}
.s1-lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.s1-lp-left { flex: 1; }
.s1-lp-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.s1-lp-score-num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.s1-lp-verdict { font-size: 13px; color: var(--text-2); }
.s1-lp-donut-wrap { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.s1-lp-donut-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.s1-lp-donut-inner span {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.s1-lp-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.lp-point-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
}
.lp-point-item.critical { background: var(--red-bg);  color: var(--red);   border-color: #FECACA; }
.lp-point-item.warn     { background: #FFFBEB;         color: #D97706;      border-color: #FDE68A; }
.lp-point-item.good     { background: #F0FDF4;         color: #16A34A;      border-color: #BBF7D0; }
.lp-point-icon { font-size: 14px; flex-shrink: 0; }

/* STEP2 teaser */
.step2-teaser {
  background: var(--blue-bg);
  border: 1px solid #BFDBFE;
  border-radius: var(--r-xl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.s2t-inner { display: flex; align-items: flex-start; gap: 12px; flex: 1; }
.s2t-icon  { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.s2t-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.s2t-sub   { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ============================================================
   STEP2 RESULTS
   ============================================================ */

/* Score hero */
.result-score-hero {
  background: #0F172A;   /* 重要カード — 3層目 */
  border: none;
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.rsh-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 8px;
}
.rsh-grade {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.grade-red  { color: #FCA5A5; }
.grade-good { color: #86EFAC; }
.rsh-desc { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 380px; }
.rsh-waste-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--r);
  font-size: 13px;
  color: #FCA5A5;
  font-weight: 600;
  max-width: fit-content;
}
.waste-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FCA5A5;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}
.rsh-right { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.score-donut-container { position: relative; width: 140px; height: 140px; }
.score-donut-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
/* THE NUMBER — 40px rule */
.score-big   { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #fff; line-height: 1; }
.score-denom { font-size: 12px; color: rgba(255,255,255,.3); }
.score-sub-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.3); letter-spacing: 0.06em; text-transform: uppercase; }

/* Savings banner */
.savings-banner {
  background: #0F172A;   /* 重要カード — 3層目 */
  border: none;
  border-radius: var(--r-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.sb-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  margin-bottom: 8px;
}
/* 結果金額 — 40px / tabular-nums */
.sb-amount {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.sb-amount-year {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  margin-bottom: 10px;
}
.sb-desc { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.65; }
.sb-chart-card {
  min-width: 180px;
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.1) !important;
}
.sb-chart-card .chart-card-title { color: rgba(255,255,255,.5) !important; }

/* Charts */
.chart-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chart-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.chart-card-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.chart-unit       { font-size: 12px; font-weight: 400; color: var(--text-3); }
.chart-card-sub   { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.chart-wrap       { height: 180px; position: relative; }
.chart-wrap-wide  { height: 200px; }
.chart-wrap-sm    { height: 160px; }

/* LP diagnosis */
.lp-score-row { display: flex; gap: 24px; align-items: flex-start; }
.lp-score-donut-wrap { position: relative; width: 108px; height: 108px; flex-shrink: 0; }
.lp-score-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.lp-score-num   { font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.lp-score-denom { font-size: 11px; color: var(--text-3); }
.lp-score-detail { flex: 1; }
.lp-score-label   { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.lp-score-verdict { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 16px; line-height: 1.5; }
.lp-factors { display: flex; flex-direction: column; gap: 8px; }
.lp-factor-row { display: flex; align-items: center; gap: 10px; }
.lf-name  { font-size: 13px; color: var(--text-2); min-width: 120px; }
.lf-bar-wrap { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.lf-bar { height: 100%; border-radius: 2px; transition: width 1s ease; }
.lf-score { font-size: 12px; font-weight: 600; min-width: 18px; text-align: right; }

/* ROAS card */
.roas-card {
  border-radius: var(--r-lg);
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--card);
}
.roas-card.good { border-color: #BBF7D0; background: #F0FDF4; }
.roas-card.warn { border-color: #FDE68A; background: #FFFBEB; }
.roas-card.bad  { border-color: #FECACA; background: var(--red-bg); }
.roas-row { display: flex; align-items: center; gap: 24px; margin-bottom: 14px; flex-wrap: wrap; }
.roas-divider { width: 1px; height: 44px; background: var(--border); flex-shrink: 0; }
.roas-label { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.roas-value { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1; }
.roas-status { font-size: 13px; font-weight: 600; margin-top: 4px; }
.roas-card.good .roas-status { color: #16A34A; }
.roas-card.warn .roas-status { color: #D97706; }
.roas-card.bad  .roas-status { color: var(--red); }
.roas-bench { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--text); }
.roas-bench-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.roas-formula {
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--r);
  margin-bottom: 10px;
  font-family: var(--mono);
  line-height: 1.6;
}
.roas-alert {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  padding: 10px 14px;
  background: var(--red-bg);
  border-radius: var(--r);
  border: 1px solid #FECACA;
}

/* Fee card */
.fee-card { border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--border); background: var(--card); }
.fee-card.good { border-color: #BBF7D0; background: #F0FDF4; }
.fee-card.bad  { border-color: #FECACA; background: var(--red-bg); }
.fee-row { display: flex; align-items: center; gap: 24px; margin-bottom: 14px; flex-wrap: wrap; }
.fee-label { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.fee-value { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.fee-value.bad-text  { color: var(--red); }
.fee-value.good-text { color: #16A34A; }
.fee-bench { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--text); }
.fee-alert { font-size: 13px; font-weight: 600; color: var(--red); padding: 10px 14px; background: var(--red-bg); border-radius: var(--r); border: 1px solid #FECACA; }
.fee-ok    { font-size: 13px; font-weight: 600; color: #16A34A; padding: 10px 14px; background: #F0FDF4; border-radius: var(--r); border: 1px solid #BBF7D0; }

/* Improvements */
.improvements-list { display: flex; flex-direction: column; gap: 10px; }
.improvement-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  border-left-width: 3px;
}
.improvement-item.critical { border-left-color: var(--red);   background: var(--red-bg); border-color: #FECACA; }
.improvement-item.major    { border-left-color: #D97706;      background: #FFFBEB;       border-color: #FDE68A; }
.improvement-item.minor    { border-left-color: var(--blue);  background: var(--blue-bg); border-color: #BFDBFE; }
.imp-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.imp-content { flex: 1; }
.imp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 5px;
  border: 1px solid transparent;
}
.improvement-item.critical .imp-badge { color: var(--red); background: var(--red-bg); border-color: #FECACA; }
.improvement-item.major    .imp-badge { color: #D97706;    background: #FFFBEB;       border-color: #FDE68A; }
.improvement-item.minor    .imp-badge { color: var(--blue); background: var(--blue-bg); border-color: #BFDBFE; }
.imp-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.imp-body  { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* Disclaimer */
.disclaimer-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.disclaimer-icon  { font-size: 18px; flex-shrink: 0; }
.disclaimer-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.disclaimer-body  { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }
.disclaimer-items { display: flex; flex-wrap: wrap; gap: 6px; }
.disclaimer-items span {
  font-size: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-3);
  padding: 3px 10px;
  border-radius: 99px;
}

/* ============================================================
   CTA BLOCK
   ============================================================ */
.main-cta-block {
  background: #0F172A;   /* 重要カード — 3層目 */
  border: none;
  border-radius: var(--r-xl);
  padding: 48px 32px;
  text-align: center;
}
.mcta-inner { }
.mcta-limit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}
.mcta-limit-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #86EFAC;
  animation: pulse 2s infinite;
}
.mcta-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.mcta-title .highlight { color: #FCA5A5; }
.mcta-sub {
  font-size: 15px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.mcta-what {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.mcta-what-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  padding: 8px 14px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.mcta-note { font-size: 12px; color: rgba(255,255,255,.25); margin-top: 8px; }

/* ============================================================
   LEAD FORM
   ============================================================ */
.lead-form-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.lf-left {
  background: #0F172A;   /* 重要カード — 3層目 */
  padding: 28px 24px;
  border-right: none;
}
.lf-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #93C5FD;
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(37,99,235,.35);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.lf-title { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.02em; }
.lf-body  { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 14px; }
.lf-list  { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lf-list li { font-size: 13px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 8px; }
.lf-list li::before { content: '✓'; color: #86EFAC; font-weight: 700; flex-shrink: 0; }
.lf-right { padding: 28px 24px; }
.lf-form-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 18px; }
.lf-field { margin-bottom: 12px; }
.lf-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.lf-req   { font-size: 11px; color: var(--red); background: var(--red-bg); border: 1px solid #FECACA; padding: 1px 7px; border-radius: 99px; margin-left: 5px; font-weight: 600; }
.lf-input {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 14px; color: var(--text);
  background: var(--card); outline: none;
  font-family: var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lf-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #DBEAFE; }
.lf-error {
  font-size: 13px; color: var(--red);
  background: var(--red-bg); border: 1px solid #FECACA;
  padding: 8px 12px; border-radius: var(--r);
  margin-bottom: 10px; display: none;
}
.btn-lf-submit {
  width: 100%; height: 56px; padding: 0 24px;
  background: var(--blue); color: #fff;
  border: none; border-radius: var(--r-lg);
  font-size: 14px; font-weight: 700;
  font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
}
.btn-lf-submit:hover { background: #1d4ed8; }
.lf-note { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 8px; }

/* Retry */
.retry-area { text-align: center; padding: 16px 0 8px; }
.btn-retry {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-family: var(--font);
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 99px;
  transition: border-color 0.12s, color 0.12s;
}
.btn-retry:hover { border-color: var(--text-2); color: var(--text-2); }

/* ============================================================
   STICKY CTA
   ============================================================ */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #0F172A;           /* 重要カード — 他CTAと統一 */
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px 20px;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sticky-text { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.7); }
.sticky-btn {
  background: var(--blue); color: #fff;
  border: none; border-radius: var(--r-lg);
  padding: 0 20px; height: 40px;
  font-size: 13px; font-weight: 700;
  font-family: var(--font); flex-shrink: 0;
  transition: background 0.12s;
}
.sticky-btn:hover { background: #1d4ed8; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0F172A;           /* ページの締め — ヘッダーと対称的に */
  border-top: none;
  padding: 32px 20px;
}
.footer-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-logo { font-weight: 700; color: rgba(255,255,255,.8); font-size: 14px; flex-shrink: 0; }
.footer-logo em { color: #93C5FD; font-style: normal; }
.site-footer p { font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 680px) {
  .hero { padding: 48px 20px 48px; }
  .hero-title { font-size: 26px; }
  .hero-body  { font-size: 14px; }
  .hm-item { padding: 0 14px; } .hm-item:first-child { padding-left: 0; }
  .hm-num  { font-size: 18px; }

  .form-section    { padding: 48px 0 64px; }
  .results-section { padding: 48px 0 64px; }
  .field-group  { padding: 18px 16px; }
  .form-card-header { padding: 16px; }
  .form-submit-area { padding: 18px 16px 24px; }
  .media-grid { grid-template-columns: 1fr; }

  .s1-kpi-grid { grid-template-columns: 1fr; }
  .kpi-grid    { grid-template-columns: 1fr; }
  .chart-pair  { grid-template-columns: 1fr; }

  .result-score-hero { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .rsh-right { flex-direction: row; gap: 14px; align-items: center; }

  .savings-banner { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
  .sb-chart-card  { min-width: unset; }

  .lp-score-row { flex-direction: column; }

  .main-cta-block { padding: 28px 20px; }
  .mcta-what      { flex-direction: column; align-items: center; }

  .lead-form-block { grid-template-columns: 1fr; }
  .lf-left { border-right: none; }

  .step2-teaser { flex-direction: column; align-items: stretch; }
  .btn-step2    { width: 100%; text-align: center; }

  .agency-toggle { flex-direction: column; }
  .roas-row, .fee-row { flex-wrap: wrap; gap: 14px; }

  .sticky-cta  { flex-direction: column; gap: 8px; padding: 10px 16px; }
  .sticky-text { font-size: 13px; text-align: center; color: rgba(255,255,255,.65); }
  .sticky-btn  { width: 100%; text-align: center; }

  .pc-only { display: none; }

  .score-donut-container { width: 110px; height: 110px; }
  .score-big { font-size: 32px; }

  .section-block    { padding: 18px; }
  .disclaimer-block { flex-direction: column; }
  .disclaimer-block .disclaimer-icon { align-self: flex-start; }

  .wh-amount { font-size: 32px; }
  .kpi-value { font-size: 24px; }   /* 28px base → 24px mobile */
  .roas-value { font-size: 28px; }
  .fee-value  { font-size: 28px; }
  .sb-amount  { font-size: 32px; }
  .s1-lp-score-num { font-size: 24px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 20px; }
  .num-input  { width: 140px; }
}

/* lp-fetched-info (JS-rendered) */
.lp-fetched-info {
  margin-top: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
}
.lpi-row { font-size: 13px; color: var(--text-2); margin-bottom: 5px; line-height: 1.6; }
.lpi-key { font-weight: 700; color: var(--text-3); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
