/* 翻訳ポテンシャル診断 — 清潔ベース+赤ペン要素(LP v3デザイン方針準拠) */
:root {
  --red: #DC2626;
  --red-dark: #B91C1C;
  --ink: #1F2937;
  --paper: #FAF7F0;
  --card: #FFFFFF;
  --gray: #6B7280;
  --line: #E5E7EB;
  --blue: #2563EB;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  font-size: 16px;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 24px 20px 64px; }

/* 共通パーツ */
.badge {
  display: inline-block; background: #FEF2F2; color: var(--red);
  border: 1px solid #FECACA; border-radius: 999px;
  padding: 4px 14px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
h1 { font-size: 26px; line-height: 1.5; font-weight: 900; margin: 18px 0 12px; }
h2 { font-size: 20px; line-height: 1.6; font-weight: 800; margin: 32px 0 12px; }
.sub { color: var(--gray); font-size: 15px; }
.redline { color: var(--red); font-weight: 800; }
.underline-red {
  background: linear-gradient(transparent 70%, #FECACA 70%);
  font-weight: 800;
}

.btn {
  display: block; width: 100%; text-align: center;
  background: var(--red); color: #fff; text-decoration: none;
  font-size: 17px; font-weight: 800; letter-spacing: .02em;
  padding: 16px 20px; border: none; border-radius: 12px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 38, 38, .3);
  transition: transform .08s ease, background .15s ease;
  min-height: 56px;
}
.btn:active { transform: scale(.98); }
.btn:hover { background: var(--red-dark); }
.btn.blue { background: var(--blue); box-shadow: 0 4px 14px rgba(37, 99, 235, .3); }
.btn.blue:hover { background: #1D4ED8; }
.btn-note { text-align: center; color: var(--gray); font-size: 13px; margin-top: 10px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 20px; margin: 16px 0;
}

/* 画面切り替え */
.screen { display: none; }
.screen.active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ランディング */
.hero-icon { font-size: 44px; }
.trust { display: flex; gap: 8px; justify-content: center; margin: 16px 0 24px; flex-wrap: wrap; }
.trust span {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 12px; font-size: 13px; color: var(--gray); font-weight: 600;
}

/* 4タイプ簡易紹介 */
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.type-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 10px; font-size: 14px; font-weight: 700; text-align: center;
}

/* クイズ */
.progress-wrap { margin: 8px 0 20px; }
.progress-label { font-size: 13px; color: var(--gray); font-weight: 700; margin-bottom: 6px; }
.progress-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--red); border-radius: 999px; transition: width .3s ease; }
.q-text { font-size: 19px; font-weight: 800; line-height: 1.7; margin-bottom: 18px; }
.q-axis { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.opt {
  display: block; width: 100%; text-align: left;
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: 15px 16px; margin-bottom: 12px; font-size: 15.5px; line-height: 1.6;
  cursor: pointer; font-family: inherit; color: var(--ink);
  transition: border-color .12s ease, background .12s ease;
  min-height: 52px;
}
.opt:hover { border-color: #FCA5A5; }
.opt.selected { border-color: var(--red); background: #FEF2F2; font-weight: 700; }
.back-link {
  display: inline-block; margin-top: 6px; color: var(--gray);
  font-size: 14px; background: none; border: none; cursor: pointer; font-family: inherit;
  text-decoration: underline; padding: 8px;
}

/* 集計中 */
.calc { text-align: center; padding: 80px 0; }
.spinner {
  width: 46px; height: 46px; margin: 0 auto 20px;
  border: 4px solid var(--line); border-top-color: var(--red);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 結果ページ */
.result-header { text-align: center; padding: 8px 0 4px; }
.result-icon { font-size: 56px; line-height: 1; }
.result-label { font-size: 14px; color: var(--gray); font-weight: 700; margin-top: 10px; }
.result-type { font-size: 28px; font-weight: 900; margin-top: 4px; }
.quote {
  border-left: 4px solid var(--red); background: #fff;
  padding: 16px 18px; border-radius: 0 12px 12px 0; margin: 16px 0;
}
.gift-item { border-top: 1px solid var(--line); padding: 14px 0; }
.gift-item:first-of-type { border-top: none; }
.gift-stars { color: var(--red); font-weight: 800; font-size: 13px; }
.gift-title { font-weight: 800; font-size: 15.5px; margin: 2px 0 4px; }
.gift-desc { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* シェア */
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.share-btn {
  display: block; text-align: center; text-decoration: none;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; min-height: 46px;
}
.share-btn:hover { border-color: var(--gray); }
.retry { display: block; text-align: center; margin-top: 28px; color: var(--gray); font-size: 14px; }
footer { text-align: center; color: var(--gray); font-size: 12px; margin-top: 48px; line-height: 2; }
footer a { color: var(--gray); }
