@charset "UTF-8";

/* 페이지 높이와 관계없이 스크롤바 영역을 항상 확보해 헤더 가로 위치를 고정 */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

html, body {
    margin: 0;
    padding: 0;
}

:root {
    --header-max-width: 1320px;
    --header-side-gap: 32px;
}

.site-header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    font-family: Arial, "Noto Sans KR", sans-serif;
}

.site-header, .site-header * {
    box-sizing: border-box;
}

.header-inner {
    width: min(var(--header-max-width),
    calc(100% - (var(--header-side-gap) * 2)));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.top-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f1f1;
}

.top-header-inner {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sns-list {
    display: flex;
    gap: 4px;
}

.sns-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #9ca3af;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-message {
    color: #6b7280;
}

.top-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-menu a {
    color: #6b7280;
    text-decoration: none;
}

.top-menu a:hover {
    color: #0f766e;
}

.middle-header {
    background-color: #ffffff;
}

.middle-header-inner {
    padding-top: 28px;
    padding-bottom: 28px;
    display: grid;
    grid-template-columns: 3fr 6fr 3fr;
    align-items: center;
    gap: 24px;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 40px;
    line-height: 1;
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    color: #0ea5e9;
    line-height: 1;
}

.logo-sub-text {
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.search-area {
    width: 100%;
}

.notice-line {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
    font-size: 14px;
}

.notice-line strong {
    color: #000000;
}

.notice-line a {
    color: #4b5563;
    text-decoration: none;
}

.notice-line a:hover {
    color: #0f766e;
}

.search-form {
    position: relative;
    width: 100%;
    height: 40px;
    border: 1px solid #5b8def;
    border-radius: 5px;
    background-color: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.search-input {
    width: calc(100% - 54px);
    height: 100%;
    border: none;
    outline: none;
    padding: 0 14px;
    font-size: 15px;
    color: #333333;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    width: 54px;
    height: 100%;
    border: none;
    border-left: 1px solid #d1d5db;
    background-color: #f8f8f8;
    cursor: pointer;
}

.search-button:hover {
    background-color: #f1f5f9;
}

.search-icon {
    position: relative;
    display: inline-block;
    width: 17px;
    height: 17px;
    border: 3px solid #a3a3a3;
    border-radius: 50%;
    box-sizing: border-box;
}

.search-icon::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 3px;
    background-color: #a3a3a3;
    right: -8px;
    bottom: -4px;
    transform: rotate(45deg);
    border-radius: 2px;
}

.popular-keywords {
    margin-top: 8px;
    font-size: 14px;
    color: #4b5563;
}

.popular-keywords span {
    font-weight: 700;
    color: #374151;
}

.popular-keywords a {
    margin-left: 8px;
    color: #4b5563;
    text-decoration: none;
}

.popular-keywords a:hover {
    color: #0f766e;
}

.banner-area {
    display: flex;
    justify-content: flex-end;
}

.mini-banner {
    width: 260px;
    height: 70px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    box-sizing: border-box;
}

.mini-banner-icon {
    font-size: 32px;
}

.mini-banner-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
}

