@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

header {
 z-index: 100;
 position: fixed;
 top: 0;
 width: 100vw;
 background-color: rgba(0, 0, 0, 0.3);
 /* box-shadow: 0 2px 5px rgba(110, 110, 110, 0.212); */

 transition: background-color 0.2s;


}

header.hover,
header.scroll{
    background-color: white;
}

ul.main_menu>li a{
    color: white;
}

header ul.main_menu>li a:hover{
    color: var(--red) !important;
}

#header.hover ul.main_menu>li a,
#header.scroll ul.main_menu>li a{
    color: #111;
}

#header.hover .search_bar,
#header.scroll .search_bar{
    /* background-color: #f0f0f0; */
}

#header {
    color: #111;
}

#header a {
    text-decoration: none; 
    /* transition: color 0.5s; */
}

.h01 {
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    position: relative;

    padding: 0 60px 0;
    border-bottom: 1px solid #828282;
}

.h01 .header_img{
    padding-top:20px;
}

.h01 ul.menu{
    position: absolute;
    top: 50%;
    left: 43%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 20px;

    text-align: center;
}

#header .search_bar_wrap{
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translate(0%, -50%);
}

#header .search_bar{
    background-color: var(--red);
    width: 160px;
    height: 50px;
    box-sizing: border-box;
    border-radius: 10px;
    color: white;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

#header .search_bar input{
    border: none;
    width: 85%;
    background: transparent;
}

#header .search_bar > img{
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translate(-50%, -50%);
}

ul.main_menu>li {
    position: relative;

    border-radius: 10px;
    padding: 16px 20px;

    transition: background-color 0.2s;

    cursor: pointer;
}

ul.main_menu>li.on {
    /* background-color: #f3e872;  */
    color: #111;
}


.sub_menu{
  /* width: 100%; */
  width: max-content;


  position: absolute;
  
  background-color: white;

  border-radius: 10px;
  border: 1px solid #828282;

  padding: 35px 30px;
  /* box-sizing: border-box; */
  top: 77px;
  left: 50%;
  transform: translateX(-50%);

  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 30px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s, visibility .5s;
}

ul.sub_menu_fixer{
    width: 490px;
    flex-wrap: wrap;
    flex-direction: initial;

    transform: translateX(-11%);
}

ul.sub_menu_fixer li{
    width:50%;
}

.main_menu>li:hover .sub_menu{
  opacity: 1;
  visibility: visible;
}
.sub_menu>li>a{
  color: #111111;
  transition: all .5s;
}
.sub_menu>li:hover>a{
  /* text-decoration: underline !important; 
 text-underline-position:under !important; */
 color: var(--red) !important;
}





/*검색*/
.input_search {
 width: 15vw;
 border: none;
 font-size: 16px;
 outline: none;
 border-bottom: 1px solid #c5c3c3bd;
}

.input_search::placeholder {
 color: #969696;
 font-size: 1vw;
 font-family: "Poppins", sans-serif;
 font-weight: 200;
 font-style: normal;
}

.search_submit {
 width: 5vw;
 height: 2.5vw;
 border-radius: 30px;
}


#m_header{
    display:none;
}





