/* ===== Modern CSS Reset 2026 ===== */

/* 1. box-sizing統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. デフォルトmargin削除（最低限） */
body,
h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* 3. 高さの基準 */
html, body {
  height: 100%;
}

/* 4. body初期設定 */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 5. メディア要素 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. フォーム要素を継承 */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. テキスト折り返し */
p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 8. リスト（必要なら外す） */
ul,
ol {
  padding: 0;
  list-style: none;
}

/* 9. anchor */
a {
  text-decoration: none;
  color: inherit;
}

/* 10. root stacking context */
#root,
#__next {
  isolation: isolate;
}