:root {
  --text: #1f2328;
  --muted: #59636e;
  --line: #d0d7de;
  --bg: #ffffff;
  --link: #0b5cad;
  --tag-bg: #f3f4f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e8eb;
    --muted: #9aa4af;
    --line: #3a4048;
    --bg: #15181c;
    --link: #7ab7ff;
    --tag-bg: #232830;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

.site-header,
main,
.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a {
  margin-left: 1rem;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.25rem;
}

p {
  margin: 0.5rem 0;
}

ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

li {
  margin: 0.4rem 0;
}

.lead,
.summary {
  font-size: 1.05rem;
}

.meta {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

p.meta,
li > .meta:first-child {
  margin-top: 0;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.quote {
  margin: 0.25rem 0;
}

.incident-list,
.update-list {
  list-style: none;
  padding-left: 0;
}

.incident-list li,
.update-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.update-list .meta,
.incident-list .meta {
  margin-top: 0.1rem;
}

.statements {
  list-style: none;
  padding-left: 0;
}

.statements > li {
  padding: 0.5rem 0 0.5rem 0.75rem;
  border-left: 3px solid var(--line);
}

/* 述語は語で区別する。色や形に意味は持たせない */
.predicate,
.tag {
  display: inline-block;
  padding: 0 0.45em;
  border: 1px solid var(--muted);
  border-radius: 3px;
  background: var(--tag-bg);
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: nowrap;
}

.tag {
  border-color: var(--line);
  color: var(--muted);
}

.basis {
  display: inline;
  font-size: 0.875rem;
}

dl {
  margin: 0.25rem 0;
}

dt {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 0.4rem;
}

dd {
  margin: 0;
}

.correction dd {
  padding-left: 0.5rem;
}

.ident {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.95em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.5rem;
}

.terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding-left: 0;
}

.terms li {
  margin: 0;
  padding: 0 0.5em;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--tag-bg);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-header nav a:first-child {
    margin-left: 0;
  }
}

.table-wrap {
  overflow-x: auto;
}

.vuln-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.vuln-table th,
.vuln-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.vuln-table thead th {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.vuln-table tbody th {
  font-weight: 500;
  white-space: nowrap;
}

.vuln-table td {
  overflow-wrap: anywhere;
}

.vuln-table time {
  white-space: nowrap;
}

.vuln-table .tag {
  white-space: normal;
}

.vuln-table td.domestic {
  min-width: 13rem;
}
