/* reset.css (modern reset) */

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

/* 2) 余白の初期化（必要最低限） */
* {
  font-weight: normal;
  margin: 0;
}

/* 3) 基本のテキスト調整 */
html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* 4) 画像・メディアの扱いを安定させる */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 5) フォーム要素を継承（崩れを減らす） */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 6) ボタンのデフォルト挙動 */
button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

/* 7) テキストのはみ出し対策 */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8) リストの見た目を消したい場合は class で制御するのが安全
   (全リセットすると既存UIが崩れやすい)
*/
/*
ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}
*/

/* 9) aタグの装飾はプロジェクト方針で */
a {
  color: inherit;
  text-decoration: none;
}

/* 10) テーブル崩れ防止 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 11) ルート要素のスタッキングコンテキスト（モーダル等が安定） */
#root,
#__next {
  isolation: isolate;
}

/* 12) アニメーション苦手な人への配慮 */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

li {
  list-style: none;
}