/* ✅ 가로 넘침 방지 - 전체 적용 */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

svg {
  max-width: 100%;
}

.page-hero,
.b2b-hero,
.nw-hero,
.ac-hero {
  overflow: hidden;
  max-width: 100%;
}

/* 모바일 메뉴 */

@media (max-width: 768px) {

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 좌우 배치 */
    padding: 30px 20px;
    background: rgba(0,0,0,0.8);
}

/* 로고 중앙 정렬 */
.logo {
    flex: 1;                  /* 가운데 영역 차지 */
    text-align: center;       /* 텍스트 중앙 */
    font-family: 'Raleway', cursive; /* 예쁜 글씨체 */
    font-size: 9px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;      /* 글자 간격 */
    background: linear-gradient(90deg, #ffffff, #ee0979); 
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 10px 10px 6px rgba(133, 133, 133, 0.5);
    }

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    display: inline-block; /* transform 적용을 위해 inline-block */
    transition: transform 5s ease, color 5s ease;
    }

.logo a:hover {

    transform: translateY(10px); /* 위로 5px 이동 */
    color: #1183a8; /* 색상도 바뀌게 */
    }

    /* 햄버거 버튼 */
.menu-toggle {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 99999 !important;
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 4px;
}

/* 메뉴 오른쪽 */
.nav-links {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
    position: fixed;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
    }
    
.nav-links.active {
    display: flex;
    
}
.nav-links li {
    margin: 10px 0;
    }

.menu-toggle {    
    display: block;
    }


.c_cards { 
    justify-content: center; /* 가운데 정렬 */ 
    gap: 50px;
    } 

.c_card { 
    flex: 1 1 100%; /* 한 줄에 1개 */ 
    max-width: 400px; /* 카드 최대 폭 제한 */     
    margin: 0 auto; /* 가운데 배치 */       
    }

.menu-row {
    flex-direction: column;   /* 세로로 쌓기 */
    align-items: center;      /* 가운데 정렬 */
    gap: 10px;
    margin-top: 90px;          /* 네비게이션 아래 */
    }

.menu-box {
    width: 90%;              /* 화면 너비에 맞게 */
    max-width: 300px;        /* 너무 넓지 않게 제한 */
    }

#about {
  text-align: center;   /* 섹션 안의 모든 텍스트 가운데 */
  padding: 40px 20px;
}

  .points {
  display: flex;  
  flex-direction: column;   /* 세로 배치 */
  align-items: center;      /* 가로 가운데 */
  gap: 10px;                /* 항목 간격 */
}
.point {
  font-size: 3.5vw;
}

#company-intro img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  margin-top: 50px;
}

#company-intro p {
  font-size: 4vw;
  line-height: 1.4;
  margin-top: 20px;
}

#sevice h2 {
  font-size: 5.7vw;
  margin-bottom: 20px;
}

#ceo-message {
  background: linear-gradient(135deg, #ffffff, #A7BFE8);
  color: #000000;                /* 텍스트는 짙은 그레이 */
  padding: 80px 20px;
  text-align: center;
  min-height: 300px;
  margin-top: 0px;
}

#ceo-message h2 {
  font-size: 5vw;
  margin-bottom: 100px;
  color: #000000;             /* 네이비 블루 포인트 */
}

#ceo-message p {
  font-size: 3vw;
  margin-bottom: 10px;
  line-height: 1.0
}

#ceo-message p.tight {
  font-size: 3vw;
  line-height: 1.0; 
  margin-bottom: 50px; 
} 

#ceo-message p.loose {
  font-size: 3vw;
  line-height: 1.0; 
  margin-bottom: 100px; 
}

.ceo-sign {
  margin-top: 100px;
  font-weight: bold;
  font-size: 20px;
  color: #ffffff;             /* 스틸 블루 포인트 */
  font-family: 'Pacifico', cursive; /* 손글씨 느낌 폰트 */
}

.hero3 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(87, 87, 87, 0.5); /* 글씨 가독성 향상 */
  animation: moveUp 1.5s ease-out 1; /* 1회만 실행 */
  background-image: url('images/cc2.jpg'); /* 배경 이미지 경로 */ 
  background-size: cover; /* 화면에 맞게 꽉 채움 */ 
  background-position: center;/* 중앙 정렬 */ 
  background-repeat: no-repeat; /* 반복 없음 */
  overflow: hidden; /* 내용이 넘칠 때 숨김 */
  color: #ffffff;                /* 텍스트는 짙은 그레이 */
  padding: 80px 20px;
  text-align: center;
  min-height: 300px;
  margin-top: 0px;
  
}

