/* ==========================================================================
   01-base.css — リセット・基本タイポグラフィ
   【触らない領域】レイアウト崩れの原因になるため、原則編集しない。
   ========================================================================== */

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

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
  margin: 0;
  color: var(--color-ink);
}

p{ margin: 0 0 1em; }
ul, ol{ margin: 0; padding: 0; list-style: none; }

a{ color: inherit; text-decoration: none; }

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

button, input{ font-family: inherit; font-size: 1em; color: inherit; }
button{ background: none; border: none; cursor: pointer; padding: 0; }

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

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
