/* 土台。Penpot の文字は行の高さ 1.5 なので、web も 1.5 にそろえる */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family-latin), var(--font-family-base), sans-serif;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  color: var(--color-text-default);
  background: var(--color-surface-page);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
  color: inherit;
}

/* スマホ・ファブレット（幅 768 未満）の本文は 16px（DESIGN.md） */
@media (max-width: 767.98px) {
  body {
    font-size: var(--font-size-lg);
  }
}
