@charset "UTF-8";
@media screen and (max-width: 768px){
  .pconly{
    display: none !important;
  }
}
@media screen and (min-width: 769px){
  .sponly{
    display: none !important;
  }
  #entire{
    border-radius: 10px;
  }
}
nav.breadcrumb{
  display: block;
  background: #f5fdff;
}
nav.breadcrumb ol{
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  width: 90%;
  max-width: 1200px;
  padding: 10px 0;
  list-style: none;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}
nav.breadcrumb ol li{
  position: relative;
  padding-right: 1.5em;
}
nav.breadcrumb ol li::before{
  content: ">";
  position: absolute;
  right: 3px;
}
nav.breadcrumb ol li:last-child::before{
  content: none;
}
.breadcrumb a{
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
}

.main{
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
  margin: auto;
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  padding: 40px 0 60px;
  flex-wrap: wrap;
}

main{
  width: 73%;
}
aside{
  width: 22%;
  position: sticky;
  top: 100px;
  height: 100%;
}
aside .side-cta{
  position: relative;
  margin-bottom: 10px;
}
aside .side-cta .back{
  width: 100%;
}
aside .side-cta .btn1,
aside .side-cta .btn2{
  position: absolute;
  left: 8%;
  bottom: 10%;
  width: 80%;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
aside .side-cta .btn1{
  bottom: 2%;
  width: 57%;
  left: 40%;
}
/* ここまで共通 */
h1#quiz-title{
  font-weight: bold;
  font-size: 32px;
  color: #1d2a51;
  margin-bottom: 40px;
}
section{
  margin-bottom: 60px;
}

h3{
  font-size: 28px;
}

.container-column{
  display: flex;
  flex-direction: column;
  row-gap: 30px;
}

.container-row{
  display: flex;
  justify-content: space-between;
}

.box-shadow{
  box-shadow: 0 0 10px gray;
}

.topic-container{
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  margin: auto;
}

.topic-container > h3{
  color: #1F2C5C;
  text-align: center;
  font-weight: 500;
}

.quiz-select-container{
  padding: 100px 60px;
  background:linear-gradient(90deg, #078ffb, #2db6d1);
  border-radius: 8px;
}

.quiz-select-container > h3{
  text-align: center;
  color: #fff;
}

.quiz-select-container > p{
  color: #fff;
  margin: auto;
}

.quiz-select-buttons{
  width: 90%;
  margin: auto;
}

.quiz-select-buttons > button{
  width: 28%;
}

.button{
  background: rgba(128, 128, 128, 0);
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  border: 2px solid #fff;
  border-radius: 50px;
	text-decoration: none;
	transition: all  0.3s ease;
	cursor: pointer;
}

.button:hover{
  background: #fff;
  color: #078ffb;
}

.button:focus{
  background: #fff;
  color: #078ffb;
  outline: none;
}

.start-button{
  animation: bounce 2s ease-in-out forwards;
  animation-iteration-count: infinite;
}

@keyframes bounce{
  0%{
    transform: scale(1);
    -webkit-transform: scale(1);
  }
  50%{
    transform: scale(1.3);
    -webkit-transform: scale(1.1);
  }
}

#quiz-start-container{
  display: none;
}

.quiz-start-container{
  background:linear-gradient(90deg, #078ffb, #2db6d1);
  min-height: 600px;
  padding: 30px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.quiz-start-back-button{
  width: 16%;
  position: absolute;
  top: 5%;
  left: 3%;
}

.quiz-start-container h3{
  color: #fff;
  text-align: center;
  font-size: 32px;
}

#precaution{
  position: relative;
  padding: 20px 40px;
  border: 2px solid #fff;
  border-radius: 8px;
}

#precaution > div{
  position: absolute;
  top: -.75em;
  left: 1em;
  padding: 0 .5em;
  background-color: #fff;
  color: #078ffb;
  font-weight: 600;
  border-radius: 8px;
}

#precaution ul{
  list-style-type: disc;
  margin: 0;
  padding: 0;
}

#precaution li{
  padding: .3em .3em .3em 0;
  color: #fff;
}

#precaution li::marker{
  color: #fff;
  font-size: 1.1em;
}

.quiz-start-container button:not(:first-child){
  width: 20%;
  margin: auto;
}

/* .quiz-start-container-items{
    position: absolute;
    top: 50%;
    left: 22%;
    transform: translateY(-50%);
} */