@keyframes moveUp { 
  from { transform: translateY(50px); opacity: 0; } 
  to { transform: translateY(0); opacity: 1; } 
}

.hero3 h1 {
  font-size: 5vw;
  margin-bottom: 100px;
  color: #ffffff;             /* 네이비 블루 포인트 */
}

.hero3 p {
  font-size: 3vw;
  margin-bottom: 10px;
  line-height: 1.0
}

.hero3 p.tight {
  font-size: 3vw;
  line-height: 1.0; 
  margin-bottom: 50px; 
} 

.hero3 p.loose {
  font-size: 3vw;
  line-height: 1.0; 
  margin-bottom: 100px; 
}

.hero3::before { 
  content: ""; 
  position: absolute; 
  top: 0; left: 0; 
  right: 0; 
  bottom: 0; 
  background: rgba(0,0,0,0.4); /* 반투명 검정 레이어 */ 
  z-index: 0; } 
  
  .hero3 * { 
    position: relative; 
    z-index: 1; /* 글씨가 오버레이 위에 보이도록 */ 
  }

.hero4 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5); /* 글씨 가독성 향상 */
  animation: moveUp 1.5s ease-out 1; /* 1회만 실행 */
  background-image: url('images/school.png'); /* 배경 이미지 경로 */ 
  background-size: cover; /* 화면에 맞게 꽉 채움 */ 
  background-position: center;/* 중앙 정렬 */ 
  background-repeat: no-repeat; /* 반복 없음 */
  overflow: hidden; /* 내용이 넘칠 때 숨김 */
  color: #ffffff;                /* 텍스트는 짙은 그레이 */
  padding: 80px 20px;
  text-align: center;
  min-height: 300px;
  margin-top: 0px;
  
}

.hero4 h1 {
  font-size: 5vw;
  margin-bottom: 100px;
  color: #ffffff;
}

.hero4 p {
  font-size: 3vw;
  margin-bottom: 10px;
  line-height: 1.0
}

.hero4 p.tight {
  font-size: 3vw;
  line-height: 1.0; 
  margin-bottom: 50px; 
} 

.hero4 p.loose {
  font-size: 3vw;
  line-height: 1.0; 
  margin-bottom: 100px; 
}

.hero4::before { 
  content: ""; 
  position: absolute; 
  top: 0; left: 0; 
  right: 0; 
  bottom: 0; 
  background: rgba(0,0,0,0.4);
  z-index: 0; } 
  
  .hero4 * { 
    position: relative; 
    z-index: 1;
  }

  .card {
    flex: 0 0 110%;
    margin: 10px 0;
  }
  .card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin : 0 auto;
  }

  #greeting, #b2b, #academy {
    background-position: top center;
    background-size: cover;
  }

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

  .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
}

.hero-header {
  position: relative;
  height: 40vh;
  width: 100vw;
  overflow: hidden;
  margin-top: 93px;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex; 
  justify-content: center;
  align-items: center;
  text-align: center;  
  z-index: 3;
}

.hero-header .slide {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

.hero-content h1 {
    font-size: 1rem;
}

.hero-content p {
    font-size: 0.7rem;
}
  
.hero-title {
  font-size: 2.0rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 50px;
  animation: fadeInUp 2s ease-in-out;
}

.hero-sub {
  font-size: 1.rem;
  color: #f0f0f0;
  font-weight: 400;
  margin-top: 0px;
  animation: fadeInUp 2s ease-in-out;
}

.btn2 {
    padding: 1vh 2vw;
    font-size: 1.5vw;
  }

.btn3 {
    padding: 1vh 2vw;
    font-size: 2.5vw;
    margin-top: 75px;
}

.arrow {
    display: inline-block;
  }

  /* 기본 숨김 */
.nav-links .submenu.vertical {
  display: none;
  flex-direction: column;
  position: static;
  background:rgba(0,0,0,0.7);
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
}

/* 활성화 시 표시 */
.nav-links .submenu.vertical.active {
  display: flex;
  flex-direction: column;
}

.nav-links .submenu.vertical li {
  display: block;
  margin: 5px;
  text-align: center;
}

.nav-links .submenu.vertical a {
  background:rgba(156, 67, 67, 0.466);
  font-size: 15px;
  padding: 8px 12px;
  display: block;
}

.nav-links .submenu {
    max-height: 0;
    opacity: 0;
    flex-direction:column !important;
    position:static;
    width:100%;
    background:rgba(0, 0, 0, 0.7);
    padding:0px;
    margin-top:0px;
    border-radius:6px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }
  .nav-links .submenu.active {
    display:flex;
    flex-direction:column !important;
    max-height: 500px;
    opacity: 1;
  }
  .nav-links .submenu li {
    display:block;
    margin:10px;
    text-align:left;
  }
  .nav-links .submenu a {
    background-color: rgba(15, 255, 195, 0.411);
    color:#ffffff;
    font-size:16px;
    line-height:1.6;
    padding:10px 14px;
    display:block;
  }

/* ✅ 핵심 수정: navbar와 햄버거 버튼이 히어로 섹션 위에 오도록 */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important;
  }

