:root {
  --primary: #004c9e;
  --deep: #00366f;
  --accent: #ff9900;
  --highlight: #ffff66;
  --ink: #203248;
  --muted: #526478;
  --line: #dce4ec;
  --surface: #f3f6f9;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: #fff;
  font-family: 'Yu Gothic', 'Meiryo', sans-serif;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: 16px;
}

h1,
h2,
h3 {
  line-height: 1.55;
  overflow-wrap: anywhere;
  letter-spacing: 0.025em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.5rem, 5.8vw, 2.65rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

p {
  margin-bottom: 20px;
}

em {
  font-style: normal;
}

a {
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 0.25em;
}

/* 下線を意図的に付ける場合は class="link-underline" を指定する。 */
a.link-underline {
  text-decoration: underline !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

section {
  scroll-margin-top: 24px;
}

ul {
  padding-left: 1.3em;
}

li+li {
  margin-top: 8px;
}

@media (min-width: 768px) {
  .container {
    width: min(1120px, calc(100% - 80px));
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}