*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bm-surface);
  color: var(--bm-body);
  font-family: var(--bm-font-ja);
  /* デザイン 1f の実装メモ: 本文は SP 14px / PC 15px、行間 2.0。
     PC への切り替えは Task 20 のメディアクエリで行う */
  font-size: 14px;
  line-height: 2.0;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--bm-ink);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.01em;
}

h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--bm-purple); text-decoration: none; }
a:hover { color: var(--bm-magenta); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

::selection { background: #FBD7EC; }

:focus-visible { outline: 2px solid var(--bm-blue); outline-offset: 2px; }

/* デザイン 1f: 本文は SP 14px / PC 15px。行間 2.0 は変えない */
@media (min-width: 1120px) {
  body { font-size: 15px; }

  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  h3 { font-size: 20px; }
}
