@charset "UTF-8";
body {
  color: #3e3a39;
}
.quiz-button {
  border: none;
  background-color: transparent;
  padding: 0;
  width: 75%;
  margin: 40px auto 0;
  display: block;
}
._disabled {
  pointer-events: none;
  opacity: 0.7;
}

/**************
問題ページ
****************/
/* .sec01 {
  display: none;
} */

/* タイトル */
.sec01 .quiz-ttl {
  width: 80%;
  margin: 0 auto;
  padding-top: 35px;
}

/* モーダル表示ボタン */
.quiz-period{
  width: 82%;
  margin: 20px auto 0;
}

/* モーダル */
.modal-container {
  max-width: 500px;
  width: 86%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.modal-content {
  position: relative;
  border-radius: 12px;
  padding: 8% 5%;
  background-color: #fff;
}
.modal-txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #0184dc;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 16px;
  text-align: center;
  padding-top: 6.13%;
}
/* 文章 */
.modal-txt p{
  display: flex;
  gap: 10px;
  min-width: 197px;
}
/* 問題番号部分 */
.modal-txt-label{
  font-size: 13px;
}
/* 日付部分 */
.modal-txt-date{
  font-size: 14px;
}
.modal {
  position: fixed;
  z-index: 500;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 40px 0;
  overflow: auto;
  display: none;
}
/* ×のボタン */
.modal-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  color: #fff;
  background: #0184dc;
  border: solid 2px #fff;
  border-radius: 50%;
  cursor: pointer;
}

/* 問題 */
.quiz-content {
  position: relative;
  margin: 50px auto 0;
  padding: 50px 30px 30px;
  width: 93%;
  border-radius: 10px;
  background-color: #fff;
  background-image: url(../images/quiz/quiz-content-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.quiz-content-ttl {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
}
.quiz-content p {
  line-height: 1.6;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  -webkit-text-stroke: 5px #fff;
  text-stroke: 5px #fff;
  paint-order: stroke;
}

/* 回答 */
.quiz-answer {
  margin: 25px auto 0;
  display: flex;
  flex-direction: column;
  row-gap: 15px;
  font-size: 16px;
  font-weight: bold;
  width: 93%;
  /* display: none; */
}

/* ラジオボタン */
input[type="radio"] {
  display: none;
}
.quiz-answer label span {
  flex-shrink: 0;
  position: relative;
  margin: 0;
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background-color: #fff;
}
input[type="radio"]:checked + label span:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffa800;
  content: "";
}
/* チェックボックス */
input[type="checkbox"] {
  display: none;
}
.quiz-answer input[type="checkbox"] + label span {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: #fff;
}
input[type="checkbox"]:checked + label span {
  background-color: #ffa800;
  border: 1px solid #ffa800;
}
input[type="checkbox"]:checked + label span:before {
  position: absolute;
  top: 2px;
  left: 6px;
  transform: rotate(50deg);
  width: 7px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
}
.quiz-answer label {
  display: flex;
  align-items: center;
  column-gap: 10px;
  background-color: #fff;
  border-radius: 6px;
  border: 2px #fff solid;
  padding: 14px;
  box-shadow: 5px 5px 0px 0px rgba(0, 133, 221, 1);
}
input[type="radio"]:checked + label,
input[type="checkbox"]:checked + label{
  background-color: #ffffc9;
  border: 2px #ffa800 solid;
  box-shadow: 5px 5px 0px 0px #ffa800;
}


/**************
正解ページ
****************/
.sec02 {
  display: none;
}

/* タイトル */
.sec02 .quiz-ttl {
  width: 100%;
  padding-top: 35px;
}

/* 答え */
.quiz-correct {
  position: relative;
  margin: 25px auto 0;
  padding: 50px 20px 30px;
  width: 93%;
  border-radius: 10px;
  background-color: #fff;
  line-height: 1.4;
}

.quiz-correct-ttl {
  position: absolute;
  top: max(-6.5vw, -35px);
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
}
.quiz-correct-explanation {
  width: 46%;
  margin: 30px auto 0;
}

.quiz-correct h3 {
  text-align: center;
  color: #0071d1;
  font-size: 20px;
}
.quiz-correct h3 span {
  background: linear-gradient(transparent 60%, #fff584 60%);
  padding-bottom: 5px;
}

.quiz-correct p {
  font-size: 15px;
  font-weight: bold;
}
.quiz-correct p span {
  font-size: 20px;
  color: #e60039;
}

/**************
不正解ページ
****************/
.sec03 {
  display: none;
}

/* タイトル */
.sec03 .quiz-ttl {
  width: 64%;
  padding-top: 45px;
  position: relative;
  left: 13%;
}

/* ヒント */
.quiz-incorrect {
  position: relative;
  margin: 55px auto 0;
  padding: 50px 20px 30px;
  width: 93%;
  border-radius: 10px;
  background-color: #fff;
  line-height: 1.4;
}

.quiz-incorrect-ttl {
  position: absolute;
  top: max(-7.5vw, -40px);
  left: 50%;
  transform: translateX(-50%);
  width: 53%;
}

.quiz-incorrect p {
  font-size: 15px;
  font-weight: bold;
}
.quiz-incorrect p span {
  font-size: 20px;
  color: #e60039;
}
