/* =====================================================================
   簡易診断 — 3ステップ検索
   ===================================================================== */

.quiz {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}

.quiz__head {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  padding: 11px 16px;
}

.quiz__head .k {
  font-size: 11px;
  font-weight: 700;
  opacity: .9;
  letter-spacing: .06em;
}

.quiz__head h3 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 900;
}

.quiz__progress {
  height: 6px;
  background: rgba(255, 255, 255, .25);
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}

.quiz__progress-bar {
  display: block;
  height: 100%;
  background: #ffd23f;
  border-radius: 4px;
  transition: width .3s ease;
  width: 0;
}

.quiz__body { padding: 14px 16px; }

.qstep__count {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
}

.qstep__q {
  font-size: 18px;
  font-weight: 900;
  margin: 3px 0 12px;
  line-height: 1.35;
  color: var(--navy);
}

.qstep__sub {
  font-size: 11.5px;
  color: var(--ink-3);
  margin: 0 0 14px;
  line-height: 1.5;
}

.qopts { display: grid; gap: 7px; }

.qopt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 11px 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .12s, background .12s, transform .1s;
  width: 100%;
}

.qopt:hover { border-color: var(--blue-100); background: var(--blue-50); }
.qopt:active { transform: scale(.99); }
.qopt.is-selected {
  border-color: var(--blue);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.qopt__radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.qopt.is-selected .qopt__radio { border-color: var(--blue); }

.qopt.is-selected .qopt__radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.qopt__check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--line);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.qopt.is-selected .qopt__check {
  background: var(--blue);
  border-color: var(--blue);
}

.qopt__sub {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
}

.quiz__nav {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.quiz__back {
  flex: 0 0 auto;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}

.quiz__back:disabled {
  opacity: .4;
  cursor: default;
}

.quiz__next {
  flex: 1;
  padding: 13px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(180deg, #ff9a3d, var(--orange));
  box-shadow: 0 5px 14px rgba(245, 150, 30, .4);
}

.quiz__next.is-hidden { display: none; }

/* 検索結果 */
.filterres__head {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 14px;
}

.filterres__head b {
  color: var(--cta-deep);
  font-size: 17px;
}

.filterres__note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: -6px 0 12px;
  line-height: 1.5;
}

.filterres__note b {
  color: var(--blue);
}

.filterres__empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

.result-list {
  display: grid;
  gap: 12px;
}

.result__again {
  text-align: center;
  margin-top: 8px;
}

.result__again button {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 700;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px;
}

/* 結果カード */
.rankcard {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}

.rankcard__body { padding: 14px; }

.rankcard__logo {
  display: block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 6 / 5;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.feat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.feat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 7px;
  background: #eef2ec;
  color: var(--ink-2);
}

.feat.on {
  background: #e6f5ea;
  color: var(--ok);
}

.rankcard__note {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.6;
  padding-top: 10px;
  margin: 0;
}
