
:root {
    --color-main-1: #020e23;
    --color-main-2: #8673ff;
    --color-main-3:#5236ff;
    --bg-theme1: #e6e2ff;
    --bg-theme2: #f6f5ff;
    --text-theme1: #3824b2;
    --text-h: #111;
    --text-p: #333;
    --sub: #666;
    --text_alert: #dd213b;
    --white: #fff;
    --bg: #f7f7f7;
    --gray1: #eee;
    --gray2: #ddd;
    --gray3: #999;
}

/* Margin Variables */
.mb5 { margin-bottom: 5px; }
.mb10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px;}
.mb30 { margin-bottom: 30px;}
.mb40 { margin-bottom: 40px;}
.mb50 { margin-bottom: 50px; }

.mt5 { margin-top: 5px;}
.mt10 { margin-top: 10px; }
.mt20 { margin-top: 20px; }
.mt30 { margin-top: 30px; }
.mt40 { margin-top: 40px; }
.mt50 { margin-top: 50px; }

.mr5 { margin-right: 5px; }
.mr10 { margin-right: 10px; }
.mr20 { margin-right: 20px; }
.mr30 { margin-right: 30px; }
.mr40 { margin-right: 40px; }
.mr50 { margin-right: 50px; }

.ml5 { margin-left: 5px; }
.ml10 { margin-left: 10px; }
.ml20 { margin-left: 20px; }
.ml30 { margin-left: 30px; }
.ml40 { margin-left: 40px; }
.ml50 { margin-left: 50px; }

.pt50 { padding-top: 50px; }
.pt80 { padding-top: 80px; }
.pt100 { padding-top: 100px; }

.space10 { gap: 10px; }
.space20 { gap: 20px; }
.space40 { gap: 40px; }

.w100 { width: 100%; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/*Layout*/
.RowLayout { display: flex; flex-flow: row; }
.ColumnLayout { display: flex; flex-flow: column; }
.RowSpace { display: flex; flex-flow: row; justify-content: space-between; } /*flex: row 스타일 양쪽정렬*/
.RowLeft { display: flex; flex-flow: row; justify-content: flex-start; } /*flex: row 스타일 좌측정렬*/ 
.RowRight { display: flex; flex-flow: row; justify-content: flex-end; } /*flex: row 스타일 양쪽정렬*/
.RowCenter { justify-content: center; }
.CenterCenter { display: flex; justify-content: center; align-items: center; }
.Row-to-Colume { display: flex; flex-flow: row; justify-content: space-between; }
.Stretch { align-items: stretch; }

.RowLayout .flex-1 { flex: 1; }
.ColumnLayout .flex-1 { flex: 1; }
.flex-1 { flex: 1; }
.flex-3 { flex: 0 0 33.33%; }
.flex-half1 { flex: 1.5; }


.inner { width: 100%; max-width: 1400px; margin: 0 auto; }



/* ========================================================
    0. Skip_nav 
======================================================== */
#skip_nav {
  position: relative;
  z-index:100; 
}

#skip_nav .skip_item a{
  position: absolute;
  top: -100px; 
  left: 0;
  width: 100%;
  height: 40px;
  line-height: 40px;
  background: #5c45ff; 
  color: #fff;
  text-align: center;
  font-weight: bold;
  transition: top 0.3s;
}

#skip_nav .skip_item a:focus, 
#skip_nav .skip_item a:active {
  top: 0; 
  outline: 5px auto #fff;
}

/* ========================================================
    1. Header 
======================================================== */
#header-include {
  width: 100%;
  position: relative;
  z-index:1;
  transition: background-color 0.3s;
}

/*  01. 상단 IPFS 안내 배너 */
.header-top-banner {
  padding:1.3rem 0;
  background: #000;
  border-bottom:1px solid #474747;
  color: #ccc;
  font-size:1.4rem;
  font-weight: 700;
}

/* 02. 헤더 메인 레이아웃 (PC) */
.header-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  background:var(--color-main-1);
  border-bottom:1px solid rgba(255,2555,255,0.3);
}

.header-main .inner{ 
  display:flex;
  flex-flow:row nowrap;
  align-items:center;
  justify-content: space-between;
} 

/* 03. header_LeftArea : 로고영역 */
.header_LeftArea{
  display: flex;
  align-items: center;
  flex: 0 1 auto;
}

.header_toplogo {
  display:flex;
  flex-flow:row wrap;
  align-items:center;
  justify-content:center;
  font-size: 0;
  line-height: 0;
}

