/*
 * ブラウザ差異のリセットのみを行うファイル。
 * 案件・デザインごとの見た目調整はここに書かず、common.css / design.css に書くこと。
 */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

/*
 * リンク・ボタン・開閉の見出し（summary）にマウスを乗せたら、どのブラウザでも指の形にする。
 * ブラウザ任せだと、環境によっては矢印のまま変わらないことがあるため明示している。
 */
a[href],
button,
summary,
label[for] {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
 * hidden 属性を付けた要素は、必ず非表示にする。
 * ブラウザ標準の「hidden = 非表示」は、CSS で display: grid などを指定すると
 * 上書きされて表示されてしまう（写真のプレビュー欄が空の枠で出た原因）。
 */
[hidden] {
  display: none !important;
}
