/* ─── 和風ベージュ＋緑 デザイン ───────────────────────────── */
:root {
  --bg: #F5EFE4;
  --bg-card: #FBF7EE;
  --accent: #8FA984;
  --accent-dark: #6B8E4E;
  --accent-light: #C8D5B9;
  --text: #3A3A3A;
  --text-light: #6B6B6B;
  --insta-bg: #FAF5EB;
  --shadow: 0 4px 16px rgba(107, 142, 78, 0.08);
}

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

html, body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴシック", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.app {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px;
}

.screen { display: none; }
.screen.active { display: block; }

/* ─── スタート画面 ─────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 40px 0 60px;
}

.hero-emoji {
  font-size: 80px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 2;
}

.hero-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 20px;
  line-height: 1.8;
}

/* ─── ボタン ─────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent-dark);
  color: white;
  border: none;
  padding: 18px 56px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s;
  font-family: inherit;
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(107, 142, 78, 0.15);
}

.btn-secondary {
  display: block;
  width: 100%;
  background: white;
  color: var(--accent-dark);
  border: 2px solid var(--accent-dark);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 12px;
  font-family: inherit;
}

.btn-text {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--text-light);
  border: none;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}

.btn-back {
  display: block;
  background: transparent;
  color: var(--text-light);
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 16px;
  font-family: inherit;
}
.btn-back:disabled {
  visibility: hidden;
}

/* ─── 質問画面 ─────────────────────────────────────────── */
.quiz-header {
  margin-bottom: 32px;
  padding-top: 12px;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--accent-light);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-dark);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
  min-width: 50px;
  text-align: right;
}

.quiz-body {
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.q-text {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 28px;
  min-height: 80px;
}

.q-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-answer {
  background: white;
  color: var(--text);
  border: 2px solid var(--accent-light);
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.1s, background 0.1s;
}
.btn-answer:active {
  background: var(--accent-light);
  border-color: var(--accent);
}

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

.result-overline {
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.result-emoji {
  font-size: 64px;
  margin-bottom: 12px;
  font-weight: normal;
}

.result-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.result-subtype {
  font-size: 14px;
  color: var(--text-light);
}

.result-card {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.main-card {
  border: 2px solid var(--accent);
}

.card-label {
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.card-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.card-tagline {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.card-section {
  margin-bottom: 20px;
}

.card-section.compact { margin-bottom: 12px; }

.card-section h4 {
  font-size: 14px;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.card-section p, .card-section ul {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  padding-left: 15px;
}

.card-section ul {
  list-style: none;
}

.card-section li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.card-section li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.foods {
  background: var(--accent-light);
  padding: 12px 16px !important;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 15px;
}

.card-message {
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

/* ─── 共通フッター ────────────────────────────────────── */
.footer-cta {
  background: var(--insta-bg);
  padding: 28px 24px;
  border-radius: 16px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.footer-cta h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-cta > p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 16px;
}

.cta-buttons {
  margin-top: 20px;
}

.cta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: white;
  border: 2px solid var(--accent-light);
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.1s, background 0.1s, transform 0.1s;
}

.cta-card:active {
  background: var(--accent-light);
  border-color: var(--accent);
  transform: translateY(1px);
}

.cta-emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.cta-text {
  flex: 1;
  font-weight: 600;
}

.cta-text small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: 4px;
}

/* ─── 結果アクション ──────────────────────────────────── */
.result-actions {
  margin-top: 24px;
  padding: 0 4px;
}

.disclaimer {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-top: 24px;
  line-height: 1.7;
}

/* ─── スマホ調整 ───────────────────────────────────────── */
@media (max-width: 380px) {
  .hero-title { font-size: 24px; }
  .q-text { font-size: 17px; }
  .result-title { font-size: 24px; }
  .card-name { font-size: 19px; }
}
