html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking);
  overflow-wrap: anywhere;
}

main {
  min-height: 70vh;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: 0.025em;
}

h1,
h2 {
  font-family: var(--font-serif);
}

p {
  max-width: var(--reading);
}

strong {
  font-weight: 700;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 2000;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: none;
}

button {
  color: inherit;
}

code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
}
/* スクロール操作を残したまま、スクロールバーだけ非表示 */
html,
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
