@import './reset.css';
@import './common.css';

/*
    헤더+푸터+큰틀
*/
body.fix #header{display: none;}
#header.hide{
    transform: translateY(-100%);
}
#header.active{
    background-color:#fff;
}
#header.active .header_container{
    padding-bottom: 15px;
    padding-top: 15px;
}
#header.active .menu_wrap .line,
#header.active .navi_item a::before,
#header.active .menu_wrap .line::before{
    background: #2b3530;
}
#header.active .header_container a,
#header.active .menu_area span{
    color: #2b3530;
}
#header.active .join_btn_box .btn_stroke{
    stroke:  #2b3530;
}
#header.active .logo svg path,
#header.active .join_btn_box .join_btn_ic path{
    fill:  #2b3530 !important;
}
#header{
    position: fixed;
    left: 0;
    top: 0;

    color: #fff;
    transition: background-color .6s .1s,color .6s .1s,transform .8s;
    width: 100%;
    z-index: 9999;
}
#header .header_container{
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    position: relative;

    padding: 30px;
    transition: padding .6s .1s;
}
#header .logo{
    display: flex;
    align-items: center;
    width: 100%;
}
#header .logo a{
    height: auto;
    max-width: 250px;
    padding: 4px 0;
    width: 100%;
    will-change: transform;
}
#header .logo a svg{
    height: auto;
    width: 100%;
}
#header .logo svg path{
    fill: #fff !important;
}

#header .navi{
   display: flex;
   align-items: center;  
}
#header .navi_list{
    display: flex;
    align-items: center;
    gap: 30px;
    
    position: absolute;
    left: 50%;
    transform: translate(-50%);
}
#header .navi_item{
    font-family: Basis Grotesque, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}
#header .navi_item a{
    position: relative;

    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-family: "PRETENDARD";
}
#header .navi_item a:hover::before{
    transform: scaleX(1);
    transform-origin: left;
}
#header .navi_item a::before{
    position: absolute;
    bottom: 0;
    left: 0;

    background: #fff;
    content: "";
    height: 1px;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .8s;
    width: 100%;
}

#header .menu_area{
    display: flex;
    align-items: center;
    gap: 40px;
}
#header .join_btn_box{
    display: flex;
    gap: 20px;

    position: relative;

    cursor: pointer;
    line-height: .8;
    padding: 20px;

    font-family: "PRETENDARD";
    font-size: 18px;
    font-weight: 400;
}
#header .join_btn_box .join_btn_ic{
    flex-shrink: 0;
    height: auto;
    width: 10px;
    color: #fff;
}
#header .join_btn_box span{
    text-wrap: nowrap;
}
#header .join_btn_box .btn_stroke{
    transition: stroke-dashoffset .8s;
    transition-delay: .3s;
    stroke: #fff;
    stroke-dasharray: 1;
}
#header .join_btn_box .btn_stroke_static{
    opacity: .5;
    stroke-dashoffset: 0;
}
#header .join_btn_box:hover .btn_stroke_hover{
    stroke-dashoffset: 0;
    transition-delay: .2s;
}
#header .join_btn_box .btn_stroke_hover{
    stroke-dashoffset: 1;
    z-index: 1;
}
#header .join_btn_box .btn_border_ic{
    position: absolute;
    left: 0;
    top: 0;
    overflow: visible;

    height: 100%;
    width: 100%;
}
#header .menu_box{
    position: relative;  
    cursor: pointer;
}
#header .menu_box::before{
    content: "";

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);

    height: 280%;
    width: 250%;
}
#header .menu_wrap{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    position: relative;

    height: 100%;
    overflow: hidden;
    pointer-events: auto;
    width: 30px;
}
#header .menu_wrap .line{
    position: relative;

    background-color: #fff;
    height: 1px;
    transform-origin: right;
    transition: transform .8s 0s;
    width: 100%;
}
#header .menu_box:hover .menu_wrap .line{
    transform: translate(170%);
}
#header .menu_wrap .line:first-child{
    transition: transform .8s  0s;
}
#header .menu_wrap .line:nth-child(2){
    transition: transform .8s .15s;
}
#header .menu_wrap .line:last-child{
    transition: transform .8s .3s;
}
#header .menu_wrap .line::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background-color: #fff;
    height: 1px;
    transform: translate(-170%);
    width: 100%;
}

