/* =========================================
   [기본 설정 및 폰트]
   ========================================= */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700&display=swap');

@font-face {
    font-family: 'shilla';
    src: url("/assets/font/Shilla_Culture(B).ttf");
    font-weight: bold;
}

:root {
    --nsb-text-main: #393636;
    --font-sans: 'Pretendard', sans-serif;
    --font-serif: 'Noto Serif KR', serif;
    --header-height: 90px; /* 헤더 높이 90px 고정 */
}

body { margin: 0; padding: 0; font-family: var(--font-sans); color: var(--nsb-text-main); }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul, li { list-style: none; margin: 0; padding: 0; }

.shilla {
    font-family: shilla;
}

/* =========================================
   [헤더 - 1320px 중앙 정렬 & 정법사 스타일]
   ========================================= */
.anguk-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    padding: 0;
}

/* 실제 콘텐츠(로고, 메뉴)가 들어가는 중앙 박스 */
.header-inner {
    width: 100%;
    max-width: 1320px; /* 요청한 중앙 정렬 사이즈 */
    height: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 20px; /* 좌우 여백 살짝 줌 */
    box-sizing: border-box;
}

/* 로고 영역 */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    height: 100%;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: all 0.4s ease;
    filter: brightness(0) invert(1); /* 초기값: 흰색 */
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin: 0;
    color: #fff; /* 초기값: 흰색 */
    font-weight: 700;
    transition: color 0.4s ease;
}

/* 메뉴(GNB) 스타일 */
.anguk-header .menu {
    display: flex;
    gap: 40px;
    height: 100%;
    align-items: center;
}

.anguk-header .menu li a {
    display: block;
    color: #fff; /* 초기값: 흰색 */
    font-weight: 500;
    font-size: 1.4rem;
    font-size: 1.4rem;
    line-height: var(--header-height);
}

/* 메뉴 호버 효과 (금색) */
.anguk-header .menu li a:hover {
    color: #76343d !important;
}

.title-menu {
    /*font-family: 'shilla';*/
}

/* 모바일 버튼 */
.mobile-btn { display: none; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* =========================================
   [스크롤 시 & 서브 페이지 변신 효과]
   ========================================= */
.anguk-header.scrolled,
body.sub-page .anguk-header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 스크롤/서브페이지 -> 로고 색상 복구 */
.anguk-header.scrolled .logo-img,
body.sub-page .anguk-header .logo-img {
    filter: none;
}

/* 스크롤/서브페이지 -> 텍스트 검정으로 */
.anguk-header.scrolled .logo-text,
body.sub-page .anguk-header .logo-text {
    color: var(--nsb-text-main);
}

.anguk-header.scrolled .menu li a,
body.sub-page .anguk-header .menu li a {
    color: #333;
}

.anguk-header.scrolled .mobile-btn,
body.sub-page .anguk-header .mobile-btn {
    color: #333;
}

/* =========================================
   [히어로 섹션 & 메인 콘텐츠 (기존 유지)]
   ========================================= */
.hero-section {
    position: relative;
    width: 100%; height: 100vh;
    overflow: hidden;
    display: flex; justify-content: center; align-items: center;
    text-align: center;
}
.hero-video {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: -2; object-fit: cover;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); z-index: -1;
}
.hero-content {
    color: #fff; z-index: 1;
    width: 100%; max-width: 1200px; padding: 0 20px;
}
.sub-title { font-size: 1.2rem; margin-bottom: 15px; opacity: 0.9; }
.main-title {
    font-family: var(--font-serif);
    font-size: 3.5rem; font-weight: 700;
    margin-bottom: 60px; line-height: 1.3;
}

/* 빠른 링크 버튼 */
.quick-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.quick-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 140px; height: 140px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(5px); transition: all 0.3s ease; color: #fff;
}
.quick-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px); border-color: #fff;
}
.quick-btn .icon-box { font-size: 2rem; margin-bottom: 10px; }
.quick-btn span { font-size: 1rem; font-weight: 500; }
.custom-icon { height: 40px; width: auto; display: block; margin: 0 auto 10px; }

/* =========================================
   [서브 페이지 전용 스타일 (기존 유지)]
   ========================================= */
