@font-face {
  font-family: "Zen Old Mincho";
  src: url("../fonts/heading-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/body-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/body-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  overflow-wrap: break-word;
  word-break: auto-phrase;
  color: var(--color-ink);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-synthesis: none;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  word-break: auto-phrase;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

strong,
b {
  font-weight: 700;
}

p + p {
  margin-block-start: var(--space-4);
}

p,
li,
dt,
dd,
th,
td,
caption,
figcaption,
summary,
legend,
label,
address {
  text-wrap-style: pretty;
}

a {
  text-decoration: underline;
  text-underline-offset: var(--space-1);
  color: var(--color-accent-deep);
}

a:hover {
  text-decoration-thickness: 0.125em;
}

:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-accent-deep);
  outline-offset: var(--focus-ring-offset);
}
