/* 박스 모델 초기화 */
*:focus {  
  outline-offset: 2px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* HTML5 시멘틱 태그 display 기본값 보정 */
article,
aside,
footer,
header,
nav,
section {
  display: block;
}

address {
  font-style: normal;
}

/* 공통 폰트 및 기본 설정 */
body {
  font-family: "NanumSquareNeo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  word-break: keep-all;
  color: #000; /* 필요 시 조정 */
}

/* 텍스트 요소 초기화 */
h1, h2, h3, h4, h5, h6,
p, span, strong, em, b, i,
small, sub, sup, mark, del, ins,
blockquote, pre, code {
  font: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  letter-spacing: inherit;
  word-break: inherit;
  white-space: inherit;
}

/* 링크 초기화 */
a {
  color: inherit;
  text-decoration: none;
}

/* 리스트 초기화 */
ul, ol, li {
  list-style: none;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

/* 테이블 초기화 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  font-size: 0;  /* 숨김 처리 */
  line-height: 0; /* 숨김 처리 */
  overflow: hidden;
  position: absolute;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* form 요소 초기화 */
input, textarea, select, button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  letter-spacing: inherit;
}

input::placeholder {
  font-size: 18px;
  color: #999999;
  font-weight: 400;
  opacity: 1; /* 파이어폭스 대비 */
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background-color: transparent;
}

select::-ms-expand {
  display: none;
}


/* 버튼 초기화 */
button {
  cursor: pointer;
  padding: 0;
}

/* 이미지, 비디오 반응형 처리 */
img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* textarea 사이즈 고정 */
textarea {
  resize: none;
}

/* strong, b 볼드 유지할거면 아래 제거 */
strong, b {
  font-weight: inherit;
}

dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: auto;
  max-width: 90%;
  max-height: 90%;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  border: none;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  outline: none;
  z-index: 9999;
}
dialog::backdrop {
  background: rgba(0,0,0,.6);
}