/* Pretendard 가변 폰트 (Pretendard Variable) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");

@font-face { 
    font-family: 'paybooc'; 
    src: url('../fonts/paybooc-Light.ttf');
    font-weight: 300;
}
@font-face { 
    font-family: 'paybooc'; 
    src: url('../fonts/paybooc-Medium.ttf');
    font-weight: 500;
}
@font-face { 
    font-family: 'paybooc'; 
    src: url('../fonts/paybooc-Bold.ttf');
    font-weight: 700;
}
@font-face { 
    font-family: 'paybooc'; 
    src: url('../fonts/paybooc-ExtraBold.ttf');
    font-weight: 800;
}

@font-face {
    font-family: 'Aritaburi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/Arita-buri-SemiBold.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* 62.5% = 10px (1rem = 10px 기준) */
    font-size: 62.5%;
    scroll-behavior: smooth;
    /* iOS Safe Area: html에서는 제거 (body에서만 적용) */
    /* body 대신 html에 적용: scroll container를 생성하지 않아 position:sticky 정상 작동 */
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    color: #17181A;
    line-height: 1.5;
    min-width: 320px;
    position: relative;
    /* iOS Safe Area 대응 */
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    /* 텍스트 렌더링 최적화 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* overflow-x: hidden 제거 — body에 적용 시 새 scroll container 생성으로 position:sticky 전체 차단됨 */
    /* 가로 스크롤 방지는 html { overflow-x: hidden }으로 이관 */
}

body::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16rem;
    background-color: #E5E5E3;
    z-index: -1;
    pointer-events: none;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
    display: block;
}
h1, h2, h3, h4, h5, h6, p, blockquote, pre {
    margin: 0;
    padding: 0;
    font-weight: normal; /* 기존 코드 유지 */
}
ul, ol, menu, dl, dt, dd {
    list-style: none;
    margin: 0;
    padding: 0;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

input, select, textarea, button {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-family: inherit; 
    font-size: inherit; 
    line-height: inherit;
    box-sizing: border-box; 
    border-radius: 0;
}

figure,
figcaption {
    margin: 0;
    padding: 0;
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

select { 
    appearance: none;
    -webkit-appearance: none;
    background: url(/static/kor/images/icon/select-arrow-dp.png) right 2.4rem center no-repeat;
}

button {
    cursor: pointer;
}

.hide { 
    position: absolute !important; 
    width: 1px; 
    height: 1px; 
    padding: 0; 
    margin: -1px; 
    overflow: hidden; 
    clip: rect(0, 0, 0, 0); 
    border: 0; 
    white-space: nowrap;
}

small { font-size: 12px; }
/* .mob, .pc 제어는 common.css의 .pc_only / .mob_only로 통합 관리 */

@media screen and (max-width: 1760px) {
    html { font-size: clamp(8px, 0.5682vw, 62.5%);}
}

@media screen and (max-width: 1023px) {
    .mob { display: block; }
    .pc { display: none; }
    /* 1023px일 때 10px 기준: 10/1023*100 = 0.9775vw */
    html { font-size: clamp(8px, 0.9775vw, 62.5%);}
}

@media screen and (max-width: 767px) {
    /* 767px 구간에서 html font-size는 reset.css 기본값(62.5%) 그대로 유지 */
    /* vw 기반 유동 폰트 스케일은 1760px MQ에서만 적용 */
    html { font-size: 62.5%; }
}