.menu-toggle {
    z-index: 9999 !important;
  }

.nav-links {
    z-index: 9998 !important;
  }

/* 히어로 섹션들 z-index 낮추기 */
.page-hero,
.b2b-hero,
.ac-hero,
.nw-hero {
    z-index: 1 !important;
  }

/* 히어로 내부 요소들도 낮추기 */
.page-hero *,
.b2b-hero *,
.ac-hero *,
.nw-hero * {
    z-index: auto !important;
  }
  
}

@media (max-width: 480px) {

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px;
    background: rgba(0,0,0,0.8);
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important;
}

/* 로고 중앙 정렬 */
.logo {
    flex: 1;
    text-align: center;
    font-family: 'Raleway', cursive;
    font-size: 9px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ffffff, #ee0979); 
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 10px 10px 6px rgba(133, 133, 133, 0.5);
    }

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
    transition: transform 5s ease, color 5s ease;
    }

.logo a:hover {
    transform: translateY(10px);
    color: #1183a8;
    }

.menu-toggle {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 99999 !important;
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 4px;
}

.nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
    position: fixed;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
    z-index: 9998 !important;
    }
    
.nav-links.active {
    display: flex;
}

.nav-links li {
    margin: 10px 0;
    }

.menu-toggle {    
    display: block;
    }

.card h3 {
    font-size: 13px;
    }

.card p {
    font-size: 10px;
    }

.c_cards { 
    justify-content: center;
    } 

.c_card { 
    flex: 1 1 100%;
    max-width: 400px;
    margin: 0 auto;
    }

.c_card h3 {
    font-size: 11px;
    }

.c_card p {
    font-size: 9px;
    }

.menu-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 90px;
    }

.menu-box {
    width: 90%;
    max-width: 300px;
    }

/* ✅ 히어로 섹션 z-index 낮추기 */
.page-hero,
.b2b-hero,
.ac-hero,
.nw-hero {
    z-index: 1 !important;
  }

.page-hero *,
.b2b-hero *,
.ac-hero *,
.nw-hero * {
    z-index: auto !important;
  }

.nav-links .submenu {
    max-height: 0;
    opacity: 0;
    flex-direction:column !important;
    position:static;
    width:100%;
    background:rgba(0, 0, 0, 0.7);
    padding:0px;
    margin-top:0px;
    border-radius:6px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }
  .nav-links .submenu.active {
    display:flex;
    flex-direction:column !important;
    max-height: 500px;
    opacity: 1;
  }
  .nav-links .submenu li {
    display:block;
    margin:10px;
    text-align:left;
  }
  .nav-links .submenu a {
    background-color: rgba(15, 255, 195, 0.411);
    color:#ffffff;
    font-size:16px;
    line-height:1.6;
    padding:10px 14px;
    display:block;
  }
}

