/* CSS 변수 정의 */
:root {
    --primary-color: #004ea2;
    --secondary-color: #1473e6;
    --accent-color: #ff6b35;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 컨테이너 */
.container {
    max-width: 1420px;
    margin: 0 auto;
    padding:0 30px;
}

/* 헤더 */
.header {
    background-color: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 61px;
    margin-top: 23px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 61px;
}

.logo img {
}

.header-buttons {
    display: flex;
    gap: 0;
    margin-left: auto;
}

/* 데스크탑/태블릿에서 모바일 메뉴 숨김 (우측 빈 여백 방지) */
.mobile-menu {
    display: none;
}

.btn-login, .btn-register, .btn-logout {
    border: 1px solid #D0D0D0;
    background-color: var(--background-color);
    border-radius: 0;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    border-right: none;
    font-weight: 500;
    height: 42px;
}

.btn-register, .btn-logout {
    border-right: 1px solid #D0D0D0;
    width: 99px;
}

.btn-login {
    width: 85px;
}

.btn-login:hover, .btn-register:hover, .btn-logout:hover {
    background-color: var(--light-gray);
}
.btn-login:active, .btn-register:active, .btn-logout:active {
    border: none;
    background-color: #fff;
}
.btn-register:active {
    border-left: 1px solid #D0D0D0;
    background-color: #fff;
}

/* 메인 네비게이션 */
.main-nav {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
}

/* PC/태블릿 환경에서 메뉴 버튼 표시 */
.desktop-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #2357A3;
    border: none;
    cursor: pointer;
    margin-left: 20px;
}

.desktop-menu-btn::before,
.desktop-menu-btn::after,
.desktop-menu-btn span {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background-color: white;
    margin: 3px 0;
    transition: var(--transition);
}

.desktop-menu-btn span {
    width: 20px;
}

.nav-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
    padding: 0;
}

.nav-item {
    position: relative;
}
.nav-item.current .nav-link {
    color: #1473E6;
}
.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    font-size: 24px;
    transition: var(--transition);
    height: 46px;
    padding: 10px;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: #1473E6;
}

/* 아무 액션 없을 때 현재 페이지(current)만 색상 표시 */
.nav-link.current {
    color: #1473E6;
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    background-image: url('/images/web/bg-menu-overlay.png');
    background-repeat: no-repeat;
    background-position: calc(50% - 560px) center;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-left: 1px solid #CCCCCC;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    max-width: 1380px;
    width: 884px;
    margin: 0 auto;
}
.menu-category {
    width: 203px; /* 4개 카테고리를 가로로 배치 */
    margin-bottom: 20px;
    height: 263px;
}
.menu-category.active {
    width: 203px;
    height:268px;
}
/* 푸터 */
.footer {
    background-color: var(--light-gray);
    border-top: 1px solid var(--border-color);
    padding: 20px 0 25px 0;
    margin-top:20px;
    width: 100%;
}

.footer-container {
    max-width: 1420px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:0 30px;
}

/* PC 버전에서 footer-left, footer-right 구조 유지 */
.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-right {
    display: flex;
    align-items: center;
}

/* 태블릿 버전용 구조 (기본적으로 숨김) */
.footer-top,
.footer-bottom {
    display: none;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    width: 112px;
    height: 112px;
    background-image: url('/images/web/foot-logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.footer-info p {
    font-size: 16px;
    color: #4D4D4D;
    margin: 0;
    line-height: 24px;
}

.footer-info p:first-child {
    font-size: 18px;
    color: #4D4D4D;
    line-height: 24px;
    font-weight: 700;
}

.family-site-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #f8f8f8;
    border: 1px solid #ADADAD;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    color: #4D4D4D;
    position: relative;
    font-size: 18px;
    width: 450px;
    font-weight: 600;
}

.family-site-btn::after {
    content: '';
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background-color: #ADADAD;
}

