body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

.page {
  width: min(960px, 92%);
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* ヘッダー */
.hero {
  padding: 48px 24px;
  background: linear-gradient(135deg, #6366f1, #22c55e);
  color: white;
  border-radius: 24px;
  margin-bottom: 24px;
}

.label {
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin: 12px 0;
}

h2 {
  margin-top: 0;
  font-size: 20px;
}

.catch {
  font-size: 18px;
  opacity: 0.9;
}

/* カード */
.card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* グリッド */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* リスト */
ul {
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* ネガティブ */
.danger {
  background: #fff5f5;
  border-left: 4px solid #ef4444;
}

/* アフィリエイト */
.affiliate-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.affiliate-title {
  font-weight: 700;
  font-size: 18px;
}

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #111827;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

/* ボタンを大きく */
button.button {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  margin-top: 30px;
}

/* フォーム全体中央＋幅調整 */
#testForm {
  max-width: 720px;
  margin: 0 auto;
}

.question-block {
  padding: 28px 0;
  border-bottom: 1px solid #e5e7eb;
}

.question-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.8;
}

.scale {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.scale label {
  cursor: pointer;
}

.scale input {
  display: none;
}

.scale span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: white;
  font-weight: 700;
  font-size: 16px;
}

.scale input:checked + span {
  background: #111827;
  color: white;
  border-color: #111827;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  max-width: 340px;
  color: #6b7280;
  margin: 10px auto 0;
  font-size: 14px;
}

.optional-profile {
  margin-top: 36px;
  padding: 24px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.profile-note {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 20px;
}

.select-label {
  display: block;
  font-weight: 700;
  margin-bottom: 16px;
}

.select-label select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: white;
}

.text-input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: white;
  box-sizing: border-box;
}

.big-score {
  font-size: 48px;
  font-weight: 800;
  margin: 10px 0;
}

.mid-score {
  font-size: 32px;
  font-weight: 800;
  margin: 10px 0;
}

.big-score span,
.mid-score span {
  color: #4f46e5;
}

.hero-button {
  margin-top: 24px;
  background: white;
  color: #111827;
}

.secondary-button {
  background: #4f46e5;
  color: white;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.note-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.outline-button {
  background: white;
  color: #111827;
  border: 1px solid #d1d5db;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;

  margin-bottom: 28px;
}

.type-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
}

.type-card h2 {
  margin-bottom: 10px;
}

.type-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #4f46e5;
  margin-bottom: 8px;
}

/* ヘッダー */
header {
  background-color: #4f46e5; /* 青紫色 */
  padding: 20px 0;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header .logo {
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
}

header ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

header ul li {
  margin-left: 20px;
}

header ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

header ul li a:hover {
  color: #d1d5db;
}

/* フッター */
footer {
  background-color: #f9fafb;
  padding: 40px 0;
  color: #333;
  font-size: 14px;
  border-top: 1px solid #e5e7eb;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

footer .footer-links a {
  text-decoration: none;
  color: #4f46e5;
  font-weight: bold;
}

footer .footer-links a:hover {
  text-decoration: underline;
}

footer p {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #777;
}

@media (max-width: 720px) {
  .type-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
}

/* モバイル */
@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .card {
    padding: 20px;
  }
}