/* ===== 공통: 폰트, 색, 레이아웃 ===== */
/* @import url('https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@1.0/nanumsquare.css');  ⟵ 기존 코드 삭제 */
@import url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff');
@import url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff');

:root {
  --header-height: 100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'GmarketSansMedium', 'Noto Sans KR', sans-serif; /* ✅ 폰트 교체 */
  background: #fff;
  color: #1f2d3d;
  line-height: 1.5;
}


img {
  max-width: 100%;
  display: block;
}

/* ===== 공통: 헤더 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}

.site-header .header-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 16px;
  position: relative;
}

/* 로고 */
.logo {
  margin-right: 50px;
}
.logo img {
  display: block;
  max-height: 58px;
}

/* 메뉴 (PC) */
.nav {
  flex: 1 1 auto;
}
.nav .menu {
  list-style: none;
  display: flex;
  gap: 80px;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav .menu a {
  text-decoration: none;
  font-weight: 1000;
  font-size: 1.15rem;
  color: #1f2d3d;
  transition: color .15s ease;
}
.nav .menu a:hover {
  color: #2e63a6;
}

/* 오른쪽 언어 */
.desktop-lang {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lang-box {
  display: flex;
  align-items: center;
}
.lang-select {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  padding: 4px 30px 4px 10px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* 햄버거 (모바일에서만) */
.hamburger {
  display: none;
  border: 0;
  background: transparent;
  width: 28px;
  height: 22px;
  position: relative;
  cursor: pointer;
}
.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #1f2b3a;
  border-radius: 1px;
  transition: .25s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* ===== 공통: 모바일 드로어 ===== */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 1090;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 14px rgba(0, 0, 0, .12);
  transform: translateX(100%);
  transition: transform .28s;
  z-index: 1100;
  padding: 24px 18px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 28px;
  background: none;
  border: 0;
  cursor: pointer;
}
.drawer-menu {
  margin-top: 28px;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.drawer-menu li { margin: 14px 0; }
.drawer-menu a {
  font-size: 18px;
  font-weight: 700;
  color: #1f2b3a;
  text-decoration: none;
  display: block;
  line-height: 1.4;
}
.drawer-lang-label {
  font-size: 0.72rem;
  color: #7b8794;
  display: block;
  margin-bottom: 4px;
}
.drawer-lang-select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 12px;
  padding: 7px 10px;
  font-weight: 600;
  background: #fff;
}
body.drawer-open .backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.drawer-open .drawer {
  transform: translateX(0);
}

/* ===== 공통: 영역 기본 ===== */
main {
  padding-top: var(--header-height);
}
.section {
  padding: 54px 16px;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
}

/* ===== 공통: 서브 헤더 ===== */
.sub-hero {
  width: 100%;
  background: linear-gradient(135deg, #f6f7fb 0%, #ffffff 60%);
  border-bottom: 1px solid rgba(0,0,0,.04);
  padding: 110px 16px 64px;
  text-align: center;
}
.sub-hero-inner {
  max-width: 840px;
  margin: 0 auto;
}
.sub-hero h1 {
  font-size: clamp(2.1rem, 3.2vw, 2.6rem);
  margin-bottom: 14px;
}

/* ===== 공통: 푸터 ===== */
.footer {
  text-align: center;
  padding: 28px 0 36px;
  background: #f6f8fc;
  color: #6b7b95;
  margin-top: 28px;
  font-size: 0.85rem;
}

/* ===== 공통: 반응형 ===== */
@media (max-width: 768px) {
  .site-header .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

  }
  .logo {
    grid-column: 2;
    justify-self: center;
    margin-right: 0;
  }
  .hamburger {
    display: inline-block;
    grid-column: 3;
    justify-self: end;
  }
  .nav,
  .desktop-lang,
  .lang-box {
    display: none !important;
  }
  .section {
    padding: 46px 14px;
  }
}


/* ===== 공통: 폰트 굵기 설정 (추가됨) ===== */
/* 제목, 메뉴, 강조 구간은 Bold / 본문은 Medium 유지 */

h1, h2, h3, h4, h5, h6,
.eyebrow,
.nav .menu a,
.feature h3,
.card h3,
.footer strong {
  font-family: 'GmarketSansBold', 'Noto Sans KR', sans-serif; /* ✅ 제목/강조용 */
  font-weight: bold;
}

p, li, label, input, textarea, select, button {
  font-family: 'GmarketSansMedium', 'Noto Sans KR', sans-serif; /* ✅ 본문/설명용 */
  font-weight: normal;
}

/* PC 기본 유지 */
.pc-text { display: block; }
.mobile-text { display: none; }

/* 모바일에서 교체 */
@media (max-width: 768px) {
  .pc-text { display: none; }
  .mobile-text {
    display: block;
    font-size: 0.95rem;
    line-height: 1.65;
    word-break: keep-all;
  }
}
