﻿@charset "utf-8";

/* 첫번째(메인) 슬라이드 */
.mainslide {
    max-width: 800px;
    width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden;
}

.mainimg {
    display: none;
    position: relative; /* 오버레이 텍스트 위치 기준. 텍스트 위해 넣음.  */
}

.fade {
    animation: fade 1s ease-in-out;
}



/* 메인 슬라이드 내부 글씨 */
.main-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-family: 'Nanum Gothic', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); /* 그림자 */
    z-index: 2;
}

    .main-text h2 {
        font-size: 44px;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .main-text p {
        font-size: 20px;
        line-height: 1.6;
        margin-bottom: 24px;
    }


/* 텍스트를 더 강조할 수 있도록 배경 블러 + 어두운 배경 추가 */
.mainimg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6)); /* 어두운 반투명 레이어 */
    z-index: 1;
}

/* 메인 슬라이드 버튼 추가 */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.cta {
    padding: 10px 26px;
    background-color: #00498c; /* 진한 파란색 */
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: 2px solid transparent; /* 여기 핵심! */
}

    .cta:hover {
        background-color: #003e78;
    }

    .cta.outline {
        background-color: transparent;
        border: 2px solid #00498c;
        color: white;
    }

        .cta.outline:hover {
            background-color: #00498c;
            color: white;
        }


/* 핵심 강점 블럭 */
.strengths {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 40px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

    .strengths .card {
        width: 260px;
        background: white;
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transition: transform 0.2s ease;
    }

        .strengths .card:hover {
            transform: translateY(-4px);
        }

        .strengths .card img {
            width: 48px;
            height: 48px;
            margin-bottom: 16px;
        }

        .strengths .card h3 {
            font-size: 18px;
            margin-bottom: 10px;
            color: #333;
        }

        .strengths .card p {
            font-size: 15px;
            color: #666;
        }

/* sns 부분  */
.sns-section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: 'Nanum Gothic', sans-serif;
}

.sns-header {
    text-align: center;
    margin-bottom: 30px;
}

    .sns-header h2 {
        font-size: 28px;
        color: #00498c;
    }

    .sns-header p {
        color: #555;
        font-size: 16px;
        margin-top: 8px;
    }

.sns-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.sns-icon {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
}

    .sns-icon.youtube {
        background: #ff0000;
    }

    .sns-icon.blog {
        background: #2db400;
    }

    .sns-icon.homepage {
        background: #00498c;
    }

    .sns-icon:hover {
        filter: brightness(1.1);
    }

.sns-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.sns-card {
    flex: 1 1 300px;
    max-width: 340px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

    .sns-card:hover {
        transform: translateY(-5px);
    }

    .sns-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .sns-card .label {
        display: inline-block;
        margin: 10px 15px 0;
        font-size: 14px;
        font-weight: bold;
        padding: 5px 12px;
        border-radius: 20px;
        color: white;
    }

.label.youtube {
    background: #ff0000;
}

.label.blog {
    background: #2db400;
}

.label.homepage {
    background: #00498c;
}

.caption {
    padding: 10px 15px 15px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

@@media screen and (max-width: 768px) {
    .main-text h2 {
        font-size: 28px;
    }

    .cta {
        font-size: 14px;
        padding: 8px 20px;
    }
}

/*메인 스크롤 부분*/
.scroll-down-icon {
    position: absolute;
    bottom: 32px; /* 더 여유 있게 띄움 */
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    opacity: 0.85;
    z-index: 3;
    animation: scroll-bounce 1.8s infinite;
}

/* 스크롤 위아래로 부드럽게 움직이는 애니메이션 */
@keyframes scroll-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(12px); /* 더 크게 움직임 */
    }
}