/* 기본 리셋 및 폰트 */
* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.loaded {
    opacity: 1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #d1d9e2;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box-link {
    text-decoration: none; 
    color: inherit;       
    display: inline-block;
}

.logo-box-link:hover .logo {
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 50px;
}

nav ul li a, .logo {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.4rem;
}

.hamburger {
    display: none; /* PC에서는 숨김 */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
}

/* Footer */
footer {
    background-color: #1b264f;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.footer-logo-circle img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
    margin-top: 15px;
}

.info-grid p {
    font-size: 1rem;
    color: #ccc;
}

.info-grid strong {
    color: #fff;
    margin-right: 15px;
    width: 60px;
    display: inline-block;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 50px;
    border-top: 1px solid #2e3b5e;
    padding-top: 20px;
}







/* equipment.html */
/* --- 장비 소개 제목 섹션 (h2 대신 p 사용) --- */
.page-content { padding: 80px 0; }
.product-section:first-child { margin-bottom: 200px; }

.content-container {
    display: block; 
    width: 85%;       
    max-width: 1200px; 
    margin: 0 auto;
    padding: 80px 0;
}

.title-main-left {
    color: #1b264f;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    text-align: left; /* 첫 페이지와 정렬 통일 */
}
.title-sub {
    color: #888;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
.title-line-left {
    width: 35px;
    height: 3px;
    background-color: #1b264f;
    margin: 1.2rem 0 3rem;
}

/* --- 제품 정보 상단 (이미지 & 아이콘 리스트) --- */
.product-info {
    display: flex;
    gap: 6rem;
    justify-content: space-between;
    margin-bottom: 3rem;
    align-items: flex-start;
}
.product-visual { 
    flex: 1;
    text-align: center;
}

.main-prod-img {
    width: 100%;
    max-width: 380px;
    border-radius: 15px;
    box-shadow: 4px 4px 8px 4px rgba(0, 0, 0, 0.25);
}

.model-name {
    margin-top: 1.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a2a4e;
}

.feature-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.feature-item {
    display: flex;
    width: 500px;
    align-items: center;
    background-color: #ffffff;
    border-radius: 12px;
    font-size: 1.1rem;
    box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.25);
}

.feature-item img {
    width: 40px;
}

/* 왼쪽: 아이콘 박스 (흰색 배경 + 테두리) */
.icon-box {
    width: 80px;          /* 아이콘이 잘 보이도록 크기 확보 */
    height: 55px;
    background-color: #ffffff;
    border: 1px solid #333;
    border-radius: 12px 0 0 12px;  /* 시안 같은 둥근 사각형 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;           /* 텍스트 박스보다 위로 */
    position: relative;
}


/* 오른쪽: 텍스트 박스 (배경색 있음) */
.text-box {
    flex: 1;
    height: 55px;
    background-color: #576574; /* 시안의 짙은 그레이/네이비 배경 */
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 20px 0 40px;    /* 왼쪽 여백을 주어 아이콘과 거리 확보 */
    margin-left: -10px;        /* 아이콘 박스와 살짝 겹치게 배치 */
    border-radius: 0 12px 12px 0; /* 오른쪽만 둥글게 */
    font-size: 1.2rem;
    font-weight: bold;
}

/* --- 밑줄 스타일의 사양 리스트 (중요 수정 사항) --- */
.spec-container {
    border-top: 2px solid #1b264f; /* 상단 굵은 선 */
}

.spec-header-row {
    display: flex;
    background-color: #f8f9fa;
    padding: 1rem 0;
    font-weight: 800;
    color: #1b264f;
    border-bottom: 1px solid #ddd;
    font-size: 1.3rem;
}

.spec-header-row span {
    flex: 1;
    text-align: center;
    font-size: 1.35rem;
    line-height: 1.3;
}

.spec-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #eee; /* 칸막이 대신 연한 밑줄만 사용 */
    font-size: 1.2rem;
}

.spec-item span:first-child {
    display: flex;
    flex: 1;
    text-align: center;
    font-weight: 700;
    color: #555;
    justify-content: center;
    align-items: center;
}

.spec-item span:last-child {
    flex: 1;
    text-align: center;
    color: #333;
}

/* --- 임대료 정보 (밑줄 스타일) --- */
.rent-container {
    margin-top: 4rem;
}

.rent-title {
    font-weight: 800;
    color: #1b264f;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.rent-table {
    border-top: 2px solid #1b264f;
}

.rent-header, .rent-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    color: #333;
    text-align: center;
}

.rent-header {
    background-color: #f8f9fa;
    font-weight: 800;
    color: #1b264f;
    font-size: 1.35rem;

}

.rent-row {
    font-size: 1.2rem;
}

.rent-header span, .rent-row span {
    flex: 1;
}


