/* ################################### header ################################### */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: var(--header-filter);
}

.header_inner {
    max-width: var(--max-width);
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--padding-pc);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* -------------------- 로고 (왼쪽) -------------------- */
#logo {
    flex-shrink: 0;
    z-index: 1;
}

#logo a {
    font-size: clamp(18px, 1.3vw, 24px);
    font-weight: 700;
    color: var(--base-color-white);
    letter-spacing: 0.05em;
}

/* -------------------- GNB 1차 메뉴 (중앙) -------------------- */
#gnb {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
}

#gnb #gnb_1dul {
    display: flex;
    align-items: center;
    height: 100%;
    gap: clamp(30px, 3vw, 60px);
    list-style: none;
    padding: 0;
    margin: 0;
}

.gnb_1dli {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.gnb_1da {
    font-size: var(--text-font-size);
    color: var(--base-color-white) !important;
    white-space: nowrap;
    padding: 10px 0;
    font-weight: 400;
    transition: opacity 0.3s ease;
    letter-spacing: 0.02em;
}

.gnb_1da:hover {
    opacity: 0.6;
}

/* 2차 메뉴 - header 밑 풀 width bg */
.gnb_sub_bg {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 9998;
    transition: height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.gnb_sub_bg.active {
    height: var(--gnb-sub-height, 200px);
    pointer-events: auto;
}

/* 2차 메뉴 - 각 1차 메뉴 아래 세로 배치 */
.gnb_2dul {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    padding: 15px 0;
    min-width: max-content;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease 0.1s, visibility 0.35s ease 0.1s;
    z-index: 9999;
}

#gnb:hover .gnb_2dul {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.35s ease 0.15s, visibility 0.35s ease 0.15s;
}

.gnb_2dli {
    padding: 0;
}

.gnb_2da {
    color: var(--base-color-white) !important;
    font-size: var(--text-font-size);
    transition: opacity 0.3s ease;
    font-weight: 300;
    white-space: nowrap;
    padding: 6px 10px;
    display: block;
    line-height: 1.8;
}

.gnb_2da:hover {
    opacity: 0.6;
}

.gnb_empty {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-font-size);
}

.gnb_empty a {
    color: #6ba3ff;
    text-decoration: underline;
    display: inline;
}

/* -------------------- 오른쪽 영역 -------------------- */
.header_right {
    display: flex;
    align-items: center;
    gap: clamp(15px, 1.5vw, 30px);
    flex-shrink: 0;
    z-index: 1;
}

.header_phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--base-color-white);
    font-size: var(--text-font-size);
    font-weight: 500;
    white-space: nowrap;
}

.header_phone i {
    font-size: 14px;
    color: var(--base-color-white);
}

.header_phone span {
    color: var(--base-color-white);
    letter-spacing: 0.03em;
}

.header_cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--base-color-white) !important;
    font-size: var(--text-font-size);
    font-weight: 400;
    white-space: nowrap;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header_cta span {
    color: var(--base-color-white);
    font-size: var(--text-font-size);
}

.header_cta:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* -------------------- 햄버거 버튼 (모바일) -------------------- */
.ham_btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    cursor: pointer;
    padding: 0;
}

.ham_line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--base-color-white);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* -------------------- 전체메뉴 (모바일) -------------------- */
.gnb_all {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--base-color-white);
    z-index: 100000;
    transition: right 0.35s ease;
    overflow-y: auto;
}

.gnb_all.open {
    right: 0;
}

.gnb_all_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gnb_all_logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--base-color-black);
}

.gnb_close_btn {
    width: 30px;
    height: 30px;
    position: relative;
    background: none;
    cursor: pointer;
}

.close_line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 1.5px;
    background-color: var(--base-color-black);
}

.close_line:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close_line:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.gnb_close_btn:hover .close_line {
    opacity: 0.5;
}

.gnb_all_body {
    padding: 10px 0;
}

.gnb_al_ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gnb_al_li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gnb_al_a {
    display: block;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 600;
    color: var(--base-color-black);
    transition: color 0.3s ease;
}

.gnb_al_a:hover {
    color: var(--signature-color);
}

.gnb_al_sub {
    list-style: none;
    padding: 0 0 10px 0;
    margin: 0;
}

.gnb_al_sub li a {
    display: block;
    padding: 8px 25px 8px 40px;
    font-size: 14px;
    font-weight: 300;
    color: #666;
    transition: color 0.3s ease;
}

.gnb_al_sub li a:hover {
    color: var(--signature-color);
}

#gnb_all_bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
}


/* ################################### header 반응형 ################################### */

@media all and (max-width: 1024px) {

    .header_inner {
        padding: 0 var(--padding-mo);
    }

    #gnb {
        display: none;
    }

    .ham_btn {
        display: flex;
    }

    .header_phone {
        display: none;
    }
}

@media all and (max-width: 600px) {

    .header_cta {
        padding: 8px 14px;
        font-size: 13px;
    }

    .header_cta span {
        font-size: 13px;
    }
}


/* ################################### section_1 ################################### */

.section_1 {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.section_1_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/section_1_bg.jpg') center center / cover no-repeat;
}

.section_1_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
}

.section_1_text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.section_1_text h2 {
    font-size: var(--main-title-font-size);
    line-height: var(--main-title-font-size-line);
    color: var(--base-color-white);
    font-weight: 300;
    letter-spacing: clamp(10px, 8.3333vw, 160px);
    text-indent: clamp(10px, 8.3333vw, 160px);
    white-space: nowrap;
}

.section_1_text p {
    margin-top: clamp(10px, 1.5vw, 25px);
    font-size: var(--text-font-size);
    line-height: var(--text-font-size-line);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* section_1 반응형 */
@media all and (max-width: 1024px) {
    .section_1_text h2 {
        letter-spacing: clamp(8px, 5vw, 80px);
        text-indent: clamp(8px, 5vw, 80px);
    }
}

@media all and (max-width: 600px) {
    .section_1_text h2 {
        letter-spacing: clamp(5px, 3vw, 30px);
        text-indent: clamp(5px, 3vw, 30px);
        white-space: normal;
    }
}