#theader { z-index: 995; position: relative; left: 0; top: 0; width: 100%; }

/* #theader .top */
#theader .top { height: 120px; border-bottom: 1px solid #dddddb; }
#theader .top .contwrap { height: 100%; }
#theader .top .topmenu { display: flex; flex-wrap: nowrap; justify-content: space-between; height: 100%; }

/* #theader .top .topmenu .left */
#theader .top .topmenu .left { height: 100%; }
#theader .top .topmenu .left .logo { display: flex; flex-wrap: nowrap; align-items: center; height: 100%; }
#theader .top .topmenu .left .logo img { width: 185px; margin-right: 20px; }
#theader .top .topmenu .left .logo p { font-weight: 600; font-size: 34px; color: #000; letter-spacing: -0.025em; line-height: 1; animation: textColorChange 2s infinite linear alternate; }
#theader .top .topmenu .left .logo p span { color: #c7171a; animation: spanColorChange 2s infinite linear alternate; }
#theader .top .topmenu .left .logo p br { display: none; }
@keyframes textColorChange {
  from { color: #000; }
  to { color: #c7171a; }
}
@keyframes spanColorChange {
  from { color: #c7171a; }
  to { color: #000; }
}

/* #theader .top .topmenu .right */
#theader .top .topmenu .right { height: 100%; }
#theader .top .topmenu .right .memberwrap { height: 50px; }
#theader .top .topmenu .right .searchwrap { height: calc(100% - 50px); }

#theader .top .topmenu .right .memberwrap { display: flex; flex-wrap: nowrap; align-items: center; font-size: 16px; color: #8d8d8d; }
#theader .top .topmenu .right .memberwrap * { font-size: inherit; color: inherit; }
#theader .top .topmenu .right .memberwrap a { display: inline-block; margin-left: 15px; }
#theader .top .topmenu .right .searchwrap { display: flex; flex-wrap: nowrap; align-items: center; }
#theader .top .topmenu .right .searchwrap form { width: 280px; padding: 7px 15px; padding-right: 10px; background-color: #f3f3f3; border-radius: 100px; }
#theader .top .topmenu .right .searchwrap form input[type='text'] { display: inline-block; width: calc(100% - 30px); font-size: 14px; color: #333; background-color: transparent !important; border: none !important; box-shadow: none !important; outline: none !important; }
#theader .top .topmenu .right .searchwrap form button { font-size: 22px; color: #656565; background-color: transparent !important; border: none !important; box-shadow: none !important; outline: none !important; }

@media (max-width: 1535px) {
    /* #theader .top */
    #theader .top { height: 100px; }

    /* #theader .top .topmenu .left */
    #theader .top .topmenu .left .logo img { width: 154.16px; margin-right: 18px; }
    #theader .top .topmenu .left .logo p { font-size: 28.33px; }

    /* #theader .top .topmenu .right */
    #theader .top .topmenu .right .memberwrap { height: 40px; }
    #theader .top .topmenu .right .searchwrap { height: calc(100% - 40px); }

    #theader .top .topmenu .right .memberwrap { font-size: 15px; }
    #theader .top .topmenu .right .memberwrap a { margin-left: 13px; }
    #theader .top .topmenu .right .searchwrap form { width: 260px; padding: 6px 13px; padding-right: 8px; }
    #theader .top .topmenu .right .searchwrap form button { font-size: 20px; }    
}

@media (max-width: 1279px) {
    /* #theader .top */
    #theader .top { height: 80px; }

    /* #theader .top .topmenu .left */
    #theader .top .topmenu .left .logo img { width: 123.33px; margin-right: 15px; }
    #theader .top .topmenu .left .logo p { font-size: 22.66px; }

    /* #theader .top .topmenu .right */
    #theader .top .topmenu .right .memberwrap { height: 30px; }
    #theader .top .topmenu .right .searchwrap { height: calc(100% - 30px); }

    #theader .top .topmenu .right .memberwrap { font-size: 13px; }
    #theader .top .topmenu .right .memberwrap a { margin-left: 11px; }
    #theader .top .topmenu .right .searchwrap form { width: 240px; padding: 5px 12px; padding-right: 5px; }
    #theader .top .topmenu .right .searchwrap form button { font-size: 17px; }    
}

@media (max-width: 1023px) {
    /* #theader .top */
    #theader .top { height: 70px; }

    /* #theader .top .topmenu .left */
    #theader .top .topmenu .left .logo img { width: 107.91px; margin-right: 13px; }
    #theader .top .topmenu .left .logo p { font-size: 19.83px; }

    #theader .top .topmenu .right { display: none !important; }
}
@media (max-width: 424px) {
    #theader .top .topmenu .left .logo img { width: 75px; margin-right: 11px; }
    #theader .top .topmenu .left .logo p { font-size: 15px; }
}
@media (max-width: 380px) {
    /* #theader .top .topmenu .left */
    #theader .top .topmenu .left .logo p { line-height: 1.2; }
    #theader .top .topmenu .left .logo p br { display: inline-block; }
}


/* hamburgerBtn */
.hamburgerBtn { z-index: 10; position: absolute; right: 40px; top: 43%; transform: translateY(-50%); width: 20px; height: 15px; display: none; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hamburgerBtn > div { position: relative; width: 100%; height: 2px; background-color: #c7171a; transition: all 0.3s ease; }
#theader.active .hamburgerBtn > div:nth-child(1) { transform: rotate(45deg); transform-origin: top left; }
#theader.active .hamburgerBtn > div:nth-child(2) { opacity: 0; }
#theader.active .hamburgerBtn > div:nth-child(3) { top: 0; transform: rotate(-45deg); transform-origin: bottom left; }

.hamburgerBtn .ham_text { position: absolute; bottom: -19px; right: 0; /* transform: translateX(-50%); */ text-align: center; font-weight: 500; font-size: 12px; color: #c7171a; white-space: nowrap; }

@media (max-width: 1023px) {
    .hamburgerBtn { display: flex; }
}
@media (max-width: 767px) {
    .hamburgerBtn { right: 30px; }
}
@media (max-width: 460px) {
    .hamburgerBtn { right: 20px; }
}


/* #theader .bottom */
#theader .bottom { height: 50px; border-bottom: 1px solid #dddddb; }
#theader .bottom .contwrap { height: 100%; }
#theader .bottom .bottomcont { height: 100%; }
#theader .bottom .bottomcont .menu1 { height: 100%; display: flex; flex-wrap: nowrap; }
#theader .bottom .bottomcont .menu1 > li { height: 100%; }

#theader .bottom .bottomcont .menu1 #cate { width: calc(100% - 50px); height: 100%; }
#theader .bottom .bottomcont .menu1 #cate .cate1 { height: 100%; }
#theader .bottom .bottomcont .menu1 #cate .cate1 .list_1 { height: 100%; }
#theader .bottom .bottomcont .menu1 #cate .cate1 .list_1 .custom_wrap { height: 100%; }
#theader .bottom .bottomcont .menu1 #cate .cate1 .list_1 .custom_wrap .sub_cate2 { height: 100%; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 { display: flex; flex-wrap: nowrap; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 { position: relative; width: 100%; height: 100%; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 > a { position: relative; display: block; height: 100%; text-align: center; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 > a > span { position: relative; top: 50%; transform: translateY(-50%); display: inline-block; font-weight: 600; font-size: 22px; color: #000; line-height: 1.25; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2:hover > a > span { color: #c7171a; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 > a::after { display: block; content: ''; z-index: 1; position: absolute; left: 50%; transform: translateX(-50%); bottom: -1px; width: 0; height: 2px; background-color: #c7171a; transition: width 0.3s; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2:hover > a::after { width: 100%; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 .sub_cate3 { display: none; position: absolute; left: 0; margin-top: 1px; width: 100%; padding: 20px; background-color: #fff; border: 1px solid #dddddb; border-top: none; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 .sub_cate3 .list_3 { text-align: left; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 .sub_cate3 .list_3 a { display: block; padding: 10px 0; border-top: 1px solid #e4e4e4; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 .sub_cate3 .list_3:first-of-type a { padding-top: 0; border-top: none; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 .sub_cate3 .list_3:last-of-type a { padding-bottom: 0; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 .sub_cate3 .list_3 a span { font-size: 16px; color: #3d3d3d; line-height: 1.25; }
#theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 .sub_cate3 .list_3 a:hover span { color: #c7171a; }

/* bottom 전체카테고리 버튼 */
#theader .allCategory { position: relative; height: 100%; aspect-ratio: 1/1; cursor: pointer; border-left: 1px solid #e4e4e2; border-right: 1px solid #e4e4e2; }
#theader .allCategory .btn-allcate { position: relative; display: flex; align-items: center; justify-content: center; width:100%; height: 100%; text-align: center; }
#theader .allCategory .btn-allcate .hambtn { position: relative; /* top: 50%; left: 0; transform: translateY(-50%); */ width: 20px; height: 16px; display: inline-flex; flex-direction: column; justify-content: space-between; }
#theader .allCategory .btn-allcate .hambtn > div { position: relative; width: 100%; height: 2px; background-color: #000; /* transition: all 0.3s ease; */ }
#theader.allactive .allCategory .btn-allcate .hambtn > div { left: 22%; }
#theader.allactive .allCategory .btn-allcate .hambtn > div:nth-child(1) { transform: rotate(45deg); transform-origin: top left; }
#theader.allactive .allCategory .btn-allcate .hambtn > div:nth-child(2) { opacity: 0; }
#theader.allactive .allCategory .btn-allcate .hambtn > div:nth-child(3) { top: 0; transform: rotate(-45deg); transform-origin: bottom left; }

@media (max-width: 1535px) {
    #theader .bottom { height: 45px; }

    #theader .bottom .bottomcont .menu1 #cate { width: calc(100% - 45px); }
    #theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 > a > span { font-size: 20px; }
    #theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 .sub_cate3 { padding: 17px; }
    #theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 .sub_cate3 .list_3 a span { font-size: 15px; }
}
@media (max-width: 1279px) {
    #theader .bottom { height: 40px; }

    #theader .bottom .bottomcont .menu1 #cate { width: calc(100% - 40px); }
    #theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 > a > span { font-size: 18px; }
    #theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 .sub_cate3 { padding: 15px; }
    #theader .bottom .bottomcont .menu1 #cate .sub_cate2 .list_2 .sub_cate3 .list_3 a span { font-size: 14px; }

    /* bottom 전체카테고리 버튼 */
    #theader .allCategory .btn-allcate .hambtn { width: 18px; height: 14px; }
}
@media (max-width: 1023px) {
    #theader .bottom { display: none !important; }
}


/* cate2 */
#cate2 { display: none; z-index: 1050; position: absolute; left: 0; width: 100%; background-color: rgba(255, 255, 255, 1); box-shadow: 0 4px 4px -4px #555; }
#cate2 .sub_cate2 { padding: 30px 0; display: flex; flex-wrap: wrap; }
#cate2 .sub_cate2 .list_2 { width: 16.6666%; }
#cate2 .sub_cate2 .list_2:nth-of-type(n + 7) { margin-top: 30px; }
#cate2 .sub_cate2 .list_2 > a { display: block; margin-bottom: 10px; }
#cate2 .sub_cate2 .list_2 > a > span { display: block; font-size: 15px; color: #000; line-height: 1.35; }
#cate2 .sub_cate2 .list_2 .list_3 > a { display: block; padding: 4px 0; }
#cate2 .sub_cate2 .list_2 .list_3 > a > span { display: block; font-size: 13px; color: #666; line-height: 1.5; transition: all 0.3s; }
#cate2 .sub_cate2 .list_2 .list_3 > a:hover > span { text-indent: 5px; color: #c7171a; }

@media (max-width: 1536px) {
    #cate2 .sub_cate2 { padding: 25px 0; }

    #cate2.scrollh { top: 45px; }
}
@media (max-width: 1279px) {
    #cate2 .sub_cate2 { padding: 20px 0; }
    #cate2 .sub_cate2 .list_2 { width: 20%; }
    #cate2 .sub_cate2 .list_2:nth-of-type(n + 7) { margin-top: initial; }
    #cate2 .sub_cate2 .list_2:nth-of-type(n + 6) { margin-top: 20px; }

    #cate2.scrollh { top: 40px; }
}
@media (max-width: 1023px) {
    #cate2 { display: none !important; z-index: -1; opacity: 0; }
}



/* moheader */
.moheader { display: none; z-index: 996; position: absolute; top: 70px; left: 0; width: 100%; max-height: calc(99vh - 70px); overflow-y: scroll; overflow-x: hidden; background-color: rgba(255, 255, 255, 1); box-shadow: 0 4px 4px -4px #333; }
.moheader.active { display: block; }

.moheader::-webkit-scrollbar { position: absolute; width: 7px; }
.moheader::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.moheader::-webkit-scrollbar-thumb { background: #2c6424; border-radius: 10px; }
.moheader::-webkit-scrollbar-thumb:hover { background: #555; }

.moheader .moTop { padding: 10px 0; position: relative; z-index: 5; text-align: center; }
.moheader .moTop .searchForm { position: relative; display: inline-block; width: 160px; padding: 6px; border: none !important; border-radius: 100px; background-color: #f3f3f3; border-radius: 100px; }
.moheader .moTop .searchForm form { position: relative; width: 100%; display: flex; justify-content: space-between; }
.moheader .moTop .searchForm form input { display: block; width: calc(100% - 35px); font-size: 13px; color: #333; outline: none !important; box-shadow: none !important; border: none !important; background-color: transparent !important; }
.moheader .moTop .searchForm form input:focus { outline: none !important; box-shadow: none !important; border: none !important; }
.moheader .moTop .searchForm form button { /* position: absolute; top: 50%; transform: translateY(-50%); right: 5px; */ color: #aaa; font-size: 14px; background: none !important; border: none !important; outline: none !important; box-shadow: none !important; }

.moheader .moMid { display: flex; flex-wrap: wrap; border-top: 1px solid #ddd; }
.moheader .moMid a { position: relative; width: 50%; padding: 10px 0; display: block; text-align: center; font-size: 13px; color: #333; }
.moheader .moMid a::after { display: block; content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 60%; background-color: #ddd; }
.moheader .moMid a:nth-of-type(2n - 1):after { display: none; }
.moheader .moMid a::before { display: block; content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 80%; height: 1px; background-color: #ddd; }
.moheader .moMid a:nth-of-type(n + 3)::before { display: none; }
.moheader .moMid a:last-of-type { width: 100%; }

.moheader .moBottom { border-top: 1px solid #ddd; }
.moheader .moBottom .bottommenu { border-bottom: 1px solid #ddd; }
.moheader .moBottom .bottommenu a { display: block; text-align: center; padding: 9px 20px; font-size: 16px; color: #333; }
.moheader .moBottom .bottommenu a:nth-of-type(5) { border-bottom: 1px solid #ddd; }
.moheader .moBottom .bottommenu a:hover { background-color: #eee; }

.moheader .moBottom .list_2 .sub_cate3 { display: none; }

@media (max-width: 1536px) {
    .moheader .moMid .person a img { width: 23px; }
}