/* mobile */
@media screen and (max-width: 767px) {
    .h01,
    .h02{
        display:none;
    }

    
    
    #m_header{
        display: block;
        width: 100%;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        transition: background-color .5s;

        background-color: white;
        border-bottom: 1px solid #828282;

        /* background-color: #f3e872; */
    }

    #m_header.hide{
        opacity: 0;
        visibility: hidden;
    }

    #m_header.scroll{
        /* background-color: #f3e872; */
    }

    #m_header .center{
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #m_header .center a{
        width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #m_header .center a img{
        width: 100%;
    }

    .m_menu_top a img{
        width: 100%;
    }

    #m_header.scroll .center a img{
        content: url(../images/logo_color.png);
    }

    .m_lang_menu{
        display: flex;
        align-items: center;
    }

    .m_lang,
    .m_menu{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .m_lang{
        margin-right: 15px;
    }

    .m_lang i,
    .m_menu i{
        color: #111;
        font-size: 24px;
    }

    #m_header.scroll .m_lang i,
    #m_header.scroll .m_menu i{
        color: #111;
    }

    .m_menu_box{
        width: 100%;
        height: 100%;
        background-color: white;
        position: fixed;
        top: 0;
        left: 0;
        padding: 0 5%;
        box-sizing: border-box;
        transform: translateX(-100%);
        transition: transform 1s;
        color: #111;
    }

    .m_menu_box.show{
        transform: translateX(0);
    }

    .m_menu_top{
        width: 100%;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .m_menu_top a{
        width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    

    .close{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close i{
        color: #111;
        font-size: 24px;
    }

    .m_menu_inner{
        width: 100%;
        height: calc(100% - 60px);
        overflow: auto;
        padding: 30% 0 50%;
        box-sizing: border-box;
    }

    ul.m_main_menu{
        width: max-content;
                /* width: 50%; */
        text-align: center;
        margin: 0 auto;
    }

    ul.m_main_menu>li{
        width: 100%;
        padding: 20px 0;
    }

    ul.m_main_menu>li p{
        width: 100%;
        font-size: 20px;
        text-transform: uppercase;
        font-family: 'Pretendard-Semibold', sans-serif;
        font-weight: 700;
        color: #111;
        padding: 0 10px;
        box-sizing: border-box;
    }

    ul.m_sub_menu{
        width: 100%;
        margin-top: 20px;
        padding: 0 15px;
        box-sizing: border-box;
        display: none;
    }

    ul.m_sub_menu li{
        width: 100%;
        margin-bottom: 15px;
        font-size: 16px;
        color: #111;
    }

    ul.m_sub_menu li:last-child{
        margin-bottom: 0;
    }

    #m_header .m_menu,
    #m_header .close{
        color: #111;
    }

    #m_header .close{
        right: 5%;
    }



}

/* tablet */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .h01,
    .h02{
        display:none;
    }



    #m_header{
        display: block;
        width: 100%;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        transition: background-color .5s;

        background-color: white;
        border-bottom: 1px solid #828282;

        /* background-color: #f3e872; */
    }

    #m_header.hide{
        opacity: 0;
        visibility: hidden;
    }

    #m_header.scroll{
        /* background-color: #f3e872; */
    }

    #m_header .center{
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #m_header .center a{
        width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #m_header .center a img{
        width: 100%;
    }

    .m_menu_top a img{
        width: 100%;
    }

    #m_header.scroll .center a img{
        content: url(../images/logo_color.png);
    }

    .m_lang_menu{
        display: flex;
        align-items: center;
    }

    .m_lang,
    .m_menu{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .m_lang{
        margin-right: 15px;
    }

    .m_lang i,
    .m_menu i{
        color: #111;
        font-size: 24px;
    }

    #m_header.scroll .m_lang i,
    #m_header.scroll .m_menu i{
        color: #111;
    }

    .m_menu_box{
        width: 100%;
        height: 100%;
        background-color: white;
        position: fixed;
        top: 0;
        left: 0;
        padding: 0 5%;
        box-sizing: border-box;
        transform: translateX(-100%);
        transition: transform 1s;
        color: #111;
    }

    .m_menu_box.show{
        transform: translateX(0);
    }

    .m_menu_top{
        width: 100%;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .m_menu_top a{
        width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }



    .close{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close i{
        color: #111;
        font-size: 24px;
    }

    .m_menu_inner{
        width: 100%;
        height: calc(100% - 60px);
        overflow: auto;
        padding: 30% 0 50%;
        box-sizing: border-box;
    }

    ul.m_main_menu{
        width: max-content;
        /* width: 50%; */
        text-align: center;
        margin: 0 auto;
    }

    ul.m_main_menu>li{
        width: 100%;
        padding: 20px 0;
    }

    ul.m_main_menu>li p{
        width: 100%;
        font-size: 20px;
        text-transform: uppercase;
        font-family: 'Pretendard-Semibold', sans-serif;
        font-weight: 700;
        color: #111;
        padding: 0 10px;
        box-sizing: border-box;
    }

    ul.m_sub_menu{
        width: 100%;
        margin-top: 20px;
        padding: 0 15px;
        box-sizing: border-box;
        display: none;
    }

    ul.m_sub_menu li{
        width: 100%;
        margin-bottom: 15px;
        font-size: 16px;
        color: #111;
    }

    ul.m_sub_menu li:last-child{
        margin-bottom: 0;
    }

    #m_header .m_menu,
    #m_header .close{
        color: #111;
    }

    #m_header .close{
        right: 5%;
    }



}