.quiz-input-container{
  position: relative;
  margin: 0 auto;
  text-align: center;
  border-radius: 8px;
  padding: 60px;
  background:linear-gradient(90deg, #078ffb, #2db6d1);
  display: none;
  row-gap: 10px;
}

.quiz-input-container > h2{
  color: #fff;
  font-size: 24px;
  margin-bottom: 0;
}



/* 全問題数表示エリア */
.quiz-info{
  font-size: 18px;
  color: #078ffb;
  font-weight: bold;
  margin-left: auto;
  margin-right: auto;
  padding: 5px;
  border-radius: 5px;
  background: #fff;
  /* border: 2px solid #1F2C5C; */
}

/* .quiz-container, */
.result-section,
.final-section{
  display: none;
  margin: 0 auto;
}

.question-number{
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

#question{
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.question{
  font-weight: bold;
  padding: 4px;
  font-size: 50px;
  margin: 0 auto;
  color: #fff;
}

.question-first{
  font-family: serif;
}

.quiz-answer-container{
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  row-gap: 30px;
}

.quiz-answer-container > input{
  max-width: 90%;
  margin: 0 auto;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 28px;
  color: #fff;
  background: rgba(128, 128, 128, 0);
  border: 2px solid #fff;
  transition: all 0.2s;
}

.quiz-answer-container > input:focus{
  outline: none;
  box-shadow: 0 0 4px 1px #00eeff;
  border: 2px solid #00eeff;
}

.quiz-answer-container > input::placeholder{
  color: #ffffff8e;
}

.answer-input{
  text-align: center;
}

.submit-button-container{
  display: flex;
  flex-direction: row-reverse;
  width: 60%;
  margin: 0 auto;
  justify-content: center;
  column-gap: 20px;
}

.submit-button{
  min-width: 30%;
  padding: 10px 0;
}

.result-section{
  width: 90%;
  padding: 20px 80px;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  background: rgba(128, 128, 128, 0);
}

.result-section > h2{
  color: #fff;
  margin-bottom: 0;
}

#answer-result{
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 0;
}

.next-question{
  color: #fff;
  border: 2px solid #fff;
  background: rgba(128, 128, 128, 0);
  max-width: 70%;
  padding: 4px;
  margin: 0 auto;
  width: 20%;
}

.next-question:hover{
  border: 2px solid #fff;
}

.final-section{
  width: 90%;
  padding: 40px;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  background: rgba(128, 128, 128, 0);
  margin: 0 auto;
  max-width: 800px;
}

.final-section > h2{
  color: #fff;
}

#score{
  color: #fff;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
  animation: poyoyon2 1s ease-in-out forwards;
}

@keyframes poyoyon2{
  0% {
    transform: scale(1.0, 1.0) translate(0, 0);
  }
  15%{
    transform: scale(0.98, 0.9) translate(0, 5px);
  }
  30%{
    transform: scale(1.02, 1.0) translate(0, 8px);
  }
  50%{
    transform: scale(0.98, 1.05) translate(0, -8px);
  }
  70%{
    transform: scale(1.0, 0.9) translate(0, 5px);
  }
  100%{
    transform: scale(1.0, 1.0) translate(0, 0);
  }
  0%, 100%{
    opacity: 1;
  }
}

#final-result > h2{
  margin-bottom: 20px;
}

#final-result-container{
  display: flex;
  flex-direction: column;
}

#final-result-container > div:nth-child(2n){
  margin-bottom: 20px;
}

#final-result-container > div{
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.true-or-false{
  font-size: 24px;
  font-weight: bold;
}

.true-or-false::before{
  display: block;
  content: '回答結果';
  color: #fff;
  font-size: 20px;
}

.correct{
  color: #00ff0d;
}

.wrong{
  color: #ff0000;
}

.index-box{
  color: #fff;
  text-align: right;
}

.phrase-box{
  color: #fff;
  font-size: 18px;
  margin: 0;
}

.phrase-box::before{
  display: block;
  content: '語句';
  font-size: 20px;
  font-weight: bold;
}

.knowledge-box{
  color: #fff;
  font-size: 18px;
  margin: 0;
}

.knowledge-box::before{
  display: block;
  content: '意味';
  font-size: 20px;
  font-weight: bold;
}

.final-result-button{
  color: #fff;
  border: 2px solid #fff;
  background: rgba(128, 128, 128, 0);
  width: 40%;
  margin: 10px auto;
  padding: 6px;
}

.batsu{
  margin: 0 0 0 auto;
  display: block;
  position: relative;
  width: 40px;
  height: 40px;
}

.batsu::before, .batsu::after{ /* 共通設定 */
  content: "";
  position: absolute;
  top: 50%;
  right: 50%;
  width: 5px; /* 棒の幅（太さ） */
  height: 30px; /* 棒の高さ */
  background: #fff;
  border-radius: 8px;
}

.batsu::before{
  transform: translate(-50%,-50%) rotate(45deg);
}

