:root {
  --blue-900: #0017c1;
  --blue-1000: #00118f;
  --blue-1200: #000060;
  --blue-50: #e8f1fe;
  --blue-200: #c5d7fb;
  --blue-300: #9db7f9;
  --gray-50: #f2f2f2;
  --gray-300: #b3b3b3;
  --gray-420: #949494;
  --gray-536: #767676;
  --gray-600: #666;
  --gray-700: #4d4d4d;
  --gray-800: #333;
  --gray-900: #1a1a1a;
  --page: #fff;
  --surface: #f2f2f2;
  --text: #1a1a1a;
  --text-soft: #4d4d4d;
  --divider: #ccc;
  --link: #00118f;
  --link-visited: #8b008b;
  --link-hover: #0017c1;
  --link-active: #c74700;
  --sans: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:visited {
  color: var(--link-visited);
}

@media (hover: hover) {
  a:hover {
    color: var(--link-hover);
    text-decoration-thickness: 3px;
  }
}

a:active {
  color: var(--link-active);
}

:focus-visible {
  outline: 4px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #ffd43d;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}

.site-header {
  border-bottom: 1px solid var(--divider);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.site-header a,
.site-header a:visited {
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.site-header a.brand {
  color: var(--text);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
}

@media (hover: hover) {
  .site-header a:hover {
    color: var(--blue-900);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
  }
}

.site-header a:active {
  color: var(--link-active);
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 700;
}

h1 {
  margin: 32px 0 16px;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.4;
}

h2 {
  margin: 48px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
  font-size: 24px;
  line-height: 1.5;
}

h3 {
  margin: 24px 0 6px;
  font-size: 20px;
  line-height: 1.5;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 1.5em;
}

li {
  margin-bottom: 6px;
}

.lead {
  font-size: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 24px;
  border: 1px solid var(--blue-900);
  border-radius: 8px;
  background: var(--blue-900);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:visited {
  color: #fff;
}

@media (hover: hover) {
  .button:hover {
    border-color: var(--blue-1000);
    background: var(--blue-1000);
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
}

.button:active {
  border-color: var(--blue-1200);
  background: var(--blue-1200);
  color: #fff;
}

.button-secondary {
  min-height: 48px;
  border: 1px solid var(--blue-900);
  background: #fff;
  color: var(--blue-900);
}

.button-secondary:visited {
  color: var(--blue-900);
}

@media (hover: hover) {
  .button-secondary:hover {
    border-color: var(--blue-1000);
    background: var(--blue-200);
    color: var(--blue-1000);
    text-decoration: underline;
  }
}

.button-secondary:active {
  border-color: var(--blue-1200);
  background: var(--blue-300);
  color: var(--blue-1200);
}

.note {
  color: var(--text-soft);
  font-size: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  background: var(--surface);
  font-weight: 700;
}

.site-footer {
  margin-top: 64px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--divider);
  color: var(--text-soft);
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 6px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 14px;
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1a1a1a;
    --surface: #262626;
    --text: #f2f2f2;
    --text-soft: #b3b3b3;
    --divider: #4d4d4d;
    --link: #9db7f9;
    --link-visited: #d79bff;
    --link-hover: #c5d7fb;
    --link-active: #e8f1fe;
  }

  .site-header a,
  .site-header a:visited {
    color: #b3b3b3;
  }

  .site-header a.brand {
    color: #f2f2f2;
  }

  @media (hover: hover) {
    .site-header a:hover {
      color: #c5d7fb;
    }
  }

  .site-header a:active {
    color: var(--link-active);
  }

  .button,
  .button:visited {
    border-color: #9db7f9;
    background: #9db7f9;
    color: #1a1a1a;
  }

  @media (hover: hover) {
    .button:hover {
      border-color: #c5d7fb;
      background: #c5d7fb;
      color: #1a1a1a;
    }
  }

  .button:active {
    border-color: #e8f1fe;
    background: #e8f1fe;
    color: #1a1a1a;
  }

  .button-secondary,
  .button-secondary:visited {
    border-color: #9db7f9;
    background: transparent;
    color: #9db7f9;
  }

  @media (hover: hover) {
    .button-secondary:hover {
      border-color: #9db7f9;
      background: #1f2a4d;
      color: #c5d7fb;
    }
  }

  .button-secondary:active {
    border-color: #9db7f9;
    background: #26386b;
    color: #e8f1fe;
  }
}

html body :focus-visible {
  border-radius: 4px;
}
