/* ==========================================================================
   Reset CSS
   ========================================================================== */

/* Box sizing 통일 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 기본 마진/패딩 제거 */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
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: inherit;
  vertical-align: baseline;
}

/* HTML5 display 정의 (구형 브라우저 대응) */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

html {
  line-height: 1;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.5;
  min-height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #222;
  background-color: #fff;
  word-break: keep-all; /* 한글 단어 단위 줄바꿈 */
}

/* 리스트 마커 제거 */
ol,
ul {
  list-style: none;
}

/* 인용부호 제거 */
blockquote,
q {
  quotes: none;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

/* 테이블 기본 스타일 정리 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 링크 기본 스타일 제거 */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

/* 버튼/인풋 기본 스타일 정리 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
  background-color: transparent;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
}

input,
textarea {
  outline: none;
}

/* 플레이스홀더 스타일 통일 */
input::placeholder,
textarea::placeholder {
  color: #999;
  opacity: 1;
}

/* 이미지 기본 처리 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 폼 요소 상속 정리 */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* iOS Safari 인풋 확대 방지 (선택) */
input,
select,
textarea {
  font-size: 16px;
}

/* 숨김 처리 유틸 (스크린리더용 텍스트) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 스크롤바 영역 고려 (선택) */
html {
  scrollbar-gutter: stable;
}

/* 텍스트 강조 요소 기본값 */
b,
strong {
  font-weight: bold;
}

em,
i {
  font-style: italic;
}