/* 플러스 아이콘: CSS 의사요소로 구현 */
.family-site-btn .plus-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}
.family-site-btn:hover .plus-icon { /* 호버 시에도 기본 크기 유지 */
    transform: translateY(-50%) scale(1);
}
.family-site-btn .plus-icon::before,
.family-site-btn .plus-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 1px; /* 요청: 라인 1px */
    background-color: #666;
    transform-origin: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.family-site-btn .plus-icon::before {
    transform: translate(-50%, -50%) rotate(0deg);
}
.family-site-btn .plus-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* hover 시: X 아이콘, 색상 #BFBFBF */
.family-site-btn:hover .plus-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
    background-color: #666;
}
.family-site-btn:hover .plus-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
    background-color: #666;
}

.family-site-btn:hover {
    background-color: #fff;
}

/* 패밀리 사이트 드롭다운 */
.family-site {
    position: relative;
    width: 450px;
}

.family-site .family-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px; /* 버튼 위로 펼쳐지도록 */
    background: #fff;
    border: 1px solid #ADADAD;
    display: none;
    z-index: 1000;
    border-bottom: none;
}

.family-site.open .family-dropdown {
    display: block;
}

.family-site .family-list {
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    padding: 10px
}

.family-site .family-item {
    padding: 8px 16px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    height: 40px;
}

.family-site .family-item:hover,
.family-site .family-item:focus,
.family-site .family-item.active {
    background-color: #E1E1E1;
}

/* 활성 상태: 2.5배 확대, 색상 #BFBFBF, 1px 라인 유지 */
.family-site.open .family-site-btn .plus-icon {
    transform: translateY(-50%);
}
.family-site.open .family-site-btn .plus-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
    background-color: #666;
}
.family-site.open .family-site-btn .plus-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
    background-color: #666;
}

/* ========================================
   인트로 페이지 스타일
   ======================================== */
/* 인트로 페이지 전체 컨테이너 */
.intro-container { 
    min-height: 100vh;
    width: 100vw;
    background: url('/images/web/bg-intro.png') no-repeat top center;
    background-size: cover;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-container:after{
    content: '';
    position: absolute; 
    background: url('/images/web/bg-intro.png') no-repeat bottom center;
    background-size: cover;
    height: 520px;
    left:0px;
    top: 100vh;
    z-index: 1;
}
/* 로그인 페이지 메인 래퍼 */
.intro-wrapper {
    height: 800px;
    margin:0 auto;
}

.intro-container .content {
    margin:0 auto;
    height: 500px;
    position: relative;
    margin-top:90px;
}

/* 로고 */
.intro-logo {
    flex: none;
    height: 65px;
    left: 547px;
    top: 210px;
    width: 288px;
    image-rendering: pixelated;
    fill: rgba(0, 0, 0, 1);
    color: rgba(0, 0, 0, 1);
    margin: 0 auto 14px auto;
}

/* 메인 텍스트 */
.intro-title {
    --framer-paragraph-spacing: 0px;
    flex: none;
    height: auto;
    left: 402px;
    top: 289px;
    white-space: pre;
    width: auto;
    font-family: "Inter", "Inter Placeholder", sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: rgb(44, 44, 44);
    margin: 0 auto 24px auto;
    padding: 0;
    text-align: center;
}

/* 인트로 그리드 */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 162px;
    gap: 20px;
    margin-top: 54px;
}

.intro-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 16px 48px;
    background: #18B6F0;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 165px;
}
.intro-card-wide .card-title {
    margin-top: 200px;
}
.intro-card:hover { transform: none; box-shadow: none; }

