:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-strong: #edf3f2;
  --text: #15211f;
  --muted: #667085;
  --line: #d7dde5;
  --accent: #0a6f62;
  --accent-strong: #07584e;
  --danger: #9b1c1c;
  --success: #0b6b3a;
  font-family: Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-inner,
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.brand {
  font-weight: 700;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.container {
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.eyebrow {
  color: var(--accent-strong);
  font-weight: 700;
  margin: 0 0 10px;
}

.panel,
.report-row,
.locked-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 24px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  background: var(--surface);
  color: var(--accent);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  padding: 16px;
  background: var(--surface-strong);
  border-radius: 8px;
}

.metric strong {
  display: block;
  font-size: 24px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-gap {
  margin-top: 24px;
}

.report-list {
  display: grid;
  gap: 12px;
}

.report-row {
  padding: 16px;
}

.report-row h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.highlight-list,
.detail-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.highlight {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.locked-row {
  position: relative;
  overflow: hidden;
  padding: 18px;
  min-height: 112px;
  background:
    repeating-linear-gradient(135deg, rgba(0, 106, 220, 0.08), rgba(0, 106, 220, 0.08) 8px, rgba(255, 255, 255, 0.9) 8px, rgba(255, 255, 255, 0.9) 16px);
}

.locked-row strong {
  display: block;
  margin-bottom: 8px;
}

form {
  display: grid;
  gap: 12px;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font: inherit;
}

.inline-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: start;
}

.inline-form .notice {
  grid-column: 1 / -1;
}

.notice {
  min-height: 24px;
  color: var(--muted);
}

.notice.error {
  color: var(--danger);
}

.notice.success {
  color: var(--success);
}

.source-line {
  margin: 10px 0 0;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.fact-grid,
.comparison-grid,
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.comparison-grid,
.account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-grid > div,
.comparison-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.fact-grid strong {
  display: block;
  margin-bottom: 6px;
}

.fact-grid span {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  line-height: 1.7;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}

.footer-inner {
  padding-top: 18px;
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .hero,
  .grid,
  .filter-panel,
  .fact-grid,
  .comparison-grid,
  .account-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }
}