/* 반응형 코드 */
/* --- 모바일 반응형 (768px 이하) 최종 수정분 --- */
@media (max-width: 768px) {
    /* 1. 메뉴 숨기기 및 햄버거 노출 */
    .pc-nav { display: none !important; }

    .mobile-nav.active { 
        display: block !important; /* 클릭 시에만 나타남 */
    }

    /* 2. 햄버거 버튼 아이콘 (X자 변신 준비) */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1100; /* 메뉴보다 위에 있도록 */
        padding: 5px;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #1b264f;
        transition: all 0.3s ease-in-out; /* 부드러운 변신 효과 */
    }

    /* 3. 메뉴가 active일 때 햄버거 -> X자 변신 */
    /* 첫 번째 줄을 45도 회전 */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    /* 두 번째 줄은 투명하게 */
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    /* 세 번째 줄을 -45도 회전 */
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 3. 모바일 메뉴 (가로 한 줄 문제 해결) */
    .mobile-nav {
        display: block;
        max-height: 0;    
        overflow: hidden;  
        width: 100%;
        background: #d1d9e2;
        position: absolute; /* 헤더 아래로 겹치게 */
        top: 60px; /* 헤더 높이에 맞춤 */
        left: 0;
        z-index: 1000;
        border-bottom: none;
        transition: max-height 0.5s ease-in-out, border-bottom 0.3s;
    }

    .mobile-nav.active { 
        display: block !important;
        max-height: 500px; /* 메뉴가 충분히 펼쳐질 수 있는 넉넉한 높이 */
    }

    .mobile-nav ul {
        display: flex !important;
        flex-direction: column !important; /* 가로 -> 세로 강제 전환 */
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        gap: 0;
    }

    .mobile-nav ul li {
        width: 100%;
        border-bottom: 1px solid #ddd;
        display: flex;
    }

    .mobile-nav ul li a {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-align: center; /* 메뉴 글자 가운데 정렬 */
        text-decoration: none;
        font-weight: 600;
        box-sizing: border-box;
    }

    /* 5. 푸터 텍스트 가운데 정렬 */
    .footer-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px;
    }
    .footer-logo-circle {
        margin: 0 auto 10px !important; /* 로고 중앙 */
    }
    .info-grid {
        grid-template-columns: 1fr !important;
        display: block !important; /* 그리드 해제하고 텍스트 정렬 */
    }
    .info-grid p {
        text-align: center !important;
        margin-bottom: 8px;
    }
    .info-grid strong {
        display: inline-block !important; /* 항목명도 가운데로 */
        width: auto !important;
        margin-right: 10px !important;
    }

    .content-container {
        width: 100%;
        margin: 0;
        padding: 50px 15px;
    }

    .product-header {
        padding-left: 15px;
    }

    .title-main-left {
        font-size: 1.5rem;
    }

    .title-sub {
        font-size: 1rem;
    }

    .title-line-left {
        width: 25px;
        height: 2px;
        margin-bottom: 20px;
    }

    /* [2] product-info: 이미지 위, 특징 리스트 아래 배치 */
    .product-info {
        display: flex !important;
        flex-direction: column !important; /* 수직 쌓기 */
        align-items: center !important;
        gap: 30px !important;
        padding: 20px 15px !important;
    }

    .icon-box .text-box {
        height: 48px;
    }

    .text-box {
        font-size: 1.1rem;
        word-break: keep-all;
        padding: 0 10px 0 30px;
    }

    .icon-box img {
        width: 35px;
    }

    .feature-list {
        width: 100% !important; /* 고정 너비 해제 */
        max-width: 100% !important;
    }

    .feature-item {
        width: 100%;
    }

    /* [3] spec-container: 여백 10, 글씨 크기 조절 */
    .spec-container {
        width: 100% !important;
        padding: 0 10px !important; /* 양쪽 여백 10 */
        box-sizing: border-box !important;
        margin-top: 40px !important;
        border-top: none;
    }

    .spec-header-row {
        font-size: 1.25rem !important; /* 제목 크기 축소 */
        text-align: center;
        border-top: 2px solid #1b264f;
    }

    .spec-item {
        font-size: 1.1rem;
        word-break: keep-all
    }

    /* [4] rent-container: 여백 10, 글씨 크기 조절 */
    .rent-container {
        width: 100% !important;
        padding: 0 10px !important; /* 양쪽 여백 10 */
        box-sizing: border-box !important;
        margin-top: 40px !important;
        margin-bottom: 50px !important;
    }

    .rent-title {
        font-size: 1.25rem;
        word-break: keep-all;
    }

    .rent-header {
        font-size: 1.25rem;
    }

    .rent-row {
        font-size: 1.1rem;
        word-break: keep-all;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .rent-info-text {
        font-size: 0.95rem !important; /* 너무 큰 텍스트 축소 */
        line-height: 1.6 !important;
        word-break: keep-all; /* 한글 단어 끊김 방지 */
    }

    /* 공통: 2페이지의 모든 테이블 가로 스크롤 방지 */
    table {
        width: 100% !important;
        table-layout: fixed; /* 테이블이 화면 밖으로 나가지 않게 고정 */
    }
}
