/* ==========================================================================
   1. Pretendard 웹폰트
   ========================================================================== */
@font-face {
  font-family: 'Pretendard';
  src: url('/wp-content/themes/jung/fonts/Pretendard-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/wp-content/themes/jung/fonts/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/wp-content/themes/jung/fonts/Pretendard-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/wp-content/themes/jung/fonts/Pretendard-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/wp-content/themes/jung/fonts/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ==========================================================================
   2. Reset
   ========================================================================== */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,header,footer,aside,nav,
sub,sup,tt,var,dl,dt,dd,ol,select,button,ul,li,fieldset,form,label,legend,caption,tbody,tfoot,thead,tr,textarea,input {margin:0;padding:0;box-sizing:border-box;}
fieldset,img {border:0 none}
dl,ul,ol,menu,li {list-style:none}
blockquote,q {quotes:none;}
blockquote:before,blockquote:after,q:before,q:after {content:'';content:none;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {display:block;margin:0;padding:0;}
img {-ms-interpolation-mode:bicubic !important;display: block;max-width: 100%;}
input,select,textarea,button {font-family:inherit;}
table,th,td {margin:0;padding:0;border-spacing:0;border-collapse:collapse;box-sizing:border-box;}
address,caption,cite,code,dfn,em,var {font-style:normal;}
sub,sup {position:relative;font-size:75%;line-height:0;vertical-align:baseline;}
sup {top:-0.5em;}
sub {bottom:-0.25em;}
legend,caption {height:0;text-indent:-9999px;overflow:hidden;font-size:0;}
input,button {border-radius:0;cursor:pointer;overflow:visible;}
button,input[type='button'],input[type='submit'] {-webkit-appearance:none;outline:none;cursor:pointer;}
select,input,textarea,button {font:inherit;}
label {cursor:pointer;}
button::-moz-focus-inner,[type='button']::-moz-focus-inner,[type='reset']::-moz-focus-inner,[type='submit']::-moz-focus-inner {padding:0;}
select {border-radius:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;}
select::-ms-expand {display:none;display:hidden;}
a {text-decoration:none;color:inherit;}
a:hover {text-decoration:none;}
input{-webkit-border-radius: 0;}
input[type=text]::-ms-clear{display: none;}
html {font-size:16px;color:#666;-webkit-text-size-adjust:none;line-height:1;letter-spacing:0;word-spacing:0;word-break:keep-all;font-family: 'Pretendard' , 'Noto Sans KR';}

::-moz-selection {background-color:rgba(0,0,0,0.4);color:#fff;}
::selection {background-color:rgba(0,0,0,0.4);color:#fff;}

::-webkit-input-placeholder {color:#999;}
:-moz-placeholder {color:#999;}
::-moz-placeholder {color:#999;}
:-ms-input-placeholder {color:#999;}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  background: #fff;
}

/* 메뉴 열림 상태 body 스크롤 잠금 */
body.is-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   3. CSS 변수
   ========================================================================== */
 :root {
      /* Colors - Brand */
      --color-primary: #007ca5;
      --color-primary-dark: #14515f;
      --color-mint: #e8f3f2;
      --color-navy-dark: #0d1b2a;
      --color-text: #0f0f0f;
      --color-text-sub: #666666;
      --color-white: #ffffff;
      --color-border: #e5e5e5;
      --color-bg-section: #f7f9fa;
	  --color-accent: #1c6b82; /* 이미지의 강조 컬러 (재단 메인컬러) */
	  --color-bullet: #e67e22; /* 이미지 시안의 오렌지 불렛 */
      --line-color: #cbd5e1;

      /* Font size */
      --fs-hero: 60px;
      --fs-h2: 34px;
      --fs-h3: 24px;
      --fs-body: 20px;
      --fs-small: 16px;
      --fs-label: 18px;

      /* Spacing */
      --spacing-xs: 8px;
      --spacing-sm: 20px;
      --spacing-md: 24px;
      --spacing-lg: 48px;
      --spacing-xl: 80px;
      --spacing-2xl: 120px;

      /* Layout */
      --header-height: 90px;
      --container-width: 1440px;
      --radius-sm: 6px;
      --radius-md: 12px;

      /* Transition */
      --transition-base: all 0.25s ease;
    }
/* ==========================================================================
   4. 공통 타이포그래피 & 레이아웃
   ========================================================================== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-2xl) 0;
}

.section-label {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-xs);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.center {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   5. 공통 버튼 스타일
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  transition: var(--transition-base);
}

.btn--outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline .arrow {
  transform: rotate(-45deg);
}

.btn--outline-white {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}

.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-navy-dark);
}

.btn--more {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 20px 10px 24px;
}

.btn--more svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   6. 헤더 / 내비게이션 (GNB 드롭다운 해결 포함)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.header__logo img {
  height: 77px;
  display: block;
  object-fit: contain;
}

/* 데스크탑 GNB */
.gnb {
  height: 100%;
}

.gnb__list {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--spacing-lg);
}

.gnb__item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.gnb__link {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 2px;
}

/* GNB 드롭다운 서브메뉴 */
.gnb__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 160px;
  padding: var(--spacing-xs) 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 950;
}

/* 마우스 오버 및 클래스 열림 시 상위/하위 메뉴 출력 설정 */
.gnb__item:hover .gnb__submenu,
.gnb__item.is-open .gnb__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.gnb__submenu li a {
  display: block;
  padding: 9px 18px;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--color-text-sub);
  white-space: nowrap;
}

.gnb__submenu li a:hover {
  color: var(--color-primary);
  background: var(--color-bg-section);
}

/* 헤더 유틸 & 메뉴 버튼 */
.header__util {
  display: flex;
  align-items: center;
}

.btn-menu {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.btn-menu svg {
  width: 18px;
  height: 18px;
}

/* 햄버거 → X 애니메이션 (클래스 및 속성 토글 지원) */
.icon-line {
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.btn-menu.is-active .icon-line--top,
.btn-menu[aria-expanded="true"] .icon-line--top {
  transform: translateY(6px) rotate(45deg);
}

.btn-menu.is-active .icon-line--mid,
.btn-menu[aria-expanded="true"] .icon-line--mid {
  opacity: 0;
}

.btn-menu.is-active .icon-line--bot,
.btn-menu[aria-expanded="true"] .icon-line--bot {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   7. 메가메뉴 (PC 5컬럼 / 모바일 오버레이)
   ========================================================================== */
.mega-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--color-white);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__top {
  display: none; /* PC에서는 숨김 */
}

/* 푸터 레이아웃 기본 */
.footer {
  width: 100%;
  border-top: 1px solid #e2e2e2;
  background-color: #fff;
  padding:10px 20px 30px;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  width:100%;
}

/* 상단 영역 (로고 및 네비게이션) */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo h2 {
  font-size: 22px;
  color: #333;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.footer-logo strong {
  color: #0075a8; /* 동진 로고 상징색 */
  font-weight: 700;
}

.footer-logo span {
  font-size: 13px;
  font-weight: normal;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
  margin-right: 4px;
}

.footer-nav {
  display: flex;
  gap: 30px;
}

.footer-nav a {
  font-size: 13px;
  color: #666;
}

.footer-nav a.privacy {
  font-weight: bold;
}

/* 하단 영역 (회사 정보 및 카피라이트) */
.footer-bottom {
  padding-top: 25px;
  color: #666;
  font-size: 13px;
  display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
/* 감싸는 감싸개 (위치 기준점) */
  .select-box-wrap {
    position: relative;
    display: inline-block;
    width:180px;
  }

  /* 셀렉트 박스 */
  .select-box-wrap .family-site-select {
    width: 100% !important;
    height: 36px !important;
    padding: 0 30px 0 10px !important;
    font-size: 13px !important;
    color: #333333 !important;
    background-color: #ffffff !important;
    border: 1px solid #767676 !important;
    border-radius: 0 !important;
    outline: none !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }

  /* 강제 배치 화살표 아이콘 */
  .select-box-wrap .select-arrow {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    font-size: 10px !important;
    color: #333333 !important;
    pointer-events: none !important; /* 클릭 이벤트가 select로 통과되도록 설정 */
  }
.info-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px;
}

.info-list li {
  display: flex;
  align-items: center;
}

/* 항목 사이의 구분선 (|) */
.info-list li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 10px;
  background-color: #ccc;
  margin: 0 10px;
}

.copyright {
  margin-top: 20px;
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
}

/* --- PC 스타일 (5컬럼 나열) --- */
@media (min-width: 1025px) {
  .mega-menu__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px var(--spacing-sm);
  }

  .mega-menu__depth1 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    border-right: none;
    padding: 0 0 24px 0;
  }

  .depth1-btn {
    width: auto;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    text-align: left;
    padding: 0;
    cursor: default;
    pointer-events: none;
  }

  .depth1-btn.is-active {
    color: var(--color-text);
  }

  .depth1-btn.is-active::after {
    content: none;
  }

  .mega-menu__depth2-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    background: none;
    padding: 0;
  }

  .depth2-panel {
    display: block !important;
  }

  .depth2-panel ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .depth2-panel a {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-sub);
    transition: color 0.2s;
  }

  .depth2-panel a:hover {
    color: var(--color-primary);
    font-weight: 600;
  }
}

/* ==========================================================================
   8. 반응형 (모바일 1024px 이하)
   ========================================================================== */
@media (max-width: 1024px) {
  .header { 
    height: 68px; 
  }
  
  .gnb {
    display: none;
  }

  .header__logo img {
    height: 45px;
  }

  .btn-menu {
    width: 36px;
    height: 36px;
  }

  .mega-menu {
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
  }

  .mega-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px 0 20px;
    border-bottom: 1px solid #e2e2e2;
  }

  .mega-menu__logo .logo-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
  }

  .mega-menu__logo .logo-name em {
    color: #1a56a6;
    font-style: normal;
  }

  .mega-menu__util {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .mega-menu__close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
  }

  .mega-menu__close svg {
    width: 24px;
    height: 24px;
    stroke: #111;
  }

  .mega-menu__container {
    display: flex;
    height: calc(100vh - 56px);
  }

  .mega-menu__depth1 {
    width: 140px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e2e2e2;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 10px 0;
  }

  .depth1-btn {
    width: 100%;
    padding: 18px 16px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
  }

  .depth1-btn.is-active {
    color: #1a56a6;
  }

  .depth1-btn.is-active::after {
    content: '►';
    font-size: 10px;
    color: #1a56a6;
  }

  .mega-menu__depth2-container {
    flex: 1;
    background: #f4f5f7;
    overflow-y: auto;
    padding: 24px 20px;
  }

  .depth2-panel {
    display: none;
  }

  .depth2-panel.is-active {
    display: block !important;
  }

  .depth2-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .depth2-panel a {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
  }

  .depth2-panel a:active,
  .depth2-panel a:hover {
    color: #1a56a6;
    font-weight: 700;
  }
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
	    padding-bottom: 15px;
  }
  	.footer { padding:20px;}
	.footer-bottom { padding-top:10px;flex-direction: column;
      align-items: flex-start;
      gap: 20px;}
	.footer-family-site {
      width: 100%;
    }
    .family-site-select {
      width: 100%;
    }

  .footer-nav {
    gap: 15px;
    font-size: 14px;
  }

  .info-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .info-list li:not(:last-child)::after {
    display: none; /* 모바일 세로 정렬 시 구분선 제거 */
  }

  .info-list li {
    margin-bottom: 3px;
  }

  .copyright {
    margin-top: 15px;
  }
  .select-box-wrap {
      width: 100%;
    }
}