:root {
  --ink: #1E2740;
  --ink-soft: #4E5873;
  --paper: #EEF1F6;
  --surface: #FFFFFF;
  --line: #D3D9E5;
  --lamp: #F2B33D;
  --lamp-deep: #8A5A00;
  --danger: #B3261E;
  --glow: #F2B33D;
  --radius-control: 14px;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8ECF5;
    --ink-soft: #AEB6CB;
    --paper: #161C2E;
    --surface: #1F2740;
    --line: #36405C;
    --lamp: #F2B33D;
    --lamp-deep: #F6CB72;
    --danger: #FF8A80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
}
h1 { font-size: 30px; letter-spacing: 0.02em; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

p { margin: 0 0 14px; }
.lead { color: var(--ink-soft); }
.small { font-size: 14px; color: var(--ink-soft); }

a { color: inherit; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--lamp);
  outline-offset: 3px;
}

/* --- 灯り：進み具合 --- */
.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.progress-track {
  flex: 1;
  height: 8px;
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--lamp);
  border-radius: 8px;
  box-shadow: 0 0 12px var(--lamp);
  transition: width 0.35s ease;
}

/* --- 質問 --- */
.question-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 20px;
}
.block-intro {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 15px;
}
.poles {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
/* A・B の説明。ボタンと見分けがつくよう、枠も白地も付けない（押せるボタンは下の段だけ） */
.pole {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  border-left: 3px solid var(--lamp);
  padding: 4px 4px 4px 12px;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.scale-label {
  margin: 4px 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
.scale-hint {
  margin: -2px 0 10px;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  background: rgba(242, 179, 61, 0.18);
  color: var(--ink);
  font-size: 14px;
}
@media (prefers-reduced-motion: no-preference) {
  .choices.scale.nudge-A .choice:nth-child(-n+2),
  .choices.scale.nudge-B .choice:nth-child(3),
  .choices.scale.nudge-B .choice:nth-child(4) {
    animation: nudge 0.9s ease-out 2;
  }
}
@keyframes nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 179, 61, 0); }
  40% { box-shadow: 0 0 0 4px rgba(242, 179, 61, 0.55); }
}
.pole-key {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--lamp-deep);
  line-height: 1.5;
}

.choices {
  display: grid;
  gap: 10px;
}
.choices.scale {
  grid-template-columns: repeat(4, 1fr);
}
.choice {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  border-radius: var(--radius-control);
  padding: 14px 12px;
  min-height: 56px;
  cursor: pointer;
  text-align: left;
}
.choices.scale .choice {
  text-align: center;
  padding: 12px 4px;
  font-size: 15px;
}
@media (hover: hover) {
  .choice:hover { border-color: var(--lamp); }
}
.choice[aria-pressed="true"] {
  border-color: var(--lamp);
  background: #FCEFD3; /* color-mix 非対応の古い iPhone 向け */
  background: color-mix(in srgb, var(--lamp) 18%, var(--surface));
}
.choice.both {
  grid-column: 1 / -1;
  text-align: center;
  min-height: 48px;
  font-size: 15px;
}
.quiz-guide {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--lamp) 10%, var(--surface));
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.axis-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.both-axis { padding: 18px 0 6px; border-top: 1px solid var(--line); }
.both-axis:first-child { border-top: 0; padding-top: 4px; }
.both-axis h3 { margin: 0 0 8px; }
.both-label { margin: 16px 0 6px; font-weight: 700; font-size: 15px; }
.both-scenes ul, .both-tips { margin: 0; padding-left: 1.2em; }
.both-scenes li, .both-tips li { margin-bottom: 10px; }
.both-key { margin: 12px 0 0; padding: 10px 14px; border-left: 4px solid var(--lamp); background: var(--surface); border-radius: 0 var(--radius-control) var(--radius-control) 0; font-weight: 700; }
.both-whens { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
@media (max-width: 560px) { .both-whens { grid-template-columns: 1fr; } }
.both-when { border: 1.5px solid var(--line); border-radius: var(--radius-control); padding: 12px 14px; background: var(--surface); }
.both-when.a { border-color: color-mix(in srgb, var(--lamp) 55%, var(--line)); }
.both-when-head { margin: 0 0 6px; font-weight: 700; color: var(--lamp-deep); }
.both-when ul { margin: 0; padding-left: 1.2em; font-size: 15px; }
.both-when li { margin-bottom: 4px; }
.both-observe { margin-top: 6px; padding: 2px 14px 10px; border-radius: var(--radius-control); background: color-mix(in srgb, var(--lamp) 10%, var(--surface)); }
.both-observe .both-label { margin-top: 10px; }
.both-observe p:last-child { margin: 0; }
.both-decided { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.situational-scene { display: block; font-weight: 700; }
.situational-both { display: block; font-size: 15px; }
.situational-both b { font-weight: 700; color: var(--lamp-deep); }
.choice.unknown {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  text-align: center;
  min-height: 44px;
  font-size: 15px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

/* --- ボタン・フォーム --- */
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  text-decoration: none;
}
.button.wide { width: 100%; }
.button.line { background: #06C755; color: #FFFFFF; }
.button.quiet {
  background: transparent;
  color: var(--ink-soft);
  min-height: 44px;
  padding: 0 4px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
}
.button:disabled { opacity: 0.45; cursor: not-allowed; }

.field { margin-bottom: 20px; }
.field label, .field .label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.field .hint { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
input[type="date"], input[type="text"], select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-control);
}
.consent {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 14px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
}
.consent input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--ink); }
.error {
  color: var(--danger);
  font-size: 14px;
  margin: 6px 0 0;
}

