:root {
  --bg: #ffffff;
  --text: #1f2328;
  --text-muted: #57606a;
  --border: #d0d7de;
  --accent: #0969da;
  --accent-hover: #0550ae;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  --radius: 4px;
  --max-w: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", "Meiryo", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

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

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

header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
}

header.site-header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.site-header .brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.02em;
}

header.site-header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

header.site-header nav a {
  color: var(--text-muted);
}

header.site-header nav a:hover,
header.site-header nav a.active {
  color: var(--accent);
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-top: 8px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 8px;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 1.4em;
}

li {
  margin: 4px 0;
}

.meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.lead {
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0 40px;
}

.toc {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 40px;
}

.toc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.toc ol {
  padding-left: 1.4em;
  margin: 0;
  font-size: 14px;
  columns: 2;
  column-gap: 24px;
}

@media (max-width: 600px) {
  .toc ol {
    columns: 1;
  }
}

article.section {
  margin-top: 32px;
  padding-top: 8px;
}

article.section h2 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

article.section p,
article.section li {
  font-size: 15px;
}

ol.subitems {
  margin-top: 6px;
  padding-left: 0;
  list-style: none;
  counter-reset: subitem;
}

ol.subitems > li {
  counter-increment: subitem;
  position: relative;
  padding-left: 3em;
  margin: 4px 0;
}

ol.subitems > li::before {
  content: "（" counter(subitem) "）";
  position: absolute;
  left: 0;
  width: 2.8em;
}

table.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 20px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table.docs-table th,
table.docs-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

table.docs-table th {
  background: var(--bg);
  font-weight: 700;
  width: 30%;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: none;
}

table.docs-table tr:last-child th,
table.docs-table tr:last-child td {
  border-bottom: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  color: var(--text);
}

.card:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.release {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin: 24px 0;
}

.release h2 {
  border: none;
  margin: 0 0 4px;
  font-size: 18px;
}

.release .meta {
  margin-bottom: 8px;
  font-size: 13px;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: 80px;
}

footer.site-footer .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 20px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
