.mv {
  margin: 4.5rem 0 3.8rem;
}

.lead {
  margin: 3.8rem 0 5.4rem;
}

.quiz-start {
  position: relative;
  overflow: hidden;
  margin: 5.4rem 0 12.6rem;
  padding: 5rem 1.1rem 10.6rem;
  border-radius: 0.6rem;
  background: #FFFBE6;
}
.quiz-start::before, .quiz-start::after {
  position: absolute;
  left: -2.6rem;
  content: "";
  width: 38rem;
  height: 10.4rem;
  pointer-events: none;
}
.quiz-start::before {
  top: -2.3rem;
  background: url(../img/quiz-bg_top.png) no-repeat center/contain;
  opacity: 0.45;
  display: none;
}
.quiz-start::after {
  bottom: -2rem;
  background: url(../img/quiz-bg_bottom.png) no-repeat center/contain;
  opacity: 0.7;
}
.quiz-start_title {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  color: #02A0E2;
}
.quiz-start_text {
  padding: 0 0.4rem;
  margin-top: 1.4rem;
}
.quiz-start_button, .result_reset, .answer_next {
  position: relative;
  display: block;
  margin: 4.4rem auto 0;
  padding: 1.5rem;
  border-radius: 0.6rem;
  width: 100%;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  color: #fff;
  background: #DB3342;
}
.quiz-start_button::after, .result_reset::after, .answer_next::after {
  position: absolute;
  bottom: -0.8rem;
  right: 0.6rem;
  content: "";
  width: 7.3rem;
  height: 7.8rem;
  background: url(../img/button-icon.png) no-repeat center/contain;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.8rem), 0 calc(100% - 0.8rem));
}

.quiz-modal {
  overflow: visible;
  position: fixed;
  inset: 0;
  width: 89%;
  max-width: 33.4rem;
  height: fit-content;
  max-height: none;
  margin: auto;
  padding: 0;
  background: #FFFADF;
  border: none;
  border-radius: 0.6rem;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.3);
  opacity: 0;
  scale: 0.9;
  transition: all 0.3s allow-discrete;
}
.quiz-modal[open] {
  opacity: 1;
  scale: 1;
}
@starting-style {
  .quiz-modal[open] {
    opacity: 0;
    scale: 0.9;
  }
}
.quiz-modal::backdrop {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  opacity: 0;
  transition: display 0.5s allow-discrete, opacity 0.5s;
}
.quiz-modal[open]::backdrop {
  opacity: 1;
}
@starting-style {
  .quiz-modal[open]::backdrop {
    opacity: 0;
  }
}
.quiz-modal_scrollable {
  overflow: auto;
  height: fit-content;
  max-height: calc(100dvh - 12rem);
  padding-right: 17px;
  margin-right: -17px;
}
.quiz-modal_inner {
  overflow: hidden;
  z-index: 0;
  position: relative;
  padding: 6.1rem 1.1rem;
}
.quiz-modal_inner::before, .quiz-modal_inner::after {
  position: absolute;
  z-index: -1;
  left: -2.6rem;
  content: "";
  width: 38rem;
  height: 10.4rem;
  pointer-events: none;
}
.quiz-modal_inner::before {
  top: -2.3rem;
  background: url(../img/quiz-bg_top.png) no-repeat center/contain;
  opacity: 0.45;
}
.quiz-modal_inner::after {
  bottom: -2rem;
  background: url(../img/quiz-bg_bottom.png) no-repeat center/contain;
  opacity: 0.7;
}
.quiz-modal_page {
  position: absolute;
  z-index: 1;
  top: 2.1rem;
  left: 1.5rem;
  display: inline-block;
  padding: 0 0.8rem;
  border-radius: 0.6rem;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(2, 160, 226, 0.5);
  background: #fff;
}
.quiz-modal_close {
  position: absolute;
  top: -0.5rem;
  right: 0;
  translate: 0 -100%;
  width: 3.2rem;
  height: 3.2rem;
}
.quiz-modal_close img {
  width: 100%;
  height: 100%;
}

