:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #4c4c4c;
  --line: #e5e5e5;
  --canvas: #fafafa;
  --yellow: #fec000;
  --yellow-soft: #fef2cc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
::selection { background: #ffe080; color: #171717; }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 2; padding: .5rem .75rem; background: #fff; }
.skip-link:focus { top: .5rem; }
.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(180px, 1fr);
  align-items: start;
  gap: 64px;
}
.layout--single { display: block; max-width: 820px; }
.document { min-width: 0; }
.document h1 { margin: 0 0 20px; font-size: clamp(30px, 3vw, 42px); line-height: 1.16; letter-spacing: -.025em; }
.document h2 { margin: 44px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 22px; line-height: 1.3; letter-spacing: -.015em; scroll-margin-top: 24px; }
.document h3 { margin: 28px 0 12px; font-size: 17px; line-height: 1.35; scroll-margin-top: 24px; }
.document p { margin: 0 0 16px; }
.document ul { margin: 0 0 20px; padding-left: 24px; }
.document li { padding-left: 4px; margin: 4px 0; }
.document strong { font-weight: 650; }
.document code { background: #f2f2f2; padding: .08em .25em; font-size: .9em; overflow-wrap: anywhere; }
.document a { overflow-wrap: anywhere; }
.document .lede { max-width: 680px; color: var(--muted); font-size: 18px; }
.action-panel {
  margin: 32px 0 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.action-panel h2 { margin: 0 0 10px; padding: 0; border: 0; }
.action-panel p:last-child { margin-bottom: 0; }
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 8px 0 12px;
  padding: 10px 18px;
  border: 1px solid var(--yellow);
  border-radius: 10px;
  background: var(--yellow);
  color: #171717;
  font-weight: 700;
  text-decoration: none;
}
.primary-link:hover { background: var(--yellow-soft); text-decoration: none; }
.steps { padding-left: 26px; }
.steps li { margin: 12px 0; padding-left: 6px; }
.data-table { width: 100%; margin: 18px 0 24px; border-collapse: collapse; }
.data-table th,
.data-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: #f7f7f7; font-size: 14px; }
.notice { padding: 14px 16px; border-radius: 10px; background: #f2f2f2; color: var(--muted); }
.contents { position: sticky; top: 30px; max-height: calc(100vh - 60px); overflow-y: auto; border-left: 1px solid var(--line); padding-left: 22px; font-size: 13px; line-height: 1.45; }
.contents h2 { margin: 0 0 12px; font-size: 14px; }
.contents ol { margin: 0; padding: 0; list-style: none; }
.contents li { margin: 8px 0; color: var(--muted); }
.contents a { text-decoration: none; }
.contents a:hover { text-decoration: underline; }
@media (max-width: 850px) {
  .layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; padding-top: 34px; }
  .contents { position: static; grid-row: 1; max-height: 180px; border-left: 0; padding: 12px 18px; background: #f2f2f2; border-radius: 10px; }
  .contents ol { columns: 2; }
}
@media (max-width: 520px) {
  body { font-size: 15px; line-height: 1.6; }
  .layout { padding: 28px 18px 64px; gap: 28px; }
  .document h2 { font-size: 23px; margin-top: 36px; }
  .contents ol { columns: 1; }
  .document .lede { font-size: 16px; }
  .action-panel { margin-top: 24px; padding: 18px; }
  .primary-link { width: 100%; }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td { display: block; width: 100%; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .data-table td { border: 0; border-bottom: 1px solid var(--line); }
  .data-table td:last-child { border-bottom: 0; }
  .data-table td::before { display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; content: attr(data-label); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
