body {
  overflow: initial;
  background-color: #ebf0f5;
}

.test {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.test__loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 5em;
  height: 5em;
  visibility: hidden;
  border: 0.5rem solid #2d3c5a;
  border-top: 0.5rem solid #ffffff;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation-name: loading;
  animation-duration: 1.5s;
  animation-timing-function: linear;
  animation-direction: normal;
  animation-iteration-count: infinite;
  animation-delay: 0s;
  animation-fill-mode: both;
  animation-play-state: running;
}
.test__loading.visible {
  visibility: visible;
  opacity: 1;
}
@keyframes loading {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.test__wrapper {
  width: 100%;
  padding: 5rem 2rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 1.5s, opacity 1.5s;
}
.test__wrapper.ready {
  visibility: visible;
  opacity: 1;
}
.test__top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  -webkit-user-select: none;
          user-select: none;
  background: linear-gradient(rgba(35, 40, 50, 0.5), rgba(35, 40, 50, 0.5)), url("https://sleep.itembox.design/item/free-page/img/diagnosis/diagnosis_bg.jpg");
  background-position: center;
  background-size: cover;
  transition: visibility 1s, opacity 1s;
}
.test__top-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  max-width: 480px;
}
.active .test__top {
  visibility: hidden;
  opacity: 0;
}
.test__top-image {
  max-width: 280px;
}
.test__start-button {
  margin-top: 0;
  font-size: 1.5em;
}
.test__contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  margin: 0 auto 1rem;
}
.test__contents-question {
  display: none;
}
.test__contents-question.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 480px;
}
.test__contents-answer {
  display: none;
}
.test__contents-answer.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 960px;
  animation: fade-in 2s;
}
@keyframes fade-in {
  0% {
    visibility: hidden;
    opacity: 0;
  }
  100% {
    visibility: visible;
    opacity: 1;
  }
}
.test__close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  line-height: 1;
  color: #ffffff;
  text-align: center;
  transform: rotate(45deg);
}
.test__close-button svg {
  width: 3rem;
  height: 3rem;
}
.active .test__close-button {
  color: #2d3c5a;
}
.test__restart-button {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: none;
  line-height: 1;
  color: #2d3c5a;
  text-align: center;
}
.test__restart-button svg {
  width: 3rem;
  height: 3rem;
}
.active .test__restart-button {
  display: block;
}
.test__question-title {
  font-size: 1.2rem;
}
.test__question-title::before {
  display: block;
  font-size: 1.2em;
  color: #406db0;
  content: "Q.";
}
.test__question-image img {
  border-radius: 0.5rem;
}
.test__question-desc {
  margin-top: 1rem;
}
.test__option-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}
@media screen and (min-width: 768px) {
  .test__option-list {
    flex-direction: row;
    align-items: stretch;
  }
}
.test__option-button {
  display: block;
  width: 100%;
  padding: 1rem 0;
  color: #2d3c5a;
  text-align: center;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 5px rgba(35, 40, 50, 0.2);
}
@media (hover) {
  .test__option-button {
    transition: background-color 0.3s, color 0.3s;
  }
  .test__option-button:hover {
    color: #ffffff;
    background-color: #232832;
  }
}
.test__product-title {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
}
.test__product-contents {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1rem;
  color: #2d3c5a;
  background-color: #ffffff;
  border-radius: 0.5rem;
}
@media screen and (min-width: 768px) {
  .test__product-contents {
    flex-direction: row;
    gap: 1rem 2rem;
    padding: 3rem 2rem;
  }
}
.test__product-image {
  flex-shrink: 1;
  width: 100%;
  max-width: 400px;
  margin: auto;
}
.test__product-image img {
  border-radius: 1rem;
}
.test__product-text {
  display: flex;
  flex-direction: column;
  flex-shrink: 2;
  gap: 1.5rem;
}
.test__product-name {
  padding-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  border-bottom: 2px solid #2d3c5a;
}
@media screen and (min-width: 768px) {
  .test__product-name {
    font-size: 1.8rem;
    text-align: left;
  }
}
.test__product-name--en {
  display: block;
  font-size: 0.9em;
  color: #406db0;
}
.test__product-desc {
  font-weight: 600;
  line-height: 1.8;
}
.test__product-link {
  margin: 0.5rem auto 0;
}/*# sourceMappingURL=pillow-test.css.map */