﻿:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5d6872;
  --line: #d9dee3;
  --paper: #ffffff;
  --wash: #f5f7f8;
  --accent: #0f5c64;
  --gain: #0c7a43;
  --loss: #b3261e;
  --gold: #aa7a16;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  line-height: 1.72;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #10171b;
  color: #fff;
}

.site-header-inner,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  padding: 24px 0 20px;
}

.brand {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
  font-weight: 700;
}

.tagline {
  margin: 4px 0 0;
  color: #c4ccd1;
  font-size: 13px;
}

.page-shell {
  padding: 28px 0 48px;
}

.index-title,
.article-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

.article-meta {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
}

.notice,
.lead,
.source-list,
.market-table-wrap,
.article-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice {
  padding: 14px 16px;
  margin: 0 0 18px;
}

.lead,
.article-block,
.source-list {
  padding: 20px;
  margin: 18px 0;
}

.lead p,
.article-block p {
  margin: 0 0 14px;
}

.lead p:last-child,
.article-block p:last-child {
  margin-bottom: 0;
}

.dateline {
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  color: var(--muted);
}

.section-rule {
  margin: 18px 0 12px;
  font-family: Consolas, "Courier New", monospace;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.impact {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 2px 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #7a5410;
  background: #fff7e4;
  font-weight: 700;
}

.market-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

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

caption {
  text-align: left;
  padding: 14px 16px 8px;
  font-weight: 700;
}

th,
td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.gain {
  color: var(--gain);
}

.loss {
  color: var(--loss);
}

.flat {
  color: var(--muted);
}

.day-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}

.day-list a {
  display: block;
  min-height: 164px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.day-list a:hover {
  border-color: var(--accent);
}

.day-list strong {
  display: block;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.day-list span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.source-list h2,
.article-block h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.source-list ul {
  margin: 0;
  padding-left: 20px;
}

.source-list li + li {
  margin-top: 6px;
}

.format-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.format-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.format-links a:hover {
  border-color: var(--accent);
}

.registry-intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.source-registry-wrap {
  overflow-x: auto;
  margin: 18px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.source-registry {
  min-width: 1040px;
}

.source-registry th,
.source-registry td {
  text-align: left;
  white-space: normal;
}

.source-registry th:last-child,
.source-registry td:last-child {
  text-align: right;
  white-space: nowrap;
}

.source-registry td:nth-child(3),
.source-registry td:nth-child(4),
.source-registry td:nth-child(5) {
  white-space: nowrap;
}

.source-registry a {
  font-weight: 700;
}

.source-registry small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.reit-reference-table {
  min-width: 1440px;
}

.reit-reference-table th,
.reit-reference-table td {
  text-align: left;
  white-space: nowrap;
}

.reit-reference-table td:first-child {
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
  white-space: nowrap;
}

.reit-reference-table small {
  display: inline;
  margin-left: 8px;
  white-space: nowrap;
}

.reit-reference-table .memo-cell {
  min-width: 0;
}

.internal-db-table {
  min-width: 1800px;
}

.internal-db-table th,
.internal-db-table td {
  text-align: left;
  white-space: nowrap;
}

.internal-db-table td:first-child {
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.note-page h2 {
  margin-top: 26px;
}

.note-page ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.note-page li + li {
  margin-top: 6px;
}

.note-page .subnote {
  margin-left: 18px;
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.profile-card {
  display: block;
  min-height: 186px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.profile-card:hover {
  border-color: var(--accent);
}

.profile-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.3;
}

.profile-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.profile-code {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 10px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f5f6;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.profile-facts {
  min-width: 840px;
}

.profile-facts th,
.profile-facts td {
  text-align: left;
  white-space: normal;
}

.plan-table {
  min-width: 960px;
}

.plan-table th,
.plan-table td {
  text-align: left;
  white-space: normal;
}

.plan-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.summary-table {
  min-width: 560px;
}

.summary-table th:last-child,
.summary-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.listed-master-table {
  min-width: 1120px;
}

.listed-master-table th,
.listed-master-table td {
  text-align: left;
  white-space: normal;
}

.listed-master-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  cursor: pointer;
}

.listed-master-table td:first-child {
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
  white-space: nowrap;
}

.sortable-table th {
  cursor: pointer;
  user-select: none;
}

.sortable-table th:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.list-tools input {
  width: min(420px, 100%);
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.list-tools span {
  color: var(--muted);
  font-weight: 700;
}

.profile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.profile-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.profile-nav a:hover {
  border-color: var(--accent);
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f3f5f6;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.status-ok,
.status-redirect {
  color: var(--gain);
  font-weight: 700;
}

.status-check {
  color: var(--gold);
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  margin-top: 22px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .site-header-inner,
  .page-shell {
    width: min(100% - 22px, 1120px);
  }

  .lead,
  .article-block,
  .source-list {
    padding: 16px;
  }

  .day-list a {
    min-height: 0;
  }
}




