


/* 각 서브 배경 */
.bg01{
    background-image: url(/img/sub/bg01.png);
}
.bg02{
    background-image: url(/img/sub/bg02.jpg);
}
.bg03{
    background-image: url(/img/sub/bg03.jpg);
}
.bg04{
    background-image: url(/img/sub/bg04.jpg);
}

/* sub 검색 */
.select-box{
    width: 100px;
    height: 50px;
    border: none;
    padding: 10px;
    box-sizing: border-box;
    outline: none;
    background-color: #fff;
    color: #222;
}
.inpbox input{
    width: 300px;
    height: 50px;
    border: none;
    padding: 10px;
    box-sizing: border-box;
    outline: none;
    background-color: #fff;
}
form{
    display: flex;
    border: 1px solid #ccc;
    width: 400px;
}
.se_form{
    display: flex;
    justify-content: flex-end;
}
.list_num{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 1rem;
}
.list_num ul{
    display: flex;
    gap: 20px;
}
.bo-btn{
    width: 15px;
}
.bo-left{
    transform: rotate(180deg);
}
.border{
    font-weight: 700;
}

@media screen and (max-width:550px) {
    form{
        width: 100%;
    }
    .select-box{
        width: 100%;
    }
    .search-title-box{
        width: 30%;
    }
    .inpbox{
        width: 70%;
    }
    .inpbox input{
        width: 100%;
    }
}


/* 글쓰기 버튼 */
.btn_box{
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}
.write{
    padding: 10px 30px;
    font-size: 16px;
    background-color: #23674e;
    border: 1px solid #23674e;
    color: #fff;
    box-sizing: border-box;
    cursor: pointer;
}
@media screen and (max-width:860px) {
    .write{
        padding: 8px 20px !important;
    }
}

/* 읽기 목록 버튼 */
.r_btn{
    margin-top: 20px;
}
.list_back{
    padding: 8px 20px;
    border: 1px solid #ccc;
    cursor: pointer;
    color: #222;
}





/* 공통 서브 css */
.sub-bg{
    width: 100%;
    height: 30rem;

    position: relative;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.sub-bg::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.3;
    z-index: 2;
}
.sub-title p{
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}
.sub-title{
    margin-bottom: 20px;
}
.sub-wrap{
    display: flex;
    flex-direction: column;
    align-items: center;

    position: absolute;
    top: 55%;
    left: 50%;
    z-index: 5;
    transform: translate(-50%,-50%);
}
@media screen and (max-width:550px) {
    .sub-bg{
        height: 350px;
    }
    .sub-wrap{
        top: 60%;
    }
}

/* sub 메뉴 이미지 크기 조정 */
.home{
    width: 20px;
    display: inline-flex;
    align-items: center;
}
.right{
    width: 23px;
    transform: rotate(90deg);
}

/* sub메뉴 조정 */
.sub-menu{
    display: flex;
    align-items: center;
    gap: 30px;
}
.sub-menu>ul{
    display: flex;
    gap: 20px;
}
.menu-m{
    width: 150px;
    height: 50px;
    position: relative;
}
.menu-m>a{
    display: inline-block;
    width: 100%;
    height: 100%;
    line-height: 50px;
    font-weight: 500;
    color: #fff;
}
.right{
    position: absolute;
    right: 0;
    top: 13px;
    transition: 0.3s;
}
.menu-s{
    display: none;
    flex-direction: column;
    gap: 0px !important;
    background-color: #fff09a;

    position: absolute;
    width: 100%;
    top: 100%;
}
.menu-s a{
    display: inline-block;
    width: 100%;
    font-size: 0.8rem;
    padding: 10px;
    box-sizing: border-box;

    color: #555;
}
.menu-s li:hover{
    background-color: #ebdc86;
}
.menu-m:hover .menu-s{
    display: flex;
}
.menu-m:hover .right{
    transform: rotate(-90deg);
}

@media screen and (max-width:860px) {
    .sub-menu ul{
        display: none;
    }
}
@media screen and (max-width:550px) {
    .sub-title p {
        font-size: 2rem;
    }
}