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

body {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    background-color: #fff;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

ul, li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #000;
}

input[type="text"], textarea {
    width: 100%;
    border: 1px solid #D9D9D9;
    border-radius: clamp(10px, 1vw, 15px);
    height: clamp(48px, 5vh, 62px);
    padding: clamp(14px, 1.5vh, 22px) clamp(18px, 1.8vw, 25px);
    font-family: 'Pretendard', sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 400;
    outline: none;
    box-sizing: border-box;
    display: block;
    transition: border-color 0.3s;
}

textarea {
    height: clamp(80px, 10vh, 130px);
    resize: none;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    border-color: #205F6A;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: #BFBFBF;
}

/* Select 스타일 */
select {
    width: 100%;
    height: clamp(48px, 5vh, 62px);
    border: 1px solid #D9D9D9;
    border-radius: clamp(10px, 1vw, 15px);
    padding: 0 40px 0 clamp(18px, 1.8vw, 25px);
    font-family: 'Pretendard', sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 400;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right clamp(18px, 1.8vw, 25px) center;
    cursor: pointer;
}

/* Select placeholder style (disabled option) */
select:invalid,
select option[disabled] {
    color: #BFBFBF;
}

/* Multiple Select 스타일 */
select.contact_sel_multiple {
    height: auto;
    min-height: clamp(100px, 15vh, 150px);
    padding: clamp(10px, 1vh, 14px) clamp(18px, 1.8vw, 25px);
    background-image: none;
}

select.contact_sel_multiple option {
    padding: 8px 4px;
    border-radius: 4px;
}

select.contact_sel_multiple option:checked {
    background-color: #205F6A;
    color: #fff;
}

select:valid {
    color: #000;
}

/* Common Section */
section {
    width: 100vw;
    height: auto;
    overflow: hidden;
}

section img {
    display: block;
    max-width: 1440px;
    width: 100%;
    margin: -5% auto;
}


/* Visual Main */
.visual_main {
    width: 100vw;
    height: 100vh; /* fallback */
    height: 100svh; /* Small Viewport Height - 주소창 포함 높이 */
}

.visual_main .header_top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1200px;
    height: 105px;
    width: 100%;
    margin: 0 auto;
}

.visual_main .header_top a {
    display: block;
}

.visual_main .header_top a img {
    display: block;
    width: auto;
}

.visual_main .header_top nav {
    display: block;
    margin: 0 auto;
}

.visual_main .header_top nav ul {
    display: flex;
    align-items: center;
    gap: 60px;
}

.visual_main .header_top nav ul li a {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.visual_main .visual_main_content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1064px;
    height: calc(100dvh - 205px);
    margin: 0 auto;
}

.visual_main .visual_main_content img {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s ease-out;
}

.visual_main_content.on img {
    opacity: 1;
    transform: translateY(0);
}

/* Tab bar */
.tab_bar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    height: 105px;
    width: 100%;
    gap: 60px;
    margin: 0 auto;
}

.tab_bar ul li a {
    position: relative;
    font-size: 20px;
    color: #BFBFBF;
    transition: color 0.3s ease;
}

.tab_bar ul li a:hover {
    color: #205F6A;
}

.tab_bar ul li a.active {
    font-weight: 700;
    color: #205F6A;
}

#section05,
#section07,
#section09 {
    background: #EEF4F5;
}

/* Contact Form */
.contact_form {
    min-height: 1000px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 clamp(40px, 5vh, 60px) 0;
    box-sizing: border-box;
}

.contact_form_wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    gap: clamp(20px, 2.5vw, 34px);
    margin: 0 auto;
}

.contact_form_text {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vh, 24px);
}

.contact_form_text span {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 600;
    color: #205F6A;
}

.contact_form_text h4 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: #205F6A;
}

.contact_form_text p {
    font-size: clamp(16px, 1.8vw, 24px);
    font-weight: 500;
    color: #474747;
}

.contact_form_input {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vh, 28px);
    width: 690px;
    background: #EEF4F5;
    padding: clamp(16px, 2vh, 28px) clamp(20px, 2vw, 34px);
    border-radius: 15px;
}

.contact_cont h5,
.contact_form_input_item label,
.contact_form_textarea_item label {
    display: block;
    margin-bottom: clamp(8px, 1vh, 14px);
    font-size: clamp(14px, 1.3vw, 18px);
    font-weight: 700;
    color: #205F6A;
}

.contact_chk_cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(10px, 1vh, 14px);
}

.contact_chk_cont select.contact_sel {
    padding: clamp(14px, 1.5vh, 20px) clamp(18px, 1.8vw, 25px);
}

.contact_chk_cont input.contact_custom {
    display: none;
}

/* 체크박스 그룹 스타일 */
.contact_chk_cont.checkbox_group {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: clamp(8px, 1vh, 12px) clamp(16px, 2vw, 24px);
}

.checkbox_item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox_item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #205F6A;
    cursor: pointer;
}

.checkbox_item span {
    font-size: clamp(14px, 1.2vw, 16px);
    color: #333;
}

.contact_chk_cont.checkbox_group input.contact_custom {
    width: 100%;
    margin-top: 8px;
}

