@charset 'utf-8';
@import url('common.css');



/* header */
.head nav ul li:nth-child(4) > a{ background-color: #0088e7; color: white; }


/* menu */

.menu{ margin-top: 101px; border-top: 1px solid rgb(248, 248, 248);
    left: 0; top: 101px; width: 100%; height: 50px; background-color: rgb(248, 248, 248);}
.menu ul{ width: 80%; height: 100%; margin: 0 auto;  position: relative;}
.menu ul li{width: 180px; margin: 11px 0 ; position: absolute; right: 0px; top: 0; }
.menu ul li a{ color: #333; margin: 0 10px; }
.menu ul li a:nth-child(2){ color: #0088e7;}


/* title */
.title{ 
    left: 0; top: 101px; width: 80%; height: 70px; margin: 0 auto; padding: 50px 0 0 0;
    display: flex; align-items: center; justify-content: flex-start;
}
.title p{width: 30px; margin-right: 10px; transform: translateY(-10%) }
.title p img{width: 100%; ;
    transform-style: preserve-3d; perspective: 20px; animation: a3 2s infinite;
}
@keyframes a3 {
    0%{transform: rotateY(0deg);}
    100%{transform: rotateY(360deg);}
}
.title h2{ left: 0; top: 0; font-size: 22px; }


/* event */
.event{  width: 80%; margin: 0 auto; }
.event ul{ margin: 0 auto; margin-top: 30px; width: 97%;}
.event ul li{  width: 97%; display: flex; align-items: flex-start; justify-content: space-between;  flex-wrap: wrap; }
.event ul li a{ width: 32%; border: 1.5px solid #eaeaea; background-color: white; transition: .5s; 
box-sizing: border-box; min-height: 470px; position: relative; margin-bottom: 45px;}

/* 이미지 */
.event ul li a figure{}
.event ul li a figure img{ width: 100%; height: 220px; object-fit: cover; transition: 1s; }

/* 내용 */

.event ul li a article{ padding: 20px 15px;}
.event ul li a article div{width: 25%; margin-left: 0;}
.event ul li a article div img{width: 100%;}
.event ul li a article small{ font-size: 13px; color: rgb(183, 183, 183); margin: 15px 0 5px 0; display: block;}
.event ul li a article h2{line-height: 1.5; font-size: 17px;}
.event ul li a article > p{font-size: 14px; color: rgb(151, 151, 151);
    margin: 15px 0 10px 0; line-height: 1.5; white-space: pre-line;
}

/* 화살표 */
.event ul li a article > span{ width: 30px; height: 30px; 
    display: inline-block; right: 5%; bottom: 1%; position: absolute;
}
.event ul li a article > span > span{ display: flex; justify-content: center; align-items: center; flex-direction: column;
    box-sizing: border-box; border: 1px solid rgb(183, 183, 183); transition: .5s;
}
.event ul li a article > span > span:nth-child(1){width: 15px; transform: rotate(40deg) translate(19px, -6px);}
.event ul li a article > span > span:nth-child(2){width: 30px; transform: translateY(10px);}

/* NEW딱지 */
.event ul li a > span{
    width: 60px; height: 60px; box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #0088e7; position: absolute; right: 5%; top: 42%; text-align: center;
}
.event ul li a > span h2{
    color: white;  font-size: 20px; transform: translateY(50%); font-weight: 400;
}
.event ul li a:nth-of-type(2) > span{display: none;}
.event ul li a:nth-of-type(4) > span{display: none;}
.event ul li a:nth-of-type(5) > span{display: none;}
.event ul li a:nth-of-type(6) > span{display: none;}
.event ul li a:nth-of-type(8) > span{display: none;}



/* 더보기 */
.event > a{
    margin: 0 auto; margin-top: 30px; display: block;
    width: 10%; padding: 15px 40px; font-size: 18px;
    text-align: center; transition: .3s; color: #0088e7; background-color: white;
    border: 1.5px solid #c6c6c6; border-radius: 30px;
} 

/* hover */
.event ul li a:hover{ border: 1.5px solid #0088e7; box-sizing: border-box; box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.1);}
.event ul li a:hover article > span > span{border: 1px solid #0088e7; }
.event ul li a:hover article > span > span:nth-child(2){width: 50px; transform: translate(-20px, 10px)}

.event > a:hover{
    border: 1.5px solid #0088e7;
    box-shadow: 1px 5px 5px rgba(0, 0, 0, 0.1);
}



@media (max-width:1046px){

    .header{    height: 85px; left: 0; top: 0; background-color: rgba( 255, 255, 255, 0 );
        border-bottom: none; margin: 0; padding: 5px 0; box-sizing: border-box; 
        width: 100%;  position: relative; z-index: 10;}
    .head{display: none;}
    header:hover::after{ display: none; }

    /* .mhead */
    .mhead{ display: block; width: 80%; margin: 0 auto; }
    .mhead ul{width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 30px;}
    .mhead ul li{ display: flex; align-items: center; justify-content: space-between;}
    
    .mhead ul li:nth-child(1){width: 20px;}
    .mhead ul li:nth-child(1) a img{width: 100%;}

    .mhead ul li:nth-child(2) a{width: 20px; z-index: 20;}
    .mhead ul li:nth-child(2) a img{width: 100%;}

    .bgmenu{ position: fixed; width: 50%; height: 100%; right: 0; top: 0; background-color: rgba(255, 255, 255);
        display: flex; align-items: flex-start; justify-content: flex-start; flex-direction: column;
        z-index: 10; transform: translateX(100%); transition: .5s; box-shadow: -10px 0 10px rgba(0, 0, 0, 0.05);
    }
    .bgmenu > div{ width: 80%; transform: translateY(20%); border-top: 2px solid #e3e3e3;}
    .bgmenu div > div{width: 100%; margin: 0px 0; line-height: 1.5; margin: 30px 0;}
    .bgmenu div div > h2{ font-size: 19px; margin: 5px 0;}
    .bgmenu div div > a p{ color: #999; font-size: 17px;}
    .bgmenu div > p{width: 40%; position: fixed; right: 0; bottom: 0; transform: translateY(250px);}
    .bgmenu div > p img{width: 100%;}

    .bgmenu.active{transform: translateX(0);}
    .active div > a p:hover{color: #0088e7;}


    /* menu */

    .menu{ margin-top: 0; border-top: none;
        left: 0; top: 0; width: 100%; height: 50px; background-color: white;}
    .menu ul{ width: 80%; height: 100%; margin: 0 auto; border-bottom: 2px solid #e3e3e3;}
    .menu ul li{  width: 100%;  text-align: center; margin: 0 auto; transform: translateX(0);
        display: flex; align-items: center; justify-content: center; position: inherit;
    }
    .menu ul li a{ margin: 0; width: 100%; height: 32.5px; color: #adadad;
        display: block; font-size: 20px; transform: translateY(50%);
    }
    .menu ul li a:nth-child(2){ color: #0088e7; border-bottom: 2px solid #0088e7}

    /* title */
    .title{ display: none;}

    /* event */
    .event{  width: 80%; margin: 0 auto; }
    .event ul{ margin-top: 50px; width: 100%;}
    .event ul li{  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;  flex-wrap: wrap; }
    .event ul li a{ width: 47%; border: 1.5px solid #eaeaea; background-color: white; transition: .5s; 
    box-sizing: border-box; min-height: 470px; position: relative; margin-bottom: 45px;}

    .event > a{ margin-top: 15px; }


    /* footer */
    .footer{ left: 0; top: 0;
        width: 100%; height: 110px; background-color: rgb(248, 248, 248));}
    .footer > div{ width: 100%; left: 0; top: 0; margin: 0 auto; padding-top: 20px;
        display: inherit; align-items: flex-start; justify-content: space-between;}

    /* logo */
    .logo{  width: 25%; min-width: 250px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px;}
    .logo p{ margin: 6px;}
    .logo p img{ width: 100%;}

    /* 안내 */
    .text{  width: 80%; margin: 0 auto; display: flex; justify-content: center; align-items: center; flex-direction: column;}
    .text li{ margin: 0; font-size: 12px; color: #999;}
    .text > li:nth-child(1) a{ font-size: 12px; padding: 0 10px; color: #999;}
    .text > li  small{ font-size: 11px; color: #c6c6c6;}

    /* sns */
    .sns{ display: none;}


}

@media (max-width:700px){
    .menu ul li a{font-size: 18px;}
    .event ul li a{ width: 100%;}
    .event > a{ width: 20%;}
}