/* 서브페이지(PROJECT, NOTICE, CONTACT) CSS
작성자 : 효민디앤피
Date : 2025-00-00
*/

/************ sub_banner **************/
.sub_banner {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}
.sub_banner .img_box {
    width: 100%; height: 100%;
    position: relative;
}
.sub_banner .img_box::after {
    content: "";
    width: 100%; height: 100%;
    position: absolute;
    top: 0; left: 0;
    background-color: rgba(0, 0, 0, 0.7);
}
.sub_banner .img_box img {
    height: 100%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.banner_title {
    width: 100%;
    position: absolute;
    top: 55%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #eee
}
.banner_title h1 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.banner_title p {
    font-size: 1.4rem;
    line-height: 160%;
}

.wrap {
    width: calc(100% - 32px);
    margin: 0 auto;
    margin-top: 60px;
    margin-bottom: 100px;
}

/************ PROJECT **************/
.tab_btn {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}
.tab_btn li {
    display: block;
    width: calc((100% - 32px) / 3);
    border-radius: 20px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    text-align: center;
    font-size: 1.4rem;
    padding: 10px 0;
    cursor: pointer;
}
.tab_btn [aria-pressed=true] {
    background-color: #D80C18;
    border: none;
    color: #fff;
    font-weight: 500;
}

.project_gallery {
    width: 100%;
}
.gallery {
    width: 100%;
    position: relative;
}
.gallery_box {width: 100%;min-height: 734px;}
.gallery article {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}
.project_card {position: relative;}
.gallery .img_box {
    width: 100%; height: 100%;
    background-color: #ccc;
    position: relative;
}
.gallery .img_box img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    --fit: contain;
}
.project_card .img_box::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
}
.project_card:hover .img_box::after {
    background: linear-gradient(to right, #ea5514, #D80C18);
    opacity: 0.8;
}
.gallery .txt_box {
    width: calc(100% - 40px);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    transition: all 0.3s ease;
}
.gallery .txt_box {opacity: 0;}
.project_card:hover .txt_box {
    opacity: 1;
}
.gallery .txt_box .index {
    display: inline-block;
    font-size: 1.4rem;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 8px 20px;
    margin-bottom: 12px;
}
.gallery .txt_box h2 {
    font-size: 2.8rem;
    margin-bottom: 8px;
    white-space: pre-line;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 80px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/*페이지네이션*/

.pagination {
    text-align: center;
    margin-top: 60px;
    display: flex;
    justify-content: center;
}
.page_btn {
	--w: 38;
	display: inline-block;
	width: 38px;
	height: 38px;
	text-align: center;
	line-height: 38px;
	color: #afafaf;
	font-weight: bold;
	cursor: pointer;
	user-select: none;
	border-radius: 50%;
}
.page_btn:hover {
  background-color: rgb(78 104 129 / 10%);
  transition: background-color .3s, scale .3s;
}
.page_btn:active {
  transition: background-color .3s !important;
  scale: calc((var(--w) - 10) / var(--w) * 100%);
}
.page_btn:active:after {
	content: '';
	position: absolute;
	inset: 0;
	scale: calc((var(--w) + 10) / var(--w) * 100%);
}

.page_btn.prev {
    margin-right: auto;
}
.page_btn.next {
    margin-left: auto;
}
.page_on {
    color: #D80C18;
}

/************ NOTICE(게시판) **************/
.notice_gallery {
    width: 100%;
    border-top: 2px solid #999;
    overflow: hidden;
}
.notice_list {
    position: relative;
    width: 100%;
    border-bottom: 1px solid #ccc;
    padding: 20px 0;
}
.notice_list .notice_index {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 15px;
    color: #666;
    font-size: 1.4rem;
    font-weight: 400;
}
.notice_list .point {
    border: 1px solid #D80C18;
    color: #D80C18;
}
.notice_list h2 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 140%;
    margin-bottom: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #333;
}
.notice_list .date {
    font-size: 1.2rem;
    color: #999;
}


/************ CONTACT(의뢰하기) **************/
.wrap_contact {
    width: calc(100% - 32px);
    margin: 0 auto;
    margin-top: 60px;
    margin-bottom: 100px;
}
.contact {
    width: 100%;
    margin-bottom: 100px; 
}
.contact .title {
    text-align: center; 
}
.contact .title h1 {
    display: inline-block;
    border-bottom: 2px solid #D80C18;
    font-size: 3.2rem;
    padding-bottom: 13px;
    margin-bottom: 40px;
}
.contact .info_box {
    width: 100%;
    margin-bottom: 40px;
}
.memo_tit {
    border-bottom: 1px solid #999;
    box-sizing: border-box;
    padding: 10px 0;
    margin-bottom: 20px;
}
.memo_tit h2 {
    display: inline-block;
    font-size: 2.4rem;
    font-weight: 600;
}
.memo_box {
    width: 100%;
}
.memo {margin-bottom: 25px;}
.memo .question {
    font-weight: 500;
}
.memo .question span {color: #D80C18;}
.memo .question :is(input, textarea) {margin-top: 8px;}
.memo .answer {
    width: 100%;
    padding: 15px 12px;
    border-radius: 5px;
    background-color: #f5f5f5;
    border: none;
    box-sizing: border-box;
}
.memo .big {
    height: 250px;
    resize: none;
    font-family: inherit;
}
.memo .file {
    width: 100%;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 5px;
    padding: 12px 12px;
}

.project_chk {
    width: 100%;
    padding-bottom: 90px;
}
.check_box {
    width: 50%;
    float: left;
    margin-bottom: 20px;
}
.check_box label {cursor: pointer;}
.check_box input {cursor: pointer;}

.agree {
    width: 100%; height: 200px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 5px;
    overflow-y: scroll;
    padding: 12px;
    color: #666;
    line-height: 140%;
    font-size: 1.4rem;
}
.agree_chk {
    width: 100%;
    margin-top: 20px;
    text-align: right;
    font-size: 1.4rem;
}
.agree_chk label {cursor: pointer;}
.agree_chk input {
    margin-left: 10px;
    cursor: pointer;
}

.send_btn {
    display: block;
    padding: 15px 55px;
    border-radius: 30px;
    background-color: #D80C18;
    border: none;
    color: #fff;
    font-weight: 600;
    margin: 0 auto;
    cursor: pointer;

}

.company .title {
    text-align: center; 
}
.company .title h1 {
    display: inline-block;
    border-bottom: 2px solid #D80C18;
    font-size: 3.2rem;
    padding-bottom: 6px;
    margin-bottom: 40px;
}
.company ul {
    width: 100%;
    margin-bottom: 40px;
}
.company ul li {
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
    padding: 10px 0;
}
.company ul li p {
    color: #333;
    font-size: 1.4rem;
}
.company ul li .info_title {
    width: 100px;
    font-size: 1.6rem;
    font-weight: 500;
    float: left;
}




/************ 미디어쿼리(태블릿) **************/
@media screen and (min-width: 768px) {
	
    /*** sub_banner ***/
    .sub_banner {
        aspect-ratio: 16 / 9;
        max-height: 450px;
    }
    .sub_banner .img_box img {width: 100%;}
    .banner_title h1 {
        font-size: 3.8rem;
        margin-bottom: 20px;
    }
    .banner_title p {font-size: 1.6rem;}

    .wrap {
        width: calc(100% - 60px);
    }
	
    /*** PROJECT ***/
    .tab_btn li {
        width: calc((100% - 80px) / 5);
        padding: 15px 0;
        border-radius: 25px;
    }
    .gallery_box {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 0;
        align-content: flex-start;
    }
    .gallery article {
        width: calc(50% - 10px);
        margin-bottom: 0;
    }
    

    /*** NOTICE ***/
    .notice_btn {
        max-width: 400px;
        margin: 0 auto;
        margin-bottom: 40px;
    }
    .notice_btn li {
        width: calc((100% - 40px) / 3);
    }
    .notice_gallery .gallery_box {gap: 0;}
	
	.notice_list > a {display:flex;align-items: center;gap:20px}
	
    .notice_list .notice_index {
        margin-bottom: 0;
        flex-shrink: 1;
    }
    .notice_list h2 {
        font-size: 1.8rem;
        line-height: 3rem;
        margin-bottom: 0px;
        width: 100%;
    }
    .notice_list .date {
        font-size: 1.4rem;
        line-height: 3rem;
        flex-shrink: 1;
        white-space: nowrap;
    }
    
    /*** CONTACT ***/
    .wrap_contact {
        width: calc(100% - 60px);
    }
    .memo_box {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    .memo_box .memo {
        width: calc(50% - 10px);
    }
    .check_box {width: 25%;}
    .project_memo {
        display: block;
    }
    .project_memo .memo {width: 100%;}
    .send_btn {font-size: 1.8rem;}
    .company ul {
        width: 465px;
        margin: 0 auto;
        margin-bottom: 60px;
    }
    .company ul li {padding: 12px 0;}
    .company ul li p {font-size: 1.6rem;}
    .company ul li .info_title {
        width: 120px;
        font-size: 1.8rem;
    }
    .map iframe {
        width: 100%; height: auto;
        aspect-ratio: 16 / 9;}


}

/************ 미디어쿼리(pc) **************/
@media screen and (min-width: 1024px) and (max-width: 1300px) {
    
}


@media screen and (min-width: 488px) {
	.pagination {
    width: fit-content;
    margin: 60px auto 0;
}
}

@media screen and (min-width: 1024px) {
    /*** sub_banner ***/
    .sub_banner {max-height: 500px;}

    .wrap {
        max-width: 1600px;
        margin-top: 100px;
    }

    /*** PROJECT ***/
    .tab_btn {
        max-width: 680px;
        margin: 0 auto;
        margin-bottom: 50px;
    }
    .tab_btn li {font-size: 1.6rem;}
    .gallery_box {gap: 16px;}
    .gallery article {
        width: calc((100% - 48px) / 4);
    }


    /*** NOTICE ***/
    .notice_btn {
        max-width: 400px;
    }
    .notice_gallery {
        max-width: 1400px;
        margin: 0 auto;
    }
    .notice_list {padding: 30px 0;}

    /*** CONTACT ***/
    .wrap_contact {
        max-width: 1130px;
        margin-top: 120px;
    }
    .contact {
        display: flex;
        gap: 100px;
    }
    .company {
        display: flex;
        gap: 100px;
    }
    .memo .question :is(input, textarea) {margin-top: 10px;}
    .company .company_info {width: 100%;}
    .company .company_info ul {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 35px;
    }
    .company ul li {
        width: calc(50% - 35px);
        margin-bottom: -10px;
    }
}


.project_card {
    animation: opacity .3s;
}

@keyframes opacity {
	0% {
		opacity: 0
	}

	100% {
		opacity: 1
	}
}