/* 공통 스타일 업데이트 */
.wrap {
    max-width: 1400px;  /* 더 넓은 컨테이너 */
    margin: 0 auto;
    padding: 0 30px;
}

/* 메인 비주얼 섹션의 Swiper 스타일 */
.main_vis_list.swiper {
    width: 100%;
    height: 100vh;
}

.main_vis_list .swiper-wrapper {
    height: 100%;
}

.main_vis_list .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 배경 이미지 스타일 명확히 지정 */
.main_vis_bg01,
.main_vis_bg02,
.main_vis_bg03 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 메인 비주얼 텍스트 영역 */
.main_visual .text-content {
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

/* 메인 비주얼 텍스트 영역 수정 */
.main_visual .text-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    padding: 10px 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 1s forwards;
}


/* 반응형 대응 */
@media (max-width: 768px) {
    .main_visual .text-content h2 {
        font-size: 2rem;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .main_visual .text-content h2 {
        font-size: 1.2rem;
        line-height: 1.4;
        padding: 6px 12px;
        word-break: keep-all;
    }
}


/* 메인 비주얼 페이징박스 */
.main_visual .swiper-pagingbox {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.main_visual .swiper-pagingbox .wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: fit-content;
    margin: 0 auto;
}

/* 컨트롤 그룹 순서 변경 */
.main_visual .swiper-controls {
    order: 2; /* 순서 변경 */
    display: flex;
    align-items: center;
    gap: 10px;
}

.main_visual .swiper-progress-bar {
    width: 100%;
    max-width: 200px;
    height: 3px; /* 두께 약간 증가 */
    background: rgba(44, 62, 80, 0.2); /* 배경색 변경 */
    margin: 0 25px;
    border-radius: 2px;
    overflow: hidden;
}

.main_visual .slide_progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #2c3e50, #34495e); /* 그라데이션 효과 */
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* 페이지네이션 숫자 스타일 */
.main_visual .swiper-pagination {
    order: 1; /* 순서 변경 */
    position: static;
    color: whitesmoke;
    font-size: 0.9rem;
    font-weight: 500;
    width: auto !important;
    min-width: 40px;
}

/* 네비게이션 버튼 스타일 */
.main_visual .swiper-button-prev {
    order: 0; /* 왼쪽 화살표를 첫번째로 */
    position: static !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    color: whitesmoke;
    transition: all 0.3s ease;
}

.main_visual .swiper-button-next {
    order: 2; /* 오른쪽 화살표를 마지막으로 */
    position: static !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    color: whitesmoke;
    transition: all 0.3s ease;
}

.main_visual .swiper-button-prev:after,
.main_visual .swiper-button-next:after {
    font-size: 16px;
}

/* 반응형 대응 */
@media (max-width: 768px) {
    .main_visual .swiper-pagingbox .wrap {
        padding: 10px 20px;
        gap: 15px;
    }

    .main_visual .swiper-pagination {
        font-size: 0.8rem;
        color: whitesmoke;;
        
    }

    .main_visual .swiper-button-prev:after,
    .main_visual .swiper-button-next:after {
        font-size: 14px;
        color: whitesmoke;;
    }
}
/* 견적 문의 섹션 업데이트 */
.quote-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #fff;
    text-align: center;
}

.quote-section h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
}

.quote-button {
    display: inline-block;
    padding: 20px 60px;
    background: #fff;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s ease;
}

.quote-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* 시공사례 섹션 */
.projects {
    padding: 120px 0;
    background: #fff;
}

.projects h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: -0.02em;
}

/* 슬라이더 스타일 */
.project-slider {
    height: auto; /* 고정 높이 제거 */
    position: relative;
    padding: 0 50px 60px;
}

/* 슬라이더 아이템 스타일 */
.project-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-thumb {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 비율 유지 */
    width: 100%;
}

.thumb-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mou-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FF1493;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
    font-weight: bold;
}


.project-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.project-item:hover .project-thumb img {
    transform: scale(1.05);
}

.project-info {
    padding: 30px;
    background: #fff;
    flex: 1; /* 남은 공간 채우기 */
    display: flex;
    flex-direction: column;
}

.project-title {
    margin-bottom: 15px;
    flex-shrink: 0; /* 크기 고정 */
}
.project-title a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-title a:hover {
    color: #1a1a1a;
}