.card-text { z-index: 1; }
.card-text.center { text-align: center; }
.card-title { font-family: "Inter", sans-serif; font-weight: 500; font-size: 28px; line-height: 1.2; color:#fff; }

/* 인트로 특정 카드 텍스트 색상 */
.intro-grid .intro-card:nth-child(2) .card-title,
.intro-grid .intro-card:nth-child(4) .card-title {
    color: #99D3FF;
}
.intro-grid .intro-card{
    position: relative;
}
.intro-card:nth-child(1) .card-illust.ic-intro-01
{
    position: absolute;
    background: url('/images/web/ic-intro-01.svg') no-repeat top left;
    background-size: contain;
    width: 133px;
    height: 205px;
    top:-40px;
    right: 0;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, top 0.3s ease;
}
.intro-card:nth-child(1):hover .card-illust.ic-intro-01{ 
    background: url('/images/web/ic-intro-01-over.svg') no-repeat top left; 
    background-size: contain;
    width: 156px;
    height: 225px;
    top:-60px;
    right: 0;
    transform: scale(1);
}
.intro-card:nth-child(2) { 
    background: #2B6FD9 url('/images/web/ic-intro-02.svg') no-repeat right 48px center;
    background-size: auto 70%;
    transition: background-size 0.3s ease;
}
.intro-card:nth-child(2):hover { 
    background: #2B6FD9 url('/images/web/ic-intro-02-over.svg') no-repeat right 38px center;
    background-size: auto 90%;
}
.intro-card:nth-child(3) { 
    background: #18B6F0 url('/images/web/ic-intro-03.svg') no-repeat right 48px center;
    background-size: auto 70%;
    transition: background-size 0.3s ease;
}
.intro-card:nth-child(3):hover { 
    background: #18B6F0 url('/images/web/ic-intro-03-over.svg') no-repeat right 38px center;
    background-size: auto 90%;
}
.intro-card:nth-child(4) { background: #2B6FD9 url('/images/web/ic-intro-04.svg') no-repeat right 48px center;
    background-size: auto 70%;
    transition: background-size 0.3s ease;
}
.intro-card:nth-child(4):hover { 
    background: #2B6FD9 url('/images/web/ic-intro-04-over.svg') no-repeat right 38px center;
    background-size: auto 90%;
}
.intro-card-wide {
    grid-column: 3 / 4;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #7FB2FF url('/images/web/ic-intro-05.svg') no-repeat center 60px;
    background-size: contain;
    height: 344px;
    transition: background-size 0.3s ease;
}
.intro-card-wide:hover {
    background: #7FB2FF url('/images/web/ic-intro-05-over.svg') no-repeat center 40px;
    background-size: 120% auto;
}

/***인트로***/
@media (min-width: 1130px) {
    .intro-card{width: 360px;}
    .intro-card-wide { 
        background-size: 342px auto;
    }
}
@media (min-width: 601px) and (max-width:  1129px){/*
    .intro-card{width: 300px;}
    .intro-card-wide { 
        background-size: 285px auto;
    }*/
    .intro-container {
        background: url('/images/web/bg-intro-834.png') no-repeat top center;
        background-size: 100% 100%;
        overflow-y: auto; /* 스크롤 허용 */
        overflow-x: hidden;
        align-items: flex-start;
        height: 1580px;
    }
    .intro-container:after{
        content: '';
        position: absolute; 
        background: url('/images/web/bg-intro-834.png') no-repeat bottom center;
        background-size: cover;
        height: 420px;
        width: 100%;
        left:0px;
        top: 1170px;
        z-index: 1;
    }
    .intro-container .intro-wrapper { width: 100%; height: auto; }
    .intro-container .content { height: auto; margin:0 30px; margin-top: 290px; }
    .intro-container .container {
        max-width: 790px;
    }
    .intro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 165px; gap: 15px; }
    .intro-grid .intro-card{ height: 165px; }
    /* 카드가 그리드 셀 너비를 꽉 채우도록 고정 */
    .intro-card:not(.intro-card-wide){ 
        width: 100%; 
        box-sizing: border-box; 
    }
    .intro-title { 
        margin-top: 20px;
        margin:0 auto;
        text-align: center;
    }

    .intro-card:nth-child(1) .card-illust.ic-intro-01
    {
        position: absolute;
        background: url('/images/web/ic-intro-01.svg') no-repeat top left;
        background-size: contain;
        width: 133px;
        height: 205px;
        top:-40px;
        right: 0;
    }
    .intro-card:nth-child(1):hover .card-illust.ic-intro-01{ 
        position: absolute;
        background: url('/images/web/ic-intro-01-over.svg') no-repeat top left; 
        background-size: contain;
        width: 156px;
        height: 225px;
        top:-60px;
        right: 0;
    }
    .intro-card:nth-child(2) { background: #2B6FD9 url('/images/web/ic-intro-02.svg') no-repeat right 48px center;}
    .intro-card:nth-child(2):hover { background: #2B6FD9 url('/images/web/ic-intro-02-over.svg') no-repeat right 38px center;}
    .intro-card:nth-child(3) { background: #18B6F0 url('/images/web/ic-intro-03.svg') no-repeat right 48px center;}
    .intro-card:nth-child(3):hover { background: #18B6F0 url('/images/web/ic-intro-03-over.svg') no-repeat right 38px center;}
    .intro-card:nth-child(4) { background: #2B6FD9 url('/images/web/ic-intro-04.svg') no-repeat right 48px center;}
    .intro-card:nth-child(4):hover { background: #2B6FD9 url('/images/web/ic-intro-04-over.svg') no-repeat right 38px center;}
    
    .intro-card-wide { 
        width: 100%; 
        max-width: 750px;
        grid-column: 1 / -1; grid-row: auto;
        height: 280px !important;  
        background:#76AEFF url('/images/web/ic-intro-05.svg') no-repeat 40px center;
        background-size: 342px auto;
    }
    .intro-card-wide:hover {
        background: #7FB2FF url('/images/web/ic-intro-05-over.svg') no-repeat 0px center;
        background-size: 430px auto;}

    .intro-card-wide .card-title {
        margin: auto 0;
        margin-left:320px;
    }
    .card-title { font-size: 28px; }
}

@media (max-width: 600px) {
    .intro-container {
        background: url('/images/web/bg-intro-428.png') no-repeat top center;
        background-size: cover ;
        align-items: flex-start;
        height: 1800px;
    }
    .intro-container:after{
        content: '';
        position: absolute; 
        background: url('/images/web/bg-intro-428.png') no-repeat bottom center;
        background-size: cover;
        height: 270px;
        width: 100%;
        top: 1550px;
        z-index: 1;
    }
    .intro-wrapper { width: 100%; height: auto; }
    .intro-wrapper .content { width: 100%; height: auto; margin-top: 170px; }
    .intro-wrapper .intro-grid { display: flex; flex-direction: column; gap: 16px; margin-top: 90px;}
    .intro-wrapper .intro-card { height: 165px; }
    /* 모바일 전용 순서: 1,3,2,4,5 */
    .intro-card:nth-child(1) .card-illust.ic-intro-01
    {   
        order: 1;
        position: absolute;
        background: url('/images/web/ic-intro-01.svg') no-repeat top left;
        background-size: contain;
        width: 133px;
        height: 239px;
        top:-42px;
        right: 5px;
    }
    .intro-card:nth-child(1):hover .card-illust.ic-intro-01{ 
        position: absolute;
        background: url('/images/web/ic-intro-01-over.svg') no-repeat top left; 
        background-size: contain;
        width: 156px;
        height: 225px;
        top:-60px;
        right: 0;
    }
    .intro-card:nth-child(2) { 
        order: 3; 
        background: #2B6FD9 url('/images/web/ic-intro-02.svg') no-repeat right 48px center;
        background-size: auto 70%;
        transition: background-size 0.3s ease;
    }
    .intro-card:nth-child(2):hover { 
        background: #2B6FD9 url('/images/web/ic-intro-02-over.svg') no-repeat right 38px center;
        background-size: auto 90%;
    }
    .intro-card:nth-child(3) { 
        order: 2; 
        background: #18B6F0 url('/images/web/ic-intro-03.svg') no-repeat right 48px center;
        background-size: auto 70%;
        transition: background-size 0.3s ease;
    }
    .intro-card:nth-child(3):hover { 
        background: #18B6F0 url('/images/web/ic-intro-03-over.svg') no-repeat right 38px center;
        background-size: auto 90%;
    }
    .intro-card:nth-child(4) {  
        order: 4; 
        background: #2B6FD9 url('/images/web/ic-intro-04.svg') no-repeat right 48px center;
        background-size: auto 70%;
        transition: background-size 0.3s ease;
    }
    .intro-card:nth-child(4):hover { 
        background: #2B6FD9 url('/images/web/ic-intro-04-over.svg') no-repeat right 38px center;
        background-size: auto 90%;
    }
    
    .intro-card-wide { 
        order: 5; 
        width: 100%; 
        max-width: 750px;
        grid-column: 1 / -1; grid-row: auto;
        height: 340px !important;  
        background:#76AEFF url('/images/web/ic-intro-05.svg') no-repeat center 60px;
        background-size: 342px auto;
        transition: background-size 0.3s ease;
    }
    .intro-card-wide:hover {
        background: #7FB2FF url('/images/web/ic-intro-05-over.svg') no-repeat center 40px;
        background-size: 430px auto;
    }


    .intro-card-wide .card-title {
        margin-top: 190px;
    }
    .intro-title { 
        white-space: normal;
        word-wrap: break-word;
        width: 400px;
        text-align: center;
        line-height: 1.2;
        margin-top: 20px;
    }
    .intro-title .mobile-break { display: inline; }
}
/***인트로***/

/* 반응형 디자인 */
@media (min-width: 601px) and (max-width: 834px) {
    /* 태블릿 환경에서만 푸터 레이아웃 변경 */
    .footer-container {
        max-width: 773px;
        flex-direction: column;
        gap: 20px;
        margin:0 20px;
    }
    
    /* PC 버전 구조 숨김 */
    .footer-left,
    .footer-right {
        display: none;
    }
    
    /* 태블릿 버전 구조 표시 */
    .footer-top {
        display: flex;
        justify-content: center;
        width: 100%;
        order: 1;
    }
    
    .footer-bottom {
        display: flex;
        align-items: center;
        gap: 20px;
        order: 2;
        justify-content: flex-start;
        width: 774px;
        margin: 0 auto;
    }
    
    .footer-bottom .footer-info p:first-child {
        color: #004EA2;
    }
    
    .family-site-btn {
        width: 100%;
    }
    .family-site {
        width: 100%;
    }
    
    .nav-menu{
        gap: 0px;
        text-indent: 30px;
    }
    .nav-link {
        width: 165px;
        padding: 0px;
        justify-content: left;
    }
    .mobile-menu-overlay {
        width: 100%;
        border-left: none;
        top: 155px; /* nav-menu 밑에서부터 표시되도록 위치 수정 */
        background-color: white;
        border-top: 1px solid #1473E6;
        text-align: center; /* 컨텐츠 중앙정렬 */
        height:263px;
        background-image: none;
    }

    .mobile-menu-header {
        display: none; /* 헤더 숨김 처리 */
    }
    
    .mobile-menu-content {
         max-width: 1380px;
         width: 680px;
         margin: 0 auto;
     }

    .menu-category {
        float: left;
        width: 170px; /* 4개 카테고리를 가로로 배치 */
        margin-bottom: 20px;
        box-sizing: border-box;
        height: 263px;
        border-right: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        letter-spacing: -0.05em;
    }

    /* 롤오버된 다음 카테고리와의 이음새 제거: 이전 요소의 하단선 제거 */
    .menu-category.trim-tail {
        border-bottom: none !important;
    }

    .menu-category.active {
        background-color: #1473E6;
        width: 170px;
        position:relative;
        height:263px;
    }
    
    .menu-category.active .menu-sub-items{
        position:absolute;
        top:-8px;
        width:100%;
        background-color: #1473E6;
        z-index: 10000;
        padding-top:8px;
    }

    .menu-category:first-child {
        padding-left:0px;
    }
    
    .menu-category:last-child {
        border-right: none;
    }

    .menu-category-header {
        display: none; /* 태블릿/PC에서 헤더 숨김 처리 */
    }
    .menu-sub-items {
        display: flex;
        flex-direction: column;
        padding: 0 0 15px 0;
        text-indent: 20px;
    }

    .menu-category.active .menu-sub-item {
        color: white;
    }
    .menu-sub-item.active {
        background-color: #00AFEC;
        color: white;
    }

    .menu-sub-item {
         display: block;
         padding: 10px 0;
         text-decoration: none;
         color: #000;
         font-size: 18px;
         text-align: left; /* 텍스트 좌측정렬 */
     }

    /* 이전 카테고리의 마지막 항목 하단선 제거용 (롤오버 시 시각적 이음새 제거) */
    .menu-category.trim-tail .menu-sub-items .menu-sub-item:last-child {
        border-bottom: none !important;
    }
 }

/* PC 환경에서 mobile-menu-overlay 스타일 */
@media (min-width: 835px) {
    .mobile-menu-overlay {
        width: 1440px;
        border-left: none;
        left:calc(50% - 720px) !important;
        top: 155px; /* nav-menu 밑에서부터 표시되도록 위치 수정 */
        background-color: #F5F5F5;
        border-top: 1px solid #1473E6;
        text-align: center; /* 컨텐츠 중앙정렬 */
        height: 263px;
        border-right:1px solid #CCCCCC;
        border-bottom:1px solid #CCCCCC;
    }

    /* li.current의 링크에 하단 8px 라인 */
    .nav-item.current .nav-link {
        position: relative;
    }
    .nav-item.current .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -17px; /* nav 아래 보더(1px) 고려해 살짝 아래 */
        width: 100%;
        height: 8px;
        background-color: #1473E6;
    }
    .nav-link.active::after {
        content: none;
    }

    .mobile-menu-header {
        display: none; /* 헤더 숨김 처리 */
    }

    .mobile-menu-overlay .mobile-menu-content {
        position: relative;
    }
    /* 카테고리를 기준으로 제목을 세로 중앙 정렬 */
    .mobile-menu-overlay .menu-category-header h3 {
        position:absolute;
        left:-280px;
        top:110px;
        transform: translateY(-50%);
        font-size: 40px;
        color:white;
    }

    .mobile-menu-content {
        max-width: 1380px;
        width:884px;
        margin: 0 calc(50% - 396px);
    }

    .menu-category {
        float: left;
        width: 203px; /* 4개 카테고리를 가로로 배치 */
        margin-bottom: 20px;
        box-sizing: border-box;
        height: 263px;
        border-right: 1px solid #ccc;
        letter-spacing: -0.05em;
    }

    .menu-category.active {
        background-color: #1473E6;
        width: 203px;
        height: 262px;
    }
    .menu-category .menu-category-header{
        display:none;
    }
    .menu-category.active .menu-category-header{
        display:block;
    }
    
    .menu-overlay .menu-category-header h3 {
        position:absolute;
        left:50px;
        top:50%;
        transform: translateY(-50%);
        font-size: 40px;
        color:white;
    }
    .menu-category.active .menu-sub-items {
        position: absolute;
        top: -8px;
        width: 203px;
        height: 270px;
        background-color: #1473E6;
        z-index: 10000;
    }
    
    .menu-sub-items {
        display: flex;
        flex-direction: column;
        padding: 10px 0 15px 0;
        text-indent: 20px;
        background-color: #fff;
        height:260px;
    }

    .menu-category.active .menu-sub-item {
        color: white;
    }
    
    .menu-sub-item.active {
        background-color: #00AFEC;
        color: white;
    }

    .menu-sub-item {
        display: block;
        padding: 10px 0;
        text-decoration: none;
        color: #000;
        font-size: 18px;
        text-align: left; /* 텍스트 좌측정렬 */
    }

    /* 이전 카테고리의 마지막 항목 하단선 제거용 (롤오버 시 시각적 이음새 제거) */
    .menu-category.trim-tail .menu-sub-items .menu-sub-item:last-child {
        border-bottom: none !important;
    }
}

@media (max-width: 600px) {
    .container { padding-left: 30px; padding-right: 30px; }
    
    .header {
        padding-top: 34px;
        padding-bottom: 41px;
        position: relative;
        height: 51px;
        margin-top: 0px;
    }
    
    .header-container {
        justify-content: space-between;
        align-items: center;
        height: 61px;
        margin-bottom: 0;
    }
    
    .logo img {
        width: 184px;
        height: 40px;
        content: url('/images/web/mlogo.jpg');
    }
    
    .header-buttons {
        display: none;
    }
    
    .mobile-menu {
        display: block;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .open-icon, .lock-icon {
        width: 36px;
        height: 40px;
        /*background-image: url('/images/web/ic-user.png');*/
        background-image: url('/images/web/key-open.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        border: none;
        border-radius: 0;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease;
        background-color: transparent;
        padding: 0;
    }
    
    .lock-icon {
        background-image: url('/images/web/key-lock.png');
    }
    
    .open-icon:hover, .lock-icon:hover {
        opacity: 0.8;
    }
    
    .open-icon:active, .lock-icon:active {
        opacity: 0.6;
    }
    
    .hamburger-menu {
        width: 50px;
        height: 50px;
        background-color: #2357A3;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .hamburger-menu::before,
    .hamburger-menu::after,
    .hamburger-menu span {
        content: '';
        position: absolute;
        width: 30px;
        height: 2px;
        background-color: white;
        transition: all 0.3s ease;
        left: 10px;
    }
    
    .hamburger-menu::before {
        top: 15px;
    }
    
    .hamburger-menu span {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hamburger-menu::after {
        bottom: 15px;
        width: 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    /* 모바일 메뉴 오버레이 */
    .mobile-menu-overlay {
        position: fixed;
        top: 58px;
        right: 0;
        width: 354px;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        border-left: 1px solid #CCCCCC;
    }
    
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    
    .mobile-menu-header {
        background-color: #004EA2;
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: white;
    }
    
    .mobile-menu-header h2 {
        font-size: 24px;
        font-weight: 700;
        margin: 0;
    }
    
    .close-menu-btn {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 0;
        position: relative;
        width: 31px;
        height: 31px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .close-menu-btn svg {
        width: 31px;
        height: 31px;
    }
    
    /* CSS로 구현한 X 아이콘 */
    .close-menu-btn::before,
    .close-menu-btn::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 20px;
        height: 2px;
        background-color: white;
        border-radius: 1px;
        transform-origin: center;
    }
    
    .close-menu-btn::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    
    .close-menu-btn::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    
    .mobile-menu-content {
        background-color: white;
        height: calc(100% - 80px);
        overflow-y: auto;
    }
    
    .menu-category {
        background-color: white;
        float: none;
        width: 100%;
        height:auto;
        margin-bottom:0px;
    }
    
    .menu-category.active {
        background-color: #1473E6;
        width: 100%;
        height:auto;
    }
    
    .menu-category.active .menu-category-header h3 {
        color: white;
    }
    
    .menu-category-header {
        padding: 20px 0 0px 31px;
        cursor: pointer;
        display: block;
    }
    
    .menu-category-header h3 {
        font-size: 24px;
        font-weight: 700;
        color: #333;
        margin: 0;
        border-bottom: 1px solid #CCCCCC;
        padding-bottom: 10px;
    }
    
    .menu-sub-items {
        background-color: white;
        padding: 0;
    }
    
    .menu-category.active .menu-sub-items {
        background-color: #1473E6;
        display: block !important;
        padding: 0;
    }
    
    .menu-sub-item {
        display: block;
        padding: 15px 20px 15px 0px;
        margin-left: 55px;
        text-decoration: none;
        color: #333;
        font-size: 18px;
        border-bottom: 1px solid #CCCCCC;
        transition: background-color 0.3s ease;
        font:'Inter';
    }
    
    .menu-category.active .menu-sub-item {
        color: white;
        border-bottom: 1px solid #CCCCCC;
    }
    
    .menu-category.active .menu-sub-item:last-child {
        border-bottom: none;
    }
    .menu-category.active .menu-sub-item {
        border-bottom: 1px solid #CCCCCC;
        margin-left: 0px;
        padding-left: 55px;
    }
    .menu-sub-item.active {
        background-color: #00AFEC;
        color: white;
        margin-left: 0px;
        padding-left: 55px;
    }
    
    .menu-category.active .menu-category-header {
        border-bottom: 1px solid #CCCCCC;
    }
    
    .menu-category.active .menu-category-header h3 {
        border-bottom: none;
    }
    
    /* 푸터 */
    .footer-container {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    /* PC 버전 구조 숨김 */
    .footer-left,
    .footer-right {
        display: none;
    }
    
    /* 태블릿 버전 구조 표시 */
    .footer-top {
        display: flex;
        justify-content: center;
        width: 100%;
        order: 1;
    }
    
    .family-site-btn {
        background-color: #fff;
        width: 100%;
    }
    .family-site {
        width: 100%;
    }
    
    .footer-bottom {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        order: 2;
        justify-content: flex-start;
        width: 100%;
    }
    
    .footer-bottom .footer-info {
        flex: 1;
        text-align: left;
        width: 230px;
    }
    
    .footer-bottom .footer-info p {
        font-size: 14px;
        line-height: 20px;
    }
    
    .footer-bottom .footer-info p:first-child {
        font-size: 16px;
        line-height: 20px;
        color: #004EA2;
    }
    
    .footer-bottom .footer-logo {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

}
