@charset "utf-8";



/* =========================================================
   김포바른방문요양센터 공통 헤더
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

body.barun-menu-open {
    overflow: hidden;
}

.barun-header,
.barun-header * {
    box-sizing: border-box;
}

.barun-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200000;
    width: 100%;
    height: 135px;
    background: transparent;
    transition:
        height 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.barun-header.is-fixed {
    position: fixed;
    height: 90px;
    background: rgba(0, 0, 0, 0.62);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.barun-header__inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    height: 135px;
    margin: 0 auto;
    padding: 0 30px;
    transition: height 0.3s ease;
}

.barun-header.is-fixed .barun-header__inner {
    height: 90px;
}


/* =========================================================
   로고
========================================================= */

.barun-header__logo {
    flex: 0 0 350px;
    width: 350px;
    margin: 0;
    padding: 0 0 0 30px;
    line-height: 1;
}

.barun-header__logo a {
    display: inline-block;
}

.barun-header__logo img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
    transition: transform 0.3s ease;
}

.barun-header.is-fixed .barun-header__logo img {
    transform: scale(0.9);
    transform-origin: left center;
}


/* =========================================================
   PC 메뉴
========================================================= */

.barun-gnb {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
}

.barun-gnb__list {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.barun-gnb__item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0 15px;
    list-style: none;
}

.barun-gnb__item > a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    color: #fff;
  
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.6px;
    text-decoration: none;
    white-space: nowrap;
}

.barun-gnb__item > a::after {
    position: absolute;
    right: 0;
    bottom: 33px;
    left: 0;
    height: 2px;
    background: #fff;
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        bottom 0.3s ease;
}

.barun-header.is-fixed .barun-gnb__item > a::after {
    bottom: 20px;
}

.barun-gnb__item:hover > a::after,
.barun-gnb__item:focus-within > a::after {
    opacity: 1;
    transform: scaleX(1);
}


/* =========================================================
   드롭다운 메뉴
========================================================= */

.barun-submenu {
    position: absolute;
    top: calc(50% + 24px);
    left: 50%;
    z-index: 300000;
    width: 190px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cacaca;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
}

.barun-gnb__item:hover .barun-submenu,
.barun-gnb__item:focus-within .barun-submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.barun-submenu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ededed;
    list-style: none;
}

.barun-submenu li:last-child {
    border-bottom: 0;
}

.barun-submenu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 18px;
    color: #333;
    background: #fff;
    font-family:
        "Pretendard",
        "Noto Sans KR",
        "Malgun Gothic",
        sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.4px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.barun-submenu a:hover,
.barun-submenu a:focus {
    color: #fff;
    background: #647f86;
}


/* =========================================================
   로그인 아이콘
========================================================= */

.barun-header__member {
    display: flex;
    flex: 0 0 100px;
    align-items: center;
    justify-content: flex-end;
    width: 100px;
    padding-right: 30px;
}

.barun-header__member a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.barun-header__member img {
    display: block;
    max-width: 30px;
    height: auto;
    border: 0;
}


/* =========================================================
   헤더 하단 라인
========================================================= */

.barun-header__line {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}


/* =========================================================
   모바일 버튼
========================================================= */

.barun-mobile-toggle {
    display: none;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 10px 7px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.barun-mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    transition: transform 0.25s ease;
}


/* =========================================================
   모바일 메뉴
========================================================= */

.barun-mobile-menu,
.barun-mobile-menu * {
    box-sizing: border-box;
}

.barun-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 500000;
    width: min(390px, 88vw);
    height: 100%;
    overflow-y: auto;
    background: #fff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
    visibility: hidden;
    transform: translateX(105%);
    transition:
        transform 0.35s ease,
        visibility 0.35s ease;
}

.barun-mobile-menu.is-open {
    visibility: visible;
    transform: translateX(0);
}

.barun-mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85px;
    padding: 18px 20px;
    background: #303e42;
}

.barun-mobile-menu__logo {
    display: block;
    width: 225px;
    max-width: calc(100% - 55px);
}

.barun-mobile-menu__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.barun-mobile-close {
    position: relative;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.barun-mobile-close span {
    position: absolute;
    top: 20px;
    left: 8px;
    width: 27px;
    height: 2px;
    background: #fff;
}

.barun-mobile-close span:first-child {
    transform: rotate(45deg);
}

.barun-mobile-close span:last-child {
    transform: rotate(-45deg);
}

.barun-mobile-nav > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.barun-mobile-nav > ul > li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e7e7e7;
    list-style: none;
}

.barun-mobile-nav > ul > li > a,
.barun-mobile-sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 59px;
    margin: 0;
    padding: 15px 22px;
    color: #222;
    background: #fff;
    border: 0;
    font-family:
        "Pretendard",
        "Noto Sans KR",
        "Malgun Gothic",
        sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.5px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.barun-mobile-sub-toggle i {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
}

.barun-mobile-sub-toggle i::before,
.barun-mobile-sub-toggle i::after {
    position: absolute;
    top: 6px;
    left: 1px;
    width: 12px;
    height: 1px;
    background: #555;
    content: "";
    transition: transform 0.25s ease;
}

.barun-mobile-sub-toggle i::after {
    transform: rotate(90deg);
}