/* --- 結果：光 --- */
.glow {
  position: relative;
  text-align: center;
  padding: 72px 0 40px;
  margin: 0 -16px 8px;
  overflow: hidden;
}
.glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow) 55%, transparent) 0%, color-mix(in srgb, var(--glow) 18%, transparent) 42%, transparent 70%);
  z-index: 0;
}
.glow > * { position: relative; z-index: 1; }
.glow .for {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.glow .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.2;
  margin: 0 0 14px;
}
.glow .light {
  max-width: 21em;
  margin: 0 auto;
  font-size: 16px;
  text-wrap: balance;
}
.glow .name.headline { font-size: 36px; }
.glow .phrase {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .glow.reveal::before { animation: bloom 1.4s ease-out both; }
  .glow.reveal .name { animation: rise 0.9s 0.3s ease-out both; }
}
@keyframes bloom {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.35); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.section {
  padding: 26px 0 6px;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: none; }
.section h2 { margin-bottom: 10px; }

.axes { display: grid; gap: 18px; margin-top: 8px; }
.axis-name { font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.axis-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 10px;
  font-size: 14px;
}
.axis-row .axis-track { grid-column: 1 / -1; order: -1; margin: 6px 9px 0; }
.axis-row .end-b { text-align: right; }
.axis-row .on { font-weight: 700; color: var(--ink); }
.axis-row .off { color: var(--ink-soft); }
.axis-track {
  position: relative;
  height: 6px;
  background: var(--line);
  border-radius: 6px;
}
.axis-track::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 1px;
  height: 14px;
  background: var(--ink-soft);
  opacity: 0.4;
}
.axis-dot {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--glow);
  border: 3px solid var(--surface);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--glow);
}
.axis-dot.teacher {
  background: transparent;
  border: 2.5px solid var(--ink-soft);
  box-shadow: none;
  width: 22px;
  height: 22px;
}

.star {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 16px;
  margin-bottom: 12px;
}
.star .kind { font-size: 14px; color: var(--ink-soft); }
.star .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
}
.star .ask {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
}

.star .ask-label {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--ink-soft);
}
.star .ask-list {
  margin: 0;
  padding-left: 1.2em;
}
.star .ask-list li { margin-bottom: 4px; }
.star-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.next {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px 18px;
  margin-top: 24px;
}
.copy-box {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.copy-box input { flex: 1; font-size: 14px; }

.disclaimer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-soft);
}

.flag-list { margin: 0; padding-left: 1.2em; }
.flag-list li { margin-bottom: 6px; }

[hidden] { display: none !important; }

@media (max-width: 380px) {
  .choices.scale { grid-template-columns: repeat(2, 1fr); }
  .glow .name { font-size: 44px; }
}

/* --- モニター案内・当てはまり度 --- */
.monitor { margin-top: 16px; }
.monitor .small { margin-bottom: 10px; }