.batsu::after{
  transform: translate(-50%,-50%) rotate(-45deg);
}

.batsu:hover{
  opacity: 0.6;
  cursor: pointer;
}

.quiz-choice-container{
  position: relative;
  margin: 0 auto;
  text-align: center;
  border-radius: 8px;
  padding: 60px;
  background:linear-gradient(90deg, #078ffb, #2db6d1);
  display: none;
  row-gap: 10px;
}

.quiz-choice-container > h2{
  color: #fff;
  font-size: 24px;
  margin-bottom: 0;
}

#question-second{
  font-size: 24px;
  margin-bottom: 30px;
}

.flex-container{
  display: flex;
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: start;
  row-gap: 10px;
  column-gap: 2%;
  width: 80%;
}

.flex-container div{
  width: 49%;
}

.choice{
  color: #fff;
  background: rgba(128, 128, 128, 0);
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: bold;
  font-size: 24px;
}

.choice:hover{
  outline: none;
  color: #078ffb;
  background: #fff;
}

.choice > span{
  font-family: serif;
}

#quiz-back-button{
  width: 20%;
  margin: 3% auto 0;
  padding: 10px 0;
}

/* 以下優秀なモーダル */

.modal-toggle{
  position: absolute;
  top: 4%;
  right: 2%;
  background: rgba(128, 128, 128, 0);
  border: none;
}

.modal-toggle:focus{
  outline: none;
}

.modal-multiple{
  display: none;
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,50%);
  padding: 40px 20px;
  border-radius: 8px;
}

.modal-multiple::before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  margin-left: -0.2em;
}

.modal-container-multiple{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 600px;
  width: 100%;
}

.modal-content-multiple{
  background:linear-gradient(90deg, #078ffb, #2db6d1);
  color: #fff;
  text-align: left;
  font-size: 20px;
  font-weight: bold;
  padding: 30px 40px;
  opacity: 1;
  text-align: center;
  width: 100%;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  animation: show 0.6s linear 0s;
}

.modal-content-multiple p{
  font-size: 20px;
}

.modal-close-multiple{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.modal-close-multiple:hover, .modal-close-multiple:focus{
  text-decoration: none;
  cursor: pointer;
}

.modal-title{
  color: #FFF;
}

@keyframes show{
  from{
    opacity: 0;
  }
  to{
    opacity: 1;
  }
}

.exit-button{
  width: 20%;
  margin: 0 auto;
  padding: 8px;
}   

#score-second{
  color: #fff;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
  animation: poyoyon2 1s ease-in-out forwards;
}

.question-final-result-section{
  color: #fff;
  font-size: 18px;
}

.question-final-result-section::before{
  content: '問題';
  display: block;
  font-weight: bold;
  font-size: 20px;
}

.choices-final-result-section{
  color: #fff;
  font-size: 20px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  justify-content: space-evenly;
  width: 60%;
  margin: 0 auto;
}

.choices-final-result-section > div{
  width: 40%;
  border: 1px solid #fff;
  border-radius: 8px;
}

.choices-final-result-section > div span{
  font-family: serif;
}

.correct-choice{
  background-color: #80e685a1;
}

.user-choice{
  background-color: #e68080a1;
}

.description-box{
  color: #fff;
  font-size: 18px;
  width: 90%;
  margin: auto;
}

.description-box::before{
  content: '解説';
  font-size: 20px;
  font-weight: bold;
  display: block;
}

#final-result-second > h2{
  margin-bottom: 20px;
}

#final-result-container-second > div:nth-child(2n){
  margin-bottom: 20px;
}

#final-result-container-second > div{
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.quiz-choice-container-second{
  position: relative;
  margin: 0 auto;
  text-align: center;
  border-radius: 8px;
  padding: 60px;
  background:linear-gradient(90deg, #078ffb, #2db6d1);
  display: none;
  row-gap: 10px;
}

.quiz-choice-container-second > h2{
  color: #fff;
  font-size: 24px;
  margin-bottom: 0;
}

#quiz-container-third{
  margin: 0;
}

#question-third{
  font-family: serif;
}

#quiz-back-button-second{
  width: 20%;
  margin: 3% auto 0;
  padding: 10px 0;  
}   

#choices-container-third{
  min-width: 100%;
  margin-top: 30px;
  row-gap: 20px;
}

#choices-container-third > .choice{
  font-size: 22px;
  text-align: left;
}

#choices-container-third > .choice > span{
  font-family: unset;
}

#final-result-container-third > div:nth-child(2n){
  margin-bottom: 20px;
}

#final-result-container-third > div{
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.question-final-result-section-second{
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  font-family: unset;
}

.question-final-result-section-second > span{
  display: block;
  font-family: serif;
}

