/* ─────────── Global Scrollbar Fix & Reset ─────────── */
html {
  /* 항상 세로 스크롤바 공간 확보 */
  overflow-y: scroll;
  /* 부드러운 스크롤 및 상단 패딩 */
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  /* 스크롤바 공간 미리 예약 */
  scrollbar-gutter: stable both-edges;
  font-family: Arial, sans-serif;
  color: #333;
  background: #fff;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

.mobile-only {
  display: none;
}
/* ─────────── 데스크탑 전용 표시 ─────────── */
.desktop-only {
  display: inline;
}
/* vc 고객센터 버튼 — 기본 숨김 */
.vc-cs-btn-mobile {
  display: none;
   }
/* ─────────── Header & Nav ─────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}
.logo { display: flex; align-items: center; }
.logo img { width: 50px; height: 50px; object-fit: cover; }
.logo span { margin-left: 10px; font-size: 1.6em; font-weight: 700; color: #111; user-select: none; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.8em; cursor: pointer; }
nav ul { list-style: none; display: flex; gap: 30px; }
nav a { text-decoration: none; color: #333; font-size: 1.05em; letter-spacing: .05em; transition: color .3s; }
nav a:hover, nav a.active { color: #000; border-bottom: 2px solid #000; }
header .contact-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

header .contact-buttons .header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  padding: 8px 12px;
  border: 1px solid #333;
  background: #fff;
  cursor: pointer;
  font-size: .9em;
  border-radius: 5px;
  transition: background .3s, color .3s, transform .2s;
  white-space: nowrap;
  text-align: center;
}

header .contact-buttons .header-btn:hover {
  background: #333;
  color: #fff;
  transform: scale(1.05);
}

/* ─────────── Global Buttons ───────── */
.btn, .btn-apply {
  display: inline-block;
  padding: 12px 28px;
  background: #000;
  color: #fff;
  font-weight: 700;
  border-radius: 5px;
  text-decoration: none;
  transition: background .3s, transform .2s;
  font-size: 1em;
}
.btn:hover {
  background: #555;
  transform: scale(1.05);
}
.btn-apply:hover {
  background: #333;
  transform: scale(1.15);
}

/* ─────────── Reveal Animation ───────── */
.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1.2s ease 0.1s, transform 1.2s ease 0.1s;
}
.reveal.active {
  opacity: 1;
  transform: none;
}

/* ─────────── Hero Section ─────────── */
.hero {
  padding-top: 70px;               /* 헤더 높이만큼 안쪽 여백 확보 */
  height: 100vh;                   /* 전체 화면 높이 고정 */
  box-sizing: border-box;          /* padding 포함 높이 계산 */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 0; }
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-content h1 { font-size: 3em; margin-bottom: 12px; line-height: 1.2; }
.hero-content p { font-size: 1.2em; margin-bottom: 24px; }

/* ─────────── Layout & Type ────────── */
.content-section {
  /* 스크롤 마진 (고정 헤더 있을 때 섹션 바로 보이도록) */
  scroll-margin-top: 70px;

  /* 상하 60px, 좌우 30px 패딩 */
  padding: 60px 30px;

  /* 텍스트 가운데 정렬 */
  text-align: center;

  /* 데스크탑 전체 폭을 활용하도록 2440px로 확대 */
  max-width: 2440px;

  /* 가운데 정렬 */
  margin: 0 auto;
}
.section-title { font-size: 2.5em; margin-bottom: 20px; }
.section-text { font-size: 1.4em; max-width: 800px; margin: 0 auto 30px; line-height: 1.6; }

/* ─────────── Gallery Grid ─────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-bottom: 30px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 2px solid #000;
  border-radius: 5px;
  transition: transform 0.3s;
}
.gallery img:hover { transform: scale(1.05); }

/* ─────────── FAQ 스타일 ───────────── */
.faq-item { max-width: 800px; margin: 12px auto; text-align: left; }
.faq-question {
  width: 100%;
  padding: 12px 16px;
  background: #f2f2f2;
  border: none;
  cursor: pointer;
  font-size: 1.05em;
  position: relative;
  transition: background .3s;
  color: #000;
}
.faq-question::after { content: '+'; position: absolute; right: 16px; font-size: 1.2em; transition: transform .3s; }
.faq-question.open::after { content: '–'; transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #fafafa;
  padding: 0 16px;
  text-align: center;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer.open {
  max-height: 500px !important;
  padding: 8px 16px !important;
  margin-bottom: 0 !important;
}

/* ─────────── Modal Popup ─────────── */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 600px;
  padding: 40px;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.modal-content h2 { margin-bottom: 16px; }
.modal-content p { margin-top: 8px; line-height: 1.6; }
.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.2em;
  cursor: pointer;
}
/* 바텀 내비 */
  .bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  padding: 6px 0;      /* 터치 여유 */
    gap: 4px;
  }