.toplogo_link {
  display: inline-block;
  width: 185px;
  height:40px;
  background: url('../images/kisa/logo_header.png') no-repeat left center / 100% auto;
}
#header-include .toplogo_link:focus-visible,
#header-include .btn-ham:focus-visible,
#header-include .lang-selector a:focus-visible,
#header-include .btn-search-toggle:focus-visible {
    outline: 2px solid #8673ff; 
    outline-offset: 2px;
    border-radius: 4px;
}

#header-include .depth1-link:focus-visible {
    outline: 2px solid #8673ff ;
    outline-offset: -3px; 
}

.toplogo_link:focus{ outline:2px solid #8673ff; }

/* 04. header_RightArea : Gnb영역 */
.header_RightArea { display: flex; }

.gnb-wrap {
  position: static;
  display: flex;
  justify-content: center; 
  margin-right:5rem;
}
/* :: 1뎁스 */
.depth1-list {
  display: flex;
  justify-content: center;
  align-items:center;
}

.depth1-item {
  position: static; 
  width:180px; 
  text-align: center;  
}

.depth1-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height:70px;
  padding: 0 20px;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  text-decoration: none;
}
.depth1-link:focus{ outline:2px solid #8673ff; }

/* ㄴ 1뎁스 하단 애니메이션 Bar */
.depth1-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 4px;
  background-color: #8673ff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  z-index: 10;
}
.depth1-item.on .depth1-link::after{ width:100%; }


