/********* header CSS *********/
.hd-wrap,
.nav,
.hd-btn__wrap {
    display:flex;
    flex-flow:row wrap;
}

header .logo {
    margin: 45px auto 10px;
    width: min(209px,50%);
    text-align: center;
}
header .logo img {width: 100%;}
header {
   position: fixed;
   top:0;
   left: 0;
   width: 100%;
   z-index: 998;
   background: #f3f2e9;
   /* padding-top: 35px; */
}
header.down .logo {
    display: none;
}

.nav-wrap {
    width: 100%;
}
.nav-wrap .close-nav {
    display: none;
}

.content-wrap {
    margin-top: 213px;
} 

@media (max-width: 992px) {
    .content-wrap {
        margin-top: 0;
    }
}

/* 1차 메뉴 */
#gnb_1dul {
    width: 100%;
    gap: 55px;
    justify-content: center;
}
.gnb_1dli {
    position: relative;
}
.gnb_1dli > a {
    font-size: 17px;
    /* font-weight: 600; */
    color: #333;
    display: block;
    padding-block: 35px;
}

/* 2차 메뉴 */
.gnb_2dul {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 205px;
    transform: translateX(-50%);
    text-align: center;
    background: #f3f2e9;
    border: 1px solid #222;
    /* display: none; */
    visibility: hidden;
    opacity: 0;
    transition: all 0.15s;
}

.gnb_2dul li a {
    font-size: 15px;
    color: #666;
    /* font-weight: 600; */
    display: block;
    padding-block: 17px;
    transition: color 0.15s;
    position: relative;
    margin: 0 15px;
    border-bottom: 1px solid var(--border);
}
.gnb_2dul li:last-child > a {
    border-bottom: 0;
}
.gnb_2dul li {
    border-bottom: 1px solid transparent;
}


.gnb_2dli {
    position: relative;
}
.gnb_2dli .gnb_2da span {
    display: inline-block;
    position: relative;
}
.gnb_2dli:has(.gnb_3dul) .gnb_2da span::before {
    content: "";
    position: absolute;
    top:50%;
    right:-5px;
    transform: translate(100%,-50%);
    width: 6px;
    height: 10px;
    background: url(../img/common/arr_icon1.png) center right no-repeat;
    background-size: contain;
}

@media screen and (min-width:991px){
    .gnb_2dul li:has( +li:hover) {
        border-color: #222;
    }
    .gnb_2dul li:hover {
        background: #fff;
        border-color: #222;
    }
    .gnb_2dul li:hover > a,
    .gnb_2dul li:has( + li:hover) a{
        border-color: transparent;
    }
}


.gnb_2dul li:first-child {
    border-top-color: transparent;
}
.gnb_2dul li:last-child {
    border-bottom-color: transparent;
}

/* 3차 메뉴 */
.gnb_3dul {
    position: absolute;
    top: -.5px;
    left: 100%;
    border: 1px solid #222;
    /* display: none; */
    visibility: hidden;
    opacity: 0;
    /* transition: all 0.15s; */
    min-height: 100%;
}
.gnb_3dul li {
    width: 145px;
}
.gnb_3dul_box li {
    background: #e7e7e2;
}