.question_title {
  padding: 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 2.2rem;
  font-weight: bold;
  color: #02A0E2;
}
.question_title::before, .question_title::after {
  content: "";
  flex-grow: 1;
  height: 0.2rem;
  background: #80CFF1;
  translate: 0 0.4rem;
}
.question_text {
  padding: 0 0.4rem;
  margin-top: 1.4rem;
}
.question_buttonWrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 4rem;
}
.question_button {
  overflow: hidden;
  display: grid;
  grid-template-columns: 5rem 1fr;
  align-items: stretch;
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: 0.2rem 0.4rem 0.4rem rgba(0, 0, 0, 0.16);
}
.question_button .opt {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  font-weight: bold;
  color: #fff;
}
.question_button .text {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1em;
  font-size: 2rem;
  font-weight: bold;
  transition: color 0.3s, background-color 0.3s;
}
.question_button.opt-a .opt {
  background: #02A0E2;
}
.question_button.opt-a .text {
  color: #02A0E2;
}
.question_button.opt-a:hover .text {
  color: #fff;
  background: #02A0E2;
}
.question_button.opt-b .opt {
  background: #0078AA;
}
.question_button.opt-b .text {
  color: #0078AA;
}
.question_button.opt-b:hover .text {
  color: #fff;
  background: #0078AA;
}
.question_back {
  margin-top: 3rem;
  padding: 0.5rem 4rem 0.5rem 0;
  font-size: 1.4rem;
  font-weight: 500;
  color: #02A0E2;
}

.answer_title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #02A0E2;
  text-align: center;
}
.answer_box {
  margin-top: 1.4rem;
  padding: 1.3rem 1.3rem 2rem;
  border-radius: 0.6rem;
  background: #fff;
}
.answer_head {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
}
.answer_head .opt {
  flex-shrink: 0;
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1.5909090909;
  color: #02A0E2;
}
.answer_head .text {
  font-size: 2rem;
  line-height: 1.75;
  font-weight: bold;
}
.answer__body p small {
  display: block;
  margin-top: 1.8em;
  font-size: 0.875em;
}
.answer_buttonWrap {
  margin-top: 4.5rem;
}
.answer_next {
  background: #02A0E2;
  margin-top: 0;
}
.answer_next span {
  position: relative;
}
.answer_next span::after {
  position: absolute;
  top: 50%;
  right: -0.6rem;
  translate: 100% -50%;
  content: "";
  width: 2.7rem;
  height: 2.7rem;
  background: url(../img/icon_next.svg) no-repeat center/contain;
}
.answer_last {
  display: block;
  width: 100%;
  padding: 1.5rem;
  border-radius: 0.6rem;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  color: #fff;
  background: #DB3342;
}

.result_title {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  color: #02A0E2;
}
.result_box {
  overflow: hidden;
  border-radius: 0.6rem;
  background: #fff;
  margin-top: 1.4rem;
}
.result_head {
  position: relative;
  min-height: 9.4rem;
  padding: 1.6rem 0 1.8rem;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  background: #02A0E2 url(../img/result-head01.png) no-repeat center bottom/contain;
}
.result_box.beginner .result_head {
  background-image: url(../img/result-head01.png);
}
.result_box.standard .result_head {
  background-image: url(../img/result-head02.png);
}
.result_box.advanced .result_head {
  background-image: url(../img/result-head03.png);
}
.result_box.expert .result_head {
  background-image: url(../img/result-head04.png);
}
.result_head::after {
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  translate: -50% 0;
  content: "";
  width: 3.1rem;
  height: 1.8rem;
  background: #02A0E2;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.result_body {
  padding: 2.8rem 1.2rem;
}
.result_body p a {
  color: #E63332;
  text-decoration: underline;
}
.result_buttonWrap {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}
.result_reset::after {
  right: -0.4rem;
  width: 6.4rem;
  height: 6.9rem;
  margin-top: 4.9rem;
}
.result_back {
  display: block;
  width: 100%;
  padding: 1.3rem;
  border-radius: 0.6rem;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  color: #DB3342;
  background: #fff;
  border: 0.2rem solid;
}

.question,
.answer,
.result {
  display: none;
}
.question.is-active,
.answer.is-active,
.result.is-active {
  display: block;
}

.quiz-modal_page.is-hidden,
.question_back.is-hidden {
  display: none !important;
}