#a8f-root, #a8f-root * { box-sizing: border-box; }
#a8f-root {
  --a8f-surface:      #ffffff;
  --a8f-surface-2:    #f4f3f0;
  --a8f-text:         #0b0b0b;
  --a8f-text-2:       #4a4944;
  --a8f-muted:        #6f6d66;
  --a8f-grid:         #e1e0d9;
  --a8f-baseline:     #c3c2b7;
  --a8f-series:       #2a78d6;
  --a8f-series-fill:  rgba(42, 120, 214, 0.16);
  --a8f-badge-bg:     rgba(42, 120, 214, 0.12);
  --a8f-border:       rgba(11,11,11,0.10);
  --a8f-critical:     #d03b3b;
  --a8f-good:         #0ca30c;
  --a8f-radius:       14px;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Segoe UI", sans-serif;
  color: var(--a8f-text);
  background: var(--a8f-surface);
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 32px;
  border-radius: var(--a8f-radius);
  border: 1px solid var(--a8f-border);
  line-height: 1.7;
}
#a8f-root h1, #a8f-root h2, #a8f-root h3 { line-height: 1.4; margin: 0 0 12px; }
#a8f-root h1 { font-size: 1.4rem; letter-spacing: .02em; }
#a8f-root h2 { font-size: 1.5rem; text-align: center; border-left: none; border-bottom: none; }
#a8f-root h3 { font-size: 1rem; }
#a8f-root p { margin: 0 0 14px; color: var(--a8f-text-2); }
#a8f-root .a8f-eyebrow {
  font-size: .78rem; color: var(--a8f-muted); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 6px; font-weight: 600;
}
#a8f-root .a8f-card {
  background: var(--a8f-surface-2);
  border: 1px solid var(--a8f-border);
  border-radius: 10px;
  padding: 18px 18px 16px;
  margin-bottom: 16px;
}
#a8f-root textarea {
  width: 100%; min-height: 140px; resize: vertical;
  font: inherit; color: var(--a8f-text);
  background: var(--a8f-surface);
  border: 1px solid var(--a8f-baseline);
  border-radius: 8px; padding: 10px 12px;
}
#a8f-root textarea:focus, #a8f-root button:focus-visible {
  outline: 2px solid var(--a8f-series); outline-offset: 2px;
}
#a8f-root .a8f-btn {
  display: inline-block; font: inherit; font-weight: 600;
  cursor: pointer; border-radius: 8px; padding: 11px 22px;
  border: 1px solid var(--a8f-series); background: var(--a8f-series);
  color: #fff; transition: opacity .15s ease;
}
#a8f-root .a8f-btn:hover { opacity: .88; }
#a8f-root .a8f-btn:disabled { opacity: .35; cursor: not-allowed; }
#a8f-root .a8f-btn-ghost {
  background: transparent; color: var(--a8f-text-2);
  border: 1px solid var(--a8f-baseline);
}
#a8f-root .a8f-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
#a8f-root .a8f-progress-wrap {
  height: 6px; border-radius: 3px; background: var(--a8f-grid);
  overflow: hidden; margin-bottom: 18px;
}
#a8f-root .a8f-progress-bar {
  height: 100%; background: var(--a8f-series); border-radius: 3px;
  transition: width .25s ease;
}
#a8f-root .a8f-progress-label {
  font-size: .8rem; color: var(--a8f-muted); margin-bottom: 6px; text-align: center;
}
#a8f-root .a8f-choice {
  display: block; width: 100%; text-align: left;
  font: inherit; color: var(--a8f-text);
  background: var(--a8f-surface); cursor: pointer;
  border: 1px solid var(--a8f-baseline); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 10px; transition: border-color .15s ease, background .15s ease;
}
#a8f-root .a8f-choice:hover { border-color: var(--a8f-series); background: var(--a8f-surface-2); }
#a8f-root .a8f-choice:focus-visible { outline: 2px solid var(--a8f-series); outline-offset: 2px; }
#a8f-root .a8f-question-icon-wrap { display: flex; justify-content: center; margin-bottom: 12px; }

/* アイコンバッジ(円形) */
#a8f-root .a8f-icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--a8f-badge-bg); color: var(--a8f-series);
  flex: none;
}
#a8f-root .a8f-icon-badge svg { display: block; margin: 0; }
#a8f-root .a8f-icon-badge--lg { width: 56px; height: 56px; }
#a8f-root .a8f-icon-badge--lg svg { width: 30px; height: 30px; }
#a8f-root .a8f-icon-badge--md { width: 40px; height: 40px; }
#a8f-root .a8f-icon-badge--md svg { width: 22px; height: 22px; }
#a8f-root .a8f-icon-badge--sm {
  width: 32px; height: 32px; background: var(--a8f-surface);
  box-shadow: 0 0 0 1px var(--a8f-border);
}
#a8f-root .a8f-icon-badge--sm svg { width: 17px; height: 17px; }

#a8f-root .a8f-dream-quote {
  font-style: normal; border-left: 3px solid var(--a8f-series);
  padding: 6px 0 6px 14px; color: var(--a8f-text); margin: 0 0 18px;
}

#a8f-root .a8f-percent-line {
  text-align: center; font-size: 1.05rem; color: var(--a8f-text);
  margin: 4px 0 18px;
}
#a8f-root .a8f-percent-num {
  display: block; font-size: 3.2rem; font-weight: 800; line-height: 1.15;
  color: var(--a8f-series); margin: 2px 0 4px;
}
#a8f-root .a8f-phenomenon {
  background: var(--a8f-surface-2); border: 1px solid var(--a8f-border);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 18px;
}
#a8f-root .a8f-phenomenon-eyebrow {
  font-size: .74rem; color: var(--a8f-muted); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 6px; font-weight: 600;
}
#a8f-root .a8f-phenomenon-name {
  font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; color: var(--a8f-text);
}
#a8f-root .a8f-phenomenon-desc { margin: 0; color: var(--a8f-text-2); }

#a8f-root .a8f-radar-box { position: relative; width: 260px; height: 260px; margin: 0 auto 6px; }
#a8f-root .a8f-radar-box svg { display: block; }
#a8f-root .a8f-radar-icon { position: absolute; transform: translate(-50%, -50%); }

#a8f-root .a8f-radar-legend {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px; margin: 20px 0 0;
}
#a8f-root .a8f-radar-legend-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
#a8f-root .a8f-radar-legend-label {
  color: var(--a8f-text-2); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#a8f-root .a8f-radar-legend-score {
  margin-left: auto; padding-left: 8px; font-weight: 700; color: var(--a8f-text); font-size: .9rem; white-space: nowrap;
}

#a8f-root .a8f-learn-more { text-align: center; margin: 4px 0 0; }
#a8f-root .a8f-learn-more a {
  color: var(--a8f-series); font-weight: 600; font-size: .9rem;
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
#a8f-root .a8f-learn-more a:hover,
#a8f-root .a8f-learn-more a:focus-visible {
  border-bottom-color: var(--a8f-series);
}
#a8f-root .a8f-learn-more a::after { content: " →"; }

#a8f-root .a8f-footnote { font-size: .78rem; color: var(--a8f-muted); margin-top: 18px; }
#a8f-root [hidden] { display: none !important; }
#a8f-root .a8f-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
#a8f-root .a8f-load-error {
  color: var(--a8f-critical); font-size: .9rem; border: 1px solid var(--a8f-critical);
  border-radius: 8px; padding: 12px 14px;
}