.rating {
  border: none;
  margin: 0 0 22px;
  padding: 0;
  min-width: 0;
}
.rating legend {
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0;
  line-height: 1.6;
}
.rating-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.rating-scale .choice {
  text-align: center;
  padding: 8px 0;
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 700;
}
.rating-ends {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.rating-status {
  min-height: 1.5em;
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--lamp-deep);
  text-align: center;
}
textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-control);
  resize: vertical;
}
.feedback .button { margin-top: 4px; }
.feedback .small { margin-top: 12px; }

/* --- 取り扱い方針 --- */
.policy h2 { margin-top: 32px; font-size: 20px; }
.policy h3 { margin-top: 20px; font-size: 17px; }
.policy ul, .policy ol { padding-left: 1.3em; margin: 0 0 14px; }
.policy li { margin-bottom: 6px; }
.policy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 14px;
}
.policy th, .policy td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.policy th { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.policy .updated { font-size: 14px; color: var(--ink-soft); }
.line-after {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

/* --- 24タイプの地図 --- */
.map-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
.map-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--c) 55%, var(--line));
  background: color-mix(in srgb, var(--c) 10%, var(--surface));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.texture-list { padding-left: 1.2em; margin: 0 0 14px; }
.texture-list li { margin-bottom: 6px; }
.map-char { scroll-margin-top: 12px; }
.map-char h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; margin-bottom: 4px; }
.map-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
  flex: none;
}
.map-phrase {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.map-sub {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c);
  border-radius: var(--radius-control);
  padding: 14px 16px 6px;
  margin-bottom: 12px;
}
.map-sub h3 { margin-bottom: 8px; }
.map-sub dl { margin: 0; }
.map-sub dt { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.map-sub dd { margin: 0 0 10px; font-size: 16px; line-height: 1.7; }

.price-note { margin: -4px 0 18px; font-size: 15px; }
.report-box .flag-list { font-size: 15px; margin-bottom: 16px; }

/* --- レポート --- */
.report .glow .light { font-size: 15px; }
.report-toc {
  background: var(--surface);
  border-radius: 20px;
  padding: 16px 18px 6px;
  margin: 8px 0 4px;
}
.report-toc .small { margin-bottom: 6px; }
.report-toc ol { margin: 0; padding-left: 1.4em; }
.report-toc li { margin-bottom: 8px; }
.report-section { scroll-margin-top: 12px; }
.report-section h3 { margin-top: 22px; }
.report-list { padding-left: 1.2em; margin: 0 0 14px; }
.report-list li { margin-bottom: 8px; }
.report-list.refs { font-size: 14px; color: var(--ink-soft); }
.report-list .src { display: block; font-size: 13px; }
.report-dl { margin: 0 0 14px; }
.report-dl dt { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.report-dl dd { margin: 0 0 12px; }
.report-dl.two {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  column-gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-control);
  padding: 14px 16px 2px;
}
.report-dl.two dt { padding-top: 2px; }
.report-words { list-style: none; padding: 0; margin: 0 0 14px; }
.report-words li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--glow);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.report-words .words { display: block; font-weight: 700; }
.report-words .why { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.report-note {
  background: var(--surface);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  font-size: 15px;
}
.stages {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}
.stages li {
  display: grid;
  grid-template-columns: 3.6em 1fr;
  column-gap: 10px;
  background: var(--surface);
  border-radius: var(--radius-control);
  padding: 10px 14px;
  position: relative;
}
.stages .stage-no {
  grid-row: span 2;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--lamp-deep);
}
.stages .stage-ex { font-size: 14px; color: var(--ink-soft); }
.report-actions { display: grid; gap: 8px; margin-top: 28px; justify-items: center; }

@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  main { max-width: none; padding: 0; }
  .no-print, .report-toc { display: none !important; }
  .glow { padding: 12px 0; margin: 0; }
  .glow::before { display: none; }
  .glow .name { font-size: 26pt; }
  .section { break-inside: auto; }
  .report-words li, .star, .stages li, .report-dl.two { break-inside: avoid; border-color: #ccc; }
  a { color: inherit; text-decoration: none; }
}
.report-section .axes { margin-bottom: 16px; }
.pay-note { margin-top: 10px; }
.pay-note a { display: inline-block; margin-left: 4px; }
.legal th { width: 6.5em; min-width: 6.5em; }
.button .btn-price { font-family: var(--font-body); font-weight: 400; font-size: 15px; opacity: 0.85; }

