:root {
  color-scheme: dark;
  --background: #0c0d12;
  --surface: #181620;
  --text: #f0edf6;
  --muted: #beb8cd;
  --accent: #c4a4ff;
  --border: #3b344b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.site-header, .content, .site-footer { width: min(100% - 40px, 880px); margin-inline: auto; }
.site-header { padding-top: 24px; }
.site-header h1 { margin: 0; line-height: 0; }
.site-header img { display: block; width: 100%; height: auto; border-radius: 16px; }
.content { padding-block: 24px 48px; }
.content > p:first-child { color: var(--muted); font-size: 1.1rem; margin-top: 0; }
h2 { color: var(--accent); font-size: 1.4rem; margin: 2.4em 0 1em; padding-bottom: .4em; border-bottom: 1px solid var(--border); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #e3d2ff; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
li { margin-bottom: .8em; }
ol, ul { padding-left: 1.6em; }
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
th, td { border: 1px solid var(--border); padding: .8em 1em; text-align: left; vertical-align: top; }
th { background: var(--surface); color: var(--accent); }
td:first-child { width: 30%; }
pre, code { background: var(--surface); border-radius: 6px; font-size: .9em; }
code { padding: .15em .35em; }
pre { padding: 1em; border: 1px solid var(--border); white-space: pre-wrap; overflow-wrap: anywhere; }
pre code { padding: 0; }
.action-row { margin: 1.5em 0; }
.button { display: inline-block; padding: .65em 1.2em; border-radius: 8px; background: var(--accent); color: #191126; font-weight: 700; text-decoration: none; }
.button:hover { background: #dac4ff; color: #191126; }
.site-footer { padding-block: 24px 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; display: flex; gap: 1em; }
.skip-link { position: absolute; top: 8px; left: 8px; padding: 8px 16px; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 560px) {
  .site-header, .content, .site-footer { width: calc(100% - 32px); }
  .site-header { padding-top: 16px; }
  .content { padding-top: 20px; }
  th, td { padding: .6em; }
  td:first-child { width: 34%; }
  .button { width: 100%; text-align: center; }
}