/* :: 2depth 전체 드롭다운 박스 */
.depth1-item .depth2-wrap{ background:rgba(255,255,255,0.6); }
.depth1-item.on .depth2-wrap{ 
  background-color:#edebff;
}
.depth2-wrap {
  position: absolute;
  top: 70px;
  z-index:2;
  border-right: 1px solid #d9d9d9;  
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.depth1-item:first-child .depth2-wrap{ border-left:1px solid #d9d9d9; }
.depth1-item:last-child .depth2-wrap{ border-right:1px solid #d9d9d9; }

.depth2-list {
  display: flex;
  flex-flow:column nowrap;
  justify-content: center; 
  pointer-events:auto; 
  max-width: 1400px;
  margin: 0 auto;
  padding:1rem 0;  
}

.depth2-list > li {
  width:180px; 
  padding:0 0.7rem;
  text-align: center; 
}
.depth2-list > li:first-child { border-left: none; }

.depth2-list li a {
  display: block;
  margin:0.7rem 0;
  padding:1rem;
  transition: all 0.2s;
  text-align: center;
  font-weight:500;
  font-size:1.8rem;
  line-height:1.2;
  cursor:pointer;
  z-index:3;
}

.depth2-list li a:hover{
  background:#5c45ff;
  border-radius:0.3rem;
  color:#fff;
}

/* ㄴ 2depth 전체 드롭다운 시 background */
.header-background{ 
  position: absolute;
  top: 70px; /* 헤더 높이와 일치 */
  left: 0;
  width: 100%;
  height: 0; 
  background:#fff; 
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease-in-out;
  z-index:1; 
  opacity: 0;
  visibility: hidden;
}

.header-background::before{
  content: "";
  width: 100%;
  height: 300px;
  left: 0;
  top:0;
  position: absolute;
  background-image: url('../images/kisa/img_gnb_left.png');
  background-size: 600px;
  background-position: 0 0;
  background-repeat: no-repeat;
}

.header-background::after{
  content: "";
  width:290px;
  height: 300px;
  right: 0;
  bottom:0;
  position: absolute;
  background-image: url('../images/kisa/img_gnb_right.png');
  background-position:right;
  background-repeat: no-repeat;
  background-size:contain;
}

#header-include.is-open .header-background,
#header-include.is-open .depth2-wrap {
  height:335px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* 04. header_RightArea : 유틸리티 영역 (다국어버튼) */
.util-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-selector ul {
  display: flex;
  gap: 15px;
}

.lang-selector a {
  position: relative;
  font-size:2rem;
  font-weight:700;
  color:#fff;
  text-decoration: none;
}

.lang-selector a::before { 
  content: "";
  position: absolute;
  top: 50%;
  left:-25px;
  transform: translateY(-50%);
  width:20px;
  height:20px;
  background: url('../images/kisa/icon_global.png') no-repeat 0 0 / contain;
}

.lang-selector a.active,
.lang-selector a:focus {
  color: #fff;
  outline:2px solid #8673ff;
}

/* 04. header_RightArea : 검색박스 영역 */
.btn-search-toggle:focus{ border: 1px solid #fff; outline:2px solid #8673ff; }
.btn-search-toggle {  
    width: 40px; height: 40px;
    background: url('../images/kisa/icon_search.png') no-repeat center / 24px;
    transition: transform 0.3s;
}
.btn-search-toggle.active {
    background: url('../images/kisa/icon_closed.png') no-repeat center / 24px;
}

/* :: 검색 팝업 드롭다운 스타일 */
.search-area {  }
.search-dropdown-wrap {
  position: absolute;
  top: 70px;  
  left: 0;     
  width: 100vw; 
  margin-left: calc(-50vw + 50%); 
  background:#fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.search-dropdown-wrap::before {
    content: "";
    width: 100%;
    height:215px;
    left: 0;
    top: 0;
    position: absolute;
    background-image: url(../images/kisa/img_gnb_left.png);
    background-size: 600px;
    background-position: 0 0;
    background-repeat: no-repeat;
}

.search-dropdown-wrap .inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center; 
}

.headerSearchFrm{ 
  width:100%; 
  padding:6rem 0 10rem 0;
}

/* :: 검색 폼 전체 컨테이너 */
.search-form-inner {
    position: relative;
    display: flex;
    align-items: center;
    width:50%;
    margin:0 auto;
    border-bottom: 2px solid #000; 
}

/* ㄴ 입력창 스타일 */
.search-form-inner .input-search {
    border: 0;
    flex: 1;
    width: 100%;
    height: 54px;
    line-height: 1;
    padding: 0 60px 0 15px;
    font-size: 21px;
    letter-spacing: -1px;
}

/* ㄴ 플레이스홀더 색상 조정 */
.search-form-inner .input-search::placeholder { color: #666; }

/* ㄴ 검색박스 내 돋보기 버튼 스타일 */
.btn-search-submit {
    position: absolute;
    right: 5px;
    bottom: 10px;
    width: 35px;
    height: 35px;
    background: url('../images/kisa/ico_topsearch_form.png') no-repeat center / contain; /* 이미지와 유사한 블루 돋보기 아이콘 */
    border: none;
    cursor: pointer;
    background-color: transparent;
}

  .mob-toggle {
    display: none;
  }

/* --- 모바일 공통 (Dim 배경) --- */
.mob-dim {
  display: none;
  position: fixed;
  top:40px; left: 0; 
  width: 100%; height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}
/* body에 mob-menu-open 클래스가 붙으면 배경 표시 */
body.mob-menu-open .mob-dim { 
    display: block; 
}


/* ========================================================
  반응형 미디어 쿼리 (Common)
======================================================== */  
@media screen and (max-width: 1400px){
  .inner { max-width:100%; padding:0 2rem; }
}

@media screen and (max-width: 1260px){
  .depth1-item{ width:150px; }
  .depth2-list > li{ width:150px; }
  #header-include.is-open .header-background,
  #header-include.is-open .depth2-wrap { height:360px; }
}

/* ========================================================
  반응형 미디어 쿼리 PC > 테블릿 변환시점 1100px
======================================================== */
@media screen and (max-width: 1100px) {

  /* body에 클래스가 붙으면 우측에서 등장 */
  .mob-menu-open { overflow: hidden !important; }
  .mob-menu-open .gnb-wrap { right: 0 !important; }


  .header-main { height: 70px; }
  .mob-toggle { display: block; z-index:101; }

  /* 1. 햄버거 버튼 기본 스타일 */    
  .btn-ham { width: 30px; height: 22px; position: relative; }
  .btn-ham .line { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; transition: 0.3s; }
  .btn-ham .line:nth-child(1) { top: 0; }
  .btn-ham .line:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .btn-ham .line:nth-child(3) { bottom: 0; }
  /* :: 햄버거 버튼 닫힘 스타일 */    
  .btn-ham.active{ position: absolute; top:20px; right: 52%; }
  .btn-ham.active .line{  background:#fff; }    
  .btn-ham.active .line:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
  .btn-ham.active .line:nth-child(2) { opacity: 0; }
  .btn-ham.active .line:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

  /* 2. 네비게이션 창 (우측에서 슬라이드인) */
#global-nav {
  display: block;
  position: fixed;
  top: 0; 
  left: -100%; 
  width: 50%; 
  height: calc(100vh - 40px) !important; 
  margin-top: 40px;
  background: var(--color-main-1);
  z-index: 100;
  transition: left 0.3s ease-in-out; 
  padding-top: 80px;
  padding-bottom: 60px; 
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}



  .mob-menu-open #global-nav { left: 0;  transition: right 0.3s ease-in-out; }

  .depth2-list li a:focus-visible {
    outline: 2px solid var(--color-main-1);
    outline-offset: -3px;
    border-radius: 4px;
  }

  /* 3. 유틸메뉴 :: 다국어 */
  .header_RightArea .util-wrap .lang-selector{ display:none; }
  .mob-menu-open .util-wrap .lang-selector{ display: flex; }

  /* :: 다국어 선택 미세 스타일 조정 */
  .mob-menu-open .lang-selector { position:absolute; left:4rem; z-index:101; }
  .mob-menu-open .lang-selector a { font-size:2rem; color: #fff; }

  .btn-search-toggle, .btn-search-toggle.active{ background-size: 34px; }


  /* 4. 모바일 1depth & 2depth 아코디언 스타일 */
  .depth1-list{ 
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .depth1-item { position:relative; display:block; width: 100%; text-align:left; }
  .depth1-item.active .depth1-link{ background:#8673ff; }

  .depth1-link { 
    position: relative;
    display: block; 
    padding:2rem;
    height:auto;
  }
  /* .depth1-link:focus{ outline:none; } */


  /* :: 서브메뉴가 있는 1depth 우측에 화살표(+) 표시 */
  .depth1-link::before, 
  .depth1-link::after {
      content: '';
      display: block;
      position: absolute;
      top: 50%;
      background: #fff;
      transition: transform 0.3s ease-in-out;
      left: auto !important; 
      margin-left: 0 !important;
  }

  /* :: 가로선 (ㅡ) : 넓이 18px, 두께 2px */
  .depth1-link::before {
      right: 20px;
      width: 18px;
      height: 2px;
      margin-top: -1px; }

  /* :: 세로선 (ㅣ) : 두께 2px, 높이 18px */
  .depth1-link::after {
      right: 28px; 
      width: 2px;
      height: 18px;
      margin-top: -9px; 
      transform: rotate(0deg); 
  }

  /* :: 메뉴가 열렸을 때 (active) */
  .depth1-item.active .depth1-link::after {
      transform: rotate(90deg);
  }

  /* 2depth 서브메뉴 숨김 처리 (JS로 컨트롤) */
  .depth2-wrap { 
    display: none;
    background: #f9f9f9;
    position: static;
    top:auto;
    left:auto;
    height: auto; 
    opacity: 1;   
    width:100%;
    visibility: visible; 
    box-sizing: border-box;
    transition: none !important;
  }
  .depth2-list{ padding:0; background:#fff; }
  .depth2-list > li{ width:100%; }
  .depth2-list li a { 
    display: block; 
    padding:1.2rem; 
    color: #333; 
    border-bottom: 1px solid #eaeaea;
    text-align:left; }
  .depth2-list li:last-child a { border-bottom: none; }



  
}



/* ========================================================
  2. Footer
======================================================== */
#footer-include {
    background-color: #222222;
    color: #999999;
    font-size: 14px;
    line-height: 1.6;
}

.footer-top-banner {
    background-color: #333333;
    padding: 15px 0;
    border-bottom: 1px solid #444;
}

.emergency-text {
    color: #a4c639; /* 이미지의 연두색 텍스트 */
    font-weight: 700;
    margin: 0;
}

.footer-main {
    padding: 40px 0 60px;
}

.footer-content-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.info-area address {
    font-style: normal;
    margin-bottom: 20px;
    line-height: 1.8;
}

.copyright {
    margin: 0;
    color: #666;
}

.family-site-area .select-box {
    display: flex;
    gap: 5px;
}

.family-site-area select {
    background-color: transparent;
    color: #ccc;
    border: 1px solid #555;
    padding: 8px 15px;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.btn-move {
    background-color: #444;
    color: #fff;
    border: 1px solid #555;
    padding: 8px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-move:hover {
    background-color: #555;
}


#footer-include select:focus,
#footer-include .btn-move:focus,
#footer-include a:focus {
    outline: 2px solid #a4c639 !important; /* 이미지의 연두색 활용 */
    outline-offset: 2px;
}

@media screen and (max-width: 1024px) {
    .footer-content-wrap {
        flex-direction: column;
        gap: 30px;
    }
    .family-site-area {
        width: 100%;
    }
    .family-site-area select {
        flex: 1;
    }
}