﻿.kana-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 28px 0 35px;
  border-top: 1px solid #cfcfc9;
}
.kana-entry p:last-child { color: var(--muted); line-height: 1.6; }
.kana-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.kana-buttons button {
  padding: 15px 18px;
  border: 1px solid #c8202e;
  background: #c8202e;
  color: white;
  font: 700 13px 'DM Sans', sans-serif;
  cursor: pointer;
}
.kana-buttons button + button { color: #c8202e; background: transparent; }
.kana-dialog {
  width: min(760px, 92vw);
  max-height: 88vh;
  padding: 35px;
  border: 0;
  background: #fff;
  color: #171718;
  overflow-y: auto;
}
.kana-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.kana-dialog-header { display: flex; justify-content: space-between; gap: 15px; }
.kana-dialog-header h3 { margin: 8px 0; }
.kana-dialog-header p:last-child, .kana-footnote { color: #6c6b68; line-height: 1.6; font-size: 14px; }
.kana-close { align-self: start; border: 0; background: transparent; color: #171718; font-size: 32px; cursor: pointer; }
.kana-buttons button:focus-visible, .kana-close:focus-visible { outline: 3px solid #f4af28; outline-offset: 3px; }
.kana-table-wrap { overflow-x: auto; margin-top: 18px; }
.kana-table { width: 100%; min-width: 400px; border-collapse: collapse; text-align: center; }
.kana-table th, .kana-table td { border: 1px solid #dfded9; padding: 10px 6px; }
.kana-table thead th { background: #f1f0ec; font-size: 13px; }
.kana-table tbody th { color: #c8202e; font-size: 13px; }
.kana-table .kana-char { display: block; font-size: 25px; line-height: 1.2; }
.kana-table .kana-reading { display: block; margin-top: 3px; color: #6c6b68; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 750px) {
  .kana-entry { display: block; }
  .kana-buttons { margin-top: 20px; }
  .kana-dialog { padding: 22px; }
}
