/* 詐欺電話危険度診断 */
.quiz {
  padding-block: min(6.9444444444vw, 100px);
  background: #fff8e6;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.quiz__inner {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

.quiz [hidden] {
  display: none;
}

/* ボタン共通 */
.quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 36px;
  font-family: inherit;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #fff;
  border: none;
  border-radius: 999px;
  transition: opacity 0.2s, background-color 0.2s;
}

.quiz-btn--primary {
  background: #ff8a00;
  box-shadow: 0 4px 0 #cc6e00;
}

.quiz-btn--primary:hover {
  opacity: 0.85;
}

.quiz-btn--sub {
  background: #a8a8a8;
}

.quiz-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* スタート画面 */
.quiz-start {
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
}

.quiz-start__title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.4;
}

.quiz-start__sub {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  color: #ffa100;
}

.quiz-start__img {
  display: block;
  width: 200px;
  height: auto;
  margin: 24px auto;
}

.quiz-start__lead {
  margin-bottom: 32px;
  font-size: 18px;
}

.quiz-start__lead strong {
  font-size: 1.3em;
  color: #ff8a00;
}

/* プログレス */
.quiz-progress {
  max-width: 420px;
  margin: 0 auto 32px;
  text-align: center;
}

.quiz-progress__bar {
  height: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eae6df;
  border-radius: 999px;
}

.quiz-progress__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: #ffa100;
  border-radius: 999px;
  transition: width 0.3s;
}

.quiz-progress__text {
  margin-top: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #ff8a00;
}

/* 問題カード（解説一覧でも共用） */
.quiz-card,
.quiz-review__item {
  padding: 32px;
  background: #fff;
  border-radius: 16px;
}

.quiz-card__head {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eae6df;
}

.quiz-card__num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0;
  background: #ffa100;
  border-radius: 50%;
}

.quiz-card__title {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.5;
}

.quiz-card__situation {
  font-size: 18px;
}

.quiz-card__action {
  position: relative;
  padding: 16px 20px 16px 48px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: bold;
  background: #fff8e6;
  border-radius: 8px;
}

.quiz-card__action::before {
  position: absolute;
  top: 16px;
  left: 20px;
  color: #ff8a00;
  content: "→";
}

.quiz-card__ask {
  margin-top: 24px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

/* ○×ボタン */
.quiz-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.quiz-choice {
  padding: 12px 0;
  font-family: inherit;
  line-height: 1.2;
  background: #fff;
  border: 3px solid #eae6df;
  border-radius: 16px;
  transition: border-color 0.2s, background-color 0.2s;
}

.quiz-choice__mark {
  font-size: 64px;
  font-weight: 900;
}

.quiz-choice--o .quiz-choice__mark {
  color: #e03131;
}

.quiz-choice--x .quiz-choice__mark {
  color: #007bd0;
}

.quiz-choice:hover {
  border-color: #ffc300;
}

.quiz-choice.is-selected {
  background: #fff8e6;
  border-color: #ff8a00;
}

/* ナビゲーション */
.quiz-nav {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 32px;
}

/* 結果画面 */
.quiz-result__summary {
  padding: 40px 32px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
}

.quiz-result__score {
  font-size: 20px;
}

.quiz-result__score strong {
  margin-inline: 4px;
  font-size: 56px;
  font-weight: 900;
  color: #ff8a00;
}

.quiz-result__title {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.5;
}

.quiz-result__text {
  margin-top: 16px;
  font-size: 18px;
  text-align: left;
}

.quiz-result__heading {
  margin: 56px 0 24px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.quiz-result__bottom {
  margin-top: 40px;
  text-align: center;
}

/* シェア */
.quiz-share {
  padding: 16px;
  margin: 32px 0;
  background: #f4f4f4;
  border-radius: 8px;
}

.quiz-share__label {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: bold;
}

.quiz-share__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.quiz-share__btn {
  padding: 8px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: 8px;
}

.quiz-share__btn--x {
  background: #000;
}

.quiz-share__btn--line {
  background: #06c755;
}

.quiz-share__btn--copy {
  background: #6e6e6e;
}

/* 解答と解説 */
.quiz-review {
  list-style: none;
}

.quiz-review__item + .quiz-review__item {
  margin-top: 24px;
}

.quiz-review__item .quiz-card__situation,
.quiz-review__item .quiz-card__action {
  font-size: 16px;
}

.quiz-review__answer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  margin-top: 20px;
  font-size: 16px;
}

.quiz-review__answer strong {
  font-size: 1.4em;
}

.quiz-review__judge {
  padding: 2px 16px;
  font-weight: bold;
  color: #fff;
  border-radius: 999px;
}

.is-correct .quiz-review__judge {
  background: #007bd0;
}

.is-incorrect .quiz-review__judge {
  background: #e03131;
}

.quiz-review__explanation {
  padding-top: 16px;
  margin-top: 16px;
  font-size: 16px;
  border-top: 1px solid #eae6df;
}

@media screen and (max-width: 768px) {
  .quiz {
    padding-block: 10.6666666667vw;
  }

  .quiz-btn {
    min-width: 0;
    padding: 12px 24px;
    font-size: 16px;
  }

  .quiz-start {
    padding: 32px 16px;
  }

  .quiz-start__title {
    font-size: 26px;
  }

  .quiz-start__sub,
  .quiz-start__lead {
    font-size: 16px;
  }

  .quiz-start__img {
    width: 160px;
  }

  .quiz-card,
  .quiz-review__item,
  .quiz-result__summary {
    padding: 24px 16px;
  }

  .quiz-card__num {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .quiz-card__title {
    font-size: 18px;
  }

  .quiz-card__situation,
  .quiz-card__action,
  .quiz-result__text {
    font-size: 16px;
  }

  .quiz-choice__mark {
    font-size: 48px;
  }

  .quiz-nav .quiz-btn {
    flex: 1;
  }

  .quiz-result__score strong {
    font-size: 44px;
  }

  .quiz-result__title {
    font-size: 22px;
  }
}
