/*메인*/
#main-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
		padding-top: 60px;
}

#main-banner .banner_wrap {
    position: relative;
    width: 100%;

}
#main-banner .banner_wrap {
    position: relative;
    width: 100%;
    height:50vh; 
}

#main-banner .banner_wrap img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    display: block;
}
#main-banner .banner_wrap img {
    width: 100%;
    height: auto;
    display: block;
}

#main-banner .banner_wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15); 
}
#main-banner .banner_txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center; 
    color: #ffffff;
    z-index: 2;
    padding: 0 20px;
    box-sizing: border-box;

}

#main-banner .banner_txt .sub_txt {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
    opacity: 0.85;
    letter-spacing: 1px;
}

#main-banner .banner_txt .main_action {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    line-height: 1.4;
}

#main-banner .banner_txt h2 {
    font-size: 38px; 
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
/* 1. 애니메이션 키프레임 정의 (서브 텍스트용) */
@keyframes slideFadeUp {
    0% { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 2. 애니메이션 키프레임 정의 (메인 타이틀용 - 약간의 텐션과 블러 해제 효과 포함) */
@keyframes titlePop {
    0% { 
        opacity: 0; 
        transform: translateY(40px) scale(0.9); 
        filter: blur(4px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0); 
    }
}

/* 3. 텍스트 요소 초기 상태 숨김 및 애니메이션 유지 설정 */
#main-banner .banner_txt .sub_txt,
#main-banner .banner_txt .main_action,
#main-banner .banner_txt h2 {
    opacity: 0; 
    animation-fill-mode: forwards; /* 애니메이션 종료 후 최종 프레임(100%) 상태 유지 */
}

/* 4. 각 요소별 애니메이션 할당 및 지연(Delay) 시간 차등 적용 */
#main-banner .banner_txt .sub_txt {
    /* 0.2초 후 0.8초 동안 실행 */
    animation: slideFadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

#main-banner .banner_txt .main_action {
    /* 0.4초 후 0.8초 동안 실행 */
    animation: slideFadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

#main-banner .banner_txt h2 {
    /* 0.6초 후 1초 동안 탄성(cubic-bezier)을 가지며 실행 */
    animation: titlePop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s forwards;
}

/* 4개의 아이콘 메뉴를 가로 1줄(1x4)로 균일하게 분할 배치 */
.main-link {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    padding: 24px 16px;
    box-sizing: border-box;
    margin: 0;
    list-style: none;
    background: #ffffff;
}

.main-link li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}

/* 아이콘을 담는 배경 박스 (앱 아이콘 스타일) */
.main-link .ico_box {
    width: 60px;
    height: 60px;
    background: var(--bg_light);
    border: 1px solid var(--border_color);
    border-radius: 18px; /* 둥근 모서리 처리 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

/* 내부 이미지 아이콘 크기 제어 */
.main-link .ico_box img {
    width: 28px; 
    height: auto;
    display: block;
}

/* 텍스트 스타일 지정 */
.main-link p {
    font-size: 13px;
    font-weight: 500;
    color: var(--text_dark);
    margin: 0;
    text-align: center;
    letter-spacing: -0.5px;
}

/* 2x2 카드 레이아웃 배경 리셋 */
.card-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 14px; /* 여백 확대 */
    padding: 24px 20px;
    background: #ffffff; /* 전체 배경은 완전한 흰색 */
    box-sizing: border-box;
}

/* 개별 카드: 입체감(Shadow) 및 터치 애니메이션 추가 */
.card-item {
    background: var(--ss-card); 
    border: 1px solid var(--ss-line); 
    border-radius: var(--ss-radius-card); 
    padding: 18px;
    height: 110px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05); 
    transition: transform 0.15s ease, box-shadow 0.15s ease; 
}

/* 모바일 터치(클릭) 시 생동감 있는 축소 반응 */
.card-item:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* 텍스트 기본 스타일 */
.card-item p {
    font-size: 16px;
    font-weight: 700;
    color: var(--text_dark);
    margin: 0;
    letter-spacing: -0.5px;
}

/* 아이콘 정렬 기준 유지 */
.card-item img {
    align-self: flex-end; 
    width: 36px;
    height: auto;
}

/* 1. 메인 강조 카드 (색상 반전으로 시각적 포인트) */


/* 4. 서브 포인트 카드 (기존보다 맑은 파스텔톤) */

/* 5. 카카오톡 1:1 상담 — 4칸 그리드 아래 가로로 꽉 차게(카카오 브랜드 노란색) */
.card-item.kakao-card {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 64px;
    background: #FEE500;
}

.card-item.kakao-card p {
    color: #381E1E;
}

/*메인 3번째 섹션*/
/* 특수 수거 와이드 배너 (세로 확장 및 이미지 가시성 확보) */
.special-banner {
    position: relative;
    width: 100%;
    margin: 0 0 40px 0;
    padding: 65px 20px; /* 상하 패딩을 키워 세로 공간감 확보 */
    box-sizing: border-box;
    cursor: pointer;
    
    /* 오버레이 투명도를 낮춰(0.85 -> 0.55) 배경 이미지가 은은하게 보이도록 조절 */
    background: linear-gradient(rgba(13, 65, 105, 0.6), rgba(13, 65, 105, 0.6)), url('/img/special_bg.webp') no-repeat center center;
    background-size: cover;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 제목 텍스트 (가독성을 위한 미세한 그림자 추가) */
.special-banner .txt-box h3 {
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* 배경 위에서도 텍스트가 확 돋보이게 처리 */
}

/* 설명 텍스트 */
.special-banner .txt-box p {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 28px 0;
    opacity: 0.95;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* 견적 신청 유도 버튼 */
.special-banner .btn-estimate {
    background: #ffffff;
    color: var(--point_color);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 28px;
    display: inline-block;
    letter-spacing: -0.5px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* 입체감 강화 */
}

.special-banner .btn-estimate span {
    margin-left: 4px;
    font-weight: 400;
}


.event-banner-wrap {
    width: 100%;
    padding: 0 20px 30px ;
    box-sizing: border-box;
    background: #ffffff;
}

.event-banner-wrap .section-title {
    margin-bottom: 14px;
}

.event-banner-wrap .section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text_dark);
    margin: 0;
    letter-spacing: -0.5px;
}