/* 활성화 상태 */
.gnb_1dli_on .gnb_2dul,
.gnb_2dli_on .gnb_3dul {
    /* display: block; */
    visibility: visible;
    opacity: 1;
}
@media screen and (max-width:1200px){
    #gnb_1dul {
        gap: 40px;
    }
}
@media screen and (max-width:992px){
    .gnb_2dul,
    .gnb_3dul {
        display: none;
    }
    .gnb_1dli_on .gnb_2dul,
    .gnb_2dli_on .gnb_3dul {
        display: block;
    }
    header {
        margin: 0;
        /* padding-block: min(50px,9%); */
        padding-inline:  min(40px,5%);
        width: 100%;
        position: fixed;
        left: 0;
        top:0;
        background: #f3f2e9;
        z-index: 999;
        height: clamp(100px,20vw,164px);
        padding-top: 0;
    }
    .hd-wrap {
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }
    header .logo {
        width: min(209px,50%);
        margin: 0;
    }
    header .btn-menu {
        cursor: pointer;
    }
    header .btn-menu span {
        width: 38px;
        height: 3px;
        background: #000;
        display: block;
        border-radius: 1px;
    }
    header .btn-menu span:nth-of-type(2) {
        margin-block: 10px;
    }
    .nav-wrap {
        position: fixed;
        top:0;
        left:0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 99;
        padding-top: 40px;
        visibility: hidden;
        opacity: 0;
        transition: all .2s;
    }
    .menu-open .nav-wrap {
        visibility: visible;
        opacity: 1;
    }
    .nav-wrap .close-nav {
        display: block;
        width: clamp(30px,4.2vw,37px);
        margin-block: 0 min(65px,5%);
        margin-inline: auto min(65px,10%) ;
    }
    .nav {
        flex-flow: column;
    }
    .nav * {
        border:0 !important;
    }
    #gnb_1dul {
        gap: 0;
    }
    .gnb_1dli > a {
        padding-block: min(30px,3%);
        padding-inline: min(65px,10%);
        font-size: clamp(18px,3.8vw,30px);
    }
    .gnb_2dul {
        position: relative;
        left: 0;
        top:0;
        transform: none;
        width: 100%;
        text-align: left;
        /* margin-bottom: 40px; */
    }
    .gnb_2dul li {
       position: static;
    }
    .gnb_2dul li:first-child {
        padding-top: clamp(15px,3vw,30px);
    }
    .gnb_2dul li:last-child {
        padding-bottom: clamp(15px,3.5vw,30px);
    }
    .gnb_2dul li a {
        margin: 0;
        padding-block: 10px;
        padding-inline: min(65px,10%);
        font-size: clamp(16px,3.2vw,28px);
        font-weight: 400;
    }
    .gnb_2dul .gnb_2dli_on > a {
        font-weight: 600;
    }
    .gnb_2dul li:has(.gnb_3dul) > a {
        width: 50%;
    }
    .gnb_3dul {
        width: 50%;
        left: 50%;
        top: 0;
        max-height: 100%;
        overflow-y: scroll;
    }
    .gnb_3dul li {
        width: 100%;
    }
    .gnb_3dul::-webkit-scrollbar {
        width: 10px;
    }
    .gnb_3dul::-webkit-scrollbar-thumb {
    background-color: #272727;
    }
    .gnb_3dul::-webkit-scrollbar-track {
    background-color: #fff;
    }

}


/* 상담신청 폼 */
.contact-form {
    background: #1d1d1c;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    padding-block: 10px;
}
.contact-form h3 {
    font-size: 18px;
    color: #fff;
    font-family: 'pretendard';
    width: min(280px,23%);
    text-align: center;
}
.contact-form form {
    width: 77%;
    padding-inline: 10px 11px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}
.contact-form form > input {
    width: min(220px,24%);
    line-height: 36px;
    padding-inline: 25px;
}
.contact-form form > label {
    width: 29%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'pretendard';
    font-size: 14px;
    color: #fff;
}
.contact-form form > label a {
    font:inherit;
    color: inherit;
    margin-left: 3px;
}
.contact-form form > label input {
    margin-right: 10px;
}
.contact-form form button {
    width: min(150px, 20%);
    background: #7f3314;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 36px;
}

/* 퀵링크 */
.quick-menu {
    position: fixed;
    top: 50%;
    right: calc(50% - 670px);
    transform: translate(100%,-50%);
    display: flex;
    flex-flow: column wrap;
    /* align-items: center; */
    justify-content: center;
    z-index: 999;
    padding: 20px 10px;
    background: #fff;
    border-radius: 50px;
}
.quick-menu li {
    border-top: 1px solid #e1e1e1;
    width: 100%;
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    justify-content: center;
}
.quick-menu li a {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    justify-content: center;
    padding: 16px 2px;
    /* width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    transition: all 0.1s; */
}
.quick-menu li:first-child,
.quick-menu li:nth-of-type(2) {
    border-top: 0;
}


.quick-menu li h3 {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: #222;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
}
.quick-menu li a img {
    width: 24px;
}
.quick-menu li a p {
    font-size: 13px;
    margin-top: .7em;
}
.quick-menu li a:hover p {
    font-weight: 700;
}
/* .quick-menu li a:hover img {
    filter: invert(1);
} */

