@charset "euc-kr";

/* 링크 방문 및 클릭 후 색상 유지 방지 */
a:visited {
    color: inherit !important;
}

a:focus,
a:active {
    outline: none !important;
}

/* ==========================================
   1. 링크 및 버튼 기본 상태 완벽 초기화
========================================== */
/* 명시도(점수)를 0으로 만들어, 고객님이 만든 버튼 클래스(.btn 등 흰색 글씨)가 무조건 최우선 적용되게 보호 */
:where(a, a:visited) {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================
   2. 파란 박스, 검은 테두리, 그림자 완벽 차단
========================================== */
*,
*::before,
*::after,
*:focus,
*:focus-visible,
*:active,
a:focus,
a:focus-visible,
a:active,
a:visited,
button:focus,
button:focus-visible,
button:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    -webkit-tap-highlight-color: transparent !important;
}

a img {
    border: none !important;
}

/* ==========================================
   3. [핵심] 새창 복귀 시 마우스 오버 색상 고정 완벽 방지
========================================== */
/* 
   해결 원리: 브라우저가 새창을 다녀와서 억지로 포커스(:focus)를 쥐고 있더라도, 
   실제로 마우스가 얹혀 있지 않다면(:not(:hover)) 호버/포커스 효과를 차단합니다. 
*/
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* 
   스마트폰/태블릿(터치 기기)에서 버튼을 누르고 새창 이동 후 돌아왔을 때, 
   hover 색상(검정)이 영구적으로 굳어버리는 버그(Sticky Hover)를 CSS로 차단합니다.
   오직 '진짜 마우스를 사용하는 기기(PC)'에서만 hover 색상 변화를 허락합니다. 
*/
@media (hover: none) and (pointer: coarse) {
    a:hover, 
    a:focus, 
    a:active,
    button:hover, 
    button:focus, 
    button:active {
        /* 터치 기기에서는 클릭 시점의 색상 고정을 막기 위해 hover 효과를 무효화 */
        text-decoration: none !important;
    }
}


/* 새창으로 열리는 버튼(a 태그)이 클릭 후 포커스를 쥐고 있더라도, 
   마우스가 실제로 버튼 위에 있지 않다면(:not(:hover)) 
   강제로 원래 글자색(예: 흰색)으로 되돌리는 전역 덮어쓰기 코드 */

a[target="_blank"]:focus:not(:hover) {
    color: #ffffff !important; /* 버튼의 원래 글자색(흰색) */
    
    /* 만약 배경색이나 테두리도 변한 채로 굳어있다면 아래 주석을 풀고 원래 색을 적어주세요 */
    /* background-color: #기존배경색 !important; */
    /* border-color: #기존테두리색 !important; */
}



/* PC (기본 스타일: 화면이 넓을 때) */
textarea {
    font-size: 13px !important;
}

/* 모바일 (화면 너비가 768px 이하일 때) */
@media (max-width: 768px) {
    textarea {
        font-size: 12px !important;
    }
}


@font-face {
    font-family: 'NanumSquareNeoBold';
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-cBd.eot);
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-cBd.eot?#iefix) format("embedded-opentype"), url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-cBd.woff) format("woff"), url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-cBd.ttf) format("truetype");
}

@font-face {
    font-family: 'NanumSquareNeo';
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.eot);
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.eot?#iefix) format("embedded-opentype"), url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.woff) format("woff"), url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.ttf) format("truetype");
}

* {
    font-family: 'NanumSquareNeo' !important;
}

/* Font Awesome 아이콘 클래스들은 예외적으로 원래 폰트 유지 */
.fa, .fas, .far, .fal, .fab {
    font-family: 'FontAwesome' !important;
}


/* 고유 컨테이너 */
.nanzi-container {
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px 15px 40px 15px;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .nanzi-container {
        padding: 0px 15px 20px 15px;
    }
}


/* 고유 컨테이너 */
.nanzi-container1 {
    width: 100%;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    padding: 0px 15px 40px 15px;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .nanzi-container1 {
        padding: 0px 0px 20px 0px;
    }
}




/* 페이지 위치정보 우측 정렬 및 기기별 우측 여백 제어 */
.custom-breadcrumb-wrap {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end; /* 기본 우측 정렬 */
  padding: 10px 80px 10px 0; /* PC: 우측 90px, 상하 10px */
}

