/* 공통 CSS 설정 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: -1px;
    line-height: 1.6;
}

/* 무한 반복 흐르는 텍스트 (Marquee) */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 120s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

.noto-sans-jp {
    font-family: 'Noto Sans JP', sans-serif;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* 애니메이션 유틸리티 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* 모바일 햄버거 메뉴 — 히어로 위 오버레이 */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
}

.mobile-menu-overlay.hidden {
    display: none;
}

.mobile-menu-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.mobile-menu-overlay__panel {
    position: absolute;
    top: var(--mobile-header-height, 160px);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--mobile-header-height, 160px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid #e7ecf4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.site-header__bar {
    position: relative;
    z-index: 210;
    background: #fff;
}

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu__expand {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu__expand:focus-visible {
    outline: 2px solid #0a5ec2;
    outline-offset: 2px;
}

.mobile-menu__sub.hidden {
    display: none !important;
}

/* 사이트 푸터 */
.site-footer {
    background: linear-gradient(180deg, #2c2e33 0%, #25272b 100%);
    color: #e7e8ea;
}

.site-footer__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 2.5rem;
    row-gap: 1rem;
}

.site-footer__logo {
    grid-column: 1;
    flex-shrink: 0;
}

.site-footer__logo-link {
    display: inline-block;
    line-height: 0;
}

.site-footer__logo-img {
    display: block;
    width: auto;
    max-width: 200px;
    height: auto;
}

/* 가운데 텍스트 */
.site-footer__info {
    grid-column: 2;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.75;
    letter-spacing: 0.02em;
    color: #e7e8ea;
}

.site-footer__line {
    margin: 0;
    white-space: nowrap;
}

.site-footer__line-item--sep {
    margin-left: 2.25em;
}

.site-footer__tel-link {
    color: #e7e8ea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__tel-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* 카피라이트 + 관리자 버튼 한 줄 */
.site-footer__copyright-row {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-footer__copyright {
    margin: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: #9ca0a6;
}

/* 관리자 버튼 */
.site-footer__admin {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.site-footer__admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-footer__admin-btn .material-symbols-outlined {
    font-size: 1.125rem;
    line-height: 1;
}

.site-footer__admin-btn--system {
    background: #2563eb;
}

.site-footer__admin-btn--system:hover {
    background: #1d4ed8;
}

.site-footer__admin-btn--clinic {
    background: #26667f;
}

.site-footer__admin-btn--clinic:hover {
    background: #124170;
}

.site-footer__admin-btn:active {
    transform: scale(0.98);
}

@media (max-width: 767px) {
    .site-footer__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
        padding: 1.75rem 1.25rem 2rem;
    }

    .site-footer__logo,
    .site-footer__info {
        grid-column: auto;
        width: 100%;
    }

    .site-footer__logo-img {
        max-width: 150px;
        margin: 0 auto;
    }

    .site-footer__info {
        font-size: 0.75rem;
        line-height: 1.5;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .site-footer__line {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        white-space: normal;
    }

    .site-footer__line-item--sep {
        margin-left: 0;
    }

    .site-footer__copyright-row {
        flex-direction: column;
        align-items: center;
        gap: 0.9rem;
    }

    .site-footer__copyright {
        margin: 0;
        font-size: 0.6875rem;
    }

    .site-footer__admin {
        justify-content: center;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}