a { text-decoration: none; }

.site-header,
.site-footer {
  padding-inline: max(1rem, calc((100% - 78rem) / 2));
  background: #101521;
  color: var(--ink);
  font: 14px/1.6 system-ui, "Yu Gothic", Meiryo, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  height: auto;
  min-height: 88px;
  padding-block: .75rem;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  order: 0;
  width: auto;
  margin: 0;
  gap: .5rem 1.25rem;
  font: inherit;
}

.site-header a,
.site-footer a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.site-header a:hover,
.site-footer a:hover,
.site-header a[aria-current="page"] {
  color: var(--blue);
}

.site-logo {
  display: inline-block;
  width: 11.5rem;
  max-width: 100%;
}

.site-header .site-logo {
  width: 15rem;
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header .site-contact {
  margin-left: auto;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
}

.site-footer {
  padding-block: 1.75rem 1rem;
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  width: auto;
  margin: 0;
  gap: 1.5rem;
  font: inherit;
}

.site-footer nav div {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: .4rem;
}

.site-footer nav p {
  margin: 0 0 .35rem;
  font-weight: 650;
}

.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
}

@media (min-width: 64rem) {
  html { scroll-padding-top: 6rem; }
}

@media (max-width: 63.999rem) {
  .site-header { position: relative; }
}

@media (max-width: 47rem) {
  .site-header { font-size: 16px; }
  .site-header .site-logo { width: min(13.5rem, 52vw); }
  .site-header nav {
    order: 1;
    width: 100%;
    justify-content: flex-start;
  }
}
