/* =================================================================
   enblue 高圧 LP v5 — 案C トンマナ取り込み
   - 緑基調 (深い #1f6b4a) + ベージュグレー背景
   - 落ち着いた・上品な雰囲気、太字 Noto Sans JP
   - 案 C の構造を踏襲しつつ、enblue ロゴ + 既存アンケート 3 問 + L-track 連携
   ================================================================= */

:root {
  /* 案 C のカラーパレットを踏襲 */
  --c-bg-page: #e7e9e5;       /* 外側ベースのグレーベージュ */
  --c-bg-card: #eef3f0;       /* LP インナーカードの薄緑グレー */
  --c-surface: #ffffff;       /* 白サーフェス */
  --c-primary: #1f6b4a;       /* 深い緑 */
  --c-primary-dark: #15543a;
  --c-text: #1b2620;          /* ほぼ黒 */
  --c-sub: #586259;           /* グレー */
  --c-accent-bg: #e1ede7;     /* 薄い緑 */
  --c-border: #d8e3dd;
  --c-line: #00c853;

  --radius: 10px;
  --radius-lg: 16px;

  --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;

  --shadow-btn: 0 8px 18px rgba(31, 107, 74, 0.28);
  --shadow-card: 0 6px 24px -8px rgba(20, 30, 24, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-weight: 500;
  color: var(--c-text);
  background: var(--c-bg-page);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--c-primary); }

/* =================================================================
   LP コンテナ (スマホ幅で 1 カラム、PC でセンタリング)
   ================================================================= */
.lp {
  max-width: 540px;
  margin: 0 auto;
  background: var(--c-bg-card);
  min-height: 100vh;
}

@media (min-width: 541px) {
  body { padding: 32px 16px; }
  .lp {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px -15px rgba(20, 30, 24, 0.15);
  }
}

/* =================================================================
   BRAND (ヘッダー)
   ================================================================= */
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px 12px;
  background: var(--c-surface);
}
.brand__logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}
.brand__sep {
  width: 1px;
  height: 16px;
  background: var(--c-border);
}
.brand__service {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-sub);
  letter-spacing: 0.05em;
  margin-left: auto;
}

/* =================================================================
   INTRO (Hero 相当)
   ================================================================= */
.intro {
  padding: 28px 22px 32px;
  background: var(--c-bg-card);
}

.intro__kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.intro__title {
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.4;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.intro__lead {
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-sub);
  margin-bottom: 24px;
}
.intro__lead strong {
  color: var(--c-primary-dark);
  font-weight: 800;
}

/* メインビジュアル (Higgsfield 生成写真) */
.intro__visual {
  margin-bottom: 24px;
  height: 200px;
  border-radius: var(--radius);
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.intro__visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,30,24,.18) 100%);
  pointer-events: none;
}

/* =================================================================
   BUTTONS
   ================================================================= */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  padding: 17px;
  border: none;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font);
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-btn);
  transition: filter .15s ease, transform .1s ease;
}
.btn-primary:hover { filter: brightness(1.04); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary__arrow {
  font-weight: 800;
  font-size: 18px;
  display: inline-block;
  transition: transform .15s ease;
}
.btn-primary:hover .btn-primary__arrow { transform: translateX(2px); }

/* =================================================================
   SURVEY (進捗バー + 質問)
   ================================================================= */
.survey {
  padding: 16px 22px 28px;
}

.survey__progress-wrap {
  margin-bottom: 18px;
}
.survey__progress-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.survey__progress-step {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.04em;
}
.survey__progress-note {
  font-size: 10px;
  color: var(--c-sub);
}
.survey__progress {
  height: 6px;
  background: var(--c-accent-bg);
  border-radius: 99px;
  overflow: hidden;
}
.survey__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--c-primary);
  border-radius: 99px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

.survey__content { /* nothing — children handle padding */ }

/* 質問画面 */
.q-screen { display: none; }
.q-screen.is-active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.q-back {
  border: none; background: none; cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  color: var(--c-sub);
  padding: 0;
  margin-bottom: 14px;
  font-weight: 600;
}
.q-back:hover { color: var(--c-primary); }

.q-text {
  font-size: clamp(19px, 5vw, 22px);
  line-height: 1.45;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.q-hint {
  font-size: 12px;
  color: var(--c-sub);
  margin-bottom: 20px;
  line-height: 1.6;
}

.q-options {
  display: flex; flex-direction: column; gap: 11px;
}

.q-option {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--c-accent-bg);
  border-radius: var(--radius);
  background: var(--c-surface);
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  text-align: left;
  transition: all .15s ease;
  letter-spacing: 0.02em;
}
.q-option:hover {
  border-color: var(--c-primary);
  background: var(--c-accent-bg);
}
.q-option:active {
  transform: scale(0.99);
}
.q-option.is-selected {
  border-color: var(--c-primary);
  background: var(--c-accent-bg);
}
.q-option__arrow {
  color: var(--c-primary);
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}

.q-tap-hint {
  text-align: center;
  margin-top: 18px;
  font-size: 11px;
  color: var(--c-sub);
}

/* =================================================================
   RESULT SCREEN (完了画面)
   ================================================================= */
.result-screen {
  padding: 16px 0 8px;
}
.result-screen__icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--c-accent-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-primary);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
}
.result-screen__thanks {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.result-screen__sub {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-sub);
  margin-bottom: 24px;
}
.result-screen__sub strong {
  color: var(--c-text);
  font-weight: 800;
}

.result-summary {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 22px;
}
.result-summary__head {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.result-summary__list {
  list-style: none;
}
.result-summary__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--c-border);
  font-size: 13px;
}
.result-summary__list li:last-child { border-bottom: none; }
.result-summary__k {
  font-weight: 700;
  color: var(--c-sub);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.result-summary__v {
  font-weight: 800;
  color: var(--c-text);
  text-align: right;
}

.cta-line {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--c-line);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(0, 200, 83, 0.28);
  transition: filter .15s ease, transform .1s ease;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.cta-line:hover { filter: brightness(1.04); }
.cta-line:active { transform: translateY(1px); }
.cta-line__icon { width: 24px; height: 24px; flex-shrink: 0; }

.result-screen__note {
  text-align: center;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--c-sub);
}

/* =================================================================
   FOOTER (リンクのみ)
   ================================================================= */
.lp-footer {
  background: var(--c-surface);
  padding: 22px 20px;
  text-align: center;
  border-top: 1px solid var(--c-border);
}
.lp-footer__links {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 22px;
}
.lp-footer__links a {
  color: var(--c-sub);
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}
.lp-footer__links a:hover { color: var(--c-primary); text-decoration: underline; }
