:root {
  --bg: #0b0d12;
  --surface: #141820;
  --surface-2: #1c2230;
  --text: #e9edf3;
  --text-dim: #9aa3b2;
  --accent: #f5c542;
  --accent-2: #ffd86b;
  --investor: #f5c542;
  --consumer: #4a5063;
  --border: #2a3244;
  --ok: #6cf0a6;
  --ng: #ff7a7a;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hidden {
  display: none !important;
}

.screen {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========= スタート画面 ========= */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 20px;
}

.accent {
  color: var(--accent);
}

.hero__lead {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 32px;
}

.hero__meta {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  color: #1a1300;
}

.btn--primary:hover {
  background: var(--accent-2);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--surface);
}

.about {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.about__title {
  font-size: 16px;
  margin-bottom: 12px;
}

.about__list {
  list-style: none;
}

.about__list li {
  padding: 8px 0 8px 22px;
  position: relative;
  color: var(--text-dim);
  font-size: 14px;
}

.about__list li::before {
  content: "▶";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 10px;
  top: 14px;
}

/* ========= 設問画面 ========= */
.progress {
  margin-bottom: 28px;
}

.progress__bar {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--progress, 0%);
  background: var(--accent);
  transition: width 0.3s ease;
}

.progress__label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
  text-align: right;
}

.question {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.question__axis {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.question__title {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 700;
  margin-bottom: 24px;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
  line-height: 1.6;
}

.choice:hover {
  border-color: var(--accent);
  background: #202736;
}

.choice.selected {
  border-color: var(--accent);
  background: #2a2410;
}

.quiz-nav {
  display: flex;
  justify-content: flex-start;
}

/* ========= 結果画面 ========= */
.result-hero {
  text-align: center;
  padding: 32px 0 24px;
}

.result-hero__type {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
}

.result-hero__score {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.result-hero__score span {
  font-size: 32px;
  color: var(--accent);
  font-weight: 800;
}

.meter {
  width: 100%;
  max-width: 320px;
  height: 10px;
  background: var(--surface-2);
  border-radius: 5px;
  margin: 12px auto 0;
  overflow: hidden;
}

.meter__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--consumer), var(--accent));
  width: 0%;
  transition: width 0.8s ease;
}

.result-summary,
.result-breakdown,
.result-advice,
.result-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
}

.result-summary h3,
.result-breakdown h3,
.result-advice h3,
.result-cta h3 {
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--accent);
}

.result-summary p {
  color: var(--text);
  font-size: 15px;
}

.axes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.axis {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.axis__name {
  font-size: 13px;
  color: var(--text-dim);
}

.axis__bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}

.axis__fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.8s ease;
}

.axis__score {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  text-align: right;
}

.result-advice ul {
  list-style: none;
}

.result-advice li {
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 14px;
}

.result-advice li:last-child {
  border-bottom: none;
}

.result-advice li::before {
  content: "→";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.result-cta p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 16px;
}

.result-cta strong {
  color: var(--text);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.footer {
  margin-top: 48px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

/* ========= モバイル微調整 ========= */
@media (max-width: 480px) {
  .app { padding: 20px 16px 48px; }
  .question { padding: 20px; }
  .axis { grid-template-columns: 96px 1fr 40px; font-size: 12px; }
  .result-actions { flex-direction: column; }
  .result-actions .btn { width: 100%; }
}
