/* 메인 스타일 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* 스크롤 동작 부드럽게 설정 */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

section{
    margin-bottom:120px;
}

.pl-115 {
    padding-left: 115px; /* 왼쪽 여백 115px */
}
/* 메인 배너 스타일 */
.main-banner {
    height:calc(95vh - 100px);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top: calc(100px + 2.5vh); /* 헤더 높이만큼 여백 - 100px로 수정 */
    background-color: #000;

    color: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    width: 95vw;
    max-width:1800px;
    margin-left: auto;
    margin-right: auto;
    padding: 150px 0; /* 위아래 여백 수정 */
    text-align: center; /* 텍스트 가운데 정렬 */
    margin-bottom:20px;
}
.main-banner.end::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        background-image:url('../images/lw/end_banner.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        animation: zoonInOut 10s ease-in-out infinite;
}

@keyframes zoonInOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.main-banner:nth-child(2) {
    margin-bottom: 20px;
}

.banner-container {
    width: 1400px; /* 안쪽 콘텐츠 영역 너비 */
    margin: 0 auto;
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    align-items: center;
}

.banner-text {
    width: 100%; /* 가로 전체 사용 */
    text-align: center; /* 텍스트 가운데 정렬 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.banner-label {
    color: #0066cc;
    font-size: 26px;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: -0.5px;
    transition: all 0.8s ease;
    text-align: center; /* 가운데 정렬 */
    opacity: 0;
    transform: translateY(20px);
}

.banner-label.slide-up-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease; /* 애니메이션 시간 감소 */
}

.banner-label.slide-up-text.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.banner-title-container {
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.banner-title {
    font-size: 60px; /* 폰트 크기 증가 */
    font-weight: 700;
    line-height: 0.55; /* 줄간검 조정 */
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-align: center; /* 가운데 정렬 */
}

.banner-title .line-1,
.banner-title .line-2 {
    display: block;
}

.slide-up-text.aos-animate,
.banner-title-container.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.banner-title-container.aos-animate .line-1 {
    transition-delay: 0.3s;
}

.banner-title-container.aos-animate .line-2 {
    transition-delay: 0.6s;
}

.banner-description {
    font-size: 16px;
    margin-bottom: 30px;
    color: #cccccc;
    letter-spacing: -0.5px;
    font-weight: 300;
}

/* 배너 CTA 영역 */
.banner-cta {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 16px;
}

.cta-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-link:hover {
    color: #0066cc;
}

.cta-divider {
    display: inline-block;
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.5);
}

/* 다운로드 버튼 */
.download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

.download-button img {
    height: 40px; /* 이미지 크기 조정 */
    width: auto;
}

/* 오른쪽 배너 이미지 */
.banner-images {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    padding-right: 30px; /* 오른쪽 여백 추가 */
}

.app-preview {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* 그룹 컴퍼니 섹션 */
.group-section {
    padding: 120px 0 180px; /* 여백 더 증가 */
    background-color: #fff;
    margin-bottom: 50px; /* 하단 마진 추가 */
    overflow: visible; /* 오버플로우 허용 - 추가 */
}

.group-container {
    width: 98%; /* 너비를 변경하여 더 넘게 사용 */
    max-width: 1570px; /* 최대 너비 설정 */
    margin: 0 auto;
    box-sizing: border-box; /* 박스 모델 수정 */
    padding: 0; /* 패딩 제거 */
    overflow: visible; /* 오버플로우 허용 */
}

.group-title {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 60px; /* 여백 증가 */
    color: #111;
    letter-spacing: -1px;
    padding-left: 20px; /* 좌측 여백 추가 */
}

.group-cards {
    display: flex;
    justify-content: space-between; /* 고르게 분배 */
    overflow: visible; /* 오버플로우 허용 - 변경 */
    padding: 0 20px 20px; /* 좌우 패딩 추가 */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    width: 100%; /* 너비 확정 */
    flex-wrap: nowrap; /* 카드가 줄바꿈 되지 않게 */
}

.group-cards::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.group-card {
    flex: 1; /* 동일한 비율로 자동 확장 */
    /* min-width: 250px;  */
    /* max-width: 290px;  */
    margin: 0 9px; /* 카드 간 간격 조정 */
    height: 480px; /* 카드 높이 증가 */
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 20px; /* 마우스 오버시 위로 올라가도 여유공간 확보 - 증가 */
}

.group-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 5; /* 호버시 다른 카드 위에 표시 */
}

