@charset "utf-8";



.content {
  max-width: 1300px;
  flex: 1;
  margin: 0 auto;
  padding: 60px 20px 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 2.8rem;
}

.quiz-container {
  background-color: rgba(13, 3, 0, 0.6);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 30px;
  max-width: 800px;
  width: 100%;
  margin: 20px auto;
}

.question {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.option {
  background-color: rgba(0, 0, 0, 0.45);
  border: 2px solid #666;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.6rem;
}

.option:hover {
  background-color: rgba(57, 11, 2, 0.6);
  transform: translateY(-2px);
  border-color: #f5af19;
}

.option.selected {
  background-color: rgba(245, 175, 25, 0.2);
  border-color: #f5af19;
}

.option.correct {
  background-color: rgba(40, 167, 69, 0.3);
  border-color: #28a745;
}

.option.incorrect {
  background-color: rgba(220, 53, 69, 0.3);
  border-color: #dc3545;
}

.feedback {
  margin-top: 15px;
  padding: 15px;
  border-radius: 5px;
  display: none;
  animation: fadeIn 0.5s;
  font-size: 1.6rem;
}

.correct-feedback {
  background-color: rgba(40, 167, 69, 0.2);
  color: #a3e9b5;
  border-left: 4px solid #28a745;
}

.incorrect-feedback {
  background-color: rgba(220, 53, 69, 0.2);
  color: #f8b7bd;
  border-left: 4px solid #dc3545;
}

.controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.6rem;
  color: #fff;
  background-color: #0d0300;
  border: 2px solid #666;
}



button:hover {
  transform: scale(1.05);
  border-color: #f5af19;
  background-color: #390b02;
}

button:active {
  transform: scale(0.95);
}

.progress-container {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  margin: 20px 0;
  height: 10px;
  max-width: 800px;
  margin: 20px auto;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f12711 0%, #f5af19 100%);
  border-radius: 10px;
  width: 0;
  transition: width 0.5s ease;
}

.score-display {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 20px;
  color: #fff;
}

.result-container {
  display: none;
  text-align: center;
  animation: fadeIn 1s;
}

.result-title {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #fff;
}

.result-score {
  font-size: 3.6rem;
  margin-bottom: 20px;
  color: #f5af19;
  text-shadow: 0 0 10px rgba(245, 175, 25, 0.5);
}

.result-message {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #fff;
}

.character-img {
  max-width: 120px;
  margin: 25px auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.option-text {
  margin-left: 10px;
}

.timer-container {
  margin: 10px 0;
  text-align: center;
  color: #fff;
}

.timer {
  font-size: 2.4rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.timer.warning {
  color: #ffc107;
}

.timer.danger {
  color: #dc3545;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.start-screen, .difficulty-screen {
  text-align: center;
}

.start-button {
  font-size: 2.0rem;
  padding: 15px 30px;
  margin: 30px 0;
  background-color: #0d0300;
  color: white;
  border: 2px solid #666;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}


.start-button:hover {
  background-color: #0d0300;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.difficulty-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.difficulty-button {
  padding: 15px 30px;
  border: 2px solid;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 1.8rem;
}

.difficulty-button.easy {
  background-color: rgba(40, 167, 69, 0.8);
  color: white;
  border-color: #28a745;
}

.difficulty-button.normal {
  background-color: rgba(255, 193, 7, 0.8);
  color: #333;
  border-color: #ffc107;
}

.difficulty-button.hard {
  background-color: rgba(220, 53, 69, 0.8);
  color: white;
  border-color: #dc3545;
}

.difficulty-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.quiz-title {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
}

.quiz-title h2 {
  font-size: 2.4rem;
  color: #f5af19;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.quiz-title p {
  font-size: 1.8rem;
  color: #fff;
}

.quiz-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f5af19, transparent);
}

.hint-button {
  background-color: rgba(23, 162, 184, 0.8);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 1.4rem;
  vertical-align: middle;
}

.hint-text {
  margin-top: 15px;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.45);
  border-left: 3px solid #17a2b8;
  display: none;
  font-size: 1.5rem;
  color: #9ee1ea;
  animation: fadeIn 0.5s;
}

/* スクロールバーのスタイル */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(13, 3, 0, 0.4);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #390b02, #662211);
  border-radius: 6px;
  border: 2px solid rgba(13, 3, 0, 0.8);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #4d1103, #7a2915);
}

/* Firefox向け */
* {
  scrollbar-width: thin;
  scrollbar-color: #390b02 rgba(13, 3, 0, 0.4);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .quiz-container {
      padding: 20px;
  }

  h1 {
      font-size: 2.4rem;
  }

  .quiz-title h2 {
      font-size: 2.0rem;
  }

  .quiz-title p {
      font-size: 1.6rem;
  }

  .difficulty-buttons {
      flex-direction: column;
      gap: 10px;
  }

  .difficulty-button {
      padding: 12px 20px;
      font-size: 1.6rem;
  }
}