@charset "utf-8";

/* ~ 1400px */
@media screen and (max-width: 1400px) {
    #header .logo-area .search-area.active form,
    .logo-area .search-area.active form {
        width: 240px;
    }
}
@media screen and (max-width: 1300px) {
    #header .logo-area .search-area form,
    .logo-area .search-area form {
        height: 40px;
    }
    #header .logo-area .search-area form input,
    .logo-area .search-area form input {
        height: 38px;
        font-size: 13px;
    }
    #header .logo-area .search-area form button,
    .logo-area .search-area form button {
        height: 38px;
    }
    #header .logo-area .search-area.active form,
    .logo-area .search-area.active form {
        width: 220px;
    }
    .gnb-area dl dt a {
        padding: 0 10px;
    }
    .top-area .utility {
        flex-direction: column;
    }
    .logo-area .search-area form input,
    .gnb-area dl dt a {
        height: 40px;
    }
    .top-area .utility li {
        margin-left: 0;
    }
}

/* ~ 1200px */
@media screen and (max-width: 1200px) {
    #header .logo-area .search-area.active form,
    .logo-area .search-area.active form {
        width: 200px;
    }
}

/* ~ 1100px */
@media screen and (max-width: 1100px) {
    #header .logo-area .search-area.active form,
    .logo-area .search-area.active form {
        width: 190px;
    }
}
@media screen and (max-width: 960px)  {
    table.grid.tb-myroom colgroup col:first-child {
        width: 250px;
    }
    /* ************************************
      #footer
  ************************************** */
    #footer .inner-wrap {
        align-items: center;
        margin: 0 auto;
        padding: 40px 16px 60px;
    }
    #footer .inner-wrap .address-area {
        flex-basis: 100%;
        flex-flow: column;
        justify-content: flex-start;
        align-items: center;
        gap: 40px;
    }
    #footer .inner-wrap .footer-logo-area {
        flex-basis: unset;
    }
    #footer .inner-wrap .footer-logo-area img {
        width: 230px;
    }
    #footer .inner-wrap address {
        justify-content: center;
        align-items: center;
        gap: 5px;
        font-size: 15px;
    }
    #footer .inner-wrap address p {
        text-align: center;
    }
    /* copyright */
    #footer p.copyright {
        margin-top: 10px;
        font-size: 12px;
        color: #7A7A7A;
    }
    #footer .inner-wrap address p.copyright b {
        color: #fff;
        font-weight: 800;
    }

    /* 관련기관 */
    #footer .quick-button {
        align-self: unset;
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }

}

/* 모바일 nav overflow */
@media screen and (min-width: 961px) {
    .drawer {
        overflow: hidden !important;
    }
    button.drawer-toggle,
    .drawer-hamburger,
    .drawer-overlay-upper {
        display: none !important;
        visibility: hidden !important;
    }
}

