:root {
  --site-content: 760px;
  --site-wide: 1280px;
  --site-ink: #1d1d1f;
  --site-paper: #ffffff;
  --site-line: color-mix(in srgb, var(--site-ink) 12%, transparent);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--site-paper);
  color: var(--site-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }

.shared-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--site-line);
  background: color-mix(in srgb, var(--site-paper) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.shared-site-header__inner {
  width: min(100% - 32px, var(--site-wide));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.shared-site-header__brand,
.shared-site-footer__brand {
  color: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.shared-site-brand__logo { display: block; width: auto; max-height: 44px; }
.shared-site-header__menu,
.shared-site-footer__menu { margin: 0; padding: 0; list-style: none; }
.shared-site-header__menu { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.shared-site-header__menu a,
.shared-site-footer__menu a { color: inherit; font-size: .92rem; text-decoration: none; }
.shared-site-header__menu a:hover,
.shared-site-header__menu a:focus-visible,
.shared-site-footer__menu a:hover,
.shared-site-footer__menu a:focus-visible { text-decoration: underline; text-underline-offset: .25em; }
.shared-site-main { min-height: 60vh; }
.shared-site-document > :where(:not(.alignfull):not(.alignwide)) { max-width: var(--site-content); margin-inline: auto; }
.shared-site-document > .alignwide { width: min(100% - 32px, var(--site-wide)); margin-inline: auto; }

@media (max-width: 760px) {
  .shared-site-header__inner {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
    padding-block: .8rem;
  }
  .shared-site-header__menu { flex-wrap: wrap; row-gap: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
