    body, html {
    width: 100%;
    /* height: 100%; */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f7;
    flex-direction: column;
    position: relative;
  }

  .quiz-container {
    width: 90%;
    /* max-width: 800px; */
    border-radius: 1rem;
    border: 1px solid #ccc;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    margin: 64px 20px 20px;
  }

  .question {
    width: 70%;
    margin: 5rem auto;
    font-size: 2rem;
    font-weight: bold;
  }
  .questionno{
    border-bottom: 1px solid #000;
    font-size: 2rem;
    font-weight: bold;
    color: #7a7a7a;
  }

  .options {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
  }

  .option {
    position: relative;
    width: 80%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    word-break: break-word;
    padding: 10px 10px 10px 11%;
    text-align: left;
    margin: 0 auto;
  }
  .option span{
    display:block;
    position: absolute;
    width: 10%;
    height: 100%;
    background: #005B99;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
  }

  .option:hover {
    background-color: rgb(253, 202, 126);
    transition: background-color 2s;
  }

  .button-container {
    text-align: center;
    margin-top: 20px;
  }

  button {
    padding: 10px 20px;
    background-color: #5cb85c;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
  }

  button:hover {
    background-color: #4cae4c;
  }






/* スタイルシート */
.modal {
    display:none; /* 初期状態では非表示 */
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    animation: modalOpen 0.4s;
  }
  
  @keyframes modalOpen {
    from {transform: scale(0);}
    to {transform: scale(1);}
  }
  
  #modal-text {
    font-size: 3rem;
    text-align: center;
  }
#next-question {
  padding: 10px 20px;
  background-color: #5cb85c;
  color: white;
  border: none;
  cursor: pointer;
  margin: 20px auto 0;
display: block;
}

#next-question:hover {
  background-color: #4cae4c;
}






#score-modal{
  display:none; /* 初期状態では非表示 */
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
}
.score-modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  animation: modalOpen 0.4s;
  display: grid;
  position: absolute;
  align-items: center;
  justify-content: center;
}







.quiz-list-container {
    margin-top: 20px;
    text-align: center;
}

#quiz-list {
    list-style: none;
    padding: 0;
}

#quiz-list li {
    display: inline-block;
    margin: 5px;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
}

#quiz-list li:hover {
    background-color: #e9e9e9;
}


#quiz-list li.answered {
    background-color: #4de771 !important; /* 優先度を高める */
}


#reset-progress{
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgb(0, 71, 119);
}

#to-tarusukoa{
  position: absolute;
  top: 10px;
  right: 10px;
  background: orange;
  color: #000;
}

.score-board .blue{
    background: #d0ecff;
    color: #000;
}
.score-board .red{
    background: #ffaeae;
    color: #000;
}
.core-container{
    width: 100%;
}

.score-container{
    display: flex;
    gap: 0 1rem;
    text-align: center;
    justify-content: center;
    align-items: center;
}
.score-board button{
    width: 100%;
}
.score-board{
    width: 10%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.514);
    border-radius: 1%;
}

.score-board h2,
.score-board > div{
  margin: 0;
  font-size: 2rem;
}






























