/* ===========================================================================
   クイズページ全体（共通）
============================================================================ */
.page_quiz {
  padding: 4rem 0;
  word-break: break-all;
}
/* 問題コンテナ */
.quiz_item .container {
  background: #fff;
  border: 3px solid #004bb1;
  border-radius: 1.5rem;
  min-height: 70rem;
  padding-bottom: 5.6rem;
  position: relative;
}
.quiz_item .container::before {
  background-color: #004bb1;
  background-image: url(../img/quiz/bg_line.svg);
  background-repeat: repeat;
  background-size: 100%;
  border-radius: 1.5rem;
  bottom: -2.4rem;
  content: '';
  height: 100%;
  position: absolute;
  right: -2.1rem;
  transition: .2s;
  width: 100%;
  z-index: -10!important;
}

/* 質問エリア */
.quiz_item .wrap01 {
  display: flex;
  justify-content: space-between;
  padding: 5.6rem 0 0;
  position: relative;
}
.quiz_item .question {
  display: flex;
  flex-direction: column;
  max-height: 58.8rem;
  padding-top: 20.5rem;
  position: relative;
  width: 46rem;
}
.quiz_item .question .h2 {
  align-items: center;
  background-image: url(../img/quiz/fukidashi.svg);
  background-repeat: no-repeat;
  background-size: contain;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 3rem;
  gap: .5rem;
  height: 24.1rem;
  justify-content: center;
  left: -3.9rem;
  line-height: 1;
  padding-bottom: 3rem;
  position: absolute;
  text-align: center;
  top: -5.6rem;
  width: 33.4rem;
}
.quiz_item .question .h2 span {
  font-size: 6.4rem;
}
.quiz_item .question .p1 {
  font-size: 2.3rem;
  letter-spacing: -.12rem;
  line-height: calc(50/24);
}
.quiz_item .question .p1 + small {
  font-size: 1rem;
  letter-spacing: -5%;
  line-height: 1.5;
  margin-top: 1rem;
}
.quiz_item .question .p1 + small a:hover {
  text-decoration: underline;
}
.quiz_item .question .img {
  /* aspect-ratio: 460/271; */
  background: #ccc;
  flex-grow: 1;
  margin-top: 2rem;
  width: 100%;
}
.quiz_item .question .img img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* 選択肢エリア */
.quiz_item .answer {
  background: #eceee1;
  border-radius: 1.5rem;
  padding: 6.4rem 3.9rem;
  width: 47.6rem;
}
.quiz_item .answer .h3 {
  color: #004bb1;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 7rem;
}
.radioItem {
  align-items: center;
  column-gap: 1.1rem;
  cursor: pointer;
  display: flex;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 7rem;
  width: fit-content;
}
.radioItem span {
  align-items: flex-end;
  display: flex;
  height: 2.4rem;
  white-space: nowrap;
}
.radioItem span ruby {
  align-items: center;
  display: flex;
  flex-direction: column-reverse;
}
/* .radioItem span:has(ruby) {
  padding-top: 0;
} */
.radioButton {
  appearance: none;
  background: #fff;
  border: .2rem solid;
  border-radius: .5rem;
  cursor: pointer;
  height: 4.5rem;
  position: relative;
  width: 4.5rem;
}
.radioButton:checked::after {
  background-image: url(../img/quiz/check.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
  height: 3.5rem;
  left: .7rem;
  position: absolute;
  top: -.5rem;
  width: 4.3rem;
}

/* 正誤アイコン */
.quiz_item .result {
  align-items: center;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  margin: auto;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transition: .3s;
}
.quiz_item .result.seikai {
  width: 44rem;
}
.quiz_item .result.zannen {
  width: 52.5rem;
}
.quiz_item.result_seikai .result.seikai {
  opacity: 1;
}
.quiz_item.result_zannen .result.zannen {
  opacity: 1;
}

/* 解説エリア */
.wrap02 {
  display: none;
  /* height: auto; */
  height: 0;
  margin-top: 0;
  opacity: 0;
  /* max-height: 0; */
  overflow: hidden;
  padding: 0;
  transition: .3s;
}
.quiz_item.answered .wrap02 {
  display: block;
  /* max-height: 3000px; */
  height: auto;
  margin-top: 3rem;
  opacity: 1;
  overflow: visible;
}
.wrap02 .yellow_area {
  align-items: center;
  background: #fffb00;
  border: 1px solid #004bb1;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.3rem 2rem;
}
.wrap02 .yellow_area .h4 {
  color: #004bb1;
  font-size: 2.4rem;
  font-weight: 800;
}
.wrap02 .yellow_area .p2 {
  font-size: 1.6rem;
  line-height: calc(24/16);
  margin-top: 1rem;
}
.wrap02 .dls {
  line-height: calc(24/16);
  margin-top: 2.3rem;
}
.wrap02 .dls dl dt {
  color: #004bb1;
}
.wrap02 .dls dl + .p3 {
  margin-top: 1.6rem;
}
.wrap02 .dls .p2 {
  font-size: 1.8rem;
  line-height: calc(40/18);
}
.wrap02 .btn {
  align-items: center;
  background: #004bb1;
  border: 1px solid #004bb1;
  border-radius: 100rem;
  color: #fff;
  display: flex;
  height: 5rem;
  justify-content: center;
  margin: 5rem auto 0;
  transition: .3s;
  width: 32rem;
}
.wrap02 .btn:hover {
  background: #fff;
  color: #004bb1;
}
@media screen and (max-width: 768px) {
  .page_quiz {
    padding: 4rem 0;
  }
  /* 問題コンテナ */
  .quiz_item .container {
    min-height: auto;
    /* padding-bottom: 5.6rem; */
  }
  .quiz_item .container::before {
    background-size: 100rem;
    bottom: -1.5rem;
    right: -1.5rem;
  }

  /* 質問エリア */
  .quiz_item .wrap01 {
    flex-direction: column;
    padding: 5.6rem 1.5rem 0;
  }
  .quiz_item .question {
    padding-top: calc((24.1rem * .7) - 4rem);
    position: relative;
    width: 100%;
  }
  .quiz_item .question .h2 {
    font-size: 2rem;
    height: calc(24.1rem * .7);
    left: 0;
    width: calc(33.4rem * .7);;
  }
  .quiz_item .question .h2 span {
    font-size: 4rem;
  }
  .quiz_item .question .p1 {
    font-size: 1.6rem;
  }
  /* 選択肢エリア */
  .quiz_item .answer {
    margin-top: 2rem;
    padding: 4rem 1.5rem;
    width: 100%;
  }
  .quiz_item .answer .h3 {
    color: #004bb1;
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
  }
  .radioItem {
    column-gap: .6rem;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    width: fit-content;
  }
  .radioItem span {
    height: 1.6rem;
    padding-top: .8rem;
  }

  .radioButton {
    height: 3rem;
    width: 3rem;
  }
  .radioButton:checked::after {
    height: 3rem;
    left: .2rem;
    top: -.5rem;
    width: 3rem;
  }

  /* 正誤アイコン */
  .quiz_item .result {
    align-items: center;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    margin: auto;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transition: .3s;
  }
  .quiz_item .result.seikai {
    width: calc(44rem * .5);
  }
  .quiz_item .result.zannen {
    width: calc(52.5rem * .5);
  }

  /* 解説エリア */
  .quiz_item.answered .wrap02 {
    padding: 0 1.5rem;
  }
  .wrap02 .yellow_area {
    padding: 2.3rem 1.5rem;
  }
  .wrap02 .yellow_area .h4 {
    font-size: 1.6rem;
    text-align: center;
    width: 100%;
  }
  .wrap02 .dls {
    line-height: calc(24/16);
    margin-top: 2.3rem;
  }
  .wrap02 .dls dl + dl {
    margin-top: 1rem;
  }
  .wrap02 .dls .p2 {
    font-size: 1.6rem;
  }
  .wrap02 .btn {
    width: 100%;
  }
}

/* ===========================================================================
   結果画面
============================================================================ */
.quizResult .wrap03 {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
}
.quizResult .wrap03 .h2 {
  align-items: center;
  background-image: url(../img/quiz/fukidashi.svg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 4.8rem;
  height: 28.7rem;
  justify-content: center;
  line-height: calc(58.5/48);
  padding-bottom: 5rem;
  text-align: center;
  width: 39.7rem;
}
.quizResult .wrap03 .score {
  align-items: center;
  background: #eceee1;
  border-radius: 1.5rem;
  color: #004bb1;
  display: flex;
  font-weight: 800;
  height: 18.3rem;
  justify-content: center;
  margin-top: 1.1rem;
  white-space: nowrap;
  width: 69.2rem;
}
.quizResult .wrap03 .score .score1 {
  font-size: 3.6rem;
  margin-right: 1rem;
}
.quizResult .wrap03 .score .score1 strong {
  display: inline-block;
  font-size: 9.6rem;
  margin-right: .5rem;
  text-align: right;
  width: 14rem;
}
.quizResult .wrap03 .score .score2 {
  /* background-image: url(../img/quiz/line.svg);
  width: 7rem;
  height: 9rem;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center; */
  font-size: 12rem;
  font-weight: normal;
}
.quizResult .wrap03 .score3 {
  bottom: -2rem;
  font-size: 3.2rem;
  left: -1rem;
  position: relative;
}
.quizResult .wrap03 .score3 strong {
  font-size: 6.4rem;
}
.quizResult .wrap03 .contents .content01 {
  margin-top: -2rem;
  position: relative;
}
.quizResult .wrap03 .contents .content01 .star {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 0;
  display: flex;
  height: 8rem;
  margin: auto;
  position: absolute;
  top: 1rem;
  width: 3.8rem;
}
/* アニメーション定義 */
@keyframes twinkle {
  0%, 100% {
    opacity: .2;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* 左側の星：先に光る */
.quizResult .wrap03 .contents .content01 .star.left {
  animation: twinkle 2s ease-in-out infinite;
  animation-delay: 0s;
  background-image: url(../img/quiz/star01.svg);
  left: -3.8rem;
}

/* 右側の星：少し遅れて光る */
.quizResult .wrap03 .contents .content01 .star.right {
  animation: twinkle 2s ease-in-out infinite;
  animation-delay: 1s; /* 交互に光るようにディレイをずらす */
  background-image: url(../img/quiz/star02.svg);
  right: -3.8rem;
}
.quizResult .wrap03 .contents .content01 .p1 {
  align-items: center;
  color: #004bb1;
  display: flex;
  font-size: 2.4rem;
  font-weight: 800;
  justify-content: center;
  position: relative;
  white-space: nowrap;
}
.quizResult .wrap03 .contents .content01 .p1 .txt {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  text-align: center;
  width: calc((100% - 15.4rem) / 2);
}
.quizResult .wrap03 .contents.retry .content01 .p1 .txt {
  position: relative;
  top: 2.1rem;
}
.quizResult .wrap03 .contents .content01 .p1 span {
  align-items: flex-end;
  display: flex;
  height: 2.4rem;
}
.quizResult .wrap03 .contents .content01 .p1 span:nth-of-type(1) {
  justify-content: right;
}
.quizResult .wrap03 .contents .content01 .p1 span:nth-of-type(2) {
  justify-content: left;
}
.quizResult .wrap03 .contents .content01 .p1 ruby {
  align-items: center;
  display: flex;
  flex-direction: column-reverse;
  height: 2.4rem;
}
.quizResult .wrap03 .contents .content01 .p1 .mark {
  margin: 0 1.1rem;
  width: 13.2rem;
}.quizResult .wrap03 .contents .content02 {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4.9rem;
  margin-top: 1.6rem;
}
.quizResult .wrap03 .contents .content02 .btn {
  align-items: center;
  border: solid 3px #004bb1;
  border-radius: 100rem;
  color: #004bb1;
  display: flex;
  font-size: 2rem;
  font-weight: 800;
  height: 5.8rem;
  justify-content: center;
  padding: .3rem;
  width: 32rem;
}
.quizResult .wrap03 .contents .content02 .btn .border {
  align-items: center;
  border: solid 1px #004bb1;
  border-radius: 100rem;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}
.quizResult .wrap03 .contents .content02 .btn:hover {
  background: #004bb1;
  color: #fff;
}
.quizResult .wrap03 .contents .content02 .btn01 {
  background: #fffb00;
}
.quizResult .wrap03 .contents .content02 .btn01:hover {
  background: #004bb1;
  color: #fffb00;
}
.quizResult .wrap04 .h3 {
  border-bottom: solid 1px #004bb1;
  color: #004bb1;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.66;
  overflow: hidden;
  padding-top: 7rem;
  position: relative;
  text-align: center;
}
.quizResult .wrap04 .h3 span {
  position: relative;
}
.quizResult .wrap04 .h3 span::before {
  background-image: url(../img/tour/factory03.svg);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
  bottom: -.5rem;
  content: '';
  height: 5rem;
  position: absolute;
  right: -10rem;
  width: 6.7rem;
}
.quizResult .wrap04 .links_wrap {
  display: flex;
  justify-content: space-between;
  margin: 2.6rem auto 0;
  margin-top: 2.6rem;
  max-width: 69.2rem;
}
.quizResult .wrap04 .links_wrap .links .link {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  line-height: 1.8;
  padding-left: 2.3rem;
  position: relative;
}
.quizResult .wrap04 .links_wrap .links .link::before {
  background-image: url(../img/quiz/arrow01.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
  height: 1.8rem;
  left: 0;
  position: absolute;
  top: .5rem;
  width: 1.8rem;
}
.quizResult .wrap04 .links_wrap .links .link:hover {
  opacity: .7;
}
@media screen and (max-width: 768px) {
  .quizResult .wrap03 {
    padding: 0 1.5rem;
  }
  .quizResult .wrap03 .h2 {
    font-size: 3rem;
    height: calc(28.7rem * .7);
    padding-bottom: 4rem;
    width: calc(39.7rem * .7);
  }
  .quizResult .wrap03 .score {
    height: 18.3rem;
    width: 100%;
  }
  .quizResult .wrap03 .score .score1 {
    font-size: 3rem;
    margin-right: 1rem;
  }
  .quizResult .wrap03 .score .score1 strong {
    font-size: 7.5rem;
    width: 10.5rem;
  }
  .quizResult .wrap03 .score .score2 {
    font-size: 9rem;
  }
  .quizResult .wrap03 .score3 {
    font-size: 1.6rem;
  }
  .quizResult .wrap03 .score3 strong {
    font-size: 4rem;
  }
  .quizResult .wrap03 .contents .content01 {
    margin-top: -2rem;
    position: relative;
  }

  /* 左側の星：先に光る */
  .quizResult .wrap03 .contents .content01 .star.left {
    left: 0;
  }

  /* 右側の星：少し遅れて光る */
  .quizResult .wrap03 .contents .content01 .star.right {
    right: 0;
  }
  .quizResult .wrap03 .contents .content01 .p1 {
    flex-direction: column;
    font-size: 1.8rem;
    gap: 2rem;
  }
  .quizResult .wrap03 .contents.retry .content01 .p1 .txt {
    position: static;
  }
  .quizResult .wrap03 .contents .content01 .p1 span {
    height: 1.8rem;
    width: auto;
  }
  .quizResult .wrap03 .contents .content01 .p1 ruby {
    height: 1.8rem;
  }
  .quizResult .wrap03 .contents .content01 .p1 .mark {
    margin: 0;
    order: -1;
  }
  .quizResult .wrap03 .contents .content02 {
    gap: 3rem;
    margin-top: 3rem;
  }
  .quizResult .wrap03 .contents .content02 .btn {
    width: 30rem;
  }
  .quizResult .wrap04 .h3 {
    font-size: 1.8rem;
    padding-top: 5rem;
  }
  .quizResult .wrap04 .h3 span::before {
    display: none;
  }
  .quizResult .wrap04 .links_wrap {
    display: block;
    margin: 1.6rem auto 0;
    padding: 0 1.5rem;
  }
  .quizResult .wrap04 .links_wrap .links .link {
    font-size: 1.4rem;
    padding-left: 2rem;
    white-space: nowrap;
  }
  .quizResult .wrap04 .links_wrap .links .link::before {
    height: 1.5rem;
    top: .5rem;
    width: 1.5rem;
  }
}

/* ===========================================================================
   フェード式ページ切り替えスタイル
============================================================================ */
.quiz_track {
  display: block;
  overflow: hidden;
  padding-bottom: 2.4rem;
  position: relative;
}
.quiz_item {
  box-sizing: border-box;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity .4s ease;
  width: 100%;
}
.quiz_item.active {
  opacity: 1;
  pointer-events: all;
  position: relative;
}
@media screen and (max-width: 768px) {
  .quiz_track {
    display: block;
    overflow: hidden;
    padding-bottom: 1.5rem;
    position: relative;
  }
  .quiz_item {
    margin: 0 2rem;
    width: calc(100% - 4rem);
  }
}

/* ===========================================================================
   ナビゲーション
============================================================================ */
.quiz_navs {
  height: 70rem;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 4rem;
}
.quiz_nav {
  align-items: center;
  background: #004bb1;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 2.4rem;
  height: 4rem;
  justify-content: center;
  opacity: 1;
  padding-bottom: .4rem;
  pointer-events: all;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: .2s;
  width: 4rem;
  z-index: 10;
}
.quiz_nav:disabled {
  cursor: default;
  opacity: 0;
}
.quiz_nav.prev {
  left: 1rem;
}
.quiz_nav.next {
  right: 1rem;
}
@media screen and (max-width: 768px) {
  .quiz_navs {
    height: 100vh;
    position: fixed;
    top: 0;
  }
  .quiz_nav {
    height: 3rem;
    width: 3rem;
  }
  .quiz_nav.prev {
    left: .5rem;
  }
  .quiz_nav.next {
    right: .5rem;
  }
}
