@charset "utf-8";
:root {
    --bg-paper: #f2eee5;
    --bg-paper-dark: #e5e0d4;  
    --accent-brown: #4a443f;   
    --point-blue: #1e3799;
    --text-main: #2d2926;
}

body { 
    background-color: var(--bg-paper); 
    font-family: 'Noto Sans KR', sans-serif; 
    color: var(--text-main);
    line-height: 1.8;
}

/* 2. 상단바 및 로고 공통 */
.top-frame {
    position: fixed; top: 0; width: 100%; height: 120px;
    background: rgba(242, 238, 229, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.logo img { height: 70px; }

/* 3. 반응형 마법 (이게 핵심입니다) */
@media (max-width: 1200px) {
    .header-inner, .container, .footer-inner {
        width: 95%; 
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column; 
        margin-top: 140px; 
    }
    /* 서브페이지의 왼쪽 메뉴와 본문도 세로로 정렬 */
    .sidebar, .content { 
        width: 100% !important; 
    }
    .equipment-grid {
        grid-template-columns: 1fr; 
    }
    #popup { display: none; }
}

@media (max-width: 768px) {
    .top-frame { height: 80px; }
    .logo img { height: 50px; }
    .nav { gap: 15px; }
    .nav-item > a { font-size: 14px; }
    .sub-menu { display: none; }
    
    /* 모든 이미지가 화면 밖으로 튀어나가지 않게 조절 */
    img { max-width: 100%; height: auto; }
}