:root {
  color-scheme: light;
  --background: #f5f8fc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #526076;
  --line: #dce4ef;
  --primary: #1769aa;
  --primary-dark: #0d4778;
  --focus: #ffbf47;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
}

a {
  color: var(--primary-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  color: #ffffff;
  background: linear-gradient(135deg, #0d4778, #1769aa);
}

.site-header__inner,
.page,
.site-footer__inner {
  width: min(100% - 32px, 880px);
  margin-inline: auto;
}

.site-header__inner {
  padding-block: 28px;
}

.brand {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
}

.site-nav a {
  color: #ffffff;
}

.page {
  padding-block: 40px 64px;
}

.document {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgb(23 32 51 / 7%);
}

h1,
h2,
h3 {
  line-height: 1.4;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

h2 {
  margin: 2.4em 0 0.7em;
  padding-bottom: 0.25em;
  border-bottom: 2px solid var(--line);
  font-size: 1.35rem;
}

h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.08rem;
}

p,
ul,
ol,
table {
  margin-block: 0.75em;
}

ul,
ol {
  padding-left: 1.5em;
}

li + li {
  margin-top: 0.35em;
}

.updated,
.lead,
.note {
  color: var(--muted);
}

.lead {
  font-size: 1.08rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

th {
  background: #edf4fb;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.link-card {
  display: block;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.link-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.contact-box {
  padding: 18px 20px;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: #edf6fd;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.site-footer__inner {
  padding-block: 24px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 560px) {
  .site-header__inner,
  .page,
  .site-footer__inner {
    width: min(100% - 24px, 880px);
  }

  .page {
    padding-block: 24px 40px;
  }

  .document {
    border-radius: 12px;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  table,
  tr {
    border: 0;
  }

  tr {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
  }

  td {
    padding: 10px 12px;
    border: 0;
  }

  td + td {
    border-top: 1px solid var(--line);
  }

  td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 700;
  }

  td:first-child {
    background: #edf4fb;
    font-weight: 700;
  }
}
