/* =========================================================
   base.css
   リセットと、ページ全体の文字の基本。
   ========================================================= */

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--purple);
  font-family: var(--ff-shippori);
  font-weight: 400;
  font-size: calc(16px * var(--fs-scale));   /* 大きさを指定していない文字の基本 */
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;            /* 太さが1種類の書体を、ブラウザが無理に太らせない */
  font-feature-settings: "palt" 1;   /* 括弧や仮名を詰める(Figma と同じ) */
  overflow-wrap: anywhere;
  line-break: strict;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

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

/* 装飾用の要素(deco.css で形を付ける)。?wire で開いたときは消す */
.is-wire .deco { display: none !important; }

/* 画面幅ごとの改行(<br class="u-sp"> はスマホだけで改行、u-pc はスマホ以外で改行) */
.u-sp { display: none; }
@media (max-width: 767px) {
  .u-sp { display: inline; }
  .u-pc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