/* 내부 정렬 및 스타일 */
.custom-breadcrumb-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* 아이템 간격 */
  font-family: inherit;
  color: #555555 !important;
  font-size: 13px; /* PC 글자 크기 */
  line-height: 1.2;
}

/* 집 아이콘 링크 및 아이콘 스타일 */
.custom-breadcrumb-wrap .home-icon-link {
  display: inline-flex;
  align-items: center;
  color: #555555 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.custom-breadcrumb-wrap .home-icon-link:hover {
  color: #111111 !important;
}

.custom-breadcrumb-wrap .home-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* 고급스러운 화살표(구분자) 아이콘 스타일 */
.custom-breadcrumb-wrap .separator-icon {
  width: 12px;
  height: 12px;
  color: #999999 !important; /* 너무 튀지 않도록 은은한 회색 적용 */
  stroke-width: 2.2;
}

/* 경로 텍스트 공통 */
.custom-breadcrumb-wrap .breadcrumb-item {
  color: #666666 !important;
  text-decoration: none !important;
}

/* 현재 페이지 (마지막 텍스트) 강조 */
.custom-breadcrumb-wrap .breadcrumb-item.current {
  color: #222222 !important;
  font-weight: 600;
}

/* 스크린 reader 전용 (접근성용 텍스트 숨김) */
.custom-breadcrumb-wrap .sound_only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* 태블릿 반응형 (화면 폭 769px ~ 1400px) */
@media screen and (max-width: 1400px) {
  .custom-breadcrumb-wrap {
    padding-right: 40px; /* 태블릿: 우측 40px */
  }
  .custom-breadcrumb-inner {
    font-size: 13px; /* 태블릿 글자 크기 축소 */
  }
}

/* 모바일 반응형 (화면 폭 768px 이하) */
@media screen and (max-width: 768px) {
  .custom-breadcrumb-wrap {
    padding-right: 15px; /* 모바일: 우측 20px */
  }
  .custom-breadcrumb-inner {
    font-size: 11px; /* 모바일 글자 크기 추가 축소 */
    gap: 6px;
  }
  .custom-breadcrumb-wrap .home-icon {
    width: 13px;
    height: 13px;
  }
  .custom-breadcrumb-wrap .separator-icon {
    width: 10px;
    height: 10px;
  }
}







/* 상단 버튼 */
.custom-nav-btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* PC/기본: 가운데 정렬 */
  align-items: center;
  gap: 8px; /* 버튼 사이 간격 미세 조정 */
  margin: 20px 0;
  width: 100%;
  box-sizing: border-box;
}

.custom-nav-btn-wrapper .custom-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px; /* PC 기본 패딩 축소 */
  font-size: 13px; /* PC 글자 크기 축소 */
  font-weight: 700;
  color: #555555 !important; /* 기본 글자 색상 #555 */
  background-color: #ffffff !important;
  border: 1px solid #c6c6c6 !important; /* 테두리 색상 #555 */
  border-radius: 50px !important; /* 둥근 테두리 */
  text-decoration: none !important;
  line-height: 1.2 !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 마우스 오버 효과 */
.custom-nav-btn-wrapper .custom-nav-btn:hover {
  background-color: #f9f9f9 !important;
  border: 1px solid #555555 !important; /* 테두리 색상 #555 */
  color: #555555 !important;
}

/* 현재 페이지 활성화 (active) : #555 색상으로 반전 */
.custom-nav-btn-wrapper .custom-nav-btn.active {
  background-color: #874e50 !important;
  color: #ffffff !important;
  border-color: #874e50 !important;
}

/* active 상태에서 hover 시 유지 */
.custom-nav-btn-wrapper .custom-nav-btn.active:hover {
  background-color: #874e50 !important;
  border-color: #874e50 !important;
}

/* 모바일 반응형 (화면 폭 768px 이하) */
@media screen and (max-width: 768px) {
  .custom-nav-btn-wrapper {
    justify-content: flex-start; /* 한 줄에 안 담겨 줄바꿈 발생 시 왼쪽 정렬 */
    gap: 6px;
  }
  
  .custom-nav-btn-wrapper .custom-nav-btn {
    padding: 6px 12px; /* 모바일 전용 패딩 */
    font-size: 11px; /* 모바일 글자 크기 추가 축소 */
  }
}