.sub-visual {
    position: relative; width: 100%; height: 350px;
    background: url('https://images.unsplash.com/photo-1518182170546-0766aa6f6a56?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    display: flex; align-items: center; justify-content: center;
    margin-top: 0;
}
.sub-visual::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}
.sub-title-area { position: relative; z-index: 1; text-align: center; color: #fff; }
.sub-title-area h2 { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 10px; }
.sub-title-area p { font-size: 1rem; opacity: 0.8; }

.sub-container {
    max-width: 1000px; margin: 0 auto; padding: 80px 20px;
    background-color: #fff; min-height: 500px;
}
.page-header { margin-bottom: 50px; text-align: center; }
.page-header h3 {
    font-family: var(--font-serif); font-size: 2rem;
    color: var(--nsb-text-main); display: inline-block;
    border-bottom: 2px solid #ddd; padding-bottom: 10px;
}
/* 사이드바 본체 */
.offcanvas-right {
    position: fixed;
    top: 0;
    right: -100%; /* 처음에 화면 오른쪽 밖으로 숨김 (너비만큼 마이너스) */
    width: 100%;  /* 사이드바 너비 */
    height: 100%;
    background-color: white;
    color: #333333;
    transition: right 0.3s ease; /* 부드럽게 움직이는 효과 */
    padding: 20px;
    box-sizing: border-box;
    z-index: 1000;
}

/* 활성화 클래스 (이게 붙으면 나타남) */
.offcanvas-right.active {
    right: 0;
}

/* =========================================
   [모바일 반응형]
   ========================================= */
@media (max-width: 992px) {
    .anguk-header { height: 70px; } /* 모바일 헤더 높이 조정 */
    .header-inner { max-width: 100%; }

    .logo-img { height: 40px; }
    .logo-text { font-size: 1.3rem; }

    .anguk-header .menu { display: none; } /* PC 메뉴 숨김 */
    .mobile-btn { display: block; } /* 햄버거 버튼 노출 */

    .main-title { font-size: 2.2rem; }
    .quick-btn { width: 100px; height: 100px; }
}

/* [긴급 수정] 강제로 초기 상태 투명 + 흰색 글씨 만들기 */

/* 1. 스크롤 안 된 상태(:not(.scrolled))에서는 무조건 배경 투명 */
.anguk-header:not(.scrolled) {
    /*background-color: transparent !important;*/
    /*background: transparent !important;*/
    background: rgba(0, 0, 0, 0.45) !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
}

/* 2. 글씨랑 로고 텍스트 무조건 흰색 */
.anguk-header:not(.scrolled) .logo-text,
.anguk-header:not(.scrolled) .menu li a,
.anguk-header:not(.scrolled) .mobile-btn {
    color: #ffffff !important;
}

/* 3. 로고 이미지 흰색으로 반전 (빨간 도장 -> 흰색) */
.anguk-header:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1) !important;
}
.nsb-bg
{
    background-color : #EAE4DA;
}
.nsb-bg2
{
    background-color : #efefef;
}
.nsb-bg-section {
    margin-top: 70px;
    height: 600px;
}

/* PC 화면 (992px 이상일 때 90px로 변경) */
@media (min-width: 992px) {
    .nsb-bg-section {
        margin-top: 90px;
    }
}


<style>
     /* 드롭다운 화살표(세모) 없애기 - 이미지랑 똑같이 깔끔하게! */
 .nsb-breadcrumb .dropdown-toggle::after {
     display: none;
 }

/* 드롭다운 메뉴 스타일 */
.nsb-breadcrumb .dropdown-menu {
    /* 기준 위치에서 조금씩 옮겨보면서 여보 마음에 드는 숫자로 바꿔! */
    margin-top: 10px !important;    /* 위아래 간격 조절 */
    transform: translateX(-10px);  /* 왼쪽으로 10px 이동 (+면 오른쪽) */
    min-width: 160px;              /* 메뉴 너비도 조절 가능 */
}

.nsb-breadcrumb .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 20px;
}

.nsb-breadcrumb .dropdown-item.active,
.nsb-breadcrumb .dropdown-item:active {
    background-color: #f8f9fa;
    color: #76343d;
    font-weight: bold;
}

.nsb-breadcrumb .dropdown-item:hover {
    background-color: #fff5f5;
    color: #76343d;
}
