:root {
  --color-text-primary: #111318;
  --color-text-secondary: #626c74;
  --color-border-subtle: #d9dee2;
  --color-border-control: #7f8a92;
  --color-interactive: #435f73;
  --color-focus-ring: #435f73;
  --brand: #435f73;
  --site-text: #18212f;
  --site-muted: #5f6c75;
  --site-border: #d9dfe3;
  --surface: #ffffff;
  --surface-subtle: #f4f5f7;
  --color-footer-surface: #f6f7f8;
  --color-important: #435f73;
  --color-important-bg: #f4f7f8;
  --color-warning: #8a4f2a;
  --color-warning-bg: #fff8f3;
  --color-danger: #8a3232;
  --color-danger-bg: #fff5f5;
  --site-max-width: 1120px;
  --site-gutter: 24px;
  --site-gutter-mobile: 18px;
  --header-height: 64px;
  --header-height-mobile: 60px;
  --global-nav-font-size: 14px;
  --global-nav-font-weight: 400;
  --global-nav-current-font-weight: 700;
}

html {
  scroll-padding-top: calc(var(--header-height) + 8px);
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 8px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 0;
  background: var(--surface);
}

.site-header::after {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  content: "";
  background: var(--site-border);
  pointer-events: none;
}

.site-header__inner,
.site-footer__inner {
  width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2)));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.site-header__brand,
.site-footer__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
}

.site-header__brand img,
.site-footer__brand img {
  display: block;
  width: 172px;
  height: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul,
.site-footer nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-footer a {
  color: var(--site-text);
  font-size: var(--global-nav-font-size);
  font-weight: var(--global-nav-font-weight);
  line-height: 1.3;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.site-nav a[aria-current="page"],
.site-nav a[aria-current="location"],
.site-footer a[aria-current="page"],
.site-footer a[aria-current="location"] {
  font-weight: var(--global-nav-current-font-weight);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.site-nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--site-border);
  border-radius: 3px;
  color: var(--site-text);
  background: var(--surface);
  font-size: var(--global-nav-font-size);
}

.site-nav-toggle:hover {
  border-color: var(--brand);
}

.site-skip-link {
  position: fixed;
  inset: 8px auto auto var(--site-gutter);
  z-index: 50;
  padding: 9px 14px;
  color: var(--surface);
  background: var(--site-text);
  text-decoration: none;
  transform: translateY(-180%);
}

.site-skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(172px, 1fr) auto;
  align-items: center;
  gap: 18px 32px;
  padding-block: 36px 32px;
}

.site-footer__inner > p {
  grid-column: 1;
  margin: 0;
  color: var(--site-muted);
  font-size: 14px;
}

.site-footer nav {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.site-footer nav ul {
  justify-content: flex-end;
}

.site-footer__inner > small {
  grid-column: 1 / -1;
  color: var(--site-muted);
  font-size: 13px;
}

.dot25step-page {
  margin: 0;
  color: var(--site-text);
  background: var(--surface);
  font-family: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.dot25step-page a {
  color: var(--brand);
  text-underline-offset: 0.22em;
}

.dot25step-page h1,
.dot25step-page h2,
.dot25step-page h3 {
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.dot25step-page p {
  margin-block: 0 1.25em;
}

.site-container {
  width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2)));
  margin-inline: auto;
}

.reading-column {
  width: min(760px, 100%);
  margin-inline: auto;
}

.heading-phrase {
  display: block;
}

.heading-phrase--mobile {
  display: inline;
}

.dot25step-tool .site-header__inner,
.dot25step-tool .site-footer__inner {
  width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2)));
}

.dot25step-tool .site-header__brand img {
  width: 172px;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: calc(var(--header-height-mobile) + 8px);
  }

  [id] {
    scroll-margin-top: calc(var(--header-height-mobile) + 8px);
  }

  .site-header,
  .site-header__inner {
    min-height: var(--header-height-mobile);
  }

  .site-header__inner,
  .site-footer__inner,
  .dot25step-tool .site-header__inner,
  .dot25step-tool .site-footer__inner {
    width: min(var(--site-max-width), calc(100% - (var(--site-gutter-mobile) * 2)));
  }

  .site-container,
  .reading-column {
    width: min(var(--site-max-width), calc(100% - (var(--site-gutter-mobile) * 2)));
  }

  .site-header__brand img {
    width: 144px;
  }

  .site-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    border-bottom: 1px solid var(--site-border);
    background: var(--surface);
  }

  .site-nav[data-open="false"] {
    display: none;
  }

  .site-nav ul {
    display: grid;
    gap: 0;
    width: min(var(--site-max-width), calc(100% - (var(--site-gutter-mobile) * 2)));
    margin-inline: auto;
    padding-block: 4px 8px;
  }

  .site-nav li {
    border-bottom: 1px solid var(--site-border);
  }

  .site-nav li:last-child {
    border-bottom: 0;
  }

  .site-nav a {
    display: block;
    min-height: 44px;
    padding: 10px 2px;
  }

  .site-nav a[aria-current="page"],
  .site-nav a[aria-current="location"] {
    padding-left: 12px;
    border-left: 3px solid var(--brand);
  }

  .site-footer__inner {
    display: block;
    padding-block: 30px 26px;
  }

  .site-footer__inner > p {
    margin-top: 14px;
  }

  .site-footer nav {
    margin-top: 22px;
  }

  .site-footer nav ul {
    display: grid;
    gap: 0;
    justify-content: stretch;
  }

  .site-footer nav li {
    border-bottom: 1px solid var(--site-border);
  }

  .site-footer nav li:last-child {
    border-bottom: 0;
  }

  .site-footer nav a {
    display: block;
    min-height: 44px;
    padding-block: 10px;
  }

  .site-footer__inner > small {
    display: block;
    margin-top: 20px;
  }

  .site-skip-link {
    left: var(--site-gutter-mobile);
  }

  .heading-phrase--mobile {
    display: block;
  }

  .dot25step-page {
    font-size: 18px;
  }
}

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