:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  color-scheme: light;
  color: #203147;
  background: #f0f3f7;
  --muted: #60728a;
  --line: #e1e7ef;
  --blue: #2563eb;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; font-weight: 400; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .table-wrap:focus-visible {
  outline: 3px solid #8fb6ff;
  outline-offset: 3px;
}
a { color: inherit; }
[hidden] { display: none !important; }

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(30px, calc((100% - 1440px) / 2));
  color: #fff;
  background: #122439;
  border-bottom: 1px solid #24384f;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  letter-spacing: -.5px;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.brand-domain { color: #a1b4cc; }
.topbar-label {
  padding-left: 28px;
  border-left: 1px solid #3b4c61;
  color: #bfccdc;
  font-size: 13px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 5;
  padding: 12px;
  background: #fff;
}
.skip:focus { top: 12px; }

main { max-width: 1500px; margin: 0 auto; padding: 28px 30px; }
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.eyebrow { margin: 0 0 6px; font-size: 11px; letter-spacing: 1.8px; color: #547291; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 400; letter-spacing: -.6px; }
.source-date { display: flex; flex-direction: column; gap: 4px; max-width: 50%; text-align: right; }
.source-date > span { font-size: 11px; color: var(--muted); }
.source-date strong { font-size: 15px; font-weight: 400; }
.source-date small { color: var(--muted); font-size: 11px; line-height: 1.5; }

.catalog-panel {
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  box-shadow: 0 3px 16px #1c355508;
  overflow: hidden;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}
.markets { display: flex; gap: 4px; padding: 4px; border-radius: 9px; background: #f1f4f8; }
.market {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #526680;
  font-size: 13px;
  white-space: nowrap;
}
.market:hover { background: #e7edf5; }
.market.selected { background: #fff; color: #174d9f; border-color: #dce5f0; box-shadow: 0 1px 3px #1d365412; }
.market [data-count] {
  min-width: 24px;
  padding: 1px 5px;
  border-radius: 4px;
  color: #62748b;
  background: #e6ecf3;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.market.selected [data-count] { color: #225bad; background: #edf3ff; }
.country-dot { display: inline-block; flex-shrink: 0; width: 18px; height: 13px; border: 1px solid #dbe1e9; border-radius: 2px; }
.japan { background: radial-gradient(circle at center, #c63449 0 3px, transparent 3.5px), #fff; }
.usa { background: linear-gradient(#2c4f85 0 0) left top / 8px 7px no-repeat, repeating-linear-gradient(#c15766 0 2px, #fff 2px 4px); }
.refresh {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #526680;
  font-size: 13px;
}
.refresh svg, .input-wrap svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.refresh:hover, .reset:hover, .pagination button:not(:disabled):hover { background: #eef4fc; border-color: #c2d2e9; }

.filters { display: flex; align-items: end; gap: 14px; padding: 16px 20px 12px; }
.search-control { flex: 1.5; min-width: 0; }
.sector-control { flex: 1; min-width: 0; }
.filters label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; top: 12px; left: 12px; color: #788da8; pointer-events: none; }
.filters input, .filters select {
  width: 100%;
  height: 40px;
  border: 1px solid #cfd9e6;
  border-radius: 6px;
  background: #fff;
  color: #26364a;
  font-size: 14px;
}
.filters input { padding: 0 12px 0 37px; }
.filters input::placeholder { color: #7b8ca2; }
.filters input:hover, .filters select:hover { border-color: #aabed7; }
.filters select { padding: 0 30px 0 11px; text-overflow: ellipsis; }
.reset { height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; background: #f6f8fb; color: #526680; font-size: 13px; }
.results-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px 12px; color: var(--muted); font-size: 12px; line-height: 18px; }
.results-line p { margin: 0; color: #4c617d; font-variant-numeric: tabular-nums; }
.results-line > span { font-size: 11px; }

.table-wrap { width: 100%; overflow-x: auto; transition: opacity .12s; }
.table-wrap:focus-visible { outline-offset: -3px; }
.table-wrap[aria-busy=true] { opacity: .4; }
.table-hint { display: none; margin: 0; padding: 0 12px 8px; color: var(--muted); font-size: 11px; line-height: 16px; }
table { width: 100%; min-width: 700px; border-collapse: collapse; table-layout: fixed; text-align: left; }
.code-col { width: 142px; }
.name-col { width: 48%; }
.sector-col { width: auto; }
th { padding: 9px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f0f4f9; color: #526781; font-size: 12px; line-height: 18px; font-weight: 400; }
/* A single 20px text line, 8px padding on each side, and a 1px rule: 37px. */
td {
  padding: 8px 20px;
  border-bottom: 1px solid #e9eef5;
  font-size: 14px;
  line-height: 20px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody tr:nth-child(even) { background: #fafbfd; }
tbody tr:hover { background: #edf4ff; }
tbody tr:last-child td { border-bottom: 0; }
td.code { color: #245892; font-variant-numeric: tabular-nums; overflow: visible; }
td.name { color: #24384f; font-variant-east-asian: proportional-width; }
td.sector { color: #5a6e89; font-size: 13px; }
.country-label {
  display: inline-block;
  margin-left: 8px;
  padding: 0 4px;
  border-radius: 3px;
  background: #edf1f6;
  color: #60728a;
  font-size: 10px;
  line-height: 16px;
  vertical-align: 1px;
}

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pagination > div { display: flex; align-items: center; gap: 12px; }
.pagination button { min-width: 34px; height: 32px; border: 1px solid #d7e0eb; border-radius: 6px; background: #fff; color: #45617f; font-size: 17px; }
.state-message { padding: 44px 24px 52px; border-top: 1px solid var(--line); text-align: center; }
.state-icon { width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 10px; background: #f0f4fa; color: #7690b0; font-size: 30px; }
.state-message h2 { margin: 0 0 10px; font-size: 19px; font-weight: 400; }
.state-message p { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.6; }
.state-message button { margin-top: 20px; padding: 11px 18px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font-size: 14px; }
footer { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 16px 2px 0; color: #697c93; font-size: 11px; line-height: 1.7; }
footer p { max-width: 730px; margin: 0; }
footer a { color: #507095; text-decoration: none; white-space: nowrap; }
footer a:hover { text-decoration: underline; }
.site-metrics { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; padding: 12px 2px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 20px; }
.site-metric { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-metric svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: #6983a4; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.site-metric strong { color: #243e60; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.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; }
.no-script { padding: 20px; background: #fff2dc; color: #7b4a0e; }

@media (max-width: 800px) {
  .topbar { gap: 20px; padding: 0 20px; }
  .topbar-label { padding-left: 20px; font-size: 12px; }
  main { padding: 24px 18px; }
  h1 { font-size: 25px; }
  .heading { gap: 18px; margin-bottom: 18px; }
  .source-date { max-width: 46%; }
  .source-date strong { font-size: 14px; }
  .panel-top { gap: 10px; padding: 10px 14px; }
  .refresh { min-width: 38px; min-height: 38px; justify-content: center; }
  .refresh span { display: none; }
  .filters { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .search-control { flex: 1 1 100%; }
  .sector-control { flex: 1; }
  .filters input, .filters select { height: 44px; font-size: 16px; }
  .input-wrap svg { top: 14px; }
  .reset { height: 44px; }
  .results-line { padding: 0 14px 12px; }
  th, td { padding-left: 14px; padding-right: 14px; }
  .code-col { width: 128px; }
  .name-col { width: 44%; }
  .pagination { padding: 12px 14px; }
  .pagination button { min-width: 40px; height: 40px; }
  footer { flex-wrap: wrap; justify-content: start; column-gap: 20px; row-gap: 8px; }
  footer p { flex-basis: 100%; }
}

@media (max-width: 480px) {
  .topbar { min-height: 60px; padding: 0 16px; gap: 16px; }
  .brand { font-size: 21px; }
  .topbar-label { max-width: 108px; margin-left: auto; padding: 0; border: 0; line-height: 1.5; }
  main { padding: 20px 12px; }
  .heading { flex-direction: column; align-items: start; gap: 12px; margin-bottom: 16px; }
  h1 { font-size: 25px; }
  .source-date { max-width: none; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .source-date strong { font-size: 12px; }
  .source-date small { flex-basis: 100%; }
  .panel-top { gap: 6px; padding: 8px; min-height: 60px; }
  .markets { flex: 1; gap: 2px; padding: 3px; }
  .market { flex: 1; justify-content: center; min-height: 38px; padding: 6px; gap: 5px; font-size: 12px; }
  .market [data-count] { min-width: 16px; padding: 0 3px; font-size: 10px; }
  .country-dot { display: none; }
  .refresh { padding: 6px; min-width: 34px; }
  .filters { gap: 10px; padding: 12px; }
  .reset { padding: 0 11px; font-size: 12px; }
  .results-line { padding: 0 12px 10px; }
  .results-line > span { display: none; }
  .pagination { padding: 10px 12px; }
  .pagination > div { gap: 9px; }
  .state-message { padding: 36px 18px; }
}

@media (max-width: 760px) {
  .table-hint { display: block; }
}

@media (max-width: 360px) {
  .panel-top { flex-wrap: wrap; }
  .markets { flex-basis: 100%; }
  .refresh { margin-left: auto; min-height: 32px; }
  .refresh span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
