@charset "UTF-8";

/*基本設定*/


/*背景*/
body {
    background-color: #FCDD74;
    color: #333333;
    background-attachment: fixed;
    z-index: 1;
    font-family: 'Noto Sans';
    transition: .7s;
}


/*サイドバー*/

.saido{
  position: absolute;
  margin-top: -50%;
  right: 11%;
  width: 150px;
  z-index: 9987;
}

.saido-botann {
  display: flex;
  align-items: center;
  gap: 10px; 
  padding-left: 20px;
  z-index: 9600;
}

.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

/* 色バリエーション */
.dot.red {
  background-color: #D94F45;
}

.dot.yellow {
  background-color: #FFD447;
}

.dot.blue {
  background-color: #3280C1;
}




.botan {
  position: fixed;
  top: 50%;
  right: 120px;
  transform: translateY(-50%);
  z-index: 999;
  width: auto;
}


.saido-botann {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
  text-decoration: none;
  color: #555555;
  font-size: 15px;
  border-radius: 18px;
  width: 200px;
  height: 40px;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0px 6px 0px -2px rgba(163, 189, 211, 1);
  background-color: #f5f7fa;
  margin-bottom: 10px;
  
}

.saido-botann:hover {
box-shadow: 0 0 #fff;
transform: translateY(1px);
}


@media screen and (max-width: 1024px) {
  .botan{
      display: none;
  }
}


/*ここまで*/









/*ハンバーガーメニュー*/

#menu__toggle {
opacity: 0;
position: absolute;
}
#menu__toggle:checked + .menu__btn > span {
transform: rotate(45deg);
}
#menu__toggle:checked + .menu__btn > span::before {
top: 0;
transform: rotate(0deg);
}
#menu__toggle:checked + .menu__btn > span::after {
top: 0;
transform: rotate(90deg);
}
#menu__toggle:checked ~ .menu__box {
left: 0 !important;
}
.menu__btn {
position: fixed;
top: 20px;
left: 20px;
width: 26px;
height: 26px;
cursor: pointer;
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
row-gap: 6px;
width: 56px;
height: 56px;
border-radius: 8px;   
background-color: #1B4965;

}
.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
display: block;
position: absolute;
width: 26px;
height: 4px;
background-color: #ffffff;
border-radius: 2px; 
transition: 0.25s ease-in-out;
}
.menu__btn > span::before {
content: '';
top: -8px;
}
.menu__btn > span::after {
content: '';
top: 8px;
}
.menu__box {
display: block;
position: fixed;
top: 0;
left: -100%;
width: 300px;
height: 100%;
margin: 0;
padding: 80px 0;
list-style: none;
background-color: #1B4965;
box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
transition-duration: .25s;
z-index: 999;
}
.menu__item {
display: block;
padding: 12px 24px;
color: #ffffff;
font-family: 'Roboto', sans-serif;
font-size: 20px;
font-weight: 600;
text-decoration: none;
transition-duration: .25s;
}
.menu__item:hover {
background-color: #CFD8DC;
}

.menu__imags{
position: absolute;
width: 90%;
top: 40%;
right: 5%;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {

.menu__btn {
  width: 72px;
  height: 72px;
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
  width: 36px;
  height: 5px;
}

.menu__btn > span::before {
  top: -10px;
}

.menu__btn > span::after {
  top: 10px;
}

.menu__box {
  width: 360px;
  padding: 100px 0;
}

.menu__item {
  font-size: 24px;
  padding: 16px 32px;
}
}

@media screen and (min-width: 1025px) {
.hamburger-menu {
  display: none;
}
}


/*ここまで*/






.article {
  overflow: hidden;
  max-width: 450px;
  margin: 0 auto;
  position: relative;
  z-index: 1;

  @media screen and (max-width:768px) {
      max-width: none;
      width: 100%;
  }
}

* {
  margin: 0;
}

.content {
  padding: 20px;
  height: 1030px;
}


.container {
  display: flex;
  width: 300vw;
  height: 100vh;
  z-index: 1;
}

#sec1 {
  /* 方眼紙模様のスタイル */
  background-image: linear-gradient(0deg, transparent calc(100% - 1px), #fffc2f calc(100% - 1px)),
                    linear-gradient(90deg, transparent calc(100% - 1px), #fffc2f calc(100% - 1px));
  background-size: 40px 40px;
  background-repeat: repeat;
  background-position: center center;
  background-color: #ffff;


  padding: 20px;
}


#quiz-container,
.quiz-info,
#answer-section,
#final-result {
    display: none;
}

.question-number,
#question{
  display: none;
}

