/********************************************************
 * (1) 기본 reset & global styles
 ********************************************************/
html, body {
  margin: 0;
  padding: 0;
  height: 100%; /* 브라우저 창 높이를 100%로 */
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: system-ui, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  line-height: 1.65;
  color: var(--txt);
  background: var(--bg);
  padding-top: calc(var(--header-h) + var(--extra-offset, 0px)); 
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}

/********************************************************
 * (2) 전체 레이아웃: header + main + footer
 ********************************************************/
main {
  flex: 1;
}

/********************************************************
 * (3) 공통 Section 스타일
 ********************************************************/
section:not(.hero-slider):not(.top-menu-bar):not(.service-section):not(.hero-web){
  padding: 0 0rem;
  max-width: 100%;
  margin: 0 auto;
}
section:not(.hero-slider) > h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Nanum Myeongjo 폰트 */
@import url('https://fonts.googleapis.com/earlyaccess/nanummyeongjo.css');

/**********************************************
 * Color & Typography Variables
 **********************************************/
:root {
  --pri:        #d10000;  
  --pri-dark:   #e18b46;  
  --txt:        #4f4f4f;  
  --txt-hover:  #3b3b3b;  
  --bg:         #ffffff;
  --bg-soft:    #f6f6f6;
  --border:     #d10000;
  --border-light: #ffc693;
  --bg-hover:   #fdfdfd;
}


/**********************************************
 * Footer Scope
 **********************************************/
.footer-scope {
  width: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Nanum Myeongjo', "Helvetica Neue", Arial, sans-serif;
  border-top: 1px solid var(--border);
}
.footer-scope .site-footer {
  max-width: clamp(320px, 90%, 100%);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
  padding: 0 1rem;
}
.footer-scope .site-footer p {
  margin: 0;
}
.footer-scope .site-footer a {
  color: var(--txt);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}
.footer-scope .site-footer a:hover {
  color: var(--txt-hover);
  border-bottom: 1px solid var(--txt-hover);
}

/* ===========================================
   CSS Variables 정의 (전역)
   =========================================== */
:root {
  /* 메인 색상 (Primary) */
  --color-primary: #d10000;

  /* 텍스트 색상 */
  --text-main: #333;
  --text-sub:  #444;

  /* 배경 색상 */
  --bg-white: #ffffff;
  --bg-light: #f3f4f6;

  /* 그림자 색상 (주 그림자, 호버 시 그림자) */
  --shadow-main: rgba(0,0,0,0.05);
  --shadow-hover: rgba(0,0,0,0.06);

  /* 기타 공통 속성 */
  --border-radius: 8px;
  --transition-speed: 0.3s;
}

/* -------------------------------------------
 * (13) Page Layout: container, sidebar, page-content
 ------------------------------------------- */

/* (11) Page Layout */
.page-container {
  max-width: 100%;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  /* 사이드바 삭제 → display:block으로 */
  display: block;
}
.page-content {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 1.2rem;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}
.page-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #444;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}
@media (max-width: 992px) {
  .page-container {
    flex-direction: column;
  }
  .page-content {
    width: 100%;
  }
}



/* Hero 전체(기존) ------------------------------------------------ */
.hero-section{
  position:relative;width:100%;
  height:40vh;min-height:320px;
  background-size:cover;background-position:center;
  overflow:hidden;
}

/* ⭐ 새로 추가 – 중앙 정렬 래퍼 ------------------------------ */
.hero-inner{
  position:absolute; inset:0;      /* Hero 전체 덮기 */
  display:flex; flex-direction:column;
  align-items:center;              /* 수평 중앙 */
  justify-content:center;          /* 수직 중앙 */
  text-align:center; color:#fff;
}

/* 개별 타이포 ---------------------------------------------------- */
.hero-inner h1{
  margin:0 0 .8rem;               /* 아래 여백으로 p와 간격 */
  font-size:clamp(2rem,4vw,3rem); font-weight:800;
}
.hero-inner p{
  margin:0;
  font-size:clamp(.9rem,2.2vw,1.2rem);
}