.group-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 15px; /* 이미지에 배경 보더레디어스 추가 */
}

.group-card-content {
    position: relative;
    z-index: 2;
    padding: 30px 20px; /* 좌우 여백 줄이기 */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 상단으로 정렬 */
    padding-top: 50px; /* 상단 여백 추가 */
    color: #fff;
    box-sizing: border-box; /* 박스 모델 수정으로 요소가 컨테이너를 벗어나지 않도록 */
    overflow: visible; /* 오버플로우 내용 표시 - 변경 */
}

/* .group-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
    border-radius: 15px;
} */

.group-card-subtitle {
    font-size: 16px; /* 크기 증가 */
    opacity: 0.8;
}

.group-card-title {
    font-size: 48px; /* 1.5배 정도 키운 폰트 크기 */
    font-weight: 700;
    line-height: 1.1; /* 줄간격 조금 줄이기 */
    margin-bottom: 10px;
    letter-spacing: -1px;
    word-break: keep-all; /* 단어 단위로 줄바꿈 */
}

.group-card-title.multi-line {
    font-size: 42px; /* 다중 줄 타이틀은 약간 작게 */
    letter-spacing: -1.5px; /* 터리박스 조절 */
}

/* 스크롤 스냅 컨테이너 - 롤링 섹션용 */
/* .snap-container {
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
    position: relative;
} */

/* 롤링 섹션 스크롤 스냅 */
/* .rolling-section {
    scroll-snap-align: center;
} */

/* 빈 섹션 - 높이 100px */
.empty-section {
    height: 100px;
    width: 100%;
    background-color: #fff;
    /* 필요하다면 아래에 추가 스타일을 적용할 수 있습니다 */
}

.link_line{
    color:#fff;
    margin-top: 24px;
    /* font-size:30px; */
    font-weight:500;
    color:#fff;
}
.link_line a{
    color:inherit;
    text-decoration:none;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 400px;
    font-size: 22px;
    margin:12px;
    border: 2px solid #fff; /* border 색상 추가 */
    transition: background-color 0.3s, color 0.3s; /* hover 효과를 위한 트랜지션 추가 */
}
.under-banner .link_line a{
    padding: 10px 40px;
}


.link_line a:hover {
    background-color: #fff; /* hover 했을 시 배경색 하얗게 */
    color: #000; /* hover 했을 시 텍스트 색상 검은색으로 */
}

/* 반응형 스타일 */
@media (min-width: 1570px) {
    .group-cards {
        padding: 0 0 20px; /* 크기가 충분할 때 좌우 패딩 제거 */
    }
    
    .group-card {
        margin: 0 10px; /* 간격 약간 넓히기 */
    }
}

@media (max-width: 1800px) {
    .header-container {
        width: 95%;
    }
}

@media (max-width: 1600px) {
    .main-banner {
        width: 90%;
    }
    
    .banner-container {
        width: 85%;
    }
    
    .group-container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .group-title {
        font-size: 36px;
    }
    
    .group-card {
        flex: 0 0 280px;
        height: 420px;
    }
    
    .group-card-title {
        font-size: 36px;
    }
    
    .group-card-title.multi-line {
        font-size: 32px;
    }
}

@media (max-width: 1200px) {
    .banner-container {
        flex-direction: column;
    }
    
    .banner-text {
        flex: 0 0 auto;
        width: 100%;
        text-align: center;
        margin-bottom: 50px;
        padding-left: 0;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .banner-images {
        justify-content: center;
        padding-right: 0;
    }
    
    .app-preview-container {
        width: 100%;
    }
}