/* ==========================================================================
   Modern CSS Reset
   ========================================================================== */
/* Box sizing を全要素に適用 */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* デフォルトマージン・パディングをリセット */
* {
  margin: 0;
  padding: 0;
}
/* HTML / body の基本設定 */
html {
  /* 1rem = 10px 換算にする(16px × 62.5% = 10px)。style.css側のrem値はこの基準で調整済み */
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html,
body {
  height: 100%;
}
body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
/* 見出し・段落のフォントを継承(サイト側で明示的に指定する運用に) */
h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
  font-weight: inherit;
}
/* リストのマーカーを削除 */
ul[role='list'],
ol[role='list'],
ul,
ol {
  list-style: none;
}
/* リンクの基本装飾をリセット */
a {
  color: inherit;
  text-decoration: none;
}
/* 画像・メディア要素をブロック化して最大幅を制限 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
/* テーブルの余白・線を統合 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* フォーム要素にフォントを継承 */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
/* ボタンの見た目をリセット */
button {
  background: none;
  border: none;
  cursor: pointer;
}
/* テキストエリアは縦方向のみリサイズ可能に */
textarea {
  resize: vertical;
}
/* fieldset / legend のリセット */
fieldset {
  border: none;
}
/* 装飾用の水平線をリセット */
hr {
  border: none;
  border-top: 1px solid currentColor;
}
/* アニメーションを減らす設定をしているユーザーへの配慮 */
@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;
  }
}
/* フォーカス時のアウトラインはキーボード操作時のみ表示 */
:focus:not(:focus-visible) {
  outline: none;
}
/* iOSでのタップ時のハイライトを削除 */
a, button, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}
