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



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


/* 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: 190px; margin: 11px 0 ; position: absolute; right: 170px; 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: 60px;
    margin: 0 auto; padding: 53px 0 0 0;
    border-bottom: 2px solid lightgray;
    display: flex; align-items: center; justify-content: flex-start;
}
.title p{width: 30px; margin-right: 10px; }
.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; margin-left: 5px;
}


/* contents */
.contents{  width: 80%; margin: 0 auto;}
.contents div{ margin: 0 auto; margin-top: 50px; width: 97%; 
    display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
}
.contents div article{
    width: 32%; overflow: hidden; border-top: 2px solid #eaeaea; padding-top: 50px; margin-bottom: 30px;
}
.contents div article:nth-of-type(1){border-top: none; padding-top: 0;}
.contents div article:nth-of-type(2){border-top: none; padding-top: 0;}
.contents div article:nth-of-type(3){border-top: none; padding-top: 0;}

.contents div article figure{ position: relative; overflow: hidden;}
.contents div article figure > a img{ width: 100%; height: 220px; object-fit: cover; transition: 1s; }
.contents div article figure > a span{
    position: absolute; display: inline-block; 
    background-color: rgba(0, 136, 231, 0.5);
    width: 100%; height: 100%; left: 0; top: 0;
    opacity: 0; transition: 1s;
}
.contents div article figure > a span img{
    width: 30px; height: 30px; position: absolute;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.contents div article small{
    font-size: 13px; color: rgb(183, 183, 183);
    margin: 15px 0 10px 0; padding: 0 10px;
    display: block;
}
.contents div article > a h2{
    line-height: 1.5; padding: 0 10px; font-size: 17px;
}

.contents > 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; cursor: pointer; 
} 

/* hover */
.contents div article:hover figure > a > img{ transform: scale(1.2);}
.contents div article:hover figure > a span{ opacity: 1;}
.contents div article:hover > a h2{color: #0088e7;}

.contents > 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; right: 0; top: 0;
    }
    .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;}


    /* contents */

    .contents{  width: 80%; margin: 0 auto;}
    .contents div{width: 100%; margin: 0 auto; margin-top: 50px;}
    .contents div article{ width: 47%; border-top: none; padding-top: 20px; margin-bottom: 50px;}
    .contents div article:nth-of-type(3){padding-top: 20px;}

    .contents div article figure{position: relative; overflow: hidden; border-radius: 15px; }
    .contents div article figure > a span{display: none;}
    .contents div article figure > a span img{display: none;}
    .contents div article small{ font-size: 16px; color: rgb(183, 183, 183); margin: 15px 0 10px 0; padding: 15px 0 0 10px; display: block;
        border-top: 2px solid #eaeaea;
    }
    .contents div article > a h2{line-height: 1.5; padding: 0 10px; font-size: 22px;}

    .contents > a{margin-top: 60px;} 

    /* hover */
    .contents div article:hover figure > a > img{ transform: scale(1.2);}
    .contents div article:hover figure > a span{ opacity: 1;}
    .contents div article:hover > a h2{color: #0088e7;}

    /* 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;}
    .contents div{ width: 100%;}
    .contents div article{ width: 100%;}
    .contents > a{margin-top: 0; width: 30%;}

}