.quizBox[hidden] {
  display: none;
}
.quizBox {
  position: fixed;
  z-index: 10;
  inset: 0;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}
.quizBackdropBox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .48);
  animation: flux-go .3s ease both;
}
.quizPanelBox {
  position: relative;
  width: min(47.5rem, 100%);
  height: auto;
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1rem 3.75rem rgba(0, 0, 0, .1);
  animation: nova-on .35s cubic-bezier(.2, .75, .2, 1) both;
}
.quizCloseBox {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  right: 1.75rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #737373;
  font-size: 1.9375rem;
  line-height: 1;
  opacity: 0;
  transition: opacity .2s ease, background-color .2s ease;
}
.quizCloseBox:focus-visible {
  opacity: 1;
}
.quizCloseBox:hover {
  background: #f5f5f5;
}
.quizStageBox {
  min-height: 100%;
}
.question {
  display: flex;
  flex-direction: column;
  padding: 3.375rem 3.25rem 3.125rem;
}
.questionCountBox {
  margin: 0;
  color: #737373;
  font-size: 1.25rem;
  font-weight: 500;
}
.questionTitleBox {
  margin: 1.875rem 0 0;
  font-size: 2.625rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.02em;
}
.answersBox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.125rem;
  margin-top: 2.375rem;
}
.answer {
  width: 100%;
  min-height: 4.5rem;
  padding: 1.125rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 0.875rem;
  background: #f5f5f5;
  color: #201e1e;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.answer:hover {
  background: #fce6e5;
  transform: translateY(-0.125rem);
}
.answer:active, .answer.isPicked {
  border-color: #ed5257;
  background: #fff2f1;
  transform: none;
}
.questionHintBox {
  margin: auto 0 0;
  padding-top: 1.875rem;
  color: #737373;
  font-size: 1rem;
}
.resultBox {
  padding: 3.75rem 3.25rem;
}
.resultTitleBox {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -.02em;
}
.resultTextBox {
  margin: 1.625rem 0 0;
  font-size: 1.4375rem;
  line-height: 1.3;
}
.leadFormBox {
  margin-top: 2.5rem;
}
.resultLabelBox {
  display: block;
  margin-bottom: 0.625rem;
  font-size: 1rem;
  font-weight: 500;
}
.resultInputBox {
  display: block;
  width: 100%;
  height: 3.625rem;
  padding: 0 1.125rem;
  border: 1px solid #c7c7c7;
  border-radius: 0.75rem;
  background: #fff;
  color: #201e1e;
  font-size: 1.125rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.resultInputBox::placeholder {
  color: #737373;
  opacity: 1;
}
.resultInputBox:focus {
  outline: none;
  border-color: #ed5257;
  box-shadow: 0 0 0 3px rgba(237, 82, 87, .12);
}
.resultSubmitBox {
  width: 22.5rem;
  max-width: 100%;
  height: 3.375rem;
  margin-top: 1.25rem;
  font-size: 1.125rem;
}
.resultSubmitBox:disabled {
  background: #b8b8b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.resultHelpBox {
  margin: 0.75rem 0 0;
  color: #737373;
  font-size: 0.9375rem;
}
.resultHelpBox[hidden] {
  display: none;
}

@media (max-height: 56.25em) and (min-width: 56.3125em) {
  .question {
    padding: 3.625rem 4rem 3rem;
  }
  .questionTitleBox {
    margin-top: 1.5625rem;
    font-size: 2.5rem;
  }
  .answersBox {
    position: static;
    gap: 0.875rem 1.5rem;
    margin-top: 2.1875rem;
  }
  .answer {
    min-height: 4.5rem;
    padding: 1rem 1.25rem;
    font-size: 1.25rem;
  }
  .questionHintBox {
    margin-top: 2rem;
    padding: 0;
    font-size: 1rem;
  }
  .resultBox {
    padding-top: 4.375rem;
  }
  .resultTitleBox {
    font-size: 2.5rem;
  }
  .resultTextBox {
    margin-top: 1.75rem;
    font-size: 1.4375rem;
  }
  .leadFormBox {
    margin-top: 2.5rem;
  }
  .resultLabelBox {
    font-size: 1rem;
  }
  .resultInputBox {
    height: 3.75rem;
    font-size: 1.125rem;
  }
  .resultSubmitBox {
    height: 3.375rem;
    margin-top: 1.25rem;
    font-size: 1.125rem;
  }
  .resultHelpBox {
    font-size: 1rem;
  }
}

@media (max-width: 56.25em) {
  .quizBox {
    align-items: center;
    padding: 1rem;
  }
  .quizPanelBox {
    flex: 0 0 auto;
    width: min(100%, 31.25rem);
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    border-radius: 1.125rem;
  }
  .quizCloseBox {
    top: 0.875rem;
    right: 0.875rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.625rem;
  }
  .question {
    min-height: 0;
    padding: 3.5rem 1.5rem 1.75rem;
  }
  .questionCountBox {
    font-size: 0.9375rem;
  }
  .questionTitleBox {
    margin-top: 1.25rem;
    font-size: 1.625rem;
    line-height: 1.17;
    letter-spacing: -.02em;
  }
  .answersBox {
    position: static;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.75rem;
  }
  .answer {
    min-height: 3.5rem;
    padding: 0.875rem 1rem;
    border-radius: 0.625rem;
    font-size: 1.0625rem;
  }
  .questionHintBox {
    padding-top: 1.25rem;
    font-size: 0.875rem;
  }
  .resultBox {
    min-height: 0;
    padding: 3.5rem 1.5rem 2rem;
  }
  .resultTitleBox {
    font-size: 1.8125rem;
    line-height: 1.17;
  }
  .resultTextBox {
    margin-top: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.24;
  }
  .leadFormBox {
    margin-top: 2rem;
  }
  .resultLabelBox {
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
  }
  .resultInputBox {
    height: 3.375rem;
    padding: 0 0.8125rem;
    border-radius: 0.5rem;
    font-size: 1.0625rem;
  }
  .resultSubmitBox {
    width: 100%;
    height: 3.25rem;
    margin-top: 1.25rem;
    font-size: 1rem;
  }
  .resultHelpBox {
    margin-top: 0.75rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 23.125em) {
  .quizBox {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }
  .question {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .resultBox {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
@keyframes flux-go { from { opacity: 0; } to { opacity: 1; } }
@keyframes nova-on { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes drift-on { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes reed-up { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-12px); } }
