:root {
  color-scheme: light;
  --paper: #f7f1e5;
  --surface: #fffcf5;
  --ink: #18302f;
  --pine: #153d3c;
  --muted: #526765;
  --line: #c9d4ce;
  --saffron: #f2c14e;
  --vermilion: #d95d39;
  --notice: #fff7df;
  --content: 68rem;
  --reading: 44rem;
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  line-break: strict;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--pine);
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

a:hover { color: var(--vermilion); }

a:focus-visible,
.table-wrap:focus-visible {
  outline: .2rem solid var(--vermilion);
  outline-offset: .2rem;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .6rem .9rem;
  color: #fff;
  background: var(--pine);
  font-weight: 700;
  transform: translateY(-180%);
}

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

.shell {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid rgba(21, 61, 60, .2);
  background: rgba(247, 241, 229, .97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  line-height: 1.2;
  text-decoration: none;
}

.brand:hover { color: var(--ink); }

.brand > span:last-child { display: grid; }

.brand strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.brand small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, .65rem);
  gap: .18rem;
}

.brand-mark::before {
  position: absolute;
  top: 50%;
  right: .15rem;
  left: .15rem;
  z-index: -1;
  height: .12rem;
  background: var(--vermilion);
  content: "";
}

.brand-mark i {
  width: .65rem;
  height: .65rem;
  border: 2px solid var(--pine);
  background: var(--surface);
}

.brand-mark i:nth-child(2) {
  border-color: var(--saffron);
  background: var(--saffron);
}

.primary-nav ul {
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .35rem .65rem;
  border-bottom: 2px solid transparent;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--vermilion);
  color: var(--pine);
}

.index-main {
  min-height: calc(100vh - 9.5rem);
  padding-block: clamp(3rem, 9vw, 7rem);
}

.page-header {
  max-width: var(--reading);
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.4;
  word-break: keep-all;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.updated {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  font-size: .88rem;
}

.updated span { white-space: nowrap; }

.document-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--reading);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.document-links a {
  display: grid;
  gap: .4rem;
  min-height: 8.5rem;
  align-content: center;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.document-links a:hover { background: #e3ece7; }

.document-links strong {
  font-size: 1.15rem;
  word-break: keep-all;
}

.document-links span {
  color: var(--muted);
  font-size: .85rem;
}

.document-main { padding-block: 2rem 5rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  margin-bottom: clamp(2rem, 6vw, 4rem);
  color: var(--muted);
  font-size: .8rem;
}

.breadcrumb a { font-weight: 700; }
.breadcrumb span[aria-hidden="true"] { color: var(--vermilion); }

.document-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, var(--reading));
  gap: clamp(2.5rem, 7vw, 5rem);
  align-items: start;
}

.document-toc {
  position: sticky;
  top: 2rem;
  padding-top: .8rem;
  border-top: .25rem solid var(--pine);
}

.document-toc h2 {
  margin: 0 0 .6rem;
  font-size: .84rem;
}

.document-toc ol {
  display: grid;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-toc a {
  display: block;
  padding-block: .32rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
  text-decoration: none;
}

.document-toc a:hover { color: var(--vermilion); }

.prose {
  max-width: var(--reading);
  min-width: 0;
}

.single-column { margin-left: min(18rem, 20vw); }

.prose section {
  scroll-margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.prose section + section { margin-top: 2.5rem; }

.prose h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  word-break: keep-all;
}

.prose p { margin: 0 0 1.15rem; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

.prose ul {
  display: grid;
  gap: .75rem;
  margin: 0 0 1.3rem;
  padding-left: 1.35rem;
}

.prose li::marker { color: var(--vermilion); }
.prose a[href^="mailto:"] { font-weight: 800; overflow-wrap: anywhere; }
.note { color: var(--muted); font-size: .9rem; }

.table-wrap {
  margin-block: .5rem 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: .9rem;
}

th,
td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #e3ece7;
  font-weight: 800;
}

tr:last-child td { border-bottom: 0; }

.site-footer {
  border-top: 1px solid rgba(21, 61, 60, .2);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  color: var(--muted);
  font-size: .76rem;
}

.footer-inner div {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

@media (max-width: 48rem) {
  .header-inner {
    align-items: stretch;
    flex-direction: column;
    gap: .1rem;
    padding-block: .7rem .35rem;
  }

  .brand { align-self: flex-start; }
  .primary-nav { margin-inline: -.25rem; }
  .primary-nav a { min-height: 2.5rem; padding-inline: .5rem; }
  .document-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .document-toc { position: static; }
  .document-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1rem; }
  .single-column { margin-left: 0; }
}

@media (max-width: 31rem) {
  .shell { width: min(calc(100% - 1.5rem), var(--content)); }
  .page-header h1 { font-size: clamp(1.65rem, 7.5vw, 2rem); }
  .document-links { grid-template-columns: 1fr; }
  .document-links a { min-height: 7rem; }
  .document-toc ol { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .brand-mark i,
  .document-links,
  .document-links a,
  .table-wrap { border: 1px solid CanvasText; }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .document-toc { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .shell { width: 100%; }
  .document-main { padding: 0; }
  .document-layout { display: block; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
}
