@font-face {
  font-family: "Noto Sans JP";
  src: url("./noto-sans-jp.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Override the family in existing component font shorthands without resetting their sizes or spacing. */
@layer site-typography {
  :root {
    --ea-font-family: Arial, "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  }

  :where(html, body, body *),
  :where(body, body *)::before,
  :where(body, body *)::after {
    font-family: var(--ea-font-family) !important;
  }

  /* These titles previously relied on the heavy appearance of Mochiy's regular cut. */
  :is(.hero, .development-content, .legal-content, .sample-intro) h1,
  .sample-section h2,
  :is(.product-data, .product-sales) > h2,
  .ea-result-dialog #ea-result-title {
    font-weight: 800 !important;
  }
}