#choices-container {
  display: none;
}


/* 4K */
@media screen and (min-width: 2500px) {
  .content {
    height: 1040px;
  }
}

/* タブレット横 */
@media screen and (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
  .content {
    height: 1023px;
  }
}

/* タブレット縦 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .content {
    height: 1355px;
  }
}

/* スマホ横 */
@media screen and (max-width: 1024px) and (orientation: landscape) and (max-height: 450px) {
  .content {
    height: 480px;
  }
}

/* スマホ縦 */
@media screen and (max-width: 768px) {
  .content {
    height: 930px;
  }
}









/*最初の部分*/
.intro-box {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 30px 20px;
    margin: 60px auto;
    width: 95%;
    max-width: 320px;
    height: 390px;
}


@media screen and (max-width: 768px) {
  .intro-box{
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 30px 20px;
    margin: 60px auto;
    width: 95%;
    max-width: 320px;
    height: 390px;
  }
}








.startButton {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 300px;
    padding: 20px 90px;
    color: #313131;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s ease-in-out;
    background-color: #ffffff;
    box-shadow: none;
    text-decoration: none;

    
    position: absolute;
    margin-top: 0%;
    left: 22%;
  }
  
  .startButton::before,
  .startButton::after {
    content: '';
    width: 18px;
    height: 18px;
    border-color: #2981C0;
    box-sizing: border-box;
    border-style: solid;
    display: block;
    position: absolute;
    transition: all 0.3s ease-in-out;
  }
  
  .startButton::before {
    top: -6px;
    left: -6px;
    border-width: 2px 0 0 2px;
    z-index: 5;
  }
  
  .startButton::after {
    bottom: -6px;
    right: -6px;
    border-width: 0 2px 2px 0;
  }
  
  .startButton:hover::before,
  .startButton:hover::after {
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-color: #2981C0;
  }
  
  .startButton:hover {
    color: #fff;
    background-color: #2981C0;
    border-color: #2981C0;
  }
  
  
/* 4K */
@media screen and (min-width: 2500px) {
  .startButton {
    top: 50%;
    left: 30%;
  }
}

/* タブレット横 */
@media screen and (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
  .startButton {
    top: 48%;
    left: 25%;
  }
}

/* タブレット縦 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .startButton {
    top: 39%;
    left: 25%;
  }
}

/* スマホ横 */
@media screen and (max-width: 1024px) and (orientation: landscape) and (max-height: 450px) {
  .startButton {
    top: 52%;
    left: 25%;
  }
}

/* スマホ縦 */
@media screen and (max-width: 768px) {
  .startButton {
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
  }
}












/* 全問題数表示エリア */
.quiz-info {
    font-size: 1.2rem;
    color: white;
    max-width: 100px;
    margin: 10px auto 0 auto;
    padding: 5px;
    border: 2px solid #333;
    border-radius: 5px;
    background-color: dimgrey;
    position: relative;
    top: -200px;
  }
  

.quiz-container,
.result-section,
.final-section {
  display: none;
  margin: 20px auto;
}

.question-number {
    font-size: 24px;
    font-weight: bold;
    color: #1B4965;
    padding: 10px 20px;
    border-radius: 100px;
    display: inline-block;
    margin: -20px auto;
    text-align: center;
    position: relative;
    top: -30px; 
    left: -40%;
  }
  

