:root {
  --answer__item__bg-color: #e1dcce;
  --answer__item__font-color: #595959;
  --answer__item-active__bg-color: #ad9997;
  --answer__item-active__font-color: #ffffff;
  --answer__btn__bg-color: #ceb87b;
  --answer__btn__font-color: #ffffff;
}

main {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.question {
  margin: 10% auto;
}

.question[data-content-id="q1"] {
  margin-top: 0;
}

.question__title {
  display: block;
  width: calc(833 / 960 * 100%);
  margin: 0 auto 5%;
}

.answer {
  display: block;
  width: 80%;
  margin: 0 auto;
}

.answer__list {
  display: flex;
}

.answer[data-type="radio"] .answer__list {
  column-gap: 10px;
}

.answer[data-type="checkbox"] .answer__list {
  flex-direction: column;
}

.answer__item {
  display: flex;
  align-items: center;
  background-color: var(--answer__item__bg-color);
  width: 100%;
  min-height: 40px;
  margin-bottom: 5%;
  border-radius: min(4.1666666667vw, 20px);
  font-weight: 800;
  color: var(--answer__item__font-color);
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transition: all 0.25s;
}

.answer[data-type="radio"] .answer__item {
  justify-content: center;
  padding: 5% 0;
  font-size: min(4.6875vw, 45px);
}

.answer[data-type="checkbox"] .answer__item {
  justify-content: flex-start;
  column-gap: min(3.3333333333vw, 32px);
  padding: 5% min(5vw, 48px);
  font-size: min(3.5416666667vw, 34px);
}

.answer[data-type="radio"] .answer__item.active {
  background-color: var(--answer__item-active__bg-color);
  color: var(--answer__item-active__font-color);
}

.answer__item .checkbox {
  position: relative;
  background-color: #ffffff;
  display: inline-block;
  width: min(4.6875vw, 45px);
  height: min(4.6875vw, 45px);
}

.answer__item.active .checkbox::before,
.answer__item.active .checkbox::after {
  content: "";
  position: absolute;
  background-color: #C74242;
  border-radius: min(0.2083333333vw, 2px);
}

/* 短い線（左下 → 中央） */
.answer__item.active .checkbox::before {
  width: min(0.625vw, 6px);
  height: min(1.875vw, 18px);
  left: min(1.25vw, 12px);
  top: min(1.875vw, 18px);
  transform: rotate(-45deg);
}

/* 長い線（中央 → 右上） */
.answer__item.active .checkbox::after {
  width: min(0.625vw, 6px);
  height: min(3.125vw, 30px);
  top: min(0.8333333333vw, 8px);
  left: min(2.7083333333vw, 26px);
  transform: rotate(45deg);
}

.answer__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--answer__btn__bg-color);
  width: 100%;
  min-height: 50px;
  padding: 5% 0;
  border-radius: 100px;
  font-size: min(4.6875vw, 45px);
  font-weight: 800;
  color: var(--answer__btn__font-color);
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
}

.answer__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.uv__carousel {

  .swiper-button-next,
  .swiper-button-prev {
    color: #595959;
  }

  .swiper-button-prev,
  .swiper-rtl .swiper-button-next {
    left: min(1.04166666667vw, 10px);
  }

  .swiper-button-next,
  .swiper-rtl .swiper-button-prev {
    right: min(1.04166666667vw, 10px);
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: min(4.1666666667vw, 40px);
  }
}

.qa {
  background-image: url("https://assets.ec.medulla.jp/medulla/lp/usp_01/img/qa_bg.webp");
  background-size: 100% auto;
  background-position: top center;
  padding: 10% 0 5%;
}

.qa__inner {
  padding: 5% 7.5%;
}

.qa__item {
  margin-bottom: 4%;
}

.qa__question {
  position: relative;
  cursor: pointer;
}

.qa__question__toggle {
  position: absolute;
  top: 52.5%;
  right: 4%;
  transform: translateY(-50%);
  width: 8%;
  aspect-ratio: 1 / 1;
}

.qa__question__toggle::before,
.qa__question__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  transition: transform 0.3s ease;
}

.qa__question__toggle::before {
  width: 50%;
  height: min(0.2083333333vw, 2px);
}

.qa__question__toggle::after {
  width: min(0.2083333333vw, 2px);
  height: 50%;
}

.qa__item.is-open .qa__question__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.qa__answer {
  display: none;
  background-color: #fff8fc;
  width: 95%;
  margin: 3% auto 0;
  padding: 5%;
  border-radius: min(3.125vw, 30px);
}

.qa__item.is-open .qa__answer {
  display: block;
}

.qa__answer__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: min(3.2vw, 16px);
  color: #04375e;
  line-height: 1.8;
}