:root {
  --bg: #fafaf7;
  --fg: #1f2933;
  --muted: #6b7280;
  --accent: #e8590c;
  --accent-soft: #fff1e6;
  --card: #ffffff;
  --border: #e5e7eb;
  --radius: 14px;
  --max-width: 880px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.8;
}

header.site-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

header.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

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

nav a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover { color: var(--accent); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 16px 40px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(232, 89, 12, 0.25);
}

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

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer.site-footer a {
  color: var(--muted);
  margin: 0 10px;
  text-decoration: none;
}

footer.site-footer a:hover { color: var(--accent); }

h2 { font-size: 1.4rem; margin-top: 40px; }

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 32px;
}

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

.q-block { display: none; }
.q-block.active { display: block; }

.q-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

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

#result-block { display: none; }

.result-type {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.result-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 32px;
}

.reco-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  background: var(--card);
}

.reco-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.pd-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

.ad-disclosure {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin: 24px 0;
  padding: 10px;
  background: var(--accent-soft);
  border-radius: 10px;
}

.retry-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