/*모바일 nav 노출*/
@media screen and (max-width: 960px) {
    /*header*/
    #header .top-area,
    #header .gnb-area,
    #header .gnb-bg,
    #header .gnb,
    #header .sitemap-area,
    #header .mobile-hidden,
    .top-btn-area,
    .category-area {
        display: none !important;
    }
    .mobile-show {
        display: block !important;
    }
    .mobile-hidden {
        display: none !important;
    }
    button.drawer-toggle,
    .drawer-hamburger {
        display: block !important;
        visibility: visible !important;
    }
    .drawer-overlay-upper {
        display: none !important;
    }
    .drawer-open .drawer-overlay-upper {
        display: block !important;
    }

    /* ************************************
        collection.css
    ************************************** */
    #wrap {
        padding-top: 120px;
    }
    .inner-wrap {
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        padding: 0 16px;
    }

    /* ************************************
        #header
    ************************************** */
    /*모바일메뉴 상단*/
    #header {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        border-bottom: 0;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.25);
        z-index: 100;
    }
    .logo-area {
        height: auto;
    }
    .logo-area .inner-wrap {
        align-items: center;
        padding: 0;
        gap:0;
    }
    .logo-area .left-area {
        width: 93%;
    }
    .logo-area .left-area > h1 a img {
        width: 150px;
    }
    .logo-area h1 {
        position: static;
        width: 100%;
        margin: 0;
        text-align: left;
        padding-top: 10px;
    }
    .logo-area h1 a {
        display: inline-block;
        line-height: 40px;
    }
    .logo-area .inner-wrap.search-area {
        padding: 7px 20px 10px;
    }
    .logo-area .search-area form input {
        width: 100%;
        padding: 10px 4px 10px 12px;
   }
    .logo-area .search-area form button {
        padding: 0 20px 0 0;
    }

    /* ************************************
        drawer
    ************************************** */
    .drawer-navbar-default .container,
    .drawer-nav.container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .mobile-header-group {
        content: '';
        display: block;
        clear: both;
    }
    .drawer-brand {
        position: relative;
        width: 100%;
        height: 55px;
    }

    /* mobile-menu */
    .mobile-info {
        float: left;
        width: 130px;
    }
    .mobile-info a {
        padding: 0 !important;
        font-size: 14px !important;
    }
    .mobile-info .m-picture {
        display: inline-block;
        vertical-align: middle;
        margin: 10px 0 0 15px;
        width: 35px;
        height: 35px;
        overflow: hidden;
        border: 1px solid #eee;
        border-radius: 50%;
        background-color: #ddd;
    }
    .mobile-info .m-picture img {
        width: 33px;
        height: auto;
        /*background-color: #fff;*/
    }
    .mobile-info .m-name {
        display: inline-block;
        overflow: hidden;
        width: 64px;
        padding: 15px 0 0 5px;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
        color: #fff;
        font-size: 11px;
    }
    .mobile-login {
        float: right;
        width: 100px;
        padding: 10px 15px 0 0;
        text-align: right;
    }
    .mobile-login:hover {
    }
    .mobile-login a:last-child {
        padding: 0 !important;
    }
    .mobile-login a {
        display: inline-block;
        padding: 0 5px 0 0 !important;
        line-height: 1;
        text-align: center;
    }
    .mobile-login a:hover {
        color: #fff !important;
    }
    .mobile-login a .feather {
        width: 18px;
        height: 18px;
    }
    .mobile-login a span {
        font-size: 10px;
    }
    .logo-area .search-area {
        width: 100%;
        padding: 5px 16px;
    }
    .logo-area .search-area form {
        width: 100% ;
    }
    #header .logo-area .center-area,
    .logo-area .center-area {
        display: none !important;
    }
    #header .logo-area .top-area,
    .logo-area .top-area {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    /* 모바일 페이지 상단 여백 (검색창 열림 여부에 따라 동적 조정) */
    #wrap {
        padding-top: 54px !important;
        transition: padding-top 0.25s ease;
    }
    body.mobile-search-open #wrap,
    #wrap.mobile-search-open {
        padding-top: 106px !important;
    }

    #header .logo-area .center-area,
    .logo-area .center-area {
        display: none !important;
    }

    /* 1. 상단 1줄: 로고 영역 (h1을 정중앙에 배치) */
    #header .logo-area .left-area,
    .logo-area .left-area {
        position: relative;
        width: 100% !important;
        height: 54px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    #header .logo-area .left-area h1,
    .logo-area .left-area h1,
    #header .logo-area h1,
    .logo-area h1 {
        position: static !important;
        width: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #header .logo-area .left-area h1 a,
    .logo-area .left-area h1 a,
    #header .logo-area h1 a,
    .logo-area h1 a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        height: auto !important;
    }
    #header .logo-area .left-area h1 a img,
    .logo-area .left-area h1 a img,
    #header .logo-area h1 a img,
    .logo-area h1 a img {
        width: 135px;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* 2. 상단 1줄: 가장 좌측 검색 아이콘 버튼 */
    #header .btn-mobile-search,
    .btn-mobile-search {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 8px;
        top: 27px;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: transparent;
        border: 0;
        padding: 0;
        cursor: pointer;
        z-index: 105;
        outline: none;
    }
    #header .btn-mobile-search i,
    .btn-mobile-search i {
        font-size: 26px;
        color: #000;
        line-height: 1;
    }
    #header .btn-mobile-search .icon-close,
    .btn-mobile-search .icon-close {
        display: none !important;
    }
    #header .btn-mobile-search.active .icon-search,
    .btn-mobile-search.active .icon-search {
        display: none !important;
    }
    #header .btn-mobile-search.active .icon-close,
    .btn-mobile-search.active .icon-close {
        display: inline-block !important;
        font-size: 28px;
    }

    /* 3. 하단 검색창: 평소에는 숨겨져 있고, 좌측 검색 아이콘 클릭 시 하단에 노출 */
    #header .logo-area .top-area,
    .logo-area .top-area {
        display: none !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    #header.mobile-search-open .logo-area .top-area,
    body.mobile-search-open #header .logo-area .top-area,
    .logo-area.mobile-search-open .top-area {
        display: block !important;
        animation: mobileSearchFadeIn 0.2s ease;
    }
    #header .logo-area .top-area .utility-area,
    .logo-area .top-area .utility-area {
        display: none !important;
    }

    @keyframes mobileSearchFadeIn {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #header .logo-area .search-area,
    .logo-area .search-area {
        position: relative;
        width: 100%;
        height: 42px;
        margin: 0 0 10px;
        padding: 0 16px;
        box-sizing: border-box;
    }
    #header .logo-area .search-area form,
    .logo-area .search-area form,
    #header .logo-area .search-area.active form,
    .logo-area .search-area.active form {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        width: 100% !important;
        height: 42px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #f5f8fd;
        border: 1px solid #e8edf4;
        border-radius: 30px;
        box-shadow: none;
        overflow: hidden;
        box-sizing: border-box;
    }
    #header .logo-area .search-area form:focus-within,
    .logo-area .search-area form:focus-within {
        border-color: #3498db;
        box-shadow: 0 0 6px rgba(52, 152, 219, 0.25);
        background-color: #ffffff;
    }
    #header .logo-area .search-area form input,
    .logo-area .search-area form input,
    #header .logo-area .search-area.active form input,
    .logo-area .search-area.active form input {
        flex: 1;
        width: 100% !important;
        min-width: 0;
        height: 40px;
        padding: 10px 10px 10px 18px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        font-size: 13px;
        color: #333;
        background-color: transparent;
        border: 0;
    }
    #header .logo-area .search-area form button.btn-close,
    .logo-area .search-area form button.btn-close {
        display: none !important;
    }
    #header .logo-area .search-area form button.btn-search,
    .logo-area .search-area form button.btn-search {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        color: #7486a5;
        background-color: transparent;
        border: 0;
        cursor: pointer;
    }
    #header .logo-area .search-area form button.btn-search i,
    .logo-area .search-area form button.btn-search i {
        color: #7486a5;
        font-size: 20px;
    }

    /* ************************************
        모바일 메뉴 (Drawer Menu & Submenu)
    ************************************** */
    /* hamburger button (1.5배 축소) */
    .drawer-right .drawer-hamburger {
        width: 29px;
        height: 23px;
        padding: 27px 3px 13px 11px;
        right: 8px;
    }
    .drawer-right .drawer-hamburger-icon,
    .drawer-right .drawer-hamburger-icon:before,
    .drawer-right .drawer-hamburger-icon:after {
        height: 2px;
        width: 20px;
        border-radius: 2px;
    }
    .drawer-right .drawer-hamburger-icon {
        width: 15px;
    }
    .drawer-right .drawer-hamburger-icon:before {
        width: 20px;
        top: -7px;
    }
    .drawer-right .drawer-hamburger-icon:after {
        width: 17px;
        top: 7px;
    }
    .drawer-right.drawer-open .drawer-hamburger-icon {
        width: 20px;
        background-color: transparent;
    }
    .drawer-right.drawer-open .drawer-hamburger-icon:before,
    .drawer-right.drawer-open .drawer-hamburger-icon:after {
        top: 0;
        width: 20px;
        background-color: #fff;
    }

    /* drawer-nav */
    .drawer--right .drawer-nav {
        position: fixed;
        top: 0;
        right: -24rem;
        overflow: hidden;
        width: 24rem;
        height: 100%;
        color: #222;
        background-color: #323232;
        z-index: 2;
    }
    .drawer--right .drawer-nav .inner-wrap {
        position: relative;
    }

    /* drawer-nav > login-area */
    .drawer-nav .login-area {

    }

    /* drawer-nav > drawer-menu */
    .drawer-menu {
        background-color: #fff;
    }
    /* depth1 */
    .drawer-menu > li {
        position: relative;
        line-height: 1.1;
    }
    .drawer-menu-item {
        display: block;
        /*padding: 15px 30px 15px 20px;*/
        padding: 15px 20px;
        text-decoration: none;
        font-size: 15px;
        color: #333;
        border-bottom: 1px solid #dfdfdf;
    }
    .drawer-menu > li:last-child .drawer-menu-item {
        border-bottom: 0;
    }
    .drawer-dropdown .drawer-caret {
        position: absolute;
        right: 10px;
        top: 25px;
        transition: transform 0.2s ease;
    }
    /* depth2 드롭다운 메뉴: 기본 닫힘, open 시 펼침 */
    .drawer-dropdown-menu {
        display: none;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .drawer-dropdown.open > .drawer-dropdown-menu,
    .dropdown.open > .drawer-dropdown-menu {
        display: block;
    }
    .drawer-dropdown.open .drawer-caret,
    .dropdown.open .drawer-caret {
        transform: rotate(180deg);
    }
    /* depth2 */
    .drawer-dropdown-menu-item {
        display: block;
        padding: 10px 20px 10px 30px;
        line-height: 1.1;
        font-size: 13px;
        color: #767676;
        border-bottom: 1px solid #dfdfdf;
        background-color: #eee;
    }

}
/* ~ 640px */
@media screen and (max-width: 640px) {
    #header .logo-area .search-area,
    .logo-area .search-area {
        padding: 0 16px;
    }
}

/* ~ 480px */
@media screen and (max-width: 480px) {
    #header .logo-area .search-area,
    .logo-area .search-area {
        padding: 0 14px;
    }
}

/* ~ 360px */
@media screen and (max-width: 360px) {
    #header .btn-mobile-search,
    .btn-mobile-search {
        left: 6px;
    }
    #header .logo-area .left-area h1 a img,
    .logo-area .left-area h1 a img,
    #header .logo-area h1 a img,
    .logo-area h1 a img {
        width: 125px;
    }
    #header .logo-area .search-area,
    .logo-area .search-area {
        padding: 0 12px;
    }
    #header .logo-area .search-area form input,
    .logo-area .search-area form input {
        font-size: 12px;
        padding: 10px 8px 10px 14px !important;
    }
}

/* ~ 320px */
@media screen and (max-width: 320px) {
    #header .btn-mobile-search,
    .btn-mobile-search {
        left: 4px;
        width: 36px;
    }
    #header .logo-area .left-area h1 a img,
    .logo-area .left-area h1 a img,
    #header .logo-area h1 a img,
    .logo-area h1 a img {
        width: 115px;
    }
    #header .logo-area .search-area,
    .logo-area .search-area {
        padding: 0 10px;
    }
    #header .logo-area .search-area form input,
    .logo-area .search-area form input {
        font-size: 11.5px;
        padding: 10px 6px 10px 12px !important;
    }
}
