@charset "utf-8";

/**
 * 우측 프레임: 상단(헤더·카테고리) 고정 + 본문만 스크롤
 */
body.syou-layout.is-pc-shell .mobile-frame {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

body.syou-layout.is-pc-shell .mobile-frame__scale-wrap {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

body.syou-layout.is-pc-shell .mobile-frame__inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
}

body.syou-layout.is-pc-shell .mobile-frame__inner #wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

body.syou-layout.is-pc-shell .mobile-frame__inner #wrapper > .syou-bottom-bar {
    flex-shrink: 0;
    margin-top: auto;
}

body.syou-layout.is-pc-shell .mobile-frame__inner .syou-frame-top {
    flex: 0 0 auto;
    flex-shrink: 0;
    z-index: 120;
    background: #fff;
    pointer-events: auto;
}

body.syou-layout.is-pc-shell .mobile-frame__inner #header .syou-mobile-bar,
body.syou-layout.is-pc-shell .mobile-frame__inner #header .syou-mobile-bar__menu {
    pointer-events: auto;
}

body.syou-layout.is-pc-shell .mobile-frame__inner .syou-frame-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.syou-layout.is-pc-shell .mobile-frame__inner #header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

body.syou-layout.is-pc-shell .mobile-frame__inner #header .accessibility {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 헤더 로고 → syou-site-header.css */

body.syou-layout.is-pc-shell .mobile-frame__inner #header .syou-mobile-bar {
    order: 2;
    flex: 0 0 auto;
    position: absolute;
    top: 50%;
    right: var(--syou-frame-pad-x, 20px);
    margin-left: 0;
    transform: translateY(-50%);
    align-self: center;
}

body.syou-layout.is-pc-shell .mobile-frame__inner #header .gnb {
    display: none !important;
}

body.syou-layout.is-pc-shell .mobile-frame__inner .syou-frame-top > .syou-page-cat-bar,
body.syou-layout.is-pc-shell .mobile-frame__inner .syou-frame-top > .syou-event-cat-bar,
body.syou-layout.is-pc-shell .mobile-frame__inner .syou-frame-top > .syou-clinic-cat-bar,
body.syou-layout.is-pc-shell .mobile-frame__inner .syou-frame-top > .syou-doctor-cat-bar,
body.syou-layout.is-pc-shell .mobile-frame__inner .syou-frame-top > .syou-sub__head,
body.syou-layout.is-pc-shell .mobile-frame__inner .syou-frame-top > .syou-page-cat-bar--single,
body.syou-layout.is-pc-shell .mobile-frame__inner .syou-frame-top > .syou-page-cat-bar--subject {
    flex-shrink: 0;
    margin: 0;
}

@media (max-width: 740px) {
    body.syou-layout.is-pc-shell .mobile-frame {
        overflow: hidden !important;
        max-height: 100dvh !important;
    }

    body.syou-layout.is-pc-shell.is-mobile-view .mobile-frame {
        overflow: hidden !important;
    }
}
