/* =========================================================
   Reset CSS
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html, body,main, div, span, applet, object, iframe,
p, blockquote, pre, h1, h2, h3, h4, h5, h6,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, sub, tt, var, u, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}
ol,
ul,
menu {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

/* 링크 초기화 */
a {
  color: inherit;
  text-decoration: none;
}

/* 이미지 및 미디어 요소 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
img {
  border: 0;
  vertical-align: middle;
}

/* SVG 기본 설정 */
svg {
  overflow: visible;
}

/* 테이블 초기화 */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}
caption {
  text-align: left;
}
th {
  font-weight: inherit;
  text-align: inherit;
}

/* 폼 요소 글꼴 상속 */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

/* 버튼 초기화 */
button {
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
}

/* 입력 요소 초기화 */
input,
select,
textarea {
  border-radius: 0;
  background-color: transparent;
}

/* textarea 크기 조절 */
textarea {
  resize: vertical;
}

/* select 기본 설정 */
select {
  text-transform: none;
}

/* 비활성화 폼 요소 */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: default;
}

/* 체크박스, 라디오 버튼 */
input[type="checkbox"],
input[type="radio"] {
  padding: 0;
}

/* 검색 입력창 브라우저 기본 스타일 보정 */
input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}

/* 검색 입력창 삭제 버튼 제거 */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  appearance: none;
  -webkit-appearance: none;
}

/* 숫자 입력창 버튼 제거 */
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* 비밀번호 입력창 기본 아이콘 보정 */
input::-ms-clear,
input::-ms-reveal {
  display: none;
}

/* placeholder 색상 상속 문제 방지 */
input::placeholder,
textarea::placeholder {
  color: inherit;
  opacity: 1;
}

/* fieldset 초기화 */
fieldset {
  min-width: 0;
  border: 0;
}

/* 숨김 속성 강제 적용 */
[hidden] {
  display: none !important;
}

/* summary 기본 마커 제거 */
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}

/* address, em 등 기본 기울임 제거 */
address,
em,
i {
  font-style: normal;
}

/* strong 기본 굵기 */
strong,
b {
  font-weight: 700;
}

/* 위첨자, 아래첨자 */
sub,
sup {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}

/* 모바일 탭 하이라이트 제거 */
a,
button,
input,
select,
textarea,
label {
  -webkit-tap-highlight-color: transparent;
}

/* 키보드 사용자를 위한 포커스 표시 */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* 마우스 클릭 시 불필요한 포커스 외곽선 방지 */
:focus:not(:focus-visible) {
  outline: none;
}

/* 모션 감소 설정 사용자 대응 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

