body {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  background: linear-gradient(to bottom, #f8f4f0, #eae6e2);
  color: #333;
  padding-bottom: 60px; /* フッターの高さ分の余白を確保 */
}

header {
  background-color: #fff;
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.0rem;
  margin: 0;
  color: #5a4e4e;
}

header p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  color: #7a6f6f;
}

main {
  max-width: 800px;
  margin: 3rem auto;
  padding: 5px;
  text-align: center;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background-color: #a67c52;
  color: #fff;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #8c6845;
}

.cta-button.secondary {
  background-color: #6c8ea4;
}

.cta-button.secondary:hover {
  background-color: #55768f;
}

    .footer {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 60px;
      background-color: #333;
      color: white;
      text-align: center;
      line-height: 60px;
      box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    }


.question-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

form {
  margin-top: 2rem;
}

input[type="text"] {
  padding: 0.8rem;
  font-size: 1rem;
  width: 60%;
  border: 1px solid #aaa;
  border-radius: 8px;
  margin-bottom: 1rem;
}

button[type="button"] {
  padding: 0.8rem 2rem;
  font-size: 1.5rem;
  background-color: #a67c52;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="button"]:hover {
  background-color: #8c6845;
}
.results, .ranking {
  margin-top: 2rem;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.result-table, .ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.result-table th,
.result-table td,
.ranking-table th,
.ranking-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.result-table th,
.ranking-table th {
  background-color: #f0eae5;
  color: #5a4e4e;
}

.correct {
  color: #3c7c4e;
  font-weight: bold;
}

.incorrect {
  color: #c44;
  font-weight: bold;
}
.question-row {
  display: none;
  transition: all 0.3s ease;
}

.question-row.visible {
  display: table-row;
}

.question-preview {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 1rem;
}

.toggle-button {
  background: none;
  border: none;
  color: #5a4e4e;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.5rem;
}

.toggle-button:hover {
  color: #a67c52;
}
.question-status {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #5a4e4e;
}

.question-status strong {
  font-weight: bold;
  color: #a67c52;
}