/*問題文*/
.question {
    position: relative;
    top: -20px;
  }


  #question-text {
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
    padding: 0 10px;
    text-align: left;
    color: #333;

    position: relative;
    top: -30px;
  }
  



  h1 {
    display: block !important;
    font-size: 34px;
    color: #000000;
    padding: 20px;
    border-radius: 12px;
    left: 50px;
    width: fit-content;
    white-space: nowrap;
    text-align: left;

    
  position: relative;
  left: -20px; 
  top: -30px;
  }
  
  
  h2#mozi{
    font-size: 40px;
    position: absolute;
    left: 23%;
  
    top: 25%;
  }
  
  

  @media screen and (max-width: 1024px) and (orientation: landscape) and (max-height: 450px) {
    h2#mozi{
      position: absolute;
      left: 23%;
    
      top: 35%;
    }
  }



.question {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 30px 20px;
    margin: 0 auto 10px auto;
    width: 95%;
    max-width: 300px;
    height: 470px;
  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 1.6;
  }
  

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  top: 100px;
}















/*ボタンボタン*/

.choice {
    position: relative;
    top: -20px; 
  }

.choice {
    font-size: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 200px;
    padding: 20px 50px;
    color: #313131;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s ease-in-out;
    background-color: #ffffff;
    box-shadow: none;
    text-decoration: none;
}

.choice::before,
.choice::after {
    content: '';
    width: 18px;
    height: 18px;
    border-color: #2981C0;
    box-sizing: border-box;
    border-style: solid;
    display: block;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.choice::before {
    top: -6px;
    left: -6px;
    border-width: 2px 0 0 2px;
    z-index: 5;
}

.choice::after {
    bottom: -6px;
    right: -6px;
    border-width: 0 2px 2px 0;
}

.choice:hover::before,
.choice:hover::after {
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-color: #2981C0;
}

.choice:hover {
    color: #fff;
    background-color: #2981C0;
    border-color: #2981C0;
}






@media screen and (max-width: 768px) {


.choice {
  position: relative;
  top: -20px; 
}
}














/*多分次の問題*/

.result-section {
    margin-top: 2%;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    background-color: #ffffff;
    position: relative;
    z-index: 10;
  }

.result-section h3{
  font-size: 11pt;
  font-weight: bold;
}
  

#answer-result {
  font-size: 2rem;
  margin-bottom: 10px;
}

#explanation {
  font-size: 12.5pt;
}

.correct {
  color: green;
}

.wrong {
  color: red;
}





#next-question {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 300px;
    padding: 20px 90px;
    color: #313131;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s ease-in-out;
    background-color: #ffffff;
    box-shadow: none;
    text-decoration: none;
}

#next-question::before,
#next-question::after {
    content: '';
    width: 18px;
    height: 18px;
    border-color: #2981C0;
    box-sizing: border-box;
    border-style: solid;
    display: block;
    position: absolute;
    transition: all 0.3s ease-in-out;
}



#next-question::before {
    top: -6px;
    left: -6px;
    border-width: 2px 0 0 2px;
    z-index: 5;
  }
  
  #next-question::after {
    bottom: -6px;
    right: -6px;
    border-width: 0 2px 2px 0;
  }
  
  #next-question:hover::before,
  #next-question:hover::after {
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-color: #2981C0;
  }
  
  #next-question:hover {
    color: #fff;
    background-color: #2981C0;
    border-color: #2981C0;
  }









.final-section {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}






.botann-wrapper {
    display: flex;
    justify-content: center;
    gap: 24px; 
    margin-top: 40px;
    flex-wrap: wrap;
  }



.botann1 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 300px;
    padding: 20px 90px;
    color: #313131;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s ease-in-out;
    background-color: #ffffff;
    box-shadow: none;
    text-decoration: none;
  }
  
  .botann1::before,
  .botann1::after {
    content: '';
    width: 18px;
    height: 18px;
    border-color: #2981C0;
    box-sizing: border-box;
    border-style: solid;
    display: block;
    position: absolute;
    transition: all 0.3s ease-in-out;
  }
  
  .botann1::before {
    top: -6px;
    left: -6px;
    border-width: 2px 0 0 2px;
    z-index: 5;
  }
  
  .botann1::after {
    bottom: -6px;
    right: -6px;
    border-width: 0 2px 2px 0;
  }
  
  .botann1:hover::before,
  .botann1:hover::after {
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-color: #2981C0;
  }
  
  .botann1:hover {
    color: #fff;
    background-color: #2981C0;
    border-color: #2981C0;
  }

  
  