#footer{
    background-color:#3e2b2c;
    padding-bottom: 50px;
    padding-top: 50px;
}
#footer .footer_top{
    display: grid;
    column-gap: 10px;
    grid-template-columns: repeat(12,1fr);
    row-gap: 0;
    position: relative;

    width: 100%;
    padding: 0 100px;
}
#footer .contact_area{
    grid-column: 1/3;

    font-family: Basis Grotesque,sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
}
#footer .footer_logo svg{
    height: auto;
    margin-bottom: 50px;
    max-width: 250px;
    width: 100%;
}
#footer .footer_logo svg path{
    fill: #fff !important;
}

#footer .contact_title{
    color: #d1ccbf;
}
#footer .link_contact{
    display: block;
    margin-top: 50px;

    color: #fff;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    width: fit-content;
    font-weight: 300;
}
#footer .link_contact:last-child{
    display: block;
    margin-top: 50px;
}
#footer .link_contact:hover::before,
#footer .menu_item a:hover::before,
#footer .community_item a:hover::before,
#footer .terms_box a:hover::before,
#footer .credit_box a:hover::before{
    transform: scaleX(1);
    transform-origin: left;
}
#footer .link_contact::before,
#footer .menu_item a::before,
#footer .community_item a::before,
#footer .terms_box a::before,
#footer .credit_box a::before{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scaleX(0);

    background: #fff;
    height: 1px;
    pointer-events: none;
    transform-origin: right;
    transition: transform .8s;
    width: 100%;
}
#footer .menu_item a.active::before{
    transform: scaleX(1);
    transform-origin: 0 50%;
}
#footer .menu_item a{
    position: relative;
}
#footer .menu_list{
    display: flex;
    flex-direction: column;
    gap: 40px;
    grid-column: 6/8;

    line-height: .8;
    white-space: nowrap;

    font-family: "PRETENDARD";
    font-size: 40px;
    font-weight: 300;
}

#footer .community_list{
    display: flex;
    flex-direction: column;
    gap: 40px;
    grid-column: 9/-1;

    line-height: .8;
    white-space: nowrap;
    padding-left: 100px;
}
#footer .community_item a{
    position: relative;
    font-family: Basis Grotesque,sans-serif;
    font-size: 36px;
    font-weight: 300;
}
#footer .sns_area{
    grid-column: 6/-1;
    margin-top: 50px;

    font-family: Basis Grotesque,sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}
#footer .sns_list{
    display: flex;
    gap: 40px;
    margin-top: 100px;
}
#footer .sns_item:hover{
    opacity: .7;
}
#footer .sns_item{
    transition: opacity .3s ease;
}
#footer .sns_item svg{
    height: 100%;
    max-height: 50px;
    max-width: 50px;
    width: auto;
}

#footer .footer_bottom{
    position: relative;
    padding: 0 100px;
    margin-top: 100px;
}
#footer .footer_bottom_container{
    display: grid;
    column-gap: 50px;
    grid-template-columns: repeat(12,1fr);
    row-gap: 0;
    
    width: 100%;

    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, .5);

    font-family: Basis Grotesque,sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
}
#footer .copy_box{
    grid-column: 1/4;
}
#footer .copy_box .copy{
    font-size: 17px;
}

#footer .terms_box{
    grid-column: 6/10;
}
#footer .terms_box a{
    position: relative;
}
#footer .credit_box{
    display: flex;
    align-items: center;
    justify-self: flex-end;

    grid-column: 11/-1;
}
#footer .credit_box a{
    position: relative;
}
#footer .contact_box.mo{
    display: none;
}