/* 반투명 오버레이(그대로) --------------------------------------- */
.hero-section::before{
  content:"";position:absolute;inset:0;
  background:rgba(0,0,0,.45);
}


/* ── Sub-menu Bar ───────────────────────────────────── */
.sub-menu-bar{
  width: 100%;
  /* Hero 바로 아래에 붙어야 하므로 margin/padding 0 */
  margin: 0; padding: .6rem 0;

  display: flex; justify-content: center;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
}
.sub-menu-bar ul{
  display: flex; gap: 2rem; list-style: none;
  margin: 0; padding: 0;
}
.sub-menu-bar li{ position: relative; }
.sub-menu-bar a{
  color: #fff; font-weight: 600; font-size: 1rem;
  padding: .4rem 1.2rem; border-radius: 3px;
  transition: background .25s;
}
.sub-menu-bar a:hover{ background: rgba(255,255,255,.15); }

/* 활성 메뉴(on) */
.sub-menu-bar li.on a{
  background: #fff; color: #d10000;   /* 메인컬러 예시 */
}







/********************************************************
 * (2) Flex 컨테이너: 왼쪽 탭 + 오른쪽 이미지
 ********************************************************/
.board-tabs-with-image-section {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 !important;
}
.board-tabs-with-image {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}
.board-list-tabs-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
}
.board-list-tabs {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
.board-preview-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
}
.board-preview-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 992px) {
  .board-tabs-with-image {
    flex-direction: column;
  }
  .board-preview-image {
    width: 100%;
    margin-top: 0;
  }
  .board-preview-image img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* 탭 버튼 불릿 제거 */
.tab-buttons {
  list-style: none;  /* 불릿 없음 */
  margin: 0;         /* 기본 여백 제거 */
  padding: 0;
}

.tab-buttons li {
  list-style: none;  /* 혹시나 해서 추가 */
  margin: 0;
  padding: 0;
}
/* (예) 게시판 미리보기 탭에 얇은 회색 라인 + 약간의 아래 여백 */
.board-list-tabs .tab-buttons li {
  border-bottom: 1px solid #ddd;  /* 얇은 회색 선 */
  margin-bottom: 0.5rem;         /* 아래쪽 여백 (조절 가능) */
  padding-bottom: 0.4rem;        /* 패딩으로 간격 부여 (조절 가능) */
}

/******************************************************
 * (2) 전체 레이아웃: header + main + footer
 ******************************************************/
main{flex:1;}

/******************************************************
 * (3) 공통 Section 스타일
 ******************************************************/
section:not(.hero-slider):not(.top-menu-bar){
  padding:0 1rem;
  max-width:100%;
  margin:0 auto;
}
section:not(.hero-slider)>h2{
  font-size:clamp(1.4rem,4vw,1.8rem);
  font-weight:700;
  text-align:center;
  margin-bottom:1.5rem;
}




/* ① 네비 버튼 */
.nav-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px;
  border:1px solid #ccc; background:#fff; border-radius:50%;
  font-size:20px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .25s,border-color .25s;
  z-index:3;
}
.nav-btn:hover{background:#0d6a95; color:#fff; border-color:#0d6a95;}
.prev{left:10px;} .next{right:10px;}

/* ② 슬라이더 창 */
.slider-window{
  width:100%;                       /* 섹션 폭에 맞춤 */
  overflow:hidden;                  /* ★ 트랙 넘침 숨김 */
}

/* ③ 트랙 */
.slider-track{
  display:flex;
  gap:40px;
  transition:transform .6s ease;
}

/* ④ 카드 */
.card{
  flex:0 0 280px;                   /* 카드 폭 고정 */
  display:flex; flex-direction:column;
}
.card img{
  width:100%; height:260px; object-fit:cover; border-radius:2px;
}
.card h3{
  font-size:18px; margin:18px 0 10px; font-weight:700;
}
.card p{font-size:15px; line-height:1.6; color:#555;}

/* ─── 반응형 ─── */
@media(max-width:992px){
  .service-inner{flex-direction:column; gap:40px;}
  .service-section{min-height:auto;}          /* 모바일: 높이 자동 */
  .service-slider .nav-btn{display:none;}     /* 모바일: 버튼 숨김 */
}

/* -------- Scroll-Snap -------- */
.snap-y{
  height:100vh;
  overflow-y:auto;
  scroll-snap-type:y mandatory;   /* 섹션 경계 “착” */
  scroll-behavior:smooth;         /* 스무스 스크롤 */

}
.snap-child{
  scroll-snap-align:start;
  min-height:100vh;
  scroll-snap-stop:always; 
  overflow-x:hidden;/* 한 섹션씩 확실히 멈춤 */
}
body{overflow-x:hidden;}





/* ===== About Section 레이아웃 ===== */
.about-section{
  max-width:100%; margin:0 auto;
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
}

.about-inner{
  width:100%; display:flex;
}

/* --- 왼쪽 슬라이드 --- */
.about-slide-wrap{
  flex:1; position:relative;width:100%; min-height:100vh; overflow:hidden;
}
.about-slide{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0; transition:opacity 1s ease-in-out;
}
.about-slide.active{opacity:1;}

/* --- 오른쪽 텍스트 --- */
.about-text{
  flex:0 0 480px;
  padding:80px 60px;
}
.about-text .eyebrow{
  color:#0d6a95; font-weight:600; letter-spacing:.5px;
}
.about-text h2{
  font-size:clamp(2rem,4vw,2.6rem);
  line-height:1.35; font-weight:700; margin:22px 0 28px;
}
.about-text .desc{font-size:15px; color:#555; line-height:1.7;}

/* 지표 */
.about-stats{
  margin-top:60px; padding-top:30px;
  border-top:3px solid #0d6a95;
  display:flex; justify-content:space-between;
}
.stat{flex:1; text-align:center;}
.stat:not(:last-child){border-right:1px solid #d9d9d9;}
.stat .num{
  font-size:40px; font-weight:700; color:#0d6a95;
  display:inline-block; margin-right:4px;
}
.stat .unit{font-size:16px; color:#0d6a95;}
.stat .label{font-size:14px; margin-top:6px; color:#333;}

/* --- 반응형 --- */
@media(max-width:992px){
  .about-inner{flex-direction:column;}
  .about-slide-wrap{min-height:60vh;}
  .about-text{flex:auto; padding:60px 30px;}
  .about-stats{flex-direction:column; gap:24px;}
  .stat{border:none;}
}


/* ① 처음엔 투명 + 바깥(살짝 확대) */
.reveal{opacity:0; transform:scale(1.05); transition:opacity .6s ease, transform .6s ease;}
.reveal.in-view{opacity:1; transform:scale(1);}

/* ② 자식 요소 순차 등장 (fade-up) */
.reveal-item{opacity:0; transform:translateY(30px);}

/* .in-view 가 부모에 붙으면 순차적으로 애니메이션 */
.reveal.in-view .reveal-item{
  animation:fadeUp .6s forwards;
}

/* 순서별 지연 (0.0 / 0.1 / 0.2 …) */
.reveal.in-view .reveal-item:nth-child(1){animation-delay:0.0s;}
.reveal.in-view .reveal-item:nth-child(2){animation-delay:0.1s;}
.reveal.in-view .reveal-item:nth-child(3){animation-delay:0.2s;}
.reveal.in-view .reveal-item:nth-child(4){animation-delay:0.3s;}

@keyframes fadeUp{
  0%  {opacity:0; transform:translateY(30px);}
  100%{opacity:1; transform:translateY(0);}
}






/* ==========================================
   (NEW) 하위 메뉴(subMenus) 상단 표시 스타일
   ========================================== */
.sub-menu-bar{
  position:absolute;           /* hero 내부에 절대배치 */
  left:0; right:0; bottom:0;
  height:var(--subbar-h);
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.55);  /* 진한 반투명 + 블러 */
  backdrop-filter:blur(4px);
  z-index:2;                   /* hero 텍스트(1) 위, header(1000) 아래 */
}

.sub-menu-bar ul{
  display:flex; gap:2rem;      /* 중앙 정렬 */
  margin:0; padding:0; list-style:none;
}

.sub-menu-bar li   {position:relative;}
.sub-menu-bar a{
  display:block; padding:.8rem 1.8rem;
  font-weight:600; font-size:1rem;
  color:#fff;                  /* 기본 흰 글자 */
  border-radius:2px;
  transition:background .25s,color .25s;
}

/* ── Hover 효과 */
.sub-menu-bar a:hover{background:rgba(255,255,255,.15);}

/* ── 활성 탭(.on) : 흰 배경 + 메인 컬러 텍스트 */
.sub-menu-bar li.on a{
  background:#fff;
  color:var(--color-primary,#d10000);
}















/******************************************************
 * HEADER SCOPE – 투명(상단) → 스크롤 80px↑ 흰 배경
 ******************************************************/
:root{
  --bg:#fff;
  --bg-soft:#f3f4f6;
  --border-light:#e5e7eb;
  --txt:#111;
  --txt-hover:#000;
  --header-h:80px;  
}

/* 0) 리셋 */
.header-scope *,
.header-scope *::before,
.header-scope *::after{
  box-sizing:border-box;
  margin:0; padding:0;
}

/* 1) 헤더 래퍼 */
.header-scope{
  position:fixed; top:0; left:0; width:100%;
  z-index:1000;
  background:transparent;               /* 기본 = 투명 */
  color:#000;                           /* 글자 = 흰색 */
  font-family:'Nanum Myeongjo','Helvetica Neue',Arial,sans-serif;
  transition:background .35s,color .35s,box-shadow .35s;
}

/* 하단 10 px 스트립 */
.header-scope::after{
  content:"";
  position:absolute; inset:auto 0 0;
  height:10px; background:transparent;
  transition:background .35s;
}

/* 1-a) 스크롤 후 모습 */
.header-scope.scrolled{
  background:#fff;
  color:var(--txt);
  box-shadow:0 2px 6px rgba(0,0,0,.06);
}
.header-scope.scrolled::after{background:#e7f1f4;}

/* 2) 내부 컨테이너 */
.header-scope .site-header{
  max-width:100%; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:1.5rem 2rem;
}

/* 로고 */
.header-scope .site-header h1{
  font-size:2rem; font-weight:700;
}
.header-scope .site-header h1 a{
  text-decoration:none; color:inherit; /* 흰→검 자동 반전 */
}

/* 3) 네비게이션 */
.header-scope .site-header nav{position:relative;}
.header-scope .site-header nav ul{
  display:inline-flex; list-style:none; gap:6rem;
}
.header-scope .site-header nav li{position:relative;}

.header-scope .site-header nav a{
  text-decoration:none; font-weight:600;
  font-size:1rem; padding:.5rem 0;
  position:relative; color:inherit;
  transition:color .3s,transform .25s,letter-spacing .25s;
}
/* 밑줄 */
.header-scope .site-header nav a::after{
  content:""; position:absolute; left:0; bottom:-2px;
  width:0; height:2px; background:currentColor;
  transition:width .25s;
}
.header-scope .site-header nav a:hover{
  transform:translateY(-2px); letter-spacing:.4px;
}
.header-scope .site-header nav a:hover::after{width:100%; height:3px;}

/* 드롭다운 */
.header-scope .site-header nav li ul{
  display:none; position:absolute; top:100%; left:50%;
  transform:translateX(-50%);
  min-width:160px; background:var(--bg); border-radius:4px;
  list-style:none; padding:.5rem 0; margin:0;
  box-shadow:0 6px 14px rgba(0,0,0,.08);
  z-index:999;
}
.header-scope .site-header nav li ul li a{
  display:block; padding:.5rem 1rem; font-weight:500;
  color:var(--txt); transition:background .25s,color .25s;
}
.header-scope .site-header nav li ul li a:hover{
  background:var(--bg-soft); color:var(--txt-hover);
}
.header-scope .site-header nav li:hover>ul{display:block;}

/* 4) 햄버거(모바일) */
.header-scope .menu-toggle{
  display:none; background:none; border:none; cursor:pointer;
  font-size:2.4rem; color:inherit;
  transition:color .3s,transform .25s;
}
.header-scope .menu-toggle:hover{transform:scale(1.1);}

/* 5) 반응형 (≤992 px) */
@media (max-width:992px){
  .header-scope .site-header{
    position:relative; height:120px; padding:1rem 1.5rem;
  }
  .header-scope .site-header h1{font-size:1.6rem;}

  /* 햄버거 표시 */
  .header-scope .menu-toggle{
    display:block; font-size:3.2rem;
    margin-left:auto; margin-right:30px;
  }

  /* 네비게이션 – 드롭다운 형식 대신 접히는 패널 */
  .header-scope .site-header nav{
    position:absolute;
    top:calc(100% + 30px); left:0; right:30px;
    overflow:hidden;
  }
  .header-scope .site-header nav ul{
    display:none; flex-direction:column; width:100%;
    background:#fff; padding:0; gap:0;
  }
  .header-scope .site-header nav ul.show{display:flex;}

  /* 1단 메뉴 */
  .header-scope .site-header nav a{
    display:block; padding:1rem; color:var(--txt);
    border-bottom:1px solid var(--border-light);
  }
  .header-scope .site-header nav a:hover{
    background:var(--bg-soft); color:var(--txt-hover);
    transform:none;              /* 모바일은 Y-lift 제거 */
  }

  /* 2단 메뉴(드롭다운) – 모바일에서 그대로 노출 */
  .header-scope .site-header nav li ul{
    position:static; transform:none; box-shadow:none;
    margin-left:1rem;
  }
}





:root{
  --img-1:url('/imgs/img7.jpg');   /* 첫 배경 */
  --img-2:url('/imgs/img6.jpg');   /* 두 배경 */
}

/* ▸ ① 섹션 전체 높이 : 고정 100vh + 이동 100vh + 위 여백 200px */
.cover-section{
  position: relative;
  height: 200vh;
  margin-top: 200px;           /* ← 상단 여백 200 px */
}

/* ▸ ② 뷰포트에 붙잡히는 100vh 박스 */
.cover-inner{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* ▸ ③ 두 장의 배경 레이어 */
.cover-bg{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.bg-1{ background-image: var(--img-1); }
.bg-2{
  background-image: var(--img-2);
  transform: translateY(100%);   /* 처음엔 아래쪽 */
  z-index: 3;                    /* caption-1 위 */
}

/* ▸ ④ 캡션 공통 */
.cover-caption{
  position: absolute; bottom: 8%; right: 8%;
  max-width: 42ch; color: #fff; text-align: right;
}
.cover-caption h3{
  font-size: 1rem; font-weight: 700;
  margin: 0 0 .75rem; letter-spacing: .5px; opacity: .85;
}
.cover-caption p{
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.4; font-weight: 700; margin: 0;
}

/* 첫 캡션 : 화면에 고정(z-index 2) → bg-2 가 덮음 */
.caption-1{ z-index: 2; }

/* 두 번째 캡션 : bg-2 와 함께 올라오며, opacity 로 서서히 등장 */
.caption-2{
  transform: translateY(100%);
  opacity: 0;
  will-change: transform, opacity;
  z-index: 4;
}

.hero-web{ margin-top:300px !important; }
.web-pick{ margin-top:300px !important; }