/*! reset.css - Modern CSS Reset for LP */

/* Box-sizingを全要素に統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* マージン・パディングのリセット */
html,
body,
h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl, dd,
ul, ol {
  margin: 0;
  padding: 0;
}

/* リストのマーカーを除去(リスト目的で使う場合はrole="list"を付与) */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* html, bodyを画面いっぱいに */
html,
body {
  height: 100%;
}

/* 行間の一貫性とフォントレンダリングの改善 */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

/* 見出しの改行を綺麗に(対応ブラウザのみ) */
h1, h2, h3, h4,
p {
  overflow-wrap: break-word;
}
h1, h2, h3, h4 {
  text-wrap: balance;
}
/* p {
  text-wrap: pretty;
} */

/* リンクの下線・色をデフォルト解除 */
a {
  color: inherit;
  text-decoration: none;
}

/* リンクにフォーカスがある時の一貫したスタイル */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* 画像・動画・埋め込み要素をブロック化し、はみ出し防止 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* フォーム要素にフォントを継承 */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* ボタンの見た目をリセット */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* textareaのリサイズを縦方向のみに制限 */
textarea {
  resize: vertical;
}

/* テーブルの余白を統一 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* fieldset, legendのブラウザ標準スタイルを除去 */
fieldset {
  border: none;
  min-width: 0;
}

/* アニメーションを抑えたい場合のOS設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
