@charset "UTF-8";
/* ===== reset.css ===== */

/* 1. box-sizing を全要素で border-box に */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. 余白のリセット（要素間の予期しない余白を防ぐ） */
* {
  margin: 0;
}

/* 3. html / body の基本設定 */
html {
  -webkit-text-size-adjust: 100%; /* スマホで勝手に文字が拡大されるのを防ぐ */
  line-height: 1.5;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased; /* フォントの輪郭をなめらかに */
}

/* 4. 見出し・段落の折り返しを自然に */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance; /* 見出しの改行バランスを整える */
}
p {
  text-wrap: pretty;  /* 段落末尾の不自然な1単語残りを防ぐ */
}

/* 5. 画像・動画などをレスポンシブ化 */
img,
picture,
video,
canvas,
svg {
  display: block;     /* 画像下の余分な隙間を消す */
  max-width: 100%;    /* 親要素をはみ出さない */
  height: auto;
}

/* 6. フォーム要素のフォントを親から継承させる */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. リストの装飾を消す（ナビゲーション等で使いやすく） */
ul,
ol {
  list-style: none;
  padding: 0;
}

/* 8. リンクの装飾をリセット */
a {
  text-decoration: none;
  color: inherit;
}

/* 9. テーブルの罫線の隙間をなくす */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 10. 長い単語ではみ出さないように */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}