/* FO용 CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* 일부 안드로이드 브라우저를 위한 설정 */
    -webkit-focus-ring-color: transparent; /* 일부 최신 버전의 크롬을 위한 설정 */
	text-rendering: optimizeLegibility;
	font-synthesis: none;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden; /* 가로 스크롤 방지 */
    font-family: 'Noto Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 모바일 확대/축소 방지 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html {
    /* iOS/Android 하단 배경 하얀색 설정 */
    background-color: #fff;
}

body {
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    position: relative;
    /* 갤럭시 등 안드로이드 기기에서 짤림 방지 */
    min-height: 100vh;
    min-height: 100dvh; /* 동적 viewport 높이 */
    min-height: -webkit-fill-available; /* iOS Safari 대응 */
}

/* iOS/Android 하단 배경 하얀색 강제 설정 */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari 전용 */
    body {
        background-color: #fff !important;
        background-image: none !important;
    }
    
    html {
        background-color: #fff !important;
        height: 100%;
        height: -webkit-fill-available;
    }
    
    /* 하단 safe-area 영역 하얀색 */
    body::before {
        content: '';
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: env(safe-area-inset-bottom);
        background-color: #fff;
        z-index: 9998;
        pointer-events: none;
    }
}

ul, ol {
    list-style: none;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

button:focus,
button:active {
    outline: none;
    box-shadow: none;
}

input, textarea, select {
    font-family: inherit;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* 터치 최적화 */
button, input, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
// css
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-text-fill-color: #000;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
    box-shadow: 0 0 0px 1000px #ffffff00 inset;
    transition: background-color 5000s ease-in-out 0s;
}

input:autofill,
input:autofill:hover,
input:autofill:focus,
input:autofill:active {
	-webkit-text-fill-color: #000;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
    box-shadow: 0 0 0px 1000px #ffffff00 inset;
    transition: background-color 5000s ease-in-out 0s;
}
input[type="number"] {
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