/* モニター用のリンクから来た人への案内 */
.monitor-banner { background: var(--surface); border: 2px solid var(--lamp); border-radius: 18px; padding: 18px 18px 16px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 10px; }
.monitor-pill { align-self: flex-start; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.monitor-head { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.4; text-wrap: balance; }
.monitor-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: step; }
.monitor-steps li { counter-increment: step; background: var(--paper); border-radius: 12px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; min-width: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.monitor-steps li strong { font-size: 15px; color: var(--ink); white-space: nowrap; }
.monitor-steps li strong::before { content: counter(step) ". "; color: var(--lamp-deep); }
.monitor-free { margin: 0; font-size: 14px; }
.monitor-free b { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--lamp) 55%, transparent) 60%); }

/* 結果の見本 */
.sample { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 4px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.sample-tag { margin: 0; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.sample-name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #D9478E; }
.sample-name span { font-size: 15px; color: var(--ink-soft); margin-left: 10px; font-weight: 500; }
.sample-line { margin: 0; font-size: 15px; }
.sample-dl { margin: 4px 0 0; display: flex; flex-direction: column; gap: 6px; }
.sample-dl > div { background: var(--paper); border-radius: 12px; padding: 8px 12px; }
.sample-dl dt { font-size: 12px; font-weight: 700; }
.sample-dl dt.ok { color: #2F8F6B; }
.sample-dl dt.ng { color: var(--danger); }
.sample-dl dd { margin: 2px 0 0; font-size: 15px; }
.sample-note { margin: 0; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }
@media (prefers-color-scheme: dark) { .sample-name { color: #F08BC0; } .sample-dl dt.ok { color: #5CC39A; } }

/* 保護者の声フォーム */
.voice-group { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 16px 16px 18px; margin: 0 0 18px; min-width: 0; }
.voice-group legend { font-family: var(--font-display); font-weight: 700; font-size: 18px; padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.voice-group legend .no { width: 26px; height: 26px; border-radius: 50%; background: var(--lamp); color: #1E2740; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.voice-group .hint { margin: 0 0 10px; font-size: 13px; color: var(--ink-soft); }
.voice-group textarea { background: var(--paper); margin-top: 6px; }
.label-sm { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.chips { display: flex; flex-direction: column; gap: 8px; }
.chip { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; font-size: 15px; line-height: 1.5; }
.chip input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.chip:has(input:checked) { border-color: var(--lamp); background: color-mix(in srgb, var(--lamp) 14%, var(--surface)); }
.chip:has(input:focus-visible) { outline: 3px solid var(--lamp); outline-offset: 2px; }
.done-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.voice-link { margin-top: 18px; text-align: center; font-size: 14px; }
.voice-link a { color: var(--ink); }

/* --- ご家族にも答えてもらう --- */
.family .button + .button { margin-top: 10px; }
.family .copy-box { margin-top: 12px; }
.quiet-outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.family-note {
  position: relative;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--surface);
  border: 1.5px solid var(--lamp);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.family-me { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; font-weight: 700; }
.family-me select { flex: 1; }
.family-share { margin-top: 4px; }
.family-share .button + .button { margin-top: 10px; }
.family-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.family-list li { border: 1.5px solid var(--line); border-radius: var(--radius-control); padding: 10px 14px; background: var(--surface); }
.family-list li.differ { border-color: var(--lamp); }
.family-axis { display: block; font-weight: 700; }
.family-views { display: block; font-size: 15px; }
.family-mark { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.family-list li.differ .family-mark { color: var(--lamp-deep); font-weight: 700; }

/* --- かんたん結果の上に置く、詳しい診断の案内 --- */
.detail-cta {
  margin: 8px 0 24px;
  padding: 16px 18px 18px;
  border: 2px solid var(--lamp);
  border-radius: var(--radius-card, 16px);
  background: color-mix(in srgb, var(--lamp) 8%, var(--surface));
}
.detail-cta p { margin: 0 0 10px; }
.detail-cta-head { font-weight: 700; color: var(--lamp-deep); }
.detail-cta-free { font-weight: 700; }

/* --- 最初の画面の「始める」ボタン --- */
.hero-start { margin: 4px 0 28px; text-align: center; }
.hero-start .small { margin: 8px 0 0; }

/* --- レポートの見本 --- */
.sample-banner {
  margin: 0 0 24px;
  padding: 16px 18px 18px;
  border: 2px solid var(--lamp);
  border-radius: 16px;
  background: color-mix(in srgb, var(--lamp) 10%, var(--surface));
}
.sample-banner p { margin: 0 0 10px; }
.sample-banner-head { font-weight: 700; color: var(--lamp-deep); }
.sample-link { text-align: center; margin: 10px 0 0; }
.glow .maker { position: relative; margin: 10px 0 10px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.star-aside { text-align: center; margin: 8px 0 18px; }

/* --- お友だちに教える --- */
.friend-share { margin: 24px 0 8px; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: 16px; text-align: center; }
.friend-share p { margin: 0 0 8px; }
.friend-share-head { font-weight: 700; }
.friend-share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.sample-banner .button { display: flex; justify-content: center; align-items: center; text-align: center; }
.friend-share-buttons .button { white-space: nowrap; padding-left: 8px; padding-right: 8px; }
.link-button { background: none; border: 0; padding: 0 0 0 8px; color: var(--lamp-deep); text-decoration: underline; font: inherit; cursor: pointer; }

/* --- 前回の診断の続き --- */
.resume-note { margin: 0 0 18px; padding: 14px 16px 16px; border: 2px solid var(--lamp); border-radius: 16px; background: var(--surface); }
.resume-note p { margin: 0 0 8px; }

/* 質問を読み込んでいる間の表示 */
.quiz-loading {
  text-align: center;
  padding: 48px 0;
  color: var(--ink-soft);
}

/* --- キャラクター紹介ページ（/types/） --- */
.type-page .crumbs { margin-bottom: 8px; }
.type-page .crumbs a { color: var(--ink-soft); }
.type-hero { --glow: var(--char, var(--lamp)); }
.type-hero .name .type-suffix { font-size: 0.45em; margin-left: 4px; }
.type-hero .type-alias {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}
.type-cta { margin: 20px 0 8px; text-align: center; }
.type-cta .button { text-decoration: none; }
.type-cta .small { margin-top: 8px; }
.type-axes { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.type-axes li {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-left: 3px solid var(--char, var(--lamp));
  background: var(--surface);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
}
.type-axes .axis-name { font-size: 13px; color: var(--ink-soft); }
.type-axes span:last-child { font-size: 15px; }
.type-list { padding-left: 1.2em; }
.type-list li { margin-bottom: 8px; }
.type-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 14px 16px 4px;
  margin-bottom: 12px;
}
.type-card h3 { font-size: 17px; margin-bottom: 6px; }
.type-card dl { margin: 0 0 10px; font-size: 15px; }
.type-card dt { font-weight: 700; color: var(--ink-soft); font-size: 13px; }
.type-card dd { margin: 0 0 6px; }
.type-words {
  border-radius: var(--radius-control);
  padding: 12px 16px 2px;
  margin-bottom: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
}
.type-words .tag { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.type-words.good { border-color: #2E9D63; }
.type-words.good .tag { color: #2E9D63; }
.type-words.bad { border-color: #C2543F; }
.type-words.bad .tag { color: #C2543F; }
.type-words .words { font-weight: 700; margin-bottom: 4px; }
.type-words .why { font-size: 14px; color: var(--ink-soft); }
.type-faq {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.type-faq summary { font-weight: 700; cursor: pointer; }
.type-faq p { margin: 8px 0 4px; font-size: 15px; }
.type-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.type-grid a {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--char, var(--lamp));
  color: var(--ink);
  text-decoration: none;
}
.type-grid b { font-family: var(--font-display); font-size: 18px; }
.type-grid span { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.type-grid.wide .alias { font-size: 13px; color: var(--ink); margin-top: 4px; }
.type-foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.type-foot p { font-size: 13px; }

/* トップページのキャラクター一覧 */
.top-types { margin: 28px 0 18px; }
.top-types h2 { font-size: 20px; text-align: center; margin-bottom: 12px; }
.top-types .small { text-align: center; margin-top: 10px; }

/* 結果を画像でシェア */
.share-image-box { margin: 4px 0 18px; text-align: center; }
.share-image-open { width: auto; padding-left: 22px; padding-right: 22px; }
.share-image-panel { margin-top: 14px; padding: 14px; border: 1.5px dashed var(--line); border-radius: 16px; }
.share-image-panel .share-image { width: 100%; max-width: 320px; border-radius: 12px; box-shadow: 0 4px 18px rgba(30, 39, 64, 0.15); -webkit-touch-callout: default; }
.share-image-panel .small { margin: 10px 0; }
.share-image-panel .button { text-decoration: none; }