/* 반응형 */
@media (max-width: 960px) {
  .greeting-layout   { grid-template-columns: 1fr; gap: 40px; }
  .visual-col        { position: static; }
  .philosophy-cards  { grid-template-columns: 1fr 1fr; }
  .stats-inner       { grid-template-columns: repeat(2,1fr); }
  .stat-item         { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
}

/* ════════════════════════════════════════
   b2b_responsive.css — B2B 페이지 반응형
   ════════════════════════════════════════ */

@media (max-width: 1024px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .process-steps::before { display: none; }
  .benefits-layout { grid-template-columns: 1fr; gap: 52px; }
  .benefits-right { grid-template-columns: repeat(4, 1fr); }
  .stat-card.wide { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .value-header { grid-template-columns: 1fr; gap: 32px; }
  .service-item { grid-template-columns: 1fr; gap: 32px; }
  .service-item.reverse { direction: ltr; }
  .b2b-hero-content { padding: 80px 32px 60px; }
}

@media (max-width: 680px) {
  .b2b-hero-content { padding: 72px 24px 52px; }
  .b2b-hero-content h1 { font-size: 2rem; letter-spacing: -0.5px; }
  .b2b-hero-sub { font-size: 14px; }
  .b2b-hero-products { gap: 8px; }
  .b2b-hero-product { font-size: 12px; padding: 6px 12px; }
  .value-section, .services-section, .process-section, .benefits-section, .b2b-cta-section { padding: 68px 24px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { padding: 28px 22px; }
  .service-item { margin-bottom: 56px; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .process-step:nth-child(5) { grid-column: 1 / -1; max-width: 180px; margin: 0 auto; }
  .process-step-num { width: 58px; height: 58px; font-size: 18px; }
  .benefits-right { grid-template-columns: 1fr 1fr; }
  .stat-card.wide { grid-column: 1 / -1; }
  .stat-card-num { font-size: 36px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-btn { width: 100%; max-width: 300px; justify-content: center; }
}

@media (max-width: 400px) {
  .b2b-hero-content h1 { font-size: 1.7rem; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step:nth-child(5) { grid-column: auto; max-width: 100%; margin: 0; }
  .benefits-right { grid-template-columns: 1fr; }
  .stat-card.wide { grid-column: auto; }
}

/* ════════════════════════════════════════
   academy_responsive.css — 아카데미 반응형
   ════════════════════════════════════════ */

@media (max-width: 1024px) {
  .ac-intro-layout { grid-template-columns: 1fr; gap: 48px; }
  .ac-after-grid   { grid-template-columns: repeat(2, 1fr); }
  .ac-course-grid { grid-template-columns: repeat(2, 1fr); }
  .ac-course-card:nth-child(5) { grid-column: auto; }
  .ac-course-card:nth-child(6) { grid-column: auto; }
}

@media (max-width: 860px) {
  .ac-process-steps { flex-wrap: wrap; gap: 32px; justify-content: center; }
  .ac-process-arrow { display: none; }
  .ac-process-step  { max-width: 180px; }
}

@media (max-width: 680px) {
  .ac-intro-section, .ac-courses-section, .ac-process-section, .ac-after-section, .ac-recruit-section { padding: 68px 24px; }
  .ac-hero-content { padding: 72px 24px 56px; }
  .ac-hero-content h1 { font-size: 2rem; }
  .ac-hero-sub { font-size: 14px; }
  .ac-course-grid { grid-template-columns: 1fr; }
  .ac-intro-stats { grid-template-columns: repeat(3, 1fr); }
  .ac-after-grid { grid-template-columns: 1fr 1fr; }
  .ac-recruit-item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 20px; }
  .ac-recruit-btns { flex-direction: column; align-items: center; }
  .cta-btn { width: 100%; max-width: 300px; justify-content: center; }
}

@media (max-width: 400px) {
  .ac-intro-stats { grid-template-columns: 1fr 1fr; }
  .ac-after-grid  { grid-template-columns: 1fr; }
  .ac-process-step { max-width: 100%; }
}

/* ════════════════════════════════════════
   network_responsive.css — 전국네트워크 반응형
   ════════════════════════════════════════ */

@media (max-width: 1024px) {
  .nw-map-layout { grid-template-columns: 1fr; gap: 48px; }
  .nw-map-card { max-width: 460px; margin: 0 auto; }
  .nw-benefit-grid   { grid-template-columns: repeat(2, 1fr); }
  .nw-stats-inner    { grid-template-columns: repeat(2, 1fr); }
  .nw-stat-item      { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nw-stat-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.1); }
  .nw-stat-item:last-child      { border-bottom: none; }
  .nw-stat-item:nth-last-child(2) { border-bottom: none; }
}

@media (max-width: 860px) {
  .nw-process-steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .nw-process-steps::before { display: none; }
}

@media (max-width: 680px) {
  .nw-hero-content { padding: 72px 24px 56px; }
  .nw-hero-content h1 { font-size: 2rem; }
  .nw-hero-sub { font-size: 14px; }
  .nw-map-section, .nw-benefit-section, .nw-process-section, .nw-recruit-section { padding: 68px 24px; }
  .nw-stats-section { padding: 52px 24px; }
  .nw-benefit-grid   { grid-template-columns: 1fr; }
  .nw-process-steps  { grid-template-columns: 1fr 1fr; gap: 20px; }
  .nw-region-card { flex-wrap: wrap; gap: 8px; }
  .nw-region-detail { flex-basis: 100%; }
  .nw-region-status { margin-left: auto; }
  .nw-recruit-item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 20px; }
  .nw-recruit-btns { flex-direction: column; align-items: center; }
  .cta-btn { width: 100%; max-width: 300px; justify-content: center; }
}

@media (max-width: 400px) {
  .nw-process-steps { grid-template-columns: 1fr; }
  .nw-stats-inner   { grid-template-columns: 1fr 1fr; }
  .nw-stat-item     { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nw-stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
}