:root{
  --bg:#f7f4ff;
  --card:rgba(255,255,255,.92);
  --ink:#1b1b1f;
  --muted:#5b5b68;
  --lav:#7b5cff;
  --lav2:#b7a8ff;
  --line:rgba(123,92,255,.18);
  --shadow:0 14px 50px rgba(30, 20, 80, .12);
  --r:18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(183,168,255,.40), transparent 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(123,92,255,.20), transparent 55%),
    linear-gradient(180deg, var(--bg), #fff);
}

.wrap{ width:min(920px, 92vw); margin:26px auto 40px; }
.header{ padding:10px 6px 16px; }
h1{ margin:0 0 10px; font-size: clamp(22px, 4vw, 34px); }
.badge{
  display:inline-block; margin-left:10px; padding:4px 10px;
  font-size:.72em; border-radius:999px;
  background:rgba(123,92,255,.12); border:1px solid rgba(123,92,255,.22);
}
.lead{ margin:0; color:var(--muted); line-height:1.7; }

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:18px;
  backdrop-filter: blur(8px);
}

.hidden{ display:none !important; }

.btn{
  border:0;
  border-radius:14px;
  padding:12px 14px;
  font-weight:700;
  color:#fff;
  background: linear-gradient(90deg, var(--lav), var(--lav2));
  cursor:pointer;
  width:100%;
}
.btn--ghost{
  background: rgba(123,92,255,.08);
  border:1px solid rgba(123,92,255,.25);
  color:var(--lav);
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }

.note{ margin:12px 2px 0; color:var(--muted); font-size:12.5px; line-height:1.6; }
.muted{ color:var(--muted); font-size:14px; }

.hero{ margin-bottom:14px; }
.hero__img{
  width:100%;
  max-height:320px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(123,92,255,.20);
  background: rgba(255,255,255,.6);
}

.startTitle{ margin: 8px 0 10px; font-size:18px; }
.startList{ margin:0 0 14px; padding-left:18px; color:var(--muted); line-height:1.7; }

.progress{ margin-bottom:14px; }
.progress__meta{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; gap:10px; }
.progress__bar{ height:10px; background:rgba(123,92,255,.10); border-radius:999px; overflow:hidden; }
.progress__fill{ height:100%; background:linear-gradient(90deg, var(--lav), var(--lav2)); border-radius:999px; transition:width .25s ease; }

.qTitle{ margin: 6px 0 12px; font-size:18px; line-height:1.55; }

.options{ display:grid; gap:10px; }
.opt{
  display:flex; gap:12px; align-items:flex-start;
  border:1px solid rgba(123,92,255,.18);
  background: rgba(255,255,255,.78);
  border-radius:14px;
  padding:12px;
  cursor:pointer;
}
.opt:hover{ border-color: rgba(123,92,255,.35); background: rgba(255,255,255,.92); }
.opt input{ margin-top:4px; }
.opt__key{ font-weight:800; color:var(--lav); min-width:22px; }
.opt__txt{ line-height:1.6; }

.nav{ display:flex; gap:10px; margin-top:14px; }
.nav .btn{ max-width:240px; }

.resultTitle{ margin: 4px 0 6px; font-size:22px; }
.resultSub{ margin:0 0 10px; color:var(--muted); line-height:1.7; }

.result__img{
  width:100%;
  max-height:340px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(123,92,255,.20);
  margin: 8px 0 12px;
  background: rgba(255,255,255,.6);
}

.resultBlock{ line-height:1.75; }
.pills{ display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:10px 0 0; }
.pill{
  font-size:13px;
  color:var(--lav);
  background: rgba(123,92,255,.10);
  border: 1px solid rgba(123,92,255,.20);
  padding:6px 10px;
  border-radius:999px;
}

.scores{ margin-top:8px; border-top:1px dashed rgba(123,92,255,.25); padding-top:10px; }
.scoreRow{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin:8px 0; }
.scoreName{ color:var(--muted); font-size:14px; }
.stars{ letter-spacing:2px; color:#f2b705; font-size:16px; }

.counts{ margin-top:10px; color:var(--muted); font-size:13px; }

.resultActions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.resultActions .btn{ max-width:260px; }

.shareBox{ margin-top:16px; border-top:1px dashed rgba(123,92,255,.25); padding-top:14px; }
.shareTitle{ margin:0 0 8px; font-size:15px; }
textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(123,92,255,.25);
  padding:12px;
  font-size:14px;
  line-height:1.6;
  background: rgba(255,255,255,.8);
  color:var(--ink);
  resize:vertical;
}

.footer{ margin-top:16px; text-align:center; color:var(--muted); opacity:.85; }
