html {
    
  font-family: "Noto Sans JP", sans-serif;
}

/* 背景の文房具イラスト */
body {
  background-image: url(../images/backimage.png);
  background-repeat: repeat;
  background-size: 20% auto;
}

#total_area {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 4500px;
}

/* ナビゲーション */
.fix {
  z-index: 999;
  width: 100%;
  top: 0;
  background-color: hotpink;
}
#container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto 30px;
}

.flex {
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* ナビゲーション　ロゴ */
#logo {margin-bottom: 10px}

#logo_1, #logo_2 {font-size: 40px;}

#logo_1 {
  font-weight: 700;
  color: crimson;
}

/* ナビゲーション　問題ジャンプリスト */
#header_menu {display: flex;}

li {
  margin-left: 40px;
  font-size: 20px;
  height: 40px;
  border: 1px solid #000000;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

li a {font-size: 20px;}

/* 正解数表示枠 */
.correct_count_area {
  display: inline-block;
  font-size: 30px;
  font-weight: bold;
  color: red;
  background-color: #ffa500;
  width: 150px;
  text-align: center;
}


/* ナビゲーション　解答欄 */
.kaitou {
  width: 90px;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.answer_area {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 60px;
  margin: 0 auto 20px;
  font-size: 40px;
  background-color: beige;
  padding-top: 5px;
  display: flex;
}

.no {
  width: 50px;
  height: 50px;
  margin-left: 10px;
}

.ans {
  width: 50px;
  height: 50px;
  border: 2px solid #000000;
  border-radius: 10px;
  background-color: #f0f0f9;
}
/* 答え合わせボタン */
.check {
  width: 150px;
  height: 50px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
  border: 2px solid #000000;
  margin: 0px 10px;
  text-align: center;
  font-size: 20px;
  line-height: 2;
}

.check:hover {background-color: #d0ea22;}

/* 解答結果の背景色付け */
.correct {background-color: #ff00ff;}
.empty {background-color:#d3d3d3;}
.wrong {background-color:#00bfff;}

@media only screen and (max-width: 768px) {

  nav ul li {display:none;}

  #logo {margin: 0 auto;}

  .answer_area {
        width:100%;
        height:500px;
        display:flex;
        flex-wrap: wrap;
        gap:10px;
    }

  .answer_area > :first-child {flex-basis: 100%;}    
}
  
/* 戻るボタン */
#back_to_top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #ff69b4;
  color: #fff;
  font-size: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

/* 戻るボタンの表示状態 */
#back_to_top.show {
  opacity: 1;
  pointer-events: auto;
}

/* 問題表示エリア */
.main_area {
  position: relative;
  width: 90%;
  max-width: 1250px;
  height: 410px;
  margin-top: 30px;
}

.scroll_area {
  margin: 1px auto 0px;
  width: 50%;
  height: 100%;
  background: #f0f0f9;
  display: flex;
  justify-content: space-between;
}

/* 問題表示エリア　選択肢部分 */
.left_column {
  width: 50%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

/* 問題表示エリア　個々の選択肢 */
#left_box {
  font-size: 60px;
  background-color: #fff9c4;
  border: 1px solid #000000;
  height: 150px;
  transition: background-color 0.3s ease;
  margin-right: 40px;
}

#left_box:hover {background-color: #fff082;}

/* 問題表示エリア　第〇問の部分 */
.number {
  display: flex;
  align-items: center;
  width: 70px;
  height: 410px;
  writing-mode: vertical-rl;
  font-size: 40px;
  padding: 20px;
  background-color: #a9a9a9;
  scroll-margin-top: 200px;
}

/* 問題表示エリア　問題例文の部分 */
.right_column {
  width: 200px;
  padding: 20px 40px 20px 20px;
  box-sizing: border-box;
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: #d8aaff;
  font-size: 30px;
  margin: 20px;
}

.wavy {
  text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: red;
}

@media only screen and (max-width: 768px) {

 .scroll_area {width: 70%;} 

 .left_column {
  width: 70%;
  padding: 0px;
  height: 100px;
 }

 #left_box {
  font-size: 30px;
  margin-left: 10px;

 }
 .right_column {
  width: 100px;
  padding: 0px;
  font-size: 30px;
 }
 
 #total_area  {
   height: auto;  
   padding-bottom: 500px;
 }
}

/* ポップ */
.scoring_popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transition:  translate(50%,-50%);
  display: none;
  z-index: 9999;
}

.scoring_popup.show {
  display: block;
}

.scoring_popup img {
  width: 200px;
  height: auto;
}
