:root {
  color-scheme: light;
  --konjo-950: #10263d;
  --konjo-800: #1a3a59;
  --konjo-700: #275273;
  --vermilion-700: #a93025;
  --vermilion-600: #bd3b2d;
  --gold-500: #b8954d;
  --ink: #17212b;
  --muted: #53606c;
  --paper: #fffdf8;
  --washi: #f4efe3;
  --line: #d9d2c3;
  --focus: #0969da;
  --max-width: 72rem;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.8;
}

a {
  color: var(--konjo-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--vermilion-700);
}

a:focus-visible,
summary:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
  border-radius: 0.2rem;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: var(--konjo-950);
  transform: translateY(-150%);
}

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

.site-header {
  color: #fff;
  background: var(--konjo-950);
  border-bottom: 0.25rem solid var(--vermilion-600);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  color: #fff9e9;
  background: var(--vermilion-600);
  border: 0.08rem solid #e2c376;
  border-radius: 0.35rem;
  font-size: 1.1rem;
  line-height: 1;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: #fff;
  font-weight: 650;
  text-decoration-color: transparent;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  text-decoration-color: #f1d390;
}

.hero {
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem);
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgb(184 149 77 / 24%), transparent 32rem),
    linear-gradient(145deg, var(--konjo-950), var(--konjo-800));
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: #ead7aa;
  font-size: 0.83rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  line-height: 1.35;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 4.6rem);
  letter-spacing: 0.025em;
}

.hero-copy {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  color: #f0f3f5;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.page-shell {
  padding-block: clamp(2.25rem, 6vw, 5rem);
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.document {
  max-width: 48rem;
}

.document > section + section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 0.08rem solid var(--line);
}

.document h2 {
  margin: 0 0 1rem;
  color: var(--konjo-950);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.document h3 {
  margin: 1.75rem 0 0.5rem;
  color: var(--konjo-800);
  font-size: 1.15rem;
}

.document p,
.document ul,
.document ol {
  margin-block: 0.75rem;
}

.document li + li {
  margin-top: 0.45rem;
}

.meta {
  margin: 0 0 2.5rem;
  padding: 1rem 1.2rem;
  background: var(--washi);
  border-left: 0.25rem solid var(--gold-500);
}

.contents {
  position: sticky;
  top: 1.5rem;
  padding: 1.25rem;
  background: var(--washi);
  border: 0.08rem solid var(--line);
  border-radius: 0.55rem;
}

.contents h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.contents ol {
  margin: 0;
  padding-left: 1.4rem;
}

.contents li + li {
  margin-top: 0.4rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  padding: 1.35rem;
  background: #fff;
  border: 0.08rem solid var(--line);
  border-radius: 0.6rem;
  box-shadow: 0 0.4rem 1.4rem rgb(16 38 61 / 7%);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.button-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--vermilion-700);
  border-radius: 0.35rem;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  color: #fff;
  background: #87271f;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: #f8f2e5;
  border: 0.08rem solid #d8c59d;
  border-radius: 0.45rem;
}

details {
  padding: 1rem 0;
  border-top: 0.08rem solid var(--line);
}

details:last-child {
  border-bottom: 0.08rem solid var(--line);
}

summary {
  color: var(--konjo-950);
  cursor: pointer;
  font-weight: 750;
}

.site-footer {
  padding-block: 2.5rem;
  color: #e8edf2;
  background: var(--konjo-950);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #fff;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 52rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.85rem;
  }

  .document-layout {
    grid-template-columns: 1fr;
  }

  .contents {
    position: static;
    grid-row: 1;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 30rem) {
  .header-inner,
  .footer-inner,
  .page-shell {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .site-nav ul {
    gap: 0.35rem 0.75rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .skip-link,
  .site-nav,
  .contents,
  .site-footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .site-header {
    color: #000;
    background: #fff;
    border-bottom-color: #000;
  }

  .brand {
    color: #000;
  }

  .document-layout {
    display: block;
  }
}
