﻿/* ------------------------------------------------------ */
/* 8. 서브페이지 공통 스타일 */
/* ------------------------------------------------------ */
table{
    border-collapse: collapse;
	white-space: nowrap;
}
.font-teal{color:teal;}
.font-red{color:red;}
.font-blue{color:blue;}
.font-orange{color:orange;}
/* 서브페이지 메인 컨테이너 */
.sub-main-content {
    max-width: 1200px;
    margin: 60px auto 50px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px; /* LNB와 콘텐츠 사이 간격 */
    align-items: flex-start;
}

/* 8.1 서브페이지 타이틀 (빵 부스러기 영역) */
/*사용 안 함
.page-title-area {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 10px 20px;
    background-color: #f0f0f0;
}
.page-title-area h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 5px;
}
.page-title-area .breadcrumb {
    font-size: 0.9em;
    color: #333;
}
.page-title-area .breadcrumb a {
    color: #0056b3;
    text-decoration: none;
}
    */

/* 8.2 좌측 서브 메뉴 (LNB) */
.left-menu{
    /*position: fixed;*/
    width: 180px;
}
.lnb-area {
    flex: 0 0 180px; /* PC에서 고정 너비 250px */
    /*border: 1px solid #ddd;*/
    background-color: white;
    margin-top:50px;
    width: 180px;
}
.lnb-area h3 {
    background-color: #0056b3;
    color: white;
    padding: 10px;
    margin: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
    text-align: center;
    border-radius: 10px;
}
.lnb-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lnb-menu li a {
    display: block;
    padding: 5px 15px;
    border: 1px dashed #bbb;
    border-radius: 5px;
    color: #444;
    text-decoration: none;
    transition: background-color 0.2s;
    margin-bottom: 5px;
}
.lnb-menu li a:hover {
    background-color: #f7f7f7;
    border: 1px solid #bbb;
}
.lnb-menu li a.active {
    background-color: #f0f8ff; /* 현재 페이지 강조 */
    color: #0056b3;
    font-weight: bold;
    border: 1px dashed #0056b3;
}

/* 8.3 메인 콘텐츠 영역 */
.sub-content-area {
    flex-grow: 1; 
    min-height: 400px; 
    padding: 20px;
    /*background-color: white;
    border: 1px solid #ddd;*/
}

/* ?? 새로운 서브 헤더 (h3 + Breadcrumb) 스타일 */
.sub-content-area .sub-header {
    display: flex;
    justify-content: space-between; 
    align-items: flex-end; 
    
    border-bottom: 2px solid #ccc; 
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sub-content-area h3 {
    margin-top:-20px;
    margin-bottom: 0; 
    font-size: 1.5em;
    color: #0056b3;
    line-height: 1;
}

/* ?? 이동된 Breadcrumb 스타일 조정 */
.sub-content-area .breadcrumb {
    font-size: 0.85em; 
    color: #999; 
    white-space: nowrap;
}
.sub-content-area .breadcrumb a {
    color: #999;
    text-decoration: none;
}

.sub-content-area p {
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

/* --- 서브 사이드 배너 기본 스타일 (PC) --- */
.sub-side-banners{
    margin-top:20px;
}
.sub-side-banners .banner-item:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* ------------------------------------------------------ */
/* 모바일 반응형 스타일: 768px 이하 화면 수정 */
/* ------------------------------------------------------ */
@media (max-width: 768px) {
    /* ... (기존 모바일 CSS 유지) ... */

    /* ?? 서브페이지 모바일 조정 */
    .sub-main-content {
        flex-direction: column; /* 세로로 쌓기 */
        gap: 20px;
    }
    
    .left-menu{
        position: static;
        width: auto;
    }
    /* LNB를 콘텐츠 위로 올리고 너비를 100%로 설정 */
    .lnb-area {
        order: -1; /* 가장 위로 이동 */
        flex: 0 0 auto;
        width: 100%;
        border-radius: 8px;
        margin-top: -10px;
    }
    
    /* 모바일 LNB 메뉴는 가운데 정렬, 가로 스크롤 가능하게 (옵션) */
    .lnb-menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        border-bottom: 1px solid #ddd;
    }
    .lnb-menu li a {
        border-bottom: none;
        padding: 10px 15px;
        flex-shrink: 0; /* 항목 너비 유지 */
        border:1px #ccc solid !important;
        border-radius: 0;
        margin-right:3px;
    }
    .lnb-menu li a.active {
        background-color: #0056b3;
        color: #fff;
    }
    .lnb-area h3 {
        display: none; /* 모바일에서 LNB 타이틀 숨김 */
    }
    
    .sub-content-area {
        width: 100%;
        padding: 15px;
        color:#333;
    }
    
    .page-title-area {
        padding: 15px 10px 5px 10px;
    }

    #top-line-art{
        display: none;
    }

    .sub-side-banners{
        display: none;
    }

}

/*==불꽃 시작==========================================================*/
/* ====== SCENE ====== */
#top-line-art {
    left: 0;
    margin-top: 1px;
    position: absolute;
    width: 420px;
    height: 80px;
    background: #fff url("../image/top_line_art80-1.png") no-repeat bottom center;
    background-size: contain;
    overflow: hidden;
}

/* ====== FIREWORK LAYER ====== */
#fireworks {
    position: absolute;
    inset: 0;
    z-index: 1; /* 도시 라인아트 뒤 */
    pointer-events: none;
}

/* ====== ROCKET ====== */
.rocket {
    position: absolute;
    top: 50%;                 /* 중앙에서 시작 */
    width: 2px;
    height: 16px;
    background: #333;
    transform: translate(-50%, 0);
    animation: rise 1s ease-out forwards;
}

@keyframes rise {
    to {
        transform: translate(-50%, -30px);
        opacity: 0;
    }
}

/* ====== PARTICLE ====== */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 1;
    transition:
        transform 1s ease-out,
        opacity 1s ease-out;
    box-shadow: 0 0 8px currentColor;
}
/*==불꽃 끝==========================================================*/