.barun-mobile-nav__has-sub.is-open .barun-mobile-sub-toggle i::after {
    transform: rotate(0);
}

.barun-mobile-sub {
    display: none;
    margin: 0;
    padding: 8px 0;
    background: #f4f6f6;
    list-style: none;
}

.barun-mobile-nav__has-sub.is-open .barun-mobile-sub {
    display: block;
}

.barun-mobile-sub li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.barun-mobile-sub a {
    display: block;
    padding: 12px 25px 12px 38px;
    color: #555;
    font-family:
        "Pretendard",
        "Noto Sans KR",
        "Malgun Gothic",
        sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.4px;
    text-decoration: none;
}

.barun-mobile-sub a:hover {
    color: #fff;
    background: #647f86;
}

.barun-mobile-menu__member {
    display: flex;
    gap: 7px;
    padding: 20px;
}

.barun-mobile-menu__member a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: #fff;
    background: #647f86;
    font-family:
        "Pretendard",
        "Noto Sans KR",
        "Malgun Gothic",
        sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.barun-mobile-dim {
    position: fixed;
    inset: 0;
    z-index: 400000;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.barun-mobile-dim.is-open {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   반응형
========================================================= */

@media screen and (max-width: 1500px) {

    .barun-header__inner {
        padding-right: 20px;
        padding-left: 20px;
    }

    .barun-header__logo {
        flex-basis: 300px;
        width: 300px;
        padding-left: 10px;
    }

    .barun-gnb__item {
        padding-right: 11px;
        padding-left: 11px;
    }

    .barun-gnb__item > a {
        font-size: 15px;
    }

    .barun-header__member {
        flex-basis: 70px;
        width: 70px;
        padding-right: 10px;
    }
}

@media screen and (max-width: 1200px) {

    .barun-header {
        height: 92px;
    }

    .barun-header.is-fixed {
        height: 72px;
    }

    .barun-header__inner {
        height: 92px;
        padding: 0 24px;
    }

    .barun-header.is-fixed .barun-header__inner {
        height: 72px;
    }

    .barun-header__logo {
        flex: 0 1 auto;
        width: 280px;
        max-width: calc(100% - 70px);
        padding: 0;
    }

    .barun-gnb,
    .barun-header__member {
        display: none;
    }

    .barun-mobile-toggle {
        display: block;
        margin-left: auto;
    }
}

@media screen and (max-width: 767px) {

    .barun-header {
        height: 76px;
    }

    .barun-header.is-fixed {
        height: 66px;
    }

    .barun-header__inner {
        height: 76px;
        padding: 0 16px;
    }

    .barun-header.is-fixed .barun-header__inner {
        height: 66px;
    }

    .barun-header__logo {
        width: 230px;
    }

    .barun-header.is-fixed .barun-header__logo img {
        transform: none;
    }

    .barun-mobile-toggle {
        width: 38px;
        height: 38px;
        padding-right: 5px;
        padding-left: 5px;
    }
}

@media screen and (max-width: 400px) {

    .barun-header__logo {
        width: 205px;
    }

    .barun-mobile-menu__logo {
        width: 205px;
    }
}


/* =========================================================
   모바일 헤더 전용 수정
   흰색 헤더 + 컬러 로고 + 슬라이드와 분리
========================================================= */

@media screen and (max-width: 767px) {

    /*
     * 헤더가 메인 비주얼 위에 겹치지 않도록
     * 일반 문서 흐름에 배치
     */

    .barun-header {
        position: relative;
        top: auto;
        left: auto;

        width: 100%;
        height: 76px;

        background: #fff;
        box-shadow: none;
    }


    /*
     * 스크롤 고정 상태
     */

    .barun-header.is-fixed {
        position: fixed;
        top: 0;
        left: 0;

        width: 100%;
        height: 66px;

        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);

        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }


    /*
     * 헤더 내부
     */

    .barun-header__inner {
        width: 100%;
        height: 76px;

        padding: 0 16px;
    }

    .barun-header.is-fixed .barun-header__inner {
        height: 66px;
    }


    /*
     * 모바일 로고
     */

    .barun-header__logo {
        display: flex;
        flex: 0 1 auto;
        align-items: center;

        width: 245px;
        max-width: calc(100% - 62px);

        margin: 0;
        padding: 0;
    }

    .barun-header__logo a,
    .barun-header__logo picture {
        display: block;
        width: 100%;
    }

    .barun-header__logo img {
        display: block;

        width: 100%;
        max-width: 245px;
        height: auto;

        margin: 0;

        transform: none !important;
    }

    .barun-header.is-fixed .barun-header__logo img {
        max-width: 225px;
        transform: none !important;
    }


    /*
     * 햄버거 버튼
     */

    .barun-mobile-toggle {
        display: block;

        width: 40px;
        height: 40px;

        margin-left: auto;
        padding: 8px 5px;
    }

    .barun-mobile-toggle span {
        width: 100%;
        height: 2px;

        margin: 6px 0;

        background: #222;
    }


    /*
     * 헤더 하단 구분선
     */

    .barun-header__line {
        background: #e5e5e5;
    }

	body.barun-mobile-header-fixed {
    padding-top: 76px;
}
	
}

