/* 기본 리셋 및 폰트 */
* { 
    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;
}


/* rental */
.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;
}


/* 타이틀 스타일 */
.section-header { 
    text-align: center; 
    margin-bottom: 50px; 
}

.title-main {
    font-size: 2rem; 
    font-weight: 800; 
    color: #1b264f;
    text-align: center;
    margin-bottom: 20px;
}

.title-line {
    width: 35px;
    height: 3px;
    text-align: center;
    background-color: #1b264f;
    margin: 15px auto;
    display: block;
}

/* 임대 방법 카드 그리드 */
.process-grid { 
    display: grid; 
    grid-template-columns: 300px 300px; 
    gap: 50px; 
    margin: 0 auto 100px;
    justify-content: center;
}

.process-card {
    width: 300px;
    height: 400px;
    background: #fff;
    border: 1px solid #eee;
    padding: 40px;
    border-radius: 15px;
    position: relative;
    /* 요청하신 그림자 수치 적용 */
    box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.25);
    min-height: 250px;
}

.card-num { 
    font-size: 2.5rem; 
    font-weight: 900; 
    color: #1b264f;
    display: block;
    margin-bottom: 15px;
}

.process-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1a2a4e;
}

.process-card p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #555;
}

.tel-num {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
}

.card-icon {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.proc-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 비율 유지하며 꽉 차게 */
    display: block;
}


/* 임대료 인포그래픽 */
/* 3. 임대료 인포그래픽 수직 레이아웃 */
.fee-infographic {
    display: flex;
    flex-direction: column; /* 세로로 나열 */
    align-items: center;
    gap: 20px;
    margin-bottom: 100px;
}

/* 상단: 공단 + 환자 가로 배치 */
.fee-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.fee-middle-plus {
    margin: 10px 0;
}

.plus-img {
    width: 40px; 
    height: auto;
}

/* 중간: 화살표 크기 조절 */
.fee-middle-arrow {
    margin: 10px 0;
}

.arrow-img {
    width: 30px; /* 화살표 크기는 이미지에 맞춰 조절하세요 */
    height: auto;
}

/* 하단: 기기 이미지 */
.main-devices-img {
    width: 500px; /* 기기 묶음 이미지는 좀 더 크게 */
    max-width: 100%;
    height: auto;
}

/* 기존 fee-item 스타일 유지 및 보강 */
.fee-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fee-img {
    width: 200px;
    height: auto;
}

.math-symbol {
    font-size: 5rem;
    font-weight: 300;
    color: #333;
}

.label-box { 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-size: 1.1rem; 
    font-weight: bold; 
    border: 1px solid #1b264f;
}

.label-box.sky { 
    background: #fff; 
    color: #1b264f
}

.label-box.white { 
    background: #fff; 
    color: #1b264f; 
}

.label-box.navy { 
    background: #1b264f; 
    color: #fff; 
}

.fee-type { 
    font-weight: 800; 
    color: #1b264f; 
    margin-top: 5px; 
    font-size: 1.3rem;
}

/* --- 보험급여 섹션 (2페이지 spec-list와 레이아웃 동일화) --- */
.insurance-container {
    border-top: 2px solid #1b264f; /* 상단 굵은 선 */
    margin-top: 2rem;
}

/* 헤더 스타일 */
.ins-header-row {
    display: flex;
    align-items: stretch;
    background-color: #f8f9fa;
    padding: 1rem 0;
    font-weight: 800;
    color: #1b264f;
    border-bottom: 1px solid #ddd;
}
.ins-header-row span {
    display: flex;
    flex: 1;
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.3;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}

/* 리스트 아이템 스타일 (spec-item과 동일) */
.ins-item {
    display: flex;
    border-bottom: 1px solid #eee;
}
.ins-item span {
    flex: 1;
    padding: 1.2rem 0;
    text-align: center;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ins-item span:first-child {
    font-weight: 700;
    color: #555;
}

/* 강조 행 (환자부담금) */
.highlight-row {
    font-weight: 1000;
}
/* .highlight-row span:last-child, 
.highlight-row span:nth-child(2) {
    color: #1b264f;
} */

.highlight-row span {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1b264f;
    background-color: #f7f7f7;
}

.ins-item.highlight-row {  
    border: 1px solid #1b264f;
}


.table-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
    text-align: left;
}

/* 반응형 코드 */
/* --- 모바일 반응형 (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;
    }

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

    .section-header {
        margin-bottom: 20px;
    }

    /* [1] process-grid: 한 줄에 카드 1개씩 (큼직하게) */
    .process-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* 무조건 한 줄에 하나 */
        gap: 15px !important;
        padding: 10px !important;
    }

    .process-card {
        width: 100% !important;
        padding: 25px !important; /* 카드 내부 여백을 넉넉히 */
        height: 200px;
        word-break: keep-all;
        font-size: 1.1rem;
    }

    .process-card .tel-num {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }


    /* [2] fee-top-row: 모바일에서도 한 줄(Row) 유지 */
    .fee-top-row {
        display: flex !important;
        flex-direction: row !important; /* 수직 쌓기 방지 */
        justify-content: space-between !important;
        gap: 5px !important; /* 간격 최소화 */
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box;
    }

    .fee-item {
        flex: 1 !important; /* 모든 아이템이 동일한 비율 점유 */
        padding: 15px 5px !important;
        font-size: 1.1rem !important; /* 한 줄에 다 넣기 위해 글자 크기 축소 */
        text-align: center;
        border-radius: 5px;
        /* 글자가 너무 길어질 경우 대비 */
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fee-img {
        width: 100%;
    }

    .label-box {
        padding: 5px 10px;
    }

    .label-box.sky, .label-box.white, .fee-type {
        font-size: 1.1rem;
    }

    .label-box.navy {
        font-size: 1.1rem;
    }

    .fee-middle-plus {
        width: 50px;
    }

    .fee-middle-plus, .fee-middle-arrow {
        text-align: center;
    }

    .plus-img {
        width: 60%;
    }
    
    .arrow-img {
        width: 40%;
    }
    
    .insurance-container {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 40px !important;
        margin-bottom: 10px !important;
    }

    .ins-header-row > span {
        font-size: 1.25rem;
        padding: 5px;
        word-break: keep-all;
    }

    .ins-item > span {
        font-size: 1.1rem;
        word-break: keep-all
    }

    .highlight-row > span {
        font-size: 1.15rem;
        line-height: 1.6 !important;
        word-break: keep-all; /* 한글 단어 끊김 방지 */
    }

    .table-note {
        font-size: 0.8rem;
        word-break: keep-all;    
    }
}