* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
    color: #222;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.header {
    width: 100%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 0;
}

.header-inner {
    width: 90%;
    max-width: 1200px;
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #173b72;
}

.logo img {
    height: 24px;
    width: auto;
    display: block;
}

.mobile-call-btn {
    display: none;
}

.nav {
    position: fixed;
    top: 0;
    right: max(5%, calc((100% - 1200px) / 2));
    height: 76px;
    z-index: 1003;
}

.nav>ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    gap: 36px;
    height: 76px;
    align-items: center;
}

.nav>ul>li {
    position: relative;
}

.nav>ul>li>a {
    display: block;
    padding: 28px 0;
    font-size: 16px;
    font-weight: 600;
}

.sub-menu {
    position: absolute;
    top: 76px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 180px;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    list-style: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sub-menu li a:hover {
    background: #f4f7fb;
    color: #174c94;
    padding-left: 26px;
}

.nav>ul>li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mobile-menu-btn {
    display: none;
    border: 0;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    z-index: 1001;
}

.menu-overlay.active {
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.2s;
}

.btn.primary {
    background: #174c94;
    color: #fff;
}

.btn.outline {
    border: 1px solid #fff;
    color: #fff;
}

.btn.outline-dark {
    border: 1px solid #174c94;
    color: #174c94;
    background: #fff;
}

.btn.small {
    height: 40px;
    min-width: 120px;
    background: #174c94;
    color: #fff;
    font-size: 14px;
}

.footer {
    background: #222;
    color: #ddd;
    text-align: center;
    padding: 34px 20px;
    line-height: 1.8;
    font-size: 14px;
}

.footer-tel {
    pointer-events: none;
    cursor: default;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.pagination a:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.pagination .active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

@media (max-width: 900px) {
    .footer-tel {
        pointer-events: auto;
    }

    .header {
        z-index: 1000;
    }

    .header-inner {
        height: 68px;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }

    .mobile-call-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #174c94;
        color: #fff;
        flex-shrink: 0;
    }

    .mobile-menu-btn {
        display: block;
        color: #222;
        position: relative;
        z-index: 1000;
        margin-left: auto;
    }

    .mobile-menu-btn.hide {
        display: none;
    }

    .nav {
        position: fixed;
        top: 0;
        left: auto;
        right: 0;
        transform: translateX(100%);
        width: 50%;
        height: 100vh;
        background: #222;
        z-index: 1003;
        overflow-y: auto;
        padding-top: 20px;
        transition: none;
    }

    .nav.active {
        transform: translateX(0);
        transition: transform 0.25s ease;
    }

    .nav>ul {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 0;
        height: auto;
        align-items: stretch;
    }

    .nav>ul>li {
        position: static;
        margin: 0;
        padding: 0;
    }

    .nav>ul>li>a {
        display: block;
        padding: 14px 18px;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        border-bottom: 1px solid #333;
    }

    .sub-menu {
        display: block;
        position: static;
        top: auto;
        left: auto;
        transform: none;
        min-width: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: #2f2f2f;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        transition: none;
        list-style: none;
    }

    .sub-menu li a {
        display: block;
        padding: 10px 18px 10px 28px;
        color: #ddd;
        font-size: 14px;
        white-space: normal;
        border-bottom: 1px solid #3a3a3a;
    }

    .nav>ul>li:hover .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .btn {
        width: 180px;
    }

    .location-info-box dl {
        margin-bottom: 26px;
    }

    .location-info-box dt {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
        gap: 8px;
    }

    .logo img {
        height: 24px;
    }

    .mobile-call-btn {
        width: 32px;
        height: 32px;
    }
}