/*==========================================================
  Modern CSS Reset by Josh W. Comeau
  https://github.com/joshwcomeau/css-custom-properties#reset-css
==========================================================*/

/* 1. すべての要素でボックスサイズを border-box に */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. デフォルトの余白をリセット */
* {
  margin: 0;
}

/* 3. HTML, body をフルハイト・スムーズスクロールに */
html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 4. メディア要素をブロック化＆可変幅対応 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

/* 6. 見出し・段落の長い単語折り返し */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 7. ルート要素の分離コンテキスト（React/Vue 等で必要に応じて） */
#root,
#__next {
  isolation: isolate;
}

/* 8. リスト・テーブル・リンクのベーシックリセット */
ul,
ol {
  list-style: none;
  padding: 0; /* reset.cssでpaddingもリセットすることが多い */
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}
