@charset "UTF-8";

/* 메인 콘텐츠 기본 스타일 */
.main_contents {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 30px;
    min-height: 600px;
    /* margin-top은 JavaScript로 동적 설정 */
}

/* 배너 섹션 */
#banner {
    padding: 40px 0;
    text-align: center;
    min-height: 200px;
}

#banner .banner_inner {
    max-width: 100%;
    margin: 0 auto;
}

#banner .banner_image_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

#banner .gif_img {
    max-width: 100%;
    height: auto;
}

/* 타이틀 섹션 */
#title {
    padding: 60px 0;
    text-align: center;
    min-height: 300px;
}

#title .title_inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

#title .image_container {
    flex: 1;
    max-width: 300px;
    min-width: 200px;
}

#title .pozi_img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

#title .pozi_img.on {
    transform: scale(1.05);
}

/* 프레임 섹션 */
#frame {
    padding: 60px 0;
    text-align: center;
    min-height: 300px;
}

#frame .frame_inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

#frame .image_container {
    flex: 1;
    max-width: 300px;
    min-width: 200px;
}

#frame .frame_img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

#frame .frame_img.on {
    transform: scale(1.05);
}

/* 프로젝트 섹션 */
#project {
    padding: 0;
    text-align: center;
}

#project .project_inner p {
    font-family: 'YoonChildfundkoreaMinGuk';
    font-size: 46px;
    font-weight: bold;
    color: #000;
    text-align: center;
}

/* 보드 섹션 */
#board {
    padding: 0;
    text-align: center;
    min-height: 200px;
}

#board .image_container {
    max-width: 1000px;
    min-width: 200px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
}

#board .board_img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

#board .board_img:last-child {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

#board .image_container.on .board_img:first-child {
    opacity: 0;
}

#board .image_container.on .board_img:last-child {
    opacity: 1;
}

/* 반응형 디자인 */
@media screen and (max-width: 1040px) {
    /* 프로젝트 섹션 */
    #project .project_inner p {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    /* 메인 콘텐츠 기본 스타일 */
    .main_contents {
        max-width: 100%;
        padding: 0 15px;
    }

    /* 배너 섹션 */
    #banner {
        padding: 20px 0;
    }

    /* 타이틀 섹션 */
    #title {
        padding: 40px 0;
    }

    #title .title_inner {
        flex-direction: column;
        gap: 10px;
    }

    #title .image_container {
        max-width: 250px;
    }

    /* 프레임 섹션 */
    #frame {
        padding: 40px 0;
    }

    #frame .frame_inner {
        flex-direction: column;
        gap: 10px;
    }

    #frame .image_container {
        max-width: 250px;
    }

    /* 프로젝트 섹션 */
    #project {
        padding: 0 0 5px 0;
    }

    #project .project_inner p {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    /* 프로젝트 섹션 */
    #project .project_inner p {
        font-size: 15px;
    }
}