.contact_cont h5 .sub_text {
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 400;
    color: #888;
}

.contact_input_cont {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 1.5vh, 20px) clamp(10px, 1vw, 18px);
    margin-bottom: clamp(12px, 1.5vh, 20px);
}

.contact_input_cont .contact_form_input_item {
    width: calc(50% - 9px);
}

.contact_form_input_item .required {
    color: #F00;
}

.contact_from .contact_from_submit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 282px;
    height: 64px;
    background: #205F6A;
    border: none;
    border-radius: 15px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin: 0 auto;
}

.contact_form_agree {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(8px, 0.8vh, 14px);
    width: 500px;
    margin: clamp(16px, 2vh, 32px) auto;
}

.contact_form_agree .agree_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact_form_agree .agree_item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact_form_agree .agree_item label {
    font-size: 14px;
    font-weight: 400;
    color: #474747;
}

.contact_form_submit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(240px, 20vw, 282px);
    height: clamp(50px, 5vh, 64px);
    background: #205F6A;
    border-radius: clamp(10px, 1vw, 15px);
    color: #fff;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 700;
    cursor: pointer;
    margin: 0 auto;
    border: none;
}

/* Footer */
.footer {
    background: #0F282C;
    padding: 62px 0 66px;
}

.footer .footer_cont {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 80px;
}

.footer .footer_cont .footer_top img {
    display: block;
    width: auto;
}

.footer .footer_cont .footer_bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.footer .footer_cont .footer_bottom .footer_info p {
    margin-bottom: 14px;
    color: #fff;
}

.footer .footer_cont .footer_bottom .footer_info p a {
    color: #fff;
    text-decoration: none;
}

.footer .footer_cont .footer_bottom .footer_info p:last-child {
    margin-bottom: 0;
}

/* Top Button */
.top_btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #205F6A;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
}

.top_btn img {
    display: block;
    width: 100%;
    height: 100%;
}

/* ========================================
   Dynamic Scroll Animations
   ======================================== */

/* Section 01 - Parallax */
.visual_main {
    position: relative;
    overflow: hidden;
}

.visual_main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../images/section01_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateY(var(--parallax-offset, 0));
    will-change: transform;
    z-index: -1;
}

/* Section 02-09 - Scroll-Linked Scale Animation */
.scroll-animate {
    --scroll-progress: 0;
    opacity: var(--scroll-progress);
    transform: scale(calc(0.5 + (0.5 * var(--scroll-progress)))) translateY(calc(20px * (1 - var(--scroll-progress))));
    will-change: opacity, transform;
}

/* Section 10 Form - Stagger Animation */
.stagger-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer - Fade Animation */
.fade-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Scroll Snap
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* 스냅 컨테이너 - section01~09만 적용 */
.snap-container {
    scroll-snap-type: y proximity;
}

.snap-section {
    scroll-snap-align: start;
}

/* section10(폼), footer는 스냅 제외 */
.contact_form,
.footer {
    scroll-snap-align: none;
}

/* ========================================
   Floating Island Menu
   ======================================== */
.tab_bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 105px;
    background: #fff;
    box-shadow: 0 2px 8px 2px rgba(32, 95, 106, 0.05);
    border-radius: 0;
    margin: 0;
    padding: 0;
    transition:
        height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 플로팅 섬 모드 */
.tab_bar.floating {
    position: fixed;
    top: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100% - 40px);
    height: 72px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(32, 95, 106, 0.12);
    padding: 0 40px;
}

.tab_bar.floating ul {
    height: 72px;
    gap: 40px;
}

.tab_bar.floating ul li a {
    font-size: 18px;
}

/* 플로팅 시 공간 확보용 placeholder */
.tab_bar-placeholder {
    display: none;
    height: 105px;
}

.tab_bar-placeholder.active {
    display: block;
}

/* ========================================
   Progress Bar
   ======================================== */

/* 전체 페이지 프로그레스 바 (C) */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #205F6A, #3a8f9d);
    z-index: 200;
    transition: width 0.1s ease-out;
}

/* 플로팅 모드일 때 프로그레스 바 위치 조정 */
.tab_bar.floating ~ .progress-bar {
    top: 0;
}

/* 메뉴 언더바 프로그레스 (A) */
.tab_bar ul li a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0%;
    height: 3px;
    background: #205F6A;
    transition: width 0.2s ease-out;
}

.tab_bar ul li a.active::after {
    width: var(--menu-progress, 100%);
}

.tab_bar.floating ul li a::after {
    bottom: -8px;
    height: 2px;
}

/* 플로팅 섬 모바일 대응 */
@media screen and (max-width: 768px) {
    .tab_bar.floating {
        width: 90%;
        max-width: 500px;
        height: 56px;
        margin-top: 12px;
        padding: 0 24px;
        border-radius: 35px;
    }

    .tab_bar.floating ul {
        width: 100%;
        height: 56px;
        gap: 20px;
        justify-content: space-between;
    }

    .tab_bar.floating ul li a {
        font-size: 14px;
    }

    .tab_bar.floating ul li a::after {
        bottom: -5px;
        height: 2px;
    }
}

@media screen and (max-width: 480px) {
    .tab_bar.floating {
        width: 92%;
        max-width: 360px;
        height: 50px;
        margin-top: 10px;
        padding: 0 20px;
        border-radius: 30px;
    }

    .tab_bar.floating ul {
        width: 100%;
        height: 50px;
        gap: 12px;
        justify-content: space-between;
    }

    .tab_bar.floating ul li a {
        font-size: 12px;
    }

    .tab_bar.floating ul li a::after {
        bottom: -4px;
        height: 2px;
    }
}

/* ========================================
   Mobile Responsive - 첫 페이지, 폼, 푸터
   ======================================== */

/* 태블릿 (768px 이하) */
@media screen and (max-width: 768px) {
    /* 두번째 섹션 탭바 */
    .tab_bar ul {
        height: 70px;
        gap: 20px;
    }

    .tab_bar ul li a {
        font-size: 14px;
    }

    /* 첫 페이지 (Visual Main) */
    .visual_main .header_top {
        padding: 0 24px;
        height: 90px;
    }

    .visual_main .header_top a img {
        max-width: 140px;
    }

    .visual_main .header_top nav ul {
        gap: 28px;
    }

    .visual_main .header_top nav ul li a {
        font-size: 16px;
    }

    .visual_main .visual_main_content {
        width: 90%;
        height: calc(100svh - 160px);
        padding: 0 20px;
    }

    .visual_main .visual_main_content img {
        max-width: 100%;
    }

    /* Contact Form */
    .contact_form {
        min-height: auto;
        max-height: none;
        height: auto;
        padding: 100px 20px 40px 20px;
    }

    .contact_form_wrap {
        flex-direction: column;
        gap: 40px;
    }

    .contact_form_text {
        gap: 16px;
    }

    .contact_form_text span {
        font-size: 18px;
    }

    .contact_form_text h4 {
        font-size: 28px;
    }

    .contact_form_text p {
        font-size: 16px;
    }

    .contact_form_input {
        width: 100%;
        padding: 24px;
        gap: 24px;
    }

    .contact_input_cont .contact_form_input_item {
        width: 100%;
    }

    .contact_form_agree {
        width: 100%;
        margin: 32px auto;
    }

    .contact_form_agree .agree_flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .contact_form_agree .agree_item label {
        font-size: 12px;
    }

    .contact_chk_cont {
        align-items: flex-start;
    }

    .contact_form_submit {
        width: 100%;
        max-width: 300px;
        height: 56px;
        font-size: 16px;
    }

    /* Footer */
    .footer {
        padding: 40px 20px;
    }

    .footer .footer_cont {
        gap: 40px;
    }

    .footer .footer_cont .footer_top img {
        max-width: 140px;
    }

    .footer .footer_cont .footer_bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        font-size: 14px;
    }
}

/* 모바일 (480px 이하) */
@media screen and (max-width: 480px) {
    /* 두번째 섹션 탭바 */
    .tab_bar ul {
        height: 60px;
        gap: 14px;
    }

    .tab_bar ul li a {
        font-size: 12px;
    }

    /* 첫 페이지 (Visual Main) */
    .visual_main .header_top {
        padding: 0 20px;
        height: 70px;
    }

    .visual_main .header_top .header_top_logo {
        display: none;
    }

    .visual_main .header_top nav {
        display: block;
        margin: 0 auto;
    }

    .visual_main .header_top nav ul {
        gap: 16px;
    }

    .visual_main .header_top nav ul li a {
        font-size: 13px;
    }

    .visual_main .visual_main_content {
        width: 100%;
        height: calc(100svh - 120px);
        padding: 0 16px;
    }

    /* Contact Form */
    .contact_form {
        min-height: auto;
        max-height: none;
        height: auto;
        padding: 60px 16px;
    }

    .contact_form_text span {
        font-size: 16px;
    }

    .contact_form_text h4 {
        font-size: 22px;
    }

    .contact_form_text p {
        font-size: 14px;
    }

    .contact_form_input {
        padding: 20px 16px;
        gap: 20px;
    }

    .contact_cont h5,
    .contact_form_input_item label,
    .contact_form_textarea_item label {
        font-size: 14px;
        margin-bottom: 10px;
    }

    input[type="text"], select {
        height: 40px;
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 8px;
    }

    textarea {
        height: 80px;
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 8px;
    }

    .contact_chk_cont {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .contact_form_agree {
        margin: 24px auto;
        gap: 10px;
    }

    .contact_form_agree .agree_item label {
        font-size: 11px;
    }

    .contact_form_submit {
        height: 50px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* Footer */
    .footer {
        padding: 32px 16px;
    }

    .footer .footer_cont {
        gap: 32px;
    }

    .footer .footer_cont .footer_top img {
        max-width: 120px;
    }

    .footer .footer_cont .footer_bottom {
        font-size: 12px;
        gap: 20px;
    }

    .footer .footer_cont .footer_bottom .footer_info p {
        margin-bottom: 8px;
    }

    /* Top Button */
    .top_btn {
        bottom: 16px;
        right: 16px;
    }

    .top_btn img {
        width: 48px;
        height: 48px;
    }
}