/* --- Modern CSS Reset --- */

/* 1. box-sizingをborder-boxに設定 
  paddingやborderがwidth/heightに含まれるようになり、直感的なサイズ指定が可能に
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. デフォルトのmarginをリセット
*/
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* 3. リストのデフォルトスタイルをリセット
*/
ul,
ol {
  padding: 0;
  list-style: none;
}

/* 4. bodyのline-heightを設定し、フォントのスムージングを適用
*/
body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 5. 画像のレスポンシブ対応
*/
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. inputやbuttonなどのフォントを継承
*/
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. aタグのデフォルトスタイルをリセット
*/
a {
  text-decoration: none;
  color: inherit;
}

/*
  8. buttonのデフォルトスタイルをリセット
*/
button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}


  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }

  button:focus,
  a:focus {
    outline: 0;
    outline: none;
  }

  button:focus-visible,
  a:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
  }