.knowledge-box {
  border: 2px solid black;
  padding: 10px;
  margin-top: 10px;
  background-color: #f9f9f9;
}


/*クイズの画像*/
.question-img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border-radius: 10px;
  }
  
  /* 1問目の画像 */
  .img-1 {
    position: absolute;
    width: 70%;
    top: 260px;
  }
  
  /* 2問目の画像 */
  .img-2 {
    width: 90%;
    margin-left: 15px;
    margin-top: -70px;
  }

    /* 3問目の画像 */
    .img-3 {
        width: 65%;
        margin-bottom: 15px;
        margin-top: -50px;
      }
  
  /* 4問目の画像 */
  .img-4 {
    width: 80%;
    margin-bottom: 15px;
    margin-top: -70px;
  }

   /* 5問目の画像 */
   .img-5 {
    position: absolute;
    width: 60%;
    margin-bottom: 15px;
    top: 270px;
    left: 65px;
  }
  

  
  #question-image img {
    height: auto;
    border-radius: 10px;
    margin-top: auto;
  }
  
  #question-image img:hover {
    transform: scale(1.02);
  }


  /*解答のイラスト*/

  .explanation-img {
    max-width: 80%;
    margin-top: 20px;
    border-radius: 8px;
  }
  
  /* 個別調整 */
  .explanation-img-1 {
    max-width: 60%;
    margin-left: 55px;
    margin-top: -5%;
  }
  
  .explanation-img-2 {
    max-width: 70%;
    margin-left: 65px;
    margin-top: -20%;
  }
  
  .explanation-img-3 {
    max-width: 65%;
    margin-top: 2%;
    margin-left: 60px;
  }
  
  .explanation-img-4 {
    width: 70%;
    margin-top: 10px;
    margin-left: 60px;
  }
  
  .explanation-img-5 {
    width: 100%;
    border-radius: 0;
  }
  


  .imags0 {
    position: absolute;
    top: -2%;
    right: -5%;
    width: 180px;
    z-index: 1234;
  }






  .imags1 {
    position: fixed;
    bottom: 70%;
    right: 80%;
    width: 180px;
    z-index: 600;
  }

  .imags1-2 {
    position: fixed;
    bottom: 20%;
    left: 90%;
    width: 180px;
    z-index: 600;
  }
  

  .imags1-3 {
    position: fixed;
    bottom: 70%;
    left: 70%;
    width: 140px;
    z-index: 600;
  }

  .imags1-4{
    position: fixed;
    bottom: 20%;
    right: 73%;
    width: 300px;
    z-index: 600;
  }



  @media screen and (max-width: 768px) {
    .imags0, .imags1, .imags1-2, .imags1-3, .imags1-4 {
      display: none !important;
    }
  }











/*フッター*/

.footer{
  z-index: 9000;
}

.footer #button{
  width:35px;
  height:35px;
  border: #727172 12px solid;
  border-radius:35px;
  margin:0 auto;
  position:relative;
  -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
}
.footer #button:hover{
  width:35px;
  height:35px;
  border: #3A3A3A 12px solid;
  -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
  position:relative;
}
.footer {
  bottom:0;
  left:0;
  position:fixed;
    width: 100%;
    height: 2em;
    overflow:hidden;
    margin:0 auto;
  -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
}
.footer:hover {
  -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
  height: 10em;
}
.footer #container{
  margin-top:5px;
  width:100%;
height:100%;
  position:relative;
  top:0;
  left:0;
  background: #ffffff;
}
.footer #cont{
  position:relative;
  top:-45px;
  right:190px;
  width:150px;
  height:auto;
  margin:0 auto;
}
.footer_center{
  width:500px;
  float:left;
  text-align:center;
}
.footer h3{
  font-family: 'Helvetica';
  font-size: 16px;
  font-weight: 100;
  margin-top:70px;
  margin-left:40px;
}