.project-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    flex: 1; /* 남은 공간 채우기 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 네비게이션 화살표 */
.project-next,
.project-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    color: #333;
    transition: all 0.3s ease;
}

.project-prev {
    left: 0;
}

.project-next {
    right: 0;
}

.project-next:hover,
.project-prev:hover {
    background: #333;
    color: #fff;
}

.project-next:after,
.project-prev:after {
    font-size: 18px;
}

/* 페이지네이션 */
.project-pagination {
    position: relative;
    margin-top: 50px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
/* 페이지네이션 숫자 위치 조정 */
.swiper-pagination-fraction {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    color: rgba(44, 62, 80, 0.85);
    font-size: 16px;
    font-weight: 500;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0;
    background: rgba(44, 62, 80, 0.2);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.swiper-pagination-bullet-active {
    background: rgba(44, 62, 80, 0.85);
    transform: scale(1.5);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
}

/* 반응형 대응 */
@media (max-width: 768px) {
    .project-pagination {
        margin-top: 30px;
        gap: 8px;
    }

    .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
}
/* Swiper 컨테이너에 하단 여백 추가 */
.project-slider {
    position: relative;
    padding: 0 50px;
    padding-bottom: 60px; /* 하단 여백 추가 */
}

/* Swiper 관련 추가 스타일 */
.swiper-wrapper {
    height: auto; /* 높이 자동 조정 */
}

.swiper-slide {
    height: auto; /* 높이 자동 조정 */
}

/* 서비스 특징 섹션 */
.service-features {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-features h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 80px;
    text-align: center;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1a1a1a, #4a4a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.feature-item .icon {
    font-size: 3rem;  /* 아이콘 크기 */
    margin-bottom: 25px;
    display: block;
    transition: all 0.4s ease;
}

.feature-item .icon img {
    width: 64px;  /* 이미지 크기 */
    height: 64px;
    object-fit: contain;
    transition: all 0.4s ease;
}

.feature-item:hover .icon img {
    transform: scale(1.1);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3498db, #2ecc71);
    opacity: 0;
    transition: all 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item .number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.2;
    margin-bottom: 25px;
    display: block;
    transition: all 0.4s ease;
}

.feature-item:hover .number {
    opacity: 0.4;
    transform: scale(1.1);
}

.feature-item p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #2c3e50;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* 호버 시 그라데이션 효과 */
.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52,152,219,0.05), rgba(46,204,113,0.05));
    opacity: 0;
    transition: all 0.4s ease;
}

.feature-item:hover::after {
    opacity: 1;
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .wrap {
        padding: 0 20px;
    }

    /* 메인 비주얼 */
    .main_visual .text-content h2 {
        font-size: 3rem;
    }

    /* 서비스 피처 */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* 프로젝트 슬라이더 */
    .project-slider {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    /* 메인 비주얼 */
    .main_visual .text-content h2 {
        font-size: 2rem;
        padding: 0 20px;
    }

    .swiper-pagingbox .wrap {
        padding: 0 15px;
    }

    /* 서비스 피처 */
    .service-features {
        padding: 50px 0;
    }

    .service-features h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature-item {
        padding: 15px;
    }

    .feature-item .icon {
        font-size: 2rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    /* 견적 문의 섹션 */
    .quote-section {
        padding: 40px 0;
    }

    .quote-section h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .quote-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* 프로젝트 섹션 */
    .projects {
        padding: 50px 0;
    }

    .projects h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .project-slider {
        padding: 0 20px;
    }

    .project-thumb {
        padding-top: 66.67%;
    }

    .project-info {
        padding: 15px;
    }

    .project-title a {
        font-size: 1.1rem;
    }

    .project-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    /* 메인 비주얼 */
    .main_visual .text-content h2 {
        font-size: 1.5rem;
    }

    /* 서비스 피처 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-item {
        padding: 12px;
    }

    /* 견적 문의 섹션 */
    .quote-section h3 {
        font-size: 1.5rem;
        padding: 0 15px;
    }

    /* 프로젝트 섹션 */
    .project-info {
        padding: 12px;
    }

    .project-title a {
        font-size: 1rem;
    }

    .project-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
    }

    /* 네비게이션 버튼 */
    .project-next,
    .project-prev {
        width: 30px;
        height: 30px;
    }

    .project-pagination {
        margin-top: 20px;
    }
}