/* ==========================================================================
   common.css
   사이트 전역에서 쓰는 리셋(margin/padding 0 등) + 공통 기본 선언
   개별 페이지/섹션 스타일은 여기에 넣지 말고 style.css(또는 페이지별 css)에서 작성
   ========================================================================== */

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

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

html, body,
h1, h2, h3, h4, h5, h6,
p, blockquote, figure, figcaption,
ul, ol, li, dl, dt, dd,
form, fieldset, legend, button {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

fieldset {
  border: 0;
}

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

/* 모바일 가로 스크롤 방지: body만으로는 모바일 브라우저에서 뚫려서 html에도 적용(clip 미지원 브라우저는 hidden) */
html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  max-width: 100%;
  min-height: 100%;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* hidden은 body를 스크롤 컨테이너로 만들어 position:sticky(히어로 핀)를 깨뜨리므로 clip 사용 */
  overflow-x: clip;
}