.choices-final-result-section-second{
  color: #fff;
  font-size: 18px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 2%;
  justify-content: space-evenly;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  align-items: start;
}

.choices-final-result-section-second > div{
  width: 49%;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 10px;
}

#score-third{
  color: #fff;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
  animation: poyoyon2 1s ease-in-out forwards;
}

/* ボタンのスタイル */
.page-top{
  /* buttonタグのリセットCSS */
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;

  /* ボタンの装飾 */
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 100;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #1F2C5C;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  display: none;
}

/* 矢印のスタイル */
.page-top::before{
  content: "";
  width: 12px;
  height: 12px;
  margin-bottom: -6px;
  border-top: solid 3px #fff;
  border-right: solid 3px #fff;
  transform: rotate(-45deg);
}

/* ホバー時のスタイル */
.page-top:hover{
  transform: scale(1.1);
}



@media (max-width: 768px){
  nav.breadcrumb{
    margin: 0;
  }
  .main{
    width: 100%;
    margin-top: 0;
    padding: 0;
  }
  main{
    width: 90%;
    margin: auto;
    max-width: 500px;
  }
  h1#quiz-title{
    font-size: 26px;
    margin-bottom: 20px;
  }
  aside{
    width: 100%;
  }
  aside{
    max-width: 500px;
    margin: auto;
  }
  aside section{
    position: relative;
  }
  aside section > img{
    width: 100%;
  }
  aside a{
    position: absolute;
  }
  aside .btn1{
    top: 39%;
    left: 6%;
    width: 60%;
  }
  aside .btn2{
    top: 72%;
    left: 6%;
    width: 60%;
  }
  aside a img{
    width: 100%;
  }
  /* ここまで共通 */
  h3{
    font-size: 24px;
  }
  button{
    font-size: 18px;
  }
  .topic-container{
    width: 100%;
  }
  .quiz-select-container{
    padding: 60px 30px;
  }
  .quiz-select-buttons{
    width: 100%;
    flex-direction: column;
    row-gap: 20px;
    align-items: center;
  }
  .quiz-select-buttons > button{
    width: 80%;
  }
  .quiz-start-back-button{
    width: 60%;
  }
  .quiz-start-container-items{
    margin-top: 30px;
  }
  .quiz-start-container-items > h3{
    font-size: 24px;
  }
  .quiz-start-container button:not(:first-child){
    width: 60%;
  }
  .question{
    font-size: 60px;
  }
  .quiz-input-container{
    padding: 20px;
  }
  .quiz-answer-container > input{
    max-width: 100%;
    font-size: 24px;
    margin: 0;
  }
  .submit-button-container{
    width: 100%;
    flex-direction: column;
    row-gap: 10px;
    column-gap: 0;
  }
  .submit-button{
    min-width: 70%;
  }
  .modal-close-multiple{
    top: -50px;
    right: 0;
  }
  .modal-multiple{
    padding: 0;
  }
  .modal-content-multiple{
    width: 90%;
    margin: 0 auto;
    padding: 20px 30px;
  }
  .modal-content-multiple > p{
    font-size: 16px;
  }
  .modal-container-multiple{
    vertical-align: none;
    max-width: 330px;
  }
  .exit-button{
    width: 40%;
  }
  .final-section{
    width: 100%;
    padding: 20px;
  }
  .final-result-buttons{
    flex-direction: column;
  }
  .final-result-button{
    width: 80%;
    margin: 4px auto;
    padding: 8px;
    font-size: 18px;
  }
  .true-or-false::before{
    font-size: 18px;
  }
  .phrase-box{
    font-size: 16px;
  }
  .phrase-box::before{
    font-size: 18px;
  }
  .knowledge-box{
    font-size: 16px;
  }
  .knowledge-box::before{
    font-size: 18px;
  }
  .description-box{
    font-size: 16px;
  }
  .description-box::before{
    font-size: 18px;
  }
  /* 選択式・１ */
  .quiz-choice-container{
    padding: 20px 10px;
  }
  #question-second{
    font-size: 20px;
  }
  .flex-container{
    width: 100%;
  }
    #quiz-back-button{
    width: 50%;
  }
  .question-final-result-section{
    font-size: 16px;
  }
  .question-final-result-section::before{
    font-size: 18px;
  }
  .choices-final-result-section{
    width: 100%;
  }
  /* 選択式・２ */
  .quiz-choice-container-second{
    padding: 20px 10px;
  }
  #choices-container-third > .choice{
    font-size: 18px;
  }
  #quiz-back-button-second{
    width: 50%;
  }
  .choices-final-result-section-second{
    font-size: 16px;
  }
  .page-top{
    right: 10px;
    bottom: 20px;
  }
}