.btn {
    margin : 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mo-br {
    display: none;
}

.banner{
    width: 100%;
    height: 40vh;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}    


.btn a {
    display: inline-block;
    background: linear-gradient(135deg, #4935ff, #f7931e);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    margin : 0 auto;

}

.banner-img{
    width: 100%;
    height: 100%;
    background-image:url(../img/sub/banner1.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
}

.banner-txt{
    position: relative;
    top: -50%;
    left: 60%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: left;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.banner-txt span{
    display: block;
    margin: 5px 0;
    font-weight: 700;
}

.banner-txt span:first-child{
    font-size: 30px;
    margin-bottom: 10px;
}

.banner-txt span:last-child{
    font-size: 16px;
}

.intro-container {
    display: flex;
    margin: 0 auto;
    height: 40vh;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.intro-container div {
    color: #4D4D4D;
    line-height: 2.6;
    text-align: center;
    font-weight: 600;
    margin: 0 auto;
    font-size: 18px;
}

.progress-container-tit {
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.progress-container-tit h1 {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
}
.progress-container-tit div {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: #2F2F2F;
    line-height: 1.5;
}

.progress-container {
    display: flex;
    height: 60vh;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    max-width: 1000px;
    width: 100%;
    gap: 20px;
    margin: 0 auto;
}
.progress-container-in {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
    gap: 20px;
    margin: 0 auto;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 120px;
    height: 120px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #94a3b8;
    position: relative;
    z-index: 2;
}

.step-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.step-text {
    margin-top: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #64748b;
    max-width:fit-content;
    line-height: 1.3;
}

.connector {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    position: relative;
    margin: 0 16px;
}

.connector-progress {
    height: 100%;
    background: #3b82f6;
    width: 0%;
    position: relative;
}

.connector-arrow {
    position: absolute;
    right: -4px;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 8px solid #e2e8f0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.sec6-tit{
    margin-top: 50px;
}
.sec6-tit span{
    font-size: 30px;
    font-weight: 700;
    margin-top: 100px;
}

/* 애니메이션 정의 */
.step:nth-child(1) .step-circle {
    animation: step1 10s infinite;
}
.step:nth-child(1) .step-text {
    animation: text1 10s infinite;
}
.step:nth-child(1) .check-icon {
    animation: check1 10s infinite;
}
.step:nth-child(1) .step-number {
    animation: number1 10s infinite;
}

.connector:nth-child(2) .connector-progress {
    animation: progress1 10s infinite;
}
.connector:nth-child(2) .connector-arrow {
    animation: arrow1 10s infinite;
}

.step:nth-child(3) .step-circle {
    animation: step2 10s infinite;
}
.step:nth-child(3) .step-text {
    animation: text2 10s infinite;
}
.step:nth-child(3) .check-icon {
    animation: check2 10s infinite;
}
.step:nth-child(3) .step-number {
    animation: number2 10s infinite;
}

.connector:nth-child(4) .connector-progress {
    animation: progress2 10s infinite;
}
.connector:nth-child(4) .connector-arrow {
    animation: arrow2 10s infinite;
}

.step:nth-child(5) .step-circle {
    animation: step3 10s infinite;
}
.step:nth-child(5) .step-text {
    animation: text3 10s infinite;
}
.step:nth-child(5) .check-icon {
    animation: check3 10s infinite;
}
.step:nth-child(5) .step-number {
    animation: number3 10s infinite;
}

.connector:nth-child(6) .connector-progress {
    animation: progress3 10s infinite;
}
.connector:nth-child(6) .connector-arrow {
    animation: arrow3 10s infinite;
}

.step:nth-child(7) .step-circle {
    animation: step4 10s infinite;
}
.step:nth-child(7) .step-text {
    animation: text4 10s infinite;
}
.step:nth-child(7) .check-icon {
    animation: check4 10s infinite;
}
.step:nth-child(7) .step-number {
    animation: number4 10s infinite;
}

.connector:nth-child(8) .connector-progress {
    animation: progress4 10s infinite;
}
.connector:nth-child(8) .connector-arrow {
    animation: arrow4 10s infinite;
}

.step:nth-child(9) .step-circle {
    animation: step5 10s infinite;
}
.step:nth-child(9) .step-text {
    animation: text5 10s infinite;
}

/* 1단계 애니메이션 */
@keyframes step1 {
    0%, 20% { border-color: #3b82f6; background: #3b82f6; color: white; }
    20%, 100% { border-color: #3b82f6; background: #3b82f6; color: white; }
}
@keyframes text1 {
    0%, 100% { color: #1e293b; font-weight: 500; }
}
@keyframes check1 {
    0%, 20% { opacity: 0; }
    20%, 100% { opacity: 1; }
}
@keyframes number1 {
    0%, 20% { opacity: 1; }
    20%, 100% { opacity: 0; }
}

/* 연결선 1 애니메이션 */
@keyframes progress1 {
    0%, 20% { width: 0%; }
    20%, 30% { width: 100%; }
    30%, 100% { width: 100%; }
}
@keyframes arrow1 {
    0%, 20% { border-left-color: #e2e8f0; }
    20%, 100% { border-left-color: #3b82f6; }
}

/* 2단계 애니메이션 */
@keyframes step2 {
    0%, 30% { border-color: #cbd5e1; background: white; color: #94a3b8; }
    30%, 40% { border-color: #3b82f6; background: #3b82f6; color: white; }
    40%, 100% { border-color: #3b82f6; background: #3b82f6; color: white; }
}
@keyframes text2 {
    0%, 30% { color: #64748b; font-weight: normal; }
    30%, 100% { color: #1e293b; font-weight: 500; }
}
@keyframes check2 {
    0%, 40% { opacity: 0; }
    40%, 100% { opacity: 1; }
}
@keyframes number2 {
    0%, 40% { opacity: 1; }
    40%, 100% { opacity: 0; }
}

/* 연결선 2 애니메이션 */
@keyframes progress2 {
    0%, 40% { width: 0%; }
    40%, 50% { width: 100%; }
    50%, 100% { width: 100%; }
}
@keyframes arrow2 {
    0%, 40% { border-left-color: #e2e8f0; }
    40%, 100% { border-left-color: #3b82f6; }
}

/* 3단계 애니메이션 */
@keyframes step3 {
    0%, 50% { border-color: #cbd5e1; background: white; color: #94a3b8; }
    50%, 60% { border-color: #3b82f6; background: #3b82f6; color: white; }
    60%, 100% { border-color: #3b82f6; background: #3b82f6; color: white; }
}
@keyframes text3 {
    0%, 50% { color: #64748b; font-weight: normal; }
    50%, 100% { color: #1e293b; font-weight: 500; }
}
@keyframes check3 {
    0%, 60% { opacity: 0; }
    60%, 100% { opacity: 1; }
}
@keyframes number3 {
    0%, 60% { opacity: 1; }
    60%, 100% { opacity: 0; }
}

/* 연결선 3 애니메이션 */
@keyframes progress3 {
    0%, 60% { width: 0%; }
    60%, 70% { width: 100%; }
    70%, 100% { width: 100%; }
}
@keyframes arrow3 {
    0%, 60% { border-left-color: #e2e8f0; }
    60%, 100% { border-left-color: #3b82f6; }
}

/* 4단계 애니메이션 */
@keyframes step4 {
    0%, 70% { border-color: #cbd5e1; background: white; color: #94a3b8; }
    70%, 80% { border-color: #3b82f6; background: #3b82f6; color: white; }
    80%, 100% { border-color: #3b82f6; background: #3b82f6; color: white; }
}
@keyframes text4 {
    0%, 70% { color: #64748b; font-weight: normal; }
    70%, 100% { color: #1e293b; font-weight: 500; }
}
@keyframes check4 {
    0%, 80% { opacity: 0; }
    80%, 100% { opacity: 1; }
}
@keyframes number4 {
    0%, 80% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

/* 연결선 4 애니메이션 */
@keyframes progress4 {
    0%, 80% { width: 0%; }
    80%, 90% { width: 100%; }
    90%, 100% { width: 100%; }
}
@keyframes arrow4 {
    0%, 80% { border-left-color: #e2e8f0; }
    80%, 100% { border-left-color: #3b82f6; }
}

/* 5단계 애니메이션 */
@keyframes step5 {
    0%, 90% { border-color: #cbd5e1; background: white; color: #94a3b8; }
    90%, 100% { border-color: #3b82f6; background: #3b82f6; color: white; }
}
@keyframes text5 {
    0%, 90% { color: #64748b; font-weight: normal; }
    90%, 100% { color: #1e293b; font-weight: 500; }
}

/* 반응형 */
@media (max-width: 768px) {
    .progress-container {
        gap: 10px;
        display: flex;
        flex-direction: column;
    }

    .step-circle {
        width: 80px;
        height: 80px;
        font-size: 14px;
    }
    .connector {
        margin: 0 8px;
    }
    .step-text {
        font-size: 16px;
        max-width: fit-content
    }
}

.process-img{
    width: 100%;
    height: 100%;
    background-image: url(../img/sub/sub02/1.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.progress-section{
    width: 100%;
    margin-top: 100px;
}

.progress-container-in{
    height: 180vh;
}

.process-section-in{
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
    /* border:2px solid green; */
}
.card-box {
    width: 100%;
    height: 333px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
}



.guarantee-container {
    display: flex;
    width: 100%;
    align-items: stretch;
    justify-content: space-between;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.left-card {
    flex: 1;
    position: relative;
}

.left-card::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    width: 240px;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding:16px;
}

.sketch-1::before {
    background-image: url('../img/sub/scribe1.png');
    opacity: 0.8;
}

.sketch-2::before {
    background-image: url('../img/sub/scribe2.png');
    opacity: 0.8;
}
.sketch-3::before {
    background-image: url('../img/sub/sc3.png');
    opacity: 0.6;
}


.subtitle {
    font-size: 18px;
    color:#2c5bc9;
    font-weight: 600;
    margin-bottom: 15px;
}

.main-title {
    font-size: 30px;
    color:#35393D;
    font-weight: 700;
    margin-bottom: 15px;
}

.main-title-second {
    background: #ddd;
    height: 40px;
    width: 80%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.right-card {
    flex: 1;
    text-align: left;
    position: relative;
    background-color:#F7F7F7;
    padding:20px;
    height: 100%;
    border-radius: 8px;
}

.guarantee-title {
    font-size: 30px;
    color:#35393D;
    font-weight: 700;
    margin-bottom: 15px;
}

.guarantee-subtitle {
    font-size: 16px;
    color:#2c5bc9;
    font-weight: 600;
    margin-bottom: 15px;
}

.guarantee-description {
    background: #ddd;
    height: 20px;
    width: 150px;
    border-radius: 4px;
    margin: 0 auto 40px;
}

/* 체크 아이콘 영역 */
.check-icon {
    width: 220px;
    height: 220px;
    position: absolute;
    top: 50px;
    right: -20px;
}

.icon1{
    background-image: url(../img/sub/check.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.icon2{
    background-image: url(../img/sub/key.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.icon3{
    background-image: url(../img/sub/here.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}







.gap-box{
    width: 100%;
}


.sec5{
    /* border:10px solid green; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    height: 140vh;
    overflow: hidden;
    background-color: black;
    /* padding-top: 40px; */
}

.sec5-in {
    width: 100%;
    height: auto;
}

.sec5-tit{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sec5-tit span:first-child{
    font-size: 18px;
    font-weight: 600;
    color:#4B79EF;
    /* border: 2px solid blue; */
}
.sec5-tit span:nth-child(2){
    font-size: 28px;
    font-weight: 600;
    line-height: 1.7;
    /* border: 2px solid red; */
    color: #fff;
}

.sec5 .btn{
    width: 280px;
    margin-top: 52px;
}

.sec5 .btn a{
    display: inline-block;
    background: linear-gradient(135deg, #4935ff, #f7931e);
    color: white;
    padding: 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.sec5 .btn a:hover{
    transform: scale(1.1);
    background: linear-gradient(45deg, #fde140, #f5dede);
    color: #181818;
}

.sec5-img-container{
    /* border:2px solid #4B79EF; */
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sec5-img-upper{
    /* border:2px solid goldenrod; */
    display: flex;
    justify-content: center;
    gap: 20px;
    height: auto;
    align-items: center;
    overflow: hidden;
    animation: infiniteScroll 40s linear infinite;
    width: calc(100% * 2); /* 원본 + 복사본 */
}

.sec5-img-bottom {
    /* border:2px solid goldenrod; */
    display: flex;
    justify-content: center;
    gap: 20px;
    height: auto;
    align-items: center;
    overflow: hidden;
    animation: infiniteScroll 40s linear infinite reverse;
    width: calc(100% * 2); /* 원본 + 복사본 */
}

.sec5-img-upper .img-item:nth-child(odd){
    margin-bottom: 124px;
}

     /* 무한 스크롤 애니메이션 */
     @keyframes infiniteScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%); /* 절반만큼 이동 (복사본까지) */
        }
    }

.img-item {
        flex-shrink: 0;
        width: 580px;
        height: 420px;
        margin: 0 15px;
        border-radius: 12px;
        position: relative;
        transition: transform 0.3s ease;
        cursor: pointer;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

  /* 모든 아이템에 어두운 오버레이 */
  .img-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    transition: all 0.5s ease;
    z-index: 5;
}

/* 가운데 아이템들만 밝게 (viewport 중앙 기준) */
.img-item.center-focus::after {
    background: rgba(0, 0, 0, 0);
}

.item1{
    background-image: url(../img/sub/sub02/ap2-g6.gif); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.item2{
    background-image: url(../img/sub/sub02/ap2-g7.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.item3{
    background-image: url(../img/sub/sub02/ap2-g8.gif); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.item4{
    background-image: url(../img/sub/sub02/4.gif); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.item5{
    background-image: url(../img/sub/sub02/6.gif); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.item6{
    background-image: url(../img/sub/sub02/3.gif); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.item7{
    background-image: url(../img/sub/sub02/pr-j5.jpg); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.item8{
    background-image: url(../img/sub/sub02/pr-j6.jpg); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.item9{
    background-image: url(../img/sub/sub02/pr-j8.jpg); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}




.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #333;
}

.sec-text {
    overflow: hidden;
    white-space: nowrap;
    background: #f8f9fa;
    padding: 20px 0;
}

.sec-text-in {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 100px;
    font-weight: 800;
    font-size: 80px;
    color: #4e77ce1c;
    animation: infiniteFlow 20s linear infinite;
    width: 200%; /* 복제를 위한 넓이 */
}

.sec-text-item {
    width: fit-content;
    text-align: left;
    flex-shrink: 0;
    white-space: nowrap;
}
.card-section {
    display: flex;
    flex-direction: column;
}

/* 무한 루프 (끊김 없음) */
@keyframes infiniteFlow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .sec-text-in {
        font-size: 40px;
        gap: 50px;
    }
    
    .sec-text {
        position: relative;
        z-index: 1;
        margin-bottom: 20px;
    }
    
    .intro-container {
        position: relative;
        z-index: 2;
        height: auto;
        min-height: 40vh;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .mo-br {
        display: block;
    }
    .sec-text-in {
        font-size: 24px;
        gap: 30px;
    }
    
    .sec-text {
        position: relative;
        z-index: 1;
        margin-bottom: 15px;
    }
    
    .intro-container {
        position: relative;
        z-index: 2;
        height: auto;
        min-height: 40vh;
        padding: 15px 0;
    }
    
    .intro-container div {
        font-size: 16px;
        line-height: 2.2;
        padding: 0 15px;
    }
    .connector {
        display: none;
    }
    .progress-container-in{
        display: flex;
        flex-direction: column;
        margin-top: 40px;
    }

    .banner-txt span:first-child {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .banner{
        height: 20vh;
    }
    .process-section{
        margin-top: 600px;
    }

    .card-section {
        margin-top: 0px;
        padding:10px;
    }
    
    .card-box{
        padding:10px;
        height: 253px;
    }
    .right-card{
        padding:10px
    }
    .guarantee-container{
        gap:12px;
    }

    .check-icon {
        width: 100px;
        height: 100px;
        top:120px;
        right:18px
    }
    .main-title{
        font-size: 16px;
        word-break:keep-all
    }
    .guarantee-title{
        font-size: 14px;
        word-break: keep-all;
    }
    .guarantee-subtitle{
        font-size: 12px;;
        margin-bottom: 15px;
        word-break: keep-all;
    }

    .left-card::before {
        content: '';
        position: absolute;
        left: -4px;
        top: -20px;
        width: 160px;
        height: 140px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    .subtitle {
        font-size: 12px;
    }

    .sec6-tit span{
        font-size: 28px;
        font-weight: 700;
    }
    .ka-rap, .ka-rap1 {
        width: 100%;
        text-align: center;
        margin: 0 auto;
        background-color: #f9e000;
    }

    .img-item {
        flex-shrink: 0;
        width: 280px;
        height: 120px;
        margin: 0 15px;
        border-radius: 12px;
        position: relative;
        transition: transform 0.3s ease;
        cursor: pointer;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .sec5-img-upper .img-item:nth-child(odd){
        margin-bottom: 54px;
    }
    .sec5{
        height: 90vh;
    }
    .progress-container-tit div{
        padding:10px;
        word-break: keep-all;
    }

    .progress-section{
        margin-top: 10px;
    }
    
}


.sec6 {
    /* border: 20px solid red; */
    width: 100%;
    height: auto;
    background-color: #f4f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:20px;
}
.sec6-tit{
    text-align: center;
    margin-bottom: 50px;
}


