body {
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  margin: 20px;
  line-height: 1.6;
  color: #222;
  background: #fafafa;
}

h1 {
  margin-bottom: 16px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

input,
select {
  font-size: 16px;
  padding: 6px 8px;
}

#searchInput {
  min-width: 260px;
}

#count {
  margin: 10px 0;
  color: #555;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  vertical-align: top;
}

th {
  background: #eee;
  cursor: pointer;
  white-space: nowrap;
}

tr:nth-child(even) {
  background: #f7f7f7;
}

a {
  color: #0645ad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.reading {
  font-size: 0.85em;
  color: #666;
}

.sub {
  color: #666;
  margin-bottom: 18px;
}

.card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.card h2 {
  margin-top: 0;
  font-size: 20px;
  border-left: 6px solid #666;
  padding-left: 10px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table th {
  width: 120px;
  background: #eee;
  text-align: left;
}

.detail-table th,
.detail-table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
}

.tag {
  display: inline-block;
  background: #eee;
  border-radius: 999px;
  padding: 2px 8px;
  margin: 2px;
  font-size: 0.9em;
}

.empty {
  color: #999;
}