/* 1) 아이콘 크기 & 색상 */
.bottom-nav a .icon {
  width: 28px;         /* 원하는 크기 */
  height: 28px;
  object-fit: contain; /* SVG 원본 비율 유지 */
  filter: none;        /* 흑백 SVG 그대로 사용 */
}

/* 2) 텍스트 레이블 작게 */
.bottom-nav a .text {
  font-size: 0.7em;    /* 기존보다 작게 */
  color: #333;         /* 짙은 그레이 */
  line-height: 1.2;
  white-space: nowrap; /* 줄바꿈 방지 */
}
  body {
    padding-bottom: 60px !important;
    overscroll-behavior-y: none;
    overflow-x: hidden;
  }

  /* 히어로 높이 보정 */
  .hero {
    height: calc(100vh - 60px) !important;
    overflow: hidden;
  }
  .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* 햄버거 메뉴 패널 */
  .menu-panel {
    position: fixed;
    top: calc(70px + env(safe-area-inset-top));
    left: 0;
    width: 100%;
    right: 0;
    height: calc(100% - (70px + env(safe-area-inset-top)));
    background: #fff;
    padding: 64px 16px 16px;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    will-change: transform;
    z-index: 100;
  }
  .menu-panel.open { transform: translateX(0); }

/* ─────────── 글로벌 (모바일 + 태블릿) ─────────── */
@media (max-width: 1199px) {
  /* 1) 헤더 네비 & 연락 버튼 숨기고 햄버거 보이기 */
  header nav,
  .contact-buttons {
    display: none !important;
  }
  .menu-toggle {
    display: inline-flex !important;      /* 햄버거 버튼 중앙 정렬 */
    align-items: center;
    justify-content: center;
    font-size: 2.4em;          /* 버튼 글씨 크기 확대 */
    width: 48px;               /* 버튼 너비 고정 */
    height: 48px;              /* 버튼 높이 고정 */
    transition: transform 0.3s ease !important;
  color: #000 !important;
  }
.menu-toggle.active {
  transform: rotate(90deg) !important;
}
.menu-panel {
  position: fixed;
  top: calc(70px + env(safe-area-inset-top));
  left: 0;
  width: 100%;
  height: calc(100% - (70px + env(safe-area-inset-top)));
  background: #fff;
  padding: 64px 16px 16px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  will-change: transform;
  z-index: 100;
}
.menu-panel.open {
  transform: translateX(0);
}
/* ─────────── 패널 우측 상단 X버튼(✕) ─────────── */
.menu-panel .menu-close {
  font-size: 2.4em;            /* 햄버거 버튼과 동일 크기 */
  width: 48px;
  height: 48px;
  line-height: 1;
  position: absolute;
  top: 16px;                   /* 패널 padding-top과 동일 */
  right: 20px;                 /* 패널 padding-right과 동일 */
  background: none;
  border: none;
  cursor: pointer;
  color: #000 !important;
}

/* 메뉴 리스트 (일반 페이지) */
.menu-list {
  list-style: none;
  text-align: center;
  margin: 0;
  padding: 0;
  margin-top: 16px;
}
.menu-list li + li {
  margin-top: 16px;
}
.menu-list a {
  text-decoration: none;
  font-size: 1.4em;
  color: #111;
}
.menu-list a.active {
  color: #000;
  font-weight: 700;
}

/* 패널 내 메뉴 정렬 */
.menu-panel-nav .menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu-panel-nav .menu-list a {
  writing-mode: horizontal-tb;
}

/* 정책 및 개인정보 처리방침 */
.policy-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 48px 0 24px;       /* 인라인 블록과 동일 여백 유지 */
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.policy-links a {
  flex: 0 0 50%;
  text-align: center;
  font-size: 1.1em;
  color: #555;
  padding: 8px 0;
  text-decoration: none !important;
}

/* 언어 선택 (패널 내) */
.lang-select {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  position: relative;
  width: 100%;
  margin: 0 0 8px; 
}
.lang {
  font-size: 1em;
  user-select: none;
  cursor: pointer;
  padding: 4px 8px;
}
.lang.active {
  font-weight: 700;
  color: #111;
}
.lang.inactive {
  color: #aaa;
}

/* 바텀 내비 (모바일+태블릿) */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px !important; 
  background: #fff;
  border-top: 2px solid #ccc !important;
  border-radius: 8px 8px 0 0 !important;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
body {
  padding-bottom: 64px !important;
  overscroll-behavior-y: none;
  overflow-x: hidden;
}

/* 히어로 높이 보정 */
.hero {
  height: calc(100vh - 60px) !important;
  overflow: hidden;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 문단(p)·소제목(h2) 여백 확대 */
p {
  text-align: center;
  margin-bottom: 32px;
}
h2 {
  text-align: center;
  margin-top: 48px;
} 
  /* ─────────── 모바일·태블릿 공용: 고객센터 버튼 ─────────── */
  .vc-cs-btn-mobile {
    display: block !important;
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px !important;
    background: #000 !important;   /* 검은색 배경 */
    color: #fff !important;        /* 흰색 텍스트 */
    border: none !important;
    border-radius: 4px !important;
    font-size: 1em !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
  }
  .vc-cs-btn-mobile:hover {
    background-color: #e0e0e0 !important;
  }
  /* 1) 백드롭 전체 덮기 */
  #vc-cs-modal {
    position: fixed;
    inset: 0;                                /* top:0; right:0; bottom:0; left:0; */
    background: rgba(0,0,0,0.6) !important;  /* 다크 오버레이 */
    display: none;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
  }

  /* 2) 모달 박스 */
  #vc-cs-modal .modal-content {
    background: #fff !important;
    border-radius: 8px !important;
    padding: 48px 20px 32px !important;   /* 위쪽 여백 넉넉히 */
    width: 90% !important;
    max-width: 380px !important;
    min-height: 360px !important;            /* 세로 최소 높이 확보 */
    box-shadow: 0 6px 24px rgba(0,0,0,0.25) !important;
    position: relative !important;
    text-align: center !important;
  }

  /* 3) 닫기 버튼(X) */
  #vc-cs-modal .close-btn {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    font-size: 3em !important;   /* 키운 크기 */
    width: 60px !important;      /* 클릭 영역 확대 */
    height: 60px !important;
    line-height: 1 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
  color: #000 !important;
  text-shadow: none !important;
  }

  /* 4) 제목 */
  #vc-cs-modal h3 {
    font-size: 1.5em !important;
    margin: 0 0 8px !important;
    color: #111 !important;
    margin-bottom: 12px !important;  /* 제목 아래 공간 확보 */
  }

  /* 5) 안내 텍스트 */
  #vc-cs-modal p {
    font-size: 1em !important;
    margin: 4px 0 24px !important;
    color: #555 !important;
    margin: 0 0 24px !important;     /* 본문 아래 여백 유지 */
  }
  /* ─── 문의 버튼 그룹 컨테이너 ─── */
  #vc-cs-modal .contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;                        /* 버튼 간격 통일 */
    width: 100%;                     /* 컨테이너 전체 폭 사용 */
    padding: 0 16px;                 /* 좌우 16px 여백만 주고 */
    box-sizing: border-box;          /* padding 포함 폭 계산 */
    margin-top: 24px;    /* 제목과 버튼 사이 간격 추가 */
  }
  /* 6) 문의 버튼 그룹 */
  #vc-cs-modal .contacts button,
  #vc-cs-modal .contacts a.contacts-link {
    display: block !important;
    width: 100% !important;                /* 부모 폭 그대로 */
    padding: 14px 0 !important;             /* 세로 패딩 */
    margin-bottom: 10px !important;         /* 버튼 간격 */
    background: #000 !important;  /* 검은 배경 */
    border: none !important;
    border-radius: 4px !important;
    font-size: 0.95em !important;           /* 글자 크기 */
    color: #fff !important;       /* 흰 글자 */
    cursor: pointer !important;
    transition: background .2s ease !important;
    text-align: center !important;          /* 텍스트 중앙 정렬 */
  }
  #vc-cs-modal .contacts button:last-child {
    margin-bottom: 0 !important;
  }
  #vc-cs-modal .contacts button:hover,
  #vc-cs-modal .contacts a.contacts-link:hover {
    background: #222 !important;
  }
  /* FAQ 답변 내부 <p> 여백 리셋 (모바일+태블릿 전용) */
  .faq-answer p {
    margin: 0 0 8px !important;
  }
  footer {
    padding-bottom: 20px !important;
  }
}
/* ─────────── 모바일 전용 ─────────── */
@media (max-width: 600px) {


  /* 로고·갤러리·히어로 글씨 크기 조정 */
  .logo span {
    font-size: 1.2em;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2em;
  }

  /* 섹션 제목·텍스트·FAQ 크기 조정 */
  .section-title {
    font-size: 2em;
    margin-bottom: 16px;
  }
  .section-text {
    font-size: 1.1em;
  }
  .faq-question {
    font-size: 0.9em;
  }
  .faq-answer p {
    font-size: 0.85em;
  }

  /* 모바일 전용 표시 토글 */
  .mobile-only {
    display: inline;
  }
  .desktop-only {
    display: none !important;
  }
  /* 신청 버튼 2열 유지 & 중앙 정렬 */
  .application-action-buttons {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 8px;
    width: 100% !important;
  }
  .application-action-buttons .btn-apply {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
 /* Q&A 답변: 말줄임 없이全文 보여주기 */
 .faq-answer p {
   white-space: normal !important;      /* 줄바꿈 허용 */
   overflow: visible !important;        /* 잘림 해제 */
   text-overflow: clip !important;      /* 말줄임 해제 */
  word-break: keep-all;   /* 한국어 단어 사이에서만 줄바꿈 */
  orphans: 2;             /* 최소 2줄이 남도록 유도 */
  widows: 2;              /* 최소 2줄이 남도록 유도 */
 }
}
/* ─────────── 태블릿 전용 (601px~1199px) ─────────── */
@media (min-width: 601px) and (max-width: 1199px) {
  /* 헤더는 모바일처럼: 데스크탑 네비·문의 버튼 숨기기 */
  header nav,
  .contact-buttons {
    display: none !important;
  }
  /* 햄버거 버튼 활성화 */
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  /* 하단 내비(모바일 바텀네비) 보이기 */
  .bottom-nav {
    display: flex !important;
  }
  /* 비전·갤러리 섹션 3열 고정 */
  .gallery {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .hero-content h1 {
    font-size: 2.5em;   /* 기존 3em → 2.5em 정도로 축소 */
  }
  .hero-content p {
    font-size: 1.2em;   
  }
}
/* ─────────── 데스크탑 전용 ─────────── */
@media (min-width: 1200px) {
  /* 햄버거 버튼·하단 내비 감추기 */
  .menu-toggle,
  .bottom-nav,

  /* 메뉴 패널(열림 상태 포함) 완전 숨김 */
  .menu-panel,
  .menu-panel.open,

  /* 메뉴 패널 내부도 감춤 */
  .menu-panel-nav,
  .menu-panel-nav .menu-list {
    display: none !important;
  }

  /* 푸터 텍스트 중앙 정렬 */
  footer .footer-line {
    text-align: center;
  }
  /* 1) 버튼들 사이 가로 간격 늘리기 */
  .application-action-buttons {
    display: flex !important;
    gap: 24px !important;              /* 세트 내 버튼 사이 간격을 24px 로 */
    flex-wrap: wrap;
    justify-content: center !important;
  }

  /* 2) 호버 시 살짝 확대 & 겹침 방지 */
  .application-action-buttons .btn-apply {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    will-change: transform;
  }
  .application-action-buttons .btn-apply:hover {
    transform: scale(1.05) !important;  /* 5% 확대 */
    z-index: 1 !important;              /* 위로 올라와서 겹침 방지 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }
 /* 1) body 하단 padding 제거 */
  body {
    padding-bottom: 0 !important;
  }

  /* 2) footer 위/아래 패딩을 동일하게 20px로 맞춤 */
  footer {
    padding-top:    20px;
    padding-right:  10px;
    padding-bottom: 20px !important;
    padding-left:   10px;
  }
}