/* 서브하단퀵메뉴 */
.sub-quick-menu {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border: 1px solid var(--border);
    padding-block: 10px;
    display: none;
}
.sub-quick-menu a {
    padding-block: clamp(15px,8%,35px);
    border-left: 1px solid var(--border);
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    align-items: center;
}
.sub-quick-menu a:first-child {
    border-left: 0;
}
.sub-quick-menu a img {
    width: min(50px,6vw);
}
.sub-quick-menu a p {
    font-size: clamp(18px,2.8vw,22px);
    margin-top: min(15px,10%);
    font-weight: 600;
}


/* 푸터 */
footer {
   padding-block: 25px 60px;
}
footer p,
footer a {
    font-family: 'pretendard';
    font-size: 15px;
    text-align: center;
}
footer p:last-child {
    margin-top: 5px;
    color: #666;
    letter-spacing: 1px;
}
footer p span {
    font-size: inherit;
    color: inherit;
}

/* 개인정보처리방침 */
.agree-cont {
    position: fixed;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    max-width: 90%;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    z-index: 99;
    display: none;
}
.agree-cont .tit {
    padding: 30px 40px;
    background: #000;
    position: relative;
}
.agree-cont .tit h2 {
    color: #fff;
    font-size: 20px;
    font-family: 'pretendard';
}
.agree-cont .tit span {
    position: absolute;
    top:30px;
    right: 40px;
    cursor: pointer;
}
.agree-cont .cont p {
    font-family: 'pretendard';
}
.agree-cont .cont p b {
    font-family: 'pretendard';
    font-weight: 600;
}
.agree-cont .cont {
    max-height: 512px;
    overflow-y: scroll;
    padding: 40px 40px 0;
    margin-bottom: 40px;
}
.agree-cont .cont div {
   
}

@media screen and (max-width:1500px){
    .quick-menu{
        right:4%;
    }
}
@media screen and (max-width:1200px){
    .quick-menu{
        display: none;
    }
}
@media screen and (max-width:992px){
    #wrap {
        padding-bottom: clamp(100px, 35%, 140px);
        padding-top: clamp(100px, 20vw, 164px);
    }
    .contact-form {
        display: none;
    }
    footer {
        padding: clamp(30px,15%,45px);
        background: #1d1d1c;
        border: 1px solid var(--border);
    }
    footer p, 
    footer a {
        color: #fff;
        line-height: 1.6;
    }
    footer p:last-child {
        color: #fff;
        opacity: 0.5;
        margin-top: clamp(10px,8%,20px);
    }
    .sub-quick-menu {
        display: grid;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 99;
        background: #f3f2e9;
    }
    footer p span {
        display: none;
    }
}


/* 게시판 */
.admin-btn {
    background: #666;
    margin-top: 60px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.admin-btn:has(a) {
    padding: 10px;
}
.admin-btn a,
.admin-btn button {
    padding-inline: 20px;
    background: #111;
    color: #fff;
    line-height: 35px;
    height: 35px;
    font-size: 14px;
    border-radius: 5px;
}
.board-view .view-top {
    margin-top: 50px;
    padding: 25px 0;
    position: relative;
    text-align: center;
    border-top: 1px solid #c0c0c0;
    border-bottom: 1px solid #c0c0c0;
}
.board-view .view-top h2 {
    font-size: 20px;
    font-weight: 700;
}
.board-view .view-top .date {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    font-size: 17px;
    color: #999;
}
.board-view .view-content {
    padding:75px 4% 85px;
    border-bottom: 1px solid #c0c0c0;
}
.board-view .view-bottom {
    margin-block: 60px 110px;
}
.board-view .view-bottom:has(.admin-btn) {
    margin-block: 60px 0;
}
.board-view .view-bottom .view-list-btn {
    display: block;
    text-align: center;
    margin: 0 auto;
    font-size: 17px;
    width: 170px;
    border-radius: 50px;
    border:1px solid #222;
    padding-block: .75em;
    transition: all 0.2s;
}
.board-view .view-bottom .view-list-btn:hover {
    background: #222;
    color: #fff;
}
@media (max-width:992px) {
    .board-view .view-top h2 {
        font-size: clamp(22px,3.6vw,24px);
    }
    .board-view .view-top .date {
        position: static;
        transform: none;
        font-size: clamp(18px,3vw,20px);
        margin-top: 10px;
    }
}