.mini-banner-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.bottom-nav {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.category-button {
    width: 180px;
    height: 100%;
    padding: 0 24px;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    box-sizing: border-box;
}

.category-button:hover {
    color: #0f766e;
}

.category-icon {
    font-size: 24px;
    line-height: 1;
}

.main-menu a {
    height: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.main-menu a:hover {
    color: #0f766e;
}

.right-menu a:hover {
    color: #0f766e;
}

.right-menu span {
    color: #d1d5db;
}

@media (max-width: 1024px) {
    .middle-header-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo-area {
        justify-content: center;
    }

    .banner-area {
        display: none;
    }

    .main-menu a {
        padding: 0 20px;
    }

    .right-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-header-inner {
        justify-content: center;
    }

    .top-left {
        display: none;
    }

    .top-menu {
        gap: 6px;
        font-size: 11px;
    }

    .bottom-nav-inner {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .category-button {
        width: 100%;
        height: 48px;
        justify-content: center;
    }

    .main-menu {
        flex-wrap: wrap;
        height: auto;
    }

    .main-menu a {
        height: 44px;
        padding: 0 16px;
        font-size: 14px;
    }

    @media (max-width: 1366px) {
        .header-inner {
            max-width: 1180px;
            padding: 0 14px;
        }

        .middle-header-inner {
            grid-template-columns: 2.5fr 6.5fr 3fr;
            gap: 18px;
        }

        .logo-text {
            font-size: 28px;
        }

        .logo-icon {
            font-size: 36px;
        }

        .mini-banner {
            width: 230px;
        }

        .main-menu a {
            padding: 0 28px;
            font-size: 15px;
        }

        .right-menu a {
            padding: 0 18px;
        }
    }

    @media (max-width: 1200px) {
        .header-inner {
            max-width: 1000px;
        }

        .middle-header-inner {
            grid-template-columns: 2fr 6fr 2fr;
            gap: 16px;
        }

        .logo-text {
            font-size: 26px;
        }

        .logo-sub-text {
            font-size: 11px;
        }

        .mini-banner {
            width: 210px;
            padding: 0 12px;
        }

        .mini-banner-title {
            font-size: 13px;
        }

        .mini-banner-desc {
            font-size: 11px;
        }

        .category-button {
            width: 160px;
            padding: 0 18px;
            font-size: 15px;
        }

        .main-menu a {
            padding: 0 22px;
            font-size: 15px;
        }

        .right-menu {
            display: none;
        }
    }

    @media (max-width: 1024px) {
        .header-inner {
            max-width: 100%;
            padding: 0 20px;
        }

        .middle-header-inner {
            grid-template-columns: 1fr;
            gap: 18px;
            padding-top: 22px;
            padding-bottom: 22px;
        }

        .logo-area {
            justify-content: center;
        }

        .search-area {
            max-width: 720px;
            margin: 0 auto;
        }

        .banner-area {
            display: none;
        }

        .bottom-nav-inner {
            height: auto;
            flex-wrap: wrap;
            padding: 0;
        }

        .category-button {
            width: 170px;
            height: 54px;
        }

        .main-menu {
            flex: 1;
            justify-content: flex-start;
            overflow-x: auto;
            white-space: nowrap;
        }

        .main-menu a {
            height: 54px;
            padding: 0 22px;
            flex-shrink: 0;
        }

        .right-menu {
            display: none;
        }
    }

    @media (max-width: 768px) {
        .top-header-inner {
            height: auto;
            min-height: 34px;
            justify-content: center;
        }

        .top-left {
            display: none;
        }

        .top-menu {
            gap: 6px;
            font-size: 11px;
            flex-wrap: wrap;
            justify-content: center;
            padding: 6px 0;
        }

        .middle-header-inner {
            padding-top: 18px;
            padding-bottom: 18px;
        }

        .logo-link {
            justify-content: center;
        }

        .logo-icon {
            font-size: 34px;
        }

        .logo-text {
            font-size: 26px;
        }

        .notice-line {
            justify-content: center;
            gap: 12px;
            font-size: 13px;
        }

        .search-form {
            height: 42px;
        }

        .search-input {
            font-size: 14px;
        }

        .popular-keywords {
            text-align: center;
            font-size: 13px;
            line-height: 1.8;
        }

        .bottom-nav-inner {
            flex-direction: column;
            align-items: stretch;
        }

        .category-button {
            width: 100%;
            height: 48px;
            justify-content: center;
            border-left: none;
            border-right: none;
            border-bottom: 1px solid #e5e7eb;
        }

        .main-menu {
            width: 100%;
            overflow-x: auto;
            justify-content: flex-start;
            flex-wrap: nowrap;
        }

        .main-menu a {
            height: 46px;
            padding: 0 18px;
            font-size: 14px;
            flex-shrink: 0;
        }
    }

    @media (max-width: 480px) {
        .header-inner {
            padding: 0 12px;
        }

        .top-menu a, .top-menu span {
            font-size: 10px;
        }

        .logo-icon {
            font-size: 30px;
        }

        .logo-text {
            font-size: 24px;
        }

        .logo-sub-text {
            font-size: 10px;
        }

        .notice-line {
            display: none;
        }

        .search-form {
            height: 40px;
        }

        .search-input {
            padding: 0 58px 0 12px;
            font-size: 13px;
        }

        .search-button {
            width: 50px;
        }

        .popular-keywords {
            font-size: 12px;
        }

        .popular-keywords a {
            margin-left: 5px;
        }

        .main-menu a {
            padding: 0 14px;
            font-size: 13px;
        }
    }
}

.owner-status-header-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.owner-status-notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.owner-status-notification-badge[hidden] {
    display: none;
}

.bottom-nav-inner {
    height: 56px;
    display: grid !important;
    align-items: center !important;
    grid-template-columns: 1fr auto 1fr;
}

.bottom-nav-inner::before {
    content: none !important;
    display: none !important;
}

.main-menu {
    height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    width: auto;
}

.right-menu {
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-size: 14px;
    color: #4b5563;
    grid-column: 3;
    justify-self: end;
    width: 180px;
    justify-content: center;
}

.right-menu a {
    padding: 0;
    color: #4b5563;
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header .search-form {
    margin: 0 !important;
}

.site-header .top-header {
    height: 32px !important;
}

.site-header .top-header-inner {
    position: relative !important;
    height: 32px !important;
    display: block !important;
}

.site-header .top-menu {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transform: translateY(-50%) !important;
    font-family: Arial, "Noto Sans KR", sans-serif !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.site-header .top-menu > a {
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.site-header .top-menu > span {
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.site-header .top-menu .badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 20px !important;
    min-width: 0 !important;
    margin-left: 4px !important;
    padding: 0 7px !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    white-space: nowrap !important;
}

.site-header .top-menu .badge-primary {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

.site-header .top-menu .badge-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.site-header .top-menu .badge-error {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

@media (min-width: 1025px) {
    .site-header .header-inner {
        width: calc(100% - 64px) !important;
        max-width: 1320px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .site-header .middle-header {
        height: 128px !important;
    }

    .site-header .middle-header-inner {
        height: 128px !important;
        padding: 0 !important;
        display: grid !important;
        grid-template-columns: 260px minmax(0, 636px) 260px !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;
    }

    .site-header .logo-area {
        justify-content: center !important;
    }

    .site-header .search-area {
        width: 636px !important;
    }

    .site-header .banner-area {
        justify-content: center !important;
    }
}

@media (min-width: 1025px) {
    .site-header .bottom-nav {
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        box-sizing: border-box !important;
    }

    .site-header .bottom-nav-inner {
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .site-header .main-menu, .site-header .right-menu, .site-header .category-button {
        height: 56px !important;
        min-height: 56px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    .site-header .main-menu a, .site-header .right-menu a {
        height: 56px !important;
        min-height: 56px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 1 !important;
        align-items: center !important;
    }
}

@media (min-width: 1025px) {
    .site-header .middle-header {
        height: 128px !important;
        min-height: 128px !important;
        max-height: 128px !important;
    }

    .site-header .middle-header-inner {
        height: 128px !important;
        min-height: 128px !important;
        max-height: 128px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        align-items: center !important;
    }

    .site-header .logo-area {
        height: 54px !important;
        margin: 0 !important;
        align-self: center !important;
    }

    .site-header .search-area {
        margin: 0 !important;
        align-self: center !important;
    }

    .site-header .banner-area {
        height: 70px !important;
        margin: 0 !important;
        align-self: center !important;
    }
}

.site-header .mini-banner {
    height: 70px !important;
    min-height: 70px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 36px !important;
    line-height: normal !important;
}

.site-header .mini-banner-icon {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    line-height: 32px !important;
}

.site-header .mini-banner-title {
    height: 18px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 18px !important;
}

.site-header .notice-line {
    height: 18px !important;
    margin: 0 0 8px !important;
    line-height: 18px !important;
}

.site-header .notice-line strong, .site-header .notice-line a {
    line-height: 18px !important;
}

.site-header .search-form, .site-header .search-input, .site-header .search-button {
    height: 40px !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
}

.site-header .search-input {
    display: block;
    margin: 0 !important;
    min-width: 0 !important;
    line-height: 40px !important;
}

.site-header .search-button {
    display: block;
    width: 54px !important;
    height: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-left: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    background-color: #f8f8f8 !important;
    color: #111827 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 40px !important;
    cursor: pointer;
}

.site-header .popular-keywords {
    height: 18px !important;
    margin: 8px 0 0 !important;
    line-height: 18px !important;
}

.site-header .popular-keywords span, .site-header .popular-keywords a {
    line-height: 18px !important;
}

.site-header .mini-banner-desc {
    height: 16px !important;
    margin: 2px 0 0 !important;
    font-size: 12px !important;
    line-height: 16px !important;
}

.site-header .logo-icon {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    margin: 0 !important;
    font-size: 40px !important;
    line-height: 40px !important;
}

.site-header .logo-link > div:last-child {
    height: 48px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.site-header .logo-text {
    height: 32px !important;
    margin: 0 !important;
    font-size: 32px !important;
    line-height: 32px !important;
}

.site-header .logo-sub-text {
    height: 12px !important;
    margin: 4px 0 0 !important;
    font-size: 12px !important;
    line-height: 12px !important;
}

@media (min-width: 1025px) {
    .site-header .main-menu {
        gap: 0 !important;
    }

    .site-header .main-menu a {
        width: 150px !important;
        min-width: 150px !important;
        padding: 0 !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

@media (min-width: 1025px) {
    .site-header .right-menu {
        width: 160px !important;
    }

    .site-header .right-menu a {
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #64748b !important;
    }

    .site-header .right-menu a:hover {
        color: #0ea5e9 !important;
    }
}

.site-header .logo-area {
    width: 270px !important;
    min-width: 270px !important;
    height: 74px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.site-header .logo-link {
    height: 72px !important;
    display: block !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: normal !important;
    position: relative !important;
    width: 250px !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.site-header .logo-image {
    position: absolute !important;
    top: -39px !important;
    left: -33px !important;
    display: block !important;
    width: 290px !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .site-header .logo-area {
        width: 210px !important;
        min-width: 210px !important;
        height: 58px !important;
    }

    .site-header .logo-link {
        width: 200px !important;
        height: 56px !important;
    }

    .site-header .logo-image {
        top: -33px !important;
        left: -28px !important;
        width: 240px !important;
    }
}

.site-header .hospital-map-banner {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-header .hospital-map-banner:hover, .site-header .hospital-map-banner:focus-visible {
    border-color: #38a7ec;
    box-shadow: 0 8px 18px rgba(56, 167, 236, 0.16);
    transform: translateY(-2px);
    outline: none;
}

.site-header .hospital-map-banner .mini-banner-content {
    position: relative;
    flex: 1;
    height: 38px;
}

.site-header .hospital-map-banner .mini-banner-desc, .site-header .hospital-map-banner .hospital-map-cta {
    position: absolute;
    left: 0;
    top: 21px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-header .hospital-map-banner .mini-banner-desc {
    opacity: 1;
    transform: translateY(0);
}

.site-header .hospital-map-banner .hospital-map-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #159fe1;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    opacity: 0;
    transform: translateY(7px);
}

.site-header .hospital-map-banner:hover .mini-banner-desc, .site-header .hospital-map-banner:focus-visible .mini-banner-desc {
    opacity: 0;
    transform: translateY(-6px);
}

.site-header .hospital-map-banner:hover .hospital-map-cta, .site-header .hospital-map-banner:focus-visible .hospital-map-cta {
    opacity: 1;
    transform: translateY(0);
}