/* ============================================================
   reset.css
   モダンCSSリセット（Josh Comeau ベースを一部調整）
   - box-sizing: border-box
   - margin初期化、でも見出しは base.css で再設定
   - フォーム要素の挙動統一
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

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

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: auto-phrase;
}

ul, ol {
  list-style: none;
}

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

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

/* フォーカス表示（アクセシビリティ） */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 画像のデフォルト */
img {
  height: auto;
}

/* アドレス要素 */
address {
  font-style: normal;
}
