@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");
#container {
  width: 100%;
  padding: 25px 0;
  font-family: "Noto Sans JP";
}

.quiz {
  overflow: hidden;
  background: url(../img/bg_quiz.jpg) no-repeat 50% 0/cover;
  line-height: 1.5;
}

.quiz.is-mistake {
  background-image: url(../img/bg_quiz_mistake.jpg);
}

.quiz.is-result {
  background-image: url(../img/bg_quiz_result.jpg);
}

.quiz * {
  box-sizing: border-box;
}

.quiz img {
  max-width: 100%;
}

.quiz__ttl {
  width: 100%;
  margin-bottom: 15px;
  padding: 0;
  text-align: center;
}

.quiz__ttl .is-img {
  display: block;
  margin-bottom: 5px;
  line-height: 0;
}

.quiz__ttl .is-txt {
  display: inline-block;
  padding: .35em .9em;
  background-color: #fff;
  color: #0075c2;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
}

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

.quiz-btn {
  position: relative;
  display: inline-block;
  border: 1px solid #0075c2;
  color: #0075c2;
  font-weight: 700;
  text-align: center;
}

.quiz-btn::before {
  content: "";
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 100%;
  height: 100%;
  background: url(../../img/bg_dots_white.png) repeat 100% 100%;
}

.quiz-btn > span {
  display: block;
  position: relative;
  padding: 10px 0;
  background-color: #fff;
  letter-spacing: .05em;
}

.quiz-btn > span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 8px;
  height: 8px;
  -webkit-transform: translateY(-50%) rotate(135deg);
          transform: translateY(-50%) rotate(135deg);
  border-right: 1px solid #0075c2;
  border-bottom: 1px solid #0075c2;
}

.quiz-btn:link, .quiz-btn:visited, .quiz-btn:hover, .quiz-btn:active {
  text-decoration: none;
}

.quiz-btn-blue {
  display: inline-block;
  padding: 6px 1.2em;
  background: -webkit-gradient(linear, left bottom, left top, color-stop(35%, #0075c2), to(#a8f2ff));
  background: linear-gradient(0deg, #0075c2 35%, #a8f2ff 100%);
  border: 2px solid #fff;
  border-radius: 5px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.quiz-btn-pink {
  display: inline-block;
  padding: 10px .2em;
  background: -webkit-gradient(linear, left bottom, left top, color-stop(35%, #cd4cae), to(#ff98e6));
  background: linear-gradient(0deg, #cd4cae 35%, #ff98e6 100%);
  border: 2px solid #fff;
  border-radius: 5px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.question__ttl {
  margin-bottom: 15px;
  color: #fff;
  text-align: center;
}

.question__ttl-num {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
  line-height: 0;
}

.question__ttl-txt {
  font-weight: 700;
}

.question__list {
  display: -webkit-box;
  display: flex;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
          justify-content: space-between;
}

.question__list-item {
  width: 48%;
  margin-bottom: 4%;
  padding: 3%;
  background: -webkit-gradient(linear, left bottom, left top, color-stop(35%, #0075c2), to(#a8f2ff));
  background: linear-gradient(0deg, #0075c2 35%, #a8f2ff 100%);
  border: 2px solid #fff;
  border-radius: 5px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
}

.question__list-num {
  background-color: #fff;
  border-radius: 50px;
  color: #0075c2;
  font-weight: 700;
  text-align: center;
}

.question__list-txt {
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.question__list-img {
  width: 100%;
}

.question__page {
  width: 90px;
  margin: 0 auto 30px;
  background-color: #fff;
  border-radius: 50px;
  color: #0075c2;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.answer {
  display: none;
  margin-bottom: 30px;
}

.answer__box {
  text-align: center;
}

.answer__txt {
  margin-bottom: 20px;
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .1em;
}

.answer__desc {
  width: 100%;
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 2px solid #fff;
  border-radius: 5px;
  word-break: break-all;
}

.is-correct .answer__desc {
  background-color: #f3ade2;
}

.is-mistake .answer__desc {
  background-color: #0075c2;
}

.answer__desc-ttl {
  width: 100px;
  margin: 0 auto 6px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.is-correct .answer__desc-ttl {
  background-color: #cd4cae;
  color: #fff;
}

.is-mistake .answer__desc-ttl {
  background-color: #fff;
  color: #0075c2;
}

.answer__desc-txt {
  font-weight: 500;
  text-align: center;
}

.is-mistake .answer__desc-txt {
  color: #fff;
}

.answer__btn-wrap {
  display: -webkit-box;
  display: flex;
  flex-wrap: wrap;
  -webkit-box-pack: center;
          justify-content: center;
  text-align: center;
}

.result {
  display: none;
  margin-bottom: 20px;
}

.result__ttl {
  margin-bottom: 15px;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .1em;
}

.result__num {
  height: 30px;
  margin-bottom: 10px;
  text-align: center;
}

.result__num img {
  max-height: 100%;
}

.result__box {
  background-color: #fff;
}

.result__txt {
  color: #0075c2;
  font-weight: 700;
  line-height: 1.37;
}

.result__answer-ttl {
  margin-bottom: 5px;
  background-color: #0075c2;
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.result__answer-txt {
  margin-bottom: 5px;
  color: #0075c2;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.result__answer-img {
  font-weight: 700;
}

.result__answer-img::before {
  content: "";
  display: block;
  height: 36px;
}

.result__answer-img::after {
  text-align: center;
}

.result__answer-img.is-correct {
  color: #f3ade2;
}

.result__answer-img.is-correct::before {
  background: url(../img/img_correct.png) no-repeat 50% 50%/contain;
}

.result__answer-img.is-correct::after {
  content: "正解";
}

.result__answer-img.is-mistake {
  color: #0075c2;
}

.result__answer-img.is-mistake::before {
  background: url(../img/img_mistake.png) no-repeat 50% 50%/auto 82%;
}

.result__answer-img.is-mistake::after {
  content: "不正解";
}

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

.inner {
  width: 960px;
  margin: 0 auto;
}

@media screen and (min-width: 769px) {
  #container {
    padding: 50px 0 30px;
  }
  .pc-none {
    display: none;
  }
  .quiz {
    min-width: 960px;
    font-size: 15px;
  }
  .quiz__ttl {
    margin-bottom: 25px;
  }
  .quiz__ttl .is-img {
    margin-bottom: 10px;
  }
  .quiz__ttl .is-txt {
    font-size: 18px;
  }
  .quiz-btn {
    min-width: 320px;
  }
  .quiz-btn > span {
    padding: 20px 0;
    font-size: 14px;
  }
  .quiz-btn > span::before {
    left: 20px;
    width: 10px;
    height: 10px;
  }
  .quiz-btn-blue {
    border-width: 4px;
    border-radius: 10px;
    font-size: 26px;
    cursor: pointer;
  }
  .quiz-btn-pink {
    width: 200px;
    margin-right: 36px;
    border-width: 4px;
    border-radius: 10px;
    font-size: 21px;
    vertical-align: top;
    cursor: pointer;
  }
  .question__ttl {
    margin-bottom: 25px;
  }
  .question__ttl-num {
    margin-bottom: 10px;
    font-size: 80px;
  }
  .question__ttl-txt {
    font-size: 30px;
  }
  .question__list {
    justify-content: space-around;
  }
  .question__list-item {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
            align-items: center;
    width: 430px;
    margin-bottom: 35px;
    padding: 6px 6px 6px 23px;
    border-width: 4px;
    border-radius: 10px;
    cursor: pointer;
  }
  .question__list-num {
    width: 40px;
    height: 40px;
    font-size: 30px;
    line-height: 40px;
  }
  .question__list-txt {
    -webkit-box-flex: 1;
            flex: 1;
    padding: 0 .5em;
    font-size: 24px;
  }
  .question__list-img {
    width: 180px;
  }
  .question__page {
    font-size: 20px;
  }
  .answer {
    margin-bottom: 34px;
  }
  .is-mistake .answer__img {
    margin: 8px 0;
  }
  .answer__txt {
    margin-bottom: 20px;
    font-size: 50px;
  }
  .answer__desc {
    width: 440px;
    margin: 0 auto 32px;
    padding: 8px 15px 10px;
    border-width: 3px;
    border-radius: 10px;
  }
  .answer__desc-ttl {
    width: 90px;
    font-size: 14px;
  }
  .answer__desc-txt {
    font-size: 16px;
  }
  .result {
    margin-bottom: 37px;
  }
  .result__ttl {
    margin-bottom: 20px;
    font-size: 50px;
  }
  .result__list {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: justify;
            justify-content: space-between;
    width: 900px;
    margin: 0 auto;
    margin-bottom: 30px;
  }
  .result__item {
    width: 200px;
  }
  .result__num {
    height: 37px;
  }
  .result__box {
    padding: 0 15px 20px;
    border-radius: 10px;
    text-align: center;
  }
  .result__txt {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
            align-items: center;
    height: 130px;
    font-size: 16px;
    text-align: center;
  }
  .result__answer-ttl {
    font-size: 16px;
  }
  .result__answer-txt {
    font-size: 16px;
  }
  .result__answer-img {
    font-size: 16px;
  }
  .result__answer-img::before {
    height: 85px;
  }
}

@media screen and (max-width: 768px) {
  .sp-none {
    display: none;
  }
  .quiz-btn {
    width: 100%;
  }
  .quiz-btn-blue {
    width: 180px;
  }
  .quiz-btn-pink {
    width: 180px;
    margin-bottom: 15px;
  }
  .question__ttl-num img {
    height: 40px;
  }
  .question__list-item {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
  }
  .question__list-num {
    width: 30px;
    height: 30px;
    margin: 0 auto 8px;
    font-size: 18px;
    line-height: 30px;
  }
  .question__list-txt {
    width: 100%;
    margin-bottom: 8px;
  }
  .question__list-img img {
    width: 100%;
  }
  .answer__img {
    margin-bottom: 5px;
  }
  .answer__btn-wrap {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
            flex-direction: column;
    width: 180px;
    margin: 0 auto;
  }
  .result__item {
    margin-bottom: 20px;
  }
  .result__box {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
            align-items: center;
    padding: 3%;
    border-radius: 5px;
  }
  .result__txt {
    -webkit-box-flex: 1;
            flex: 1;
  }
  .result__answer-box {
    width: 130px;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid #0075c2;
    text-align: center;
  }
  .inner {
    width: 100%;
    padding-right: 5%;
    padding-left: 5%;
  }
}
