:root {
  --bg: #f5f5f5;
  --text: #222;
  --muted: #666;
  --bar: #111;
  --card: #fff;
  --border: #ddd;
  --shadow: 0 2px 10px rgba(0, 0, 0, .08);
  --radius: 6px;
  --max: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family : Georgia, "Noto Serif JP", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", "MS PMincho", "Times New Roman", Times, serif;
  font-size: 1.6rem;
  color: var(--text);
  background: var(--bg);
}

input,
select,
textarea,
button {
  font-family: inherit;
}

.topbar {
  background: #334E48;
  color: #fff;
  height: 48px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.topbar .inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-weight: 600;
  letter-spacing: .02em;
}

.nav a {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
  margin-right: 12px;
}

.nav a:hover {
  color: #fff;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 14px 40px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 0 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}

.logo img {
  height: auto;
  display: block;
}

.logo .title {
  line-height: 1.1;
  text-align: left;
  background: #f5f5f5;
}

.logo .title .jp {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
}

.logo .title .main {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-top: 4px;
}

.searchbox {
  width: min(760px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

input[type="text"],
select {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 10px;
  font-size: 15px;
  background: #fff;
}

input[type="text"] {
  flex: 1 1 280px;
  min-width: 220px;
}

select {
  flex: 0 0 220px;
}

button {
  height: 40px;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 0 16px;
  background: #222;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: #000;
}

button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.results {
  width: min(760px, 100%);
  margin: 18px auto 0;
}

.status {
  margin: 10px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.item {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.item:first-child {
  border-top: none;
}

.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.word {
  font-size: 18px;
  font-weight: 700;
}

.meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.def {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
}

.def .jpn p {
  margin: 6px 0;
}

.def .jpn ol {
  margin: 6px 0;
  padding-left: 1.1em;
}

.cn {
	font-family : "Noto Serif SC", "Noto Serif TC", "PingFang SC", "PingFang TC", Simsun, Mingliu, serif !important;
}

.pyn {
	font-family : "Times New Roman", Times, serif;
	font-size: 1.2em;
	/*font-size: 13px;*/
	color: #444;
}

.def .jpn ruby rt {
  font-size: 11px;
  color: #555;
}

.def .jpn a {
  text-decoration: none;
}

.def .jpn a:hover {
  text-decoration: underline;
}

.def .jpn .click {
  border-bottom: dashed 1px #003366;
  cursor: pointer;
  cursor: hand;
  color: blue;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.pager .btn {
  border: 1px solid var(--border);
  background: #fff;
  color: #111;
}

.pager .btn:hover {
  background: #f0f0f0;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 28px 10px;
}

.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal{
  background: #fff;
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 22px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  position: relative;
  font-size: 14px;
  line-height: 1.6;
}

.modal h2{
  margin-top: 0;
}

.modal .close{
  position: absolute;
  right: 12px;
  top: 10px;

  height: auto;
  padding: 4px 8px;
  line-height: 1;

  border: none;
  background: none;
  color: #333;
  font-size: 22px;
  cursor: pointer;
}

.modal ul{
  padding-left: 1.2em;
}

.modal .link{
  margin-top: 16px;
  text-align: right;
}

@media (max-width: 520px) {
  .logo .title .main {
    font-size: 28px;
  }

  select {
    flex: 1 1 180px;
  }

  button {
    flex: 1 1 120px;
  }
}
