/* -----------------------問題解答ページ----------------------- */
/* ---出題画面--- */
.question_cnt_inner{
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  padding-top: 60px;
  color: #000;
  font-size: 1.8rem;
}

.q_number{
  padding: 10px 20px;
  margin-bottom: 20px;
  background: #fdebcd;
  border-radius: 5px;
}

.q_title{
  padding: 0 20px;
}

.q_answer{
  margin-top: 20px;
  position: relative;
}

.q_answer::before {
  position: absolute;
  width: 200px;
  height: 200px;
  font-size: 200px;
  opacity: 0.7;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  left: 0;
  right: 0;
  margin: auto;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.is-correct.checked {
  background: #ffb3b3;
}

.is-correct::before {
  content: "〇";
  color: #ffb3b3;
  opacity: 0.5;
}

.is-incorrect.checked {
  background: #b3c7ff;
}

.is-incorrect::before {
  content: "×";
  color: #b3c7ff;
}

.q_answer li{
  border-top: 1px solid #ccc;
}

.q_answer li:last-of-type{
  border-bottom: 1px solid #ccc;
}

.q_answer label {
  display: block;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 4px 20px;
  font-weight: normal;
  line-height: 1.16;
  position: relative;
  transition: 0.3s ease-in-out;
  white-space: pre-wrap;
  user-select: none;
}

.q_answer label.is-checked {
  pointer-events: none;
}

.q_answer label>input {
  display: none;
}

.append_image{
  width: 600px;
  height: auto;
}

/* ---採点画面--- */
.finish {
  display: none;
  text-align: center;
  position: absolute;
  width: 100%;
  height: calc(100% - 60px);
  top: 60px;
  left: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fff;
  z-index: 30;
}

.is-show {
  display: flex;
}

.score-wrap {
  text-align: center;
}

.score {
  font-size: 70px;
  font-weight: bold;
}

.ja {
  font-size: 34px;
}

.full {
  font-size: 24px;
}

#score_list{
  width: 100%;
  height: 500px;
  overflow-y: auto;
  margin: 15px 0;
  padding-bottom: 10px;
  border: 1px solid var(--deep-green);
}

.sl_result{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: top;
  flex-wrap: wrap;
  text-align: justify;
  border-bottom: 1px dashed var(--deep-green);
  padding: 10px;
}

.sl_r_number{
  width: 11%;
  height: 2.5rem;
  background: #fdebcd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sl_r_description{
  width: 65%;
  padding: 0 15px;
  line-height: 2.5rem;
}

.sl_r_correct{
  width: 11%;
  text-align: center;
  font-weight: bold;
  line-height: 2.5rem;
}

.sl_r_button{
  width: 10%;
  height: 3.5rem;
  background: var(--deep-green);
  border-radius: 5px;
  border: none;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-weight: bold;
}

/* ポップアップ */
.popup_answer{
  display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 560px;
	padding: 20px;
	background-color: white;
  border-radius: 10px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
	text-align: center;
  overflow-y: auto;
}

.popup_text_1,.popup_text_2,.popup_text_3,.popup_text_4{
  text-align: justify;
  margin: 15px 0;
  padding-bottom: 5px;
  border-bottom: 1px dashed #4DA1A9;
}

.popup_explanation{
  text-align: justify;
  margin: 25px 0;
  background: #fdebcd;
  padding: 10px;
}

.popup_close{
  background: var(--deep-green);
  border-radius: 5px;
  border: none;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-weight: bold;
  line-height: 3.5rem;
  margin-top: 10px;
  padding: 0 10px;
}

/* 最初からやり直すボタン */
.goback-button{
  font-size: 1.8rem;
  font-weight: bold;
  border-radius: 10px;
  padding: 10px 20px;
  margin: 20px 0;
  background: var(--accent-color);
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
  color: #fff;
  user-select: none;
  cursor: pointer;
}

.goback-button:hover{
  background: #de8d01;
}

@media screen and (max-width: 768px) {
  /* -----------------------問題解答ページ----------------------- */
  /* ---出題画面--- */
  .question_cnt_inner{
    padding-top: 50px;
    font-size: 1.6rem;
  }

  .q_number{
    padding: 15px;
  }
  
  .q_title{
    padding: 0 15px;
  }
  
  .q_answer{
    margin-top: 15px;
  }

  .q_answer::before {
    width: 150px;
    height: 150px;
    font-size: 150px;
  }

  .q_answer label {
    height: 50px;
    padding: 4px 15px;
  }

  /* ---採点画面--- */
  .finish {
    height: 100%;
    top: 50px;
  }

  .score {
    font-size: 60px;
  }

  .ja {
    font-size: 30px;
  }

  .full {
    font-size: 20px;
  }
  
  .sl_r_description{
    padding: 0 10px;
  }
  
  .sl_r_button{
    height: 3rem;
  }

  /* ポップアップ */
  .popup_answer{
    width: 455px;
    max-height: 70%;
    margin-top: 20px;
    padding: 5px 15px 15px;
  }

  .popup_text_1,.popup_text_2,.popup_text_3,.popup_text_4{
    margin: 10px 0;
  }

  .popup_explanation{
    margin: 20px 0;
    padding: 5px 10px;
  }

  .popup_close{
    line-height: 3rem;
    margin-top: 0;
  }

  /* 最初からやり直すボタン */
  .goback-button{
    font-size: 1.6rem;
    padding: 8px 15px;
    margin-top: 10px;
  }
}

@media screen and (max-width: 500px) {
  /* -----------------------問題解答ページ----------------------- */
  /* ---出題画面--- */
  .question_cnt_inner{
    font-size: 1.4rem;
  }

  .q_number{
    padding: 10px;
  }
  
  .q_title{
    padding: 0 10px;
  }
  
  .q_answer{
    margin-top: 10px;
  }

  .q_answer::before {
    width: 140px;
    height: 140px;
    font-size: 140px;
  }

  .q_answer label {
    padding: 4px 10px;
  }

  /* ---採点画面--- */
  #score_list{
    height: 400px;
    margin: 0 0 15px;
  }

  .sl_r_number{
    width: 15%;
    height: 2rem;
  }
    
  .sl_r_description{
    width: 65%;
    padding: 0 5px;
    line-height: 2rem;
  }

  .sl_r_correct{
    width: 15%;
  }

  .sl_r_button{
    width: 15%;
    margin-left: 85%;
  }

  /* ポップアップ */
  .popup_answer{
    width: 95%;
  }

  .popup_explanation{
    padding: 0 10px;
  }

  /* 最初からやり直すボタン */
  .goback-button{
    font-size: 1.4rem;
    padding: 5px 15px;
  }
}