@charset "utf-8";

/* 현대적인 앱 스타일 시스템 폰트 적용 */

body {
  margin: 0;
  padding: 0;
  /* 한국어 우선 폰트 설정으로 변경 (다국어는 유지) */
  font-family: 'Pretendard Variable', 'Noto Sans KR', 'Noto Sans', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', sans-serif !important;
  background-color: white;
  font-weight: 300; /* 400에서 300으로 복원 - 기본 설정 */
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}


/* 
body {
  margin: 0;
  padding: 0 env(safe-area-inset-right, 0) 0 env(safe-area-inset-left, 0);
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Apple SD Gothic Neo', 'Nanum Gothic', 'Malgun Gothic', Roboto, 'Segoe UI', Helvetica, Arial, system-ui, sans-serif;
  background-color: white;
  font-weight: 450;  
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased !important; 
  -moz-osx-font-smoothing: grayscale !important; 
  letter-spacing: -0.03em; 
  color: #333;
} */

img{ border:0; }
ul, ol{ list-style:none; }
a{color:#555;text-decoration:none;}
a:hover, a:active, a:visited{text-decoration:none !important; }
table{border:0;border-collapse:collapse;table-layout:fixed;}

/* 요소별 텍스트 스타일링 - 커피 앱 스타일 */
h1, h2, h3, h4, h5, h6 {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  font-weight: 600;  /* 제목은 더 두껍게 */
  letter-spacing: -0.02em;  /* 제목은 자간을 조금 더 좁게 */
  color: #222;
}

p, span, div, td, th, li, a {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

.B100 { font-weight: 100; }
.B200 { font-weight: 200; }
.B300 { font-weight: 300; }
.B400 { font-weight: 400; }
.B500 { font-weight: 500; }
.B600 { font-weight: 600; }
.B700 { font-weight: 700; }
.B800 { font-weight: 800; }
.B900 { font-weight: 900; }

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

/* 입력 요소 폰트 스타일링 */
input, button, select, textarea {
  /* font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Apple SD Gothic Neo', 'Nanum Gothic', 'Malgun Gothic', Roboto, system-ui, sans-serif; */
  font-family: 'Pretendard Variable', 'Noto Sans KR', 'Noto Sans', sans-serif;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-weight: 450;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  min-width: 320px;
  min-height: 100vh;
  position: relative;
}

/* 상단 블랙 영역 통합 */
.black-area {
    background: #000000;
    width: 100%;
    min-width: 320px;
}

/* 메인 헤더 공통 스타일 */
.mainHeader {
    width: 100%;
    min-width: 320px;
    background: #000000;
    border-bottom: none;
}
.header-logo {
    max-width: 1024px;
    margin: 0 auto;
    height: 65px;
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
}
/* 로고 컨테이너 */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 양끝 정렬 */
    /* margin-top: 20px; */
    width: 100%; /* 컨테이너 전체 너비 사용 */
}

.logo-container .main-logo {
    width: 189px;
    height: auto;
}

.logo-container .hamburger-menu {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* 내용부분 - 기존 코드 삭제 */
/* 대신 서브헤더 유무에 따른 명확한 스타일 적용 */
body:not(.has-subheader) main {
    padding: 20px;
}

/* 서브헤더 페이지는 common.css에서 패딩 관리 */
body.has-subheader main {
    /* padding-top은 common.css에서 관리 */
}

.input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 16px; 
  font-size: 16px;
  font-weight: 500;
}
.input-group input {
  width: 100%;
  padding: 10px; 
  border: none;
  border-bottom: 1px solid #7B7C80;
  box-sizing: border-box;
  color: #666666; 
  outline: none;
  font-size: 16px;
}
.input-group .required {
  color: #f30325; 
  font-size: 0.75em; 
}
button[type="submit"] {
  width: 100%;
  padding: 15px;
  background-color: #7B7C80;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}
button[type="submit"]:hover {
  background-color: #02A360;
}

/* 언어별 최적화 폰트 클래스 - 시스템 폰트 사용 */
.lang-en {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

.lang-ja {
  font-family: 'Pretendard Variable', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

.lang-zh-hans {
  font-family: 'Pretendard Variable', 'Noto Sans SC', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

.lang-zh-hant {
  font-family: 'Pretendard Variable', 'Noto Sans TC', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

.lang-ko {
  font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  letter-spacing: -0.01em;
}
/* .lang-en {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, system-ui, sans-serif;
  letter-spacing: 0; 
  font-weight: 450;
}

.lang-ja {
  font-family: -apple-system, 'Hiragino Sans', 'Yu Gothic', 'Meiryo', system-ui, sans-serif;
  letter-spacing: -0.01em; 
  font-weight: 450;
}

.lang-zh-hans, .lang-zh-hant {
  font-family: -apple-system, 'PingFang SC', 'Heiti SC', system-ui, sans-serif;
  letter-spacing: -0.01em; 
  font-weight: 450;
}

.lang-ko {
  font-family: -apple-system, 'Apple SD Gothic Neo', 'Nanum Gothic', 'Malgun Gothic', system-ui, sans-serif;
  letter-spacing: -0.03em; 
  font-weight: 450;
} */

/* 텍스트 선명도 향상을 위한 추가 클래스 */
.text-sharp {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* 미디어쿼리 */
@media only screen and (max-width: 480px) {
  .logo img {
    width: 180px;
  }
  .subtitle {
    font-size: 22px;
  }
}

@media only screen and (min-width: 481px) and (max-width: 768px) {
  .logo img {
    width: 200px;
  }
  .subtitle {
    font-size: 24px;
  }
}

/* 작은 텍스트에 대한 렌더링 최적화 - 모바일 앱 스타일 */
@media screen and (max-width: 768px) {
  body {
    -webkit-text-size-adjust: none;
    font-weight: 450;
    font-size: 14px;
    line-height: 1.35; /* 모바일에서 조금 더 좁은 줄간격 */
  }
  
  /* 모바일에서 제목 텍스트 스타일 */
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }
}

/* 미디어 쿼리 - header.php에서 이동 */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
  html, body {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-weight: 450;
  }
  
  /* 고해상도 디스플레이에서 더 선명하게 */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
  }
}