:root {
  --text: #1f2328;
  --muted: #57606a;
  --border: #d8dee4;
  --callout-bg: #f6f8fa;
  --note-bg: #fff8e6;
  --note-border: #e6c200;
  --hl: #cf222e;
  --max-w: 52rem;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  background: #fff;
}

.site-header,
.site-footer,
.content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

.site-header {
  padding-top: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.doc-version {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

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

h1,
h2,
h3 {
  line-height: 1.35;
  margin: 1.75rem 0 0.75rem;
  scroll-margin-top: 1rem;
}

h1 {
  font-size: 1.35rem;
}

h2 {
  font-size: 1.15rem;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0.75rem 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

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

.toc a {
  color: #0969da;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.callout {
  background: var(--callout-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.callout ul {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}

.note {
  background: var(--note-bg);
  border-left: 4px solid var(--note-border);
  padding: 0.65rem 0.85rem;
  margin: 0.75rem 0;
  border-radius: 0 4px 4px 0;
}

.note-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.note-body {
  margin: 0;
  font-size: 0.95rem;
}

.hl {
  color: var(--hl);
  font-weight: 600;
}

code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  font-size: 0.92em;
}

.columns {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

@media (min-width: 720px) {
  .columns {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.col .chart img {
  width: 100%;
  height: auto;
}

.chart {
  margin: 0.5rem 0 1rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  line-height: 1.45;
}

table.data th,
table.data td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.5rem;
  vertical-align: top;
  min-width: 6.5rem;
}

table.data th {
  background: #f6f8fa;
  font-weight: 700;
}

table.data td:first-child,
table.data th:first-child {
  white-space: nowrap;
}