table { width: 100%; border-collapse: collapse; margin-top: 1em; table-layout: fixed; }
th, td { border: 1px solid #ccc; padding: 6px; word-wrap: break-word; vertical-align: top; }
th { background-color: #eee; }

.reveal-button, .toggle-button, .judge-button {
  padding: 4px 8px;
  font-size: 0.9em;
  cursor: pointer;
  margin-right: 4px;
}

.kanji { text-align: center; }
.kanji a {
  color: blue;
  font-size: 2em;
  text-decoration: none;
  transition: color 0.2s ease;  /* ← スムーズに色が変わる */
}

.kanji a:hover {
  color: red;
}

.toggle-button-wrapper { margin-top: 0.5em; min-height: 2em; }
.full-meaning { display: none; white-space: pre-wrap; }

.revealed { background-color: #ffffe0; }
.correct { background-color: #e0ffe0 !important; }
.wrong { background-color: #ffe0e0 !important; }

#result-summary {
  font-size: 1em;
  margin-left: 1em;
  display: inline-block;
}

td.num { text-align: center; }


  select#difficulty {
    font-size: 1.2em;     /* 文字サイズを大きく */
    padding: 0.3em 0.6em; /* 内側の余白を広めに */
    border-radius: 4px;   /* 少し角丸に */
  }

  label[for="difficulty"] {
    font-size: 1.2em;     /* ラベルの文字も大きく */
    margin-right: 0.3em;
  }

.result-mark {
  font-size: 1.6em;
  text-align: center;
  margin-top: 0.4em;
}


.answer.kanji {
  font-size: 1.6em;
  font-weight: bold;
  text-align: center;
}

.answer.kanji a {
  text-decoration: none;
  color: #3366cc; /* ブラウザ既定の青リンク色に近い */
}

.answer.kanji a:hover {
  color: #ff0000; /* ホバー時は赤（他と統一） */
}




