/* AI偏差値チェック Web — 最小スタイル (styles.css のトーンに寄せる) */
:root {
  --diag-primary: #1a73e8;
  --diag-ink: #1f2933;
  --diag-muted: #6b7684;
  --diag-bg: #f7f9fc;
  --diag-card: #ffffff;
  --diag-border: #e3e8ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  color: var(--diag-ink);
  background: var(--diag-bg);
  line-height: 1.7;
}

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

.diag-header { text-align: center; margin-bottom: 24px; }
.diag-title { font-size: 1.6rem; margin: 0 0 8px; }
.diag-lead { color: var(--diag-muted); margin: 0; }

.diag-progress {
  height: 6px;
  background: var(--diag-border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}
.diag-progress-bar {
  height: 100%;
  width: 0;
  background: var(--diag-primary);
  transition: width 0.3s ease;
}

.diag-stage { min-height: 200px; }

.diag-card, .diag-result {
  background: var(--diag-card);
  border: 1px solid var(--diag-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(31, 41, 51, 0.05);
}

.diag-qnum { font-size: 0.85rem; color: var(--diag-primary); font-weight: 700; margin-bottom: 8px; }
.diag-qtext { font-size: 1.1rem; font-weight: 600; margin: 0 0 16px; }

.diag-answer {
  width: 100%;
  border: 1px solid var(--diag-border);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  resize: vertical;
}

.diag-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }

.diag-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.diag-btn-primary { background: var(--diag-primary); color: #fff; }
.diag-btn-ghost { background: transparent; color: var(--diag-muted); border: 1px solid var(--diag-border); }

.diag-start {
  display: block;
  margin: 40px auto 0;
  background: var(--diag-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.diag-result { text-align: center; }
.diag-result-label { color: var(--diag-muted); font-size: 0.9rem; }
.diag-score { font-size: 3.6rem; font-weight: 800; color: var(--diag-primary); line-height: 1.1; }
.diag-band { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.diag-summary { text-align: left; color: var(--diag-ink); }
.diag-cta { margin-top: 20px; }

.diag-loading, .diag-error { text-align: center; color: var(--diag-muted); padding: 32px 0; }
.diag-error { color: #d64545; }
