/*
Theme Name: TOCC Church Theme
Author: ymin
Version: 1.0
*/

/* wp- admin- bar */
body.admin-bar header {
    top: 32px; /* admin bar 높이만큼 내려줌 */
}
/* 모바일 (768px 이하) */
@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}


/* ===========================
    ROOT VARIABLES
   =========================== */
    :root {
            /* 🎨 Base Colors */
    --color-cream-white: #FAF9F6;       /* 전체 배경용 - 따뜻한 크림 화이트 */
    --color-sage-green: #C7D2C2;        /* 부드러운 연한 세이지그린 */
    --color-mint-gray: #DCE4DF;         /* 중간톤 박스, 배경용 그레이민트 */
    --color-soft-sand: #E6D8C3;         /* 모래빛 베이지 - 따뜻한 포인트 */
    --color-charcoal-gray: #484B4C;     /* 본문 텍스트용 딥 그레이 */

    /* 🧩 Usage Aliases */
    --color-background: var(--color-cream-white);
    --color-surface: var(--color-mint-gray);
    --color-accent: var(--color-sage-green);
    --color-highlight: var(--color-soft-sand);
    --color-text: var(--color-charcoal-gray);
    --color-footer-bg: var(--color-sage-green);  /* 자연 느낌을 강조한 푸터 */
    --color-footer-text: #ffffff;
    

    /* Fonts */
    --font-title: 'Playfair Display', serif;    /* Optional title font */
    --font-text: 'Inter', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
}

/* ===========================
    RESET STYLES
    =========================== */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    html, body {
        height: 100%;
        font-size: 16px;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Remove default list styles */
    ul, ol {
        list-style: none;
    }
    
    /* Anchor tag reset */
    a {
        text-decoration: none;
        color: inherit;
    }
    
    /* Image reset - removes bottom whitespace */
    img, picture, video, canvas, svg {
        display: block;
        max-width: 100%;
        height: auto;
        vertical-align: middle;
    }
    
    /* Form elements reset */
    input, button, textarea, select {
        font: inherit;
        color: inherit;
        background: none;
        border: none;
        outline: none;
    }
    
    /* Button specific reset */
    button {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }
    
    /* Prevent iOS input zoom on focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"] {
        font-size: 16px;
    }
    


    /* ===========================
    GLOBAL STYLES
   =========================== */
   html{
    scroll-behavior: smooth;
   }
body {
    font-family: var(--font-text);
    background-color: var(--color-background);
    color: var(--color-text);
}


/* ===========================
    HEADER STYLES
   =========================== */
   header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    background-color: transparent;
    padding: 0 2%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.4s ease-in-out, background-color 0.3s ease-in-out;
}

header.hide {
    transform: translateY(-100%);
}

header.show {
    transform: translateY(0);
}

.logo {
    font-family: var(--font-title);
    font-size: 2.7rem;
    color: var(--color-text);
    >span{
        font-family: var(--font-text);
        font-size: 1rem;
        font-weight: 600;
    }
}

.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-item a {
    padding: 5px 10px;
    border-radius: 16px;
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.3s;
}

.nav-item a:hover {
    background-color: var(--color-soft-sand);
    color: var(--color-text);
}

header.scrolled {
    background-color: var(--color-surface);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* 선택사항: 살짝 음영 */

}

/* hamburger btn */
.hamburger-button {
    display: none;
    width: 20px;
    height: 32px;
    position: relative;
    cursor: pointer;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    transition: transform 0.3s ease;
}

.hamburger-button span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: var(--color-text);
    border-radius: 20px;
    transition: all 0.4s ease;
}

/* 지그재그 형태 */
.hamburger-button span:nth-child(1) {
    transform: translateX(-6px);
}
.hamburger-button span:nth-child(2) {
    transform: translateX(3px);
}
.hamburger-button span:nth-child(3) {
    transform: translateX(-4px);
}

/* 활성화 시 ▶ 모양으로 */

.hamburger-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, -5px); /* ↗ */
    width: 14px;
}

.hamburger-button.active span:nth-child(2) {
    width: 16px;
    transform: translateX(4px);
}

.hamburger-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(10px, 5px); /* ↘ */
    width: 14px;
}


/* 기본 숨김 처리 480px 모바일 전용*/ 
#hamburgerBtnMobile {
    display: none;
}

/* ===========================
    HERO SECTION
   =========================== */
.hero-section {
    position: relative;
    height: 100vh;
    background-color: #FDF3DB;
    overflow: hidden;
    margin-bottom: -5px;
}

.hero-illustration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.layer {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease, opacity 0.6s ease;
    will-change: transform, filter, opacity;
}

.layer-back {
    z-index: 1;
    transform: scale(1);
    opacity: 1;
    filter: blur(0px);
}

.layer-middle {
    z-index: 2;
    transform: scale(1);
    filter: blur(0px);
}

.layer-front {
    position: absolute;
    z-index: 3;
    transform: translateX(0);
}



.hero-text {
    color: var(--color-text);
    position: relative;
    z-index: 10;
    text-align: center;
    top: 30%;
    transform: translateY(40px); /* 초기 위치 */
    color: #484B4C;
    transition: transform 0.6s ease;
    will-change: transform; /* 퍼포먼스 향상 */
}


.hero-title {
    font-family: var(--font-title);
    font-size: 3.8rem;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-family: var(--font-text);
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0.8;
}


/* cloud */
.clouds {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 1;
}

.cloud {
    position: absolute;
    width: 180px;
    height: 60px;
    opacity: .9;
}

.cloud:nth-child(1) {
    top: 12%;
    transform: scale(.9);
    animation: float 35s -28s infinite linear;
}

.cloud:nth-child(2) {
    top: 28%;
    transform: scale(1.1);
    animation: float 32s -3s infinite linear;
}

.cloud:nth-child(3) {
    top: 15%;
    transform: scale(.85);
    animation: float 28s -12s infinite linear;
}

.cloud:nth-child(4) {
    top: 33%;
    transform: scale(1.2);
    animation: float 30s -7s infinite linear;
}

.cloud:nth-child(5) {
    top: 7%;
    transform: scale(.95);
    animation: float 34s -15s infinite linear;
}

.cloud:nth-child(6) {
    top: 42%;
    transform: scale(1.15);
    animation: float 36s -4s infinite linear;
}

.cloud:nth-child(7) {
    top: 32%;
    transform: scale(.8);
    animation: float 33s -9s infinite linear;
}

.cloud:nth-child(8) {
    top: 28%;
    transform: scale(1.05);
    animation: float 37s -21s infinite linear;
}

.cloud--part {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    filter: blur(5px);
}

.cloud--part:nth-child(1) {
    width: 60px;
    height: 60px;
    top: -25px;
    left: 20px;
}

.cloud--part:nth-child(2) {
    width: 70px;
    height: 70px;
    top: -30px;
    left: 60px;
}

.cloud--part:nth-child(3) {
    width: 55px;
    height: 55px;
    top: -20px;
    left: 100px;
}

.cloud--base {
    position: absolute;
    width: 100%;
    height: 40px;
    background-color: #fff;
    border-radius: 20px;
    filter: blur(5px);
    bottom: 0;
}

@keyframes float {
    from {
        transform: translateX(-20vw);
    }
    to {
        transform: translateX(100vw);
    }
}

/* ===========================
    COMMON SECTION STYLES
   =========================== */
.section {
    padding: 100px 20px;
    text-align: center;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.3rem;
    margin-bottom: 60px;
    color: var(--color-text);
}

.section-text {
    font-size: 1.2rem;
    color: var(--color-text);
}





/* ===========================
    SLOGAN
   =========================== */
    .slogan-section {
    /* background: linear-gradient(to bottom, var(--color-surface), var(--color-background)); */
    background: linear-gradient(to bottom, #BCBE98 0%, var(--color-surface) 12%, var(--color-background) 100%);
    padding: 100px 20px;
    text-align: center;
    color: var(--color-text);
}

.slogan-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.church-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--color-text);
}

.slogan-text {
    position: relative;
    z-index: 1;
    font-family: var(--font-text);
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
    color: var(--color-text);
}

.slogan-text footer {
    margin-top: 1rem;
    font-style: italic;
    font-size: 0.9rem;
    color: #777;
}
.slogan-img-box{
    position: absolute;
    top: -300px;
    left: -100px;
    width: 800px;
    z-index: 0;
    transform: rotate(-50deg) scale(.6);
    filter: blur(3px);
    opacity: .2;

    >img{
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

}


/* ===========================
    ABOUT
=========================== */

/* 탭 버튼 영역 */
.story-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    
}

.tab-button {
    padding: 12px 24px;
    border: none;
    background-color: var(--color-surface);
    color: var(--color-text);
    font-weight: bold;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform .3s ease;
}

.tab-button:hover {
    background-color: var(--color-highlight);
    transform: scale(1.1);
}

.tab-button.active {
    background-color: var(--color-accent);
    transform: scale(1.1);
    color: white;
}

/* 탭 콘텐츠 박스 */
.tab-content-container {
    position: relative;
    min-height: 160px; /* 내용 높이에 맞게 조정 */
    width: 600px;
    margin: 0 auto;
}

.tab-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    line-height: 2;
    font-weight: 600;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.tab-content.show {
    opacity: 1;
    z-index: 1;
    pointer-events: all;
}

.tab-content-container::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    margin: 40px auto 0;
    background-color: var(--color-accent);
    border-radius: 999px;
}


/* 키워드 강조 영역 */
.keywords-section {
    margin-top: 60px;
}




.keywords-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 60px;
    text-align: center;
}

.keywords {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.keywords span {
    background-color: var(--color-highlight);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    color: var(--color-text);
    display: inline-block;
}

.keywords span:hover {
    background-color: var(--color-accent);
    color: white;
    transform: scale(1.05);
}

/* 키워드 설명 */
.keyword-description {
    font-style: italic;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-charcoal-gray);
    opacity: 0;
    transition: opacity 0.4s ease;
    min-height: 40px;
    text-align: center;
}

.keyword-description.visible {
    opacity: 1;
}

.keywords span.selected {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 0 0 2px var(--color-surface);
    transform: scale(1.05);
}

/* ===========================
    WORSHIP
   =========================== */

   .section-subdesc {
    font-size: 1.05em;
    color: var(--color-text);
    margin-bottom: 80px;
    transition: opacity 0.3s ease;
}

/* 섹션 정렬 */
.section.worship-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    >h2{
        margin-bottom: 20px;
    }
}

/* Grid 레이아웃 */
.worship-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    grid-template-rows: auto auto;
    gap: 40px;
}

/* 공통 박스 스타일 */
.worship-grid > div {
    background-color: var(--color-surface);
    padding: 20px;
    border-radius: 12px;
    color: var(--color-text);
    box-sizing: border-box;
}

/* 위치 정의 */
.schedule      { grid-column: 1; grid-row: 1; }
.description   { grid-column: 2; grid-row: 1; position: relative; }
.map-info      { grid-column: 1; grid-row: 2; }
.map-embed     { grid-column: 2; grid-row: 2; display: flex; }

/* 예배 리스트 */
.worship-schedule {
    list-style: none;
    padding: 0;
    margin: 0;
}
.worship-schedule li {
    outline: 0;
    background-color: var(--color-surface);
    padding: 14px 20px;
    /* margin-bottom: 12px; */
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.worship-schedule li:hover {
    background-color: var(--color-highlight);
    transform: scale(1.02);
}
.worship-schedule .title {
    font-weight: bold;
    margin-bottom: 4px;
}
.worship-schedule .desc {
    display: none;
}

/* 이미지 + 설명 영역 */
.worship-description {
    position: relative;
    border-radius: 12px;
    background-color: var(--color-surface);
    min-height: 250px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 슬라이드 이미지들 겹쳐서 페이드 전환 */
.image-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.image-slider.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.image-slider .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}
.image-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

/* 설명 텍스트 페이드 */
.desc-text {
    position: relative;
    z-index: 2;
    font-size: 1.1em;
    color: var(--color-text);
    text-align: center;
    line-height: 1.6;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.desc-text.visible {
    opacity: 1;
    visibility: visible;
}

/* 교통 안내 */
.map-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 1em;
}
.access-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
    font-size: 0.95em;
    font-weight: 500;
}

/* 지도 */
.map-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    flex: 1;
    min-height: 300px;
}


/* ===========================
    NEWS
   =========================== */
   .news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.news-calendar {
    flex: 1;
    min-width: 300px;
}

.news-content {
    flex: 2;
    min-width: 300px;
}

.calendar-box {
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 10px;
}

.event-period, .notice-section {
    background-color: var(--color-highlight);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.notice-divider {
    height: 4px;
    width: 40px;
    background-color: var(--color-accent);
    margin-bottom: 12px;
}



/* ===========================
    CONTACT
   =========================== */

/* 문의 섹션 전체 */
.contact-section {
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: 60px 20px;
    text-align: center;
}

/* 제목 스타일 */
.contact-section .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* 설명 텍스트 */
.contact-section .section-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--color-text);
}

/* 연락처 정보 박스 */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-item {
    background-color: var(--color-background);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(72, 75, 76, 0.1);
    min-width: 220px;

}

.contact-item h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--color-text);
}

.contact-item p, .contact-item a {
    font-size: 0.95rem;
    color: var(--color-text);
    
}

.contact-item a{
    text-decoration: underline;
    text-underline-offset: 4px;
}
/* 폼 스타일 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    color: var(--color-text);
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-form textarea {
    resize: vertical;
}

/* 전송 버튼 */
.submit-button {
    background-color: var(--color-highlight);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--color-accent);
}


/* ===========================
    ANIMAIT
   =========================== */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.2s ease, transform 0.3s ease;
    will-change: opacity, transform;
}


.reveal-once {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal-once.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===========================
    FOOTER STYLES
   =========================== */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
}



/* ===========================
    MEDIA QUERIES
   =========================== */

/* 태블릿 이하 (768px 이하) *//* 태블릿 이하에서 적용 */
@media (max-width: 768px) {
        /* ✅ 전체 페이지 수평 스크롤 방지 */
        html, body {
            max-width: 100%;
            overflow-x: hidden;
        }



    /* ✅ Hero 섹션 텍스트 */
    .hero-text {
        position: absolute;
        top: 30%;
        left: 50%;
        transform: translate(-50%, 40px); /* ⬅️ 초기 Y위치 지정 */
        transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
        z-index: 10;
        text-align: center;
        opacity: 1;
        filter: blur(0px);
        will-change: transform, opacity, filter;
    }

    /* ✅ Hero 배경 이미지 레이어들 */
    .layer-front,
    .layer-middle,
    .layer-back {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease, filter 0.6s ease, opacity 0.6s ease;
        will-change: transform, filter, opacity;
    }

    .layer-front {
        transform: translateX(0px); /* ⬅️ 초기화 */
        z-index: 3;
    }

    .layer-middle {
        transform: translateY(0px) scale(1); /* ⬅️ 초기화 */
        z-index: 2;
    }

    .layer-back {
        transform: translateY(0px);
        opacity: 1;
        z-index: 1;
    }
    /* header */
    header{
        height: 50px;
    }
    .hamburger-button{
        border-radius: 8px;
        display: flex;
        position: fixed;
        width: 26px;
        top: .8rem;
        right: 1.2rem;
        z-index: 1100;
    }
    nav{
        overflow-x: hidden;
        position: fixed;
        top: 1rem;
        right: 0;
        display: flex;
        gap: 10px;
        transform: translateX(100%);
        overflow-x: hidden;
        overflow-y: auto;
        transition: all .3s ease-in-out;

        
        -webkit-overflow-scrolling: touch; /* iOS 스크롤 튐 방지 */
        overscroll-behavior: contain; /* ✅ 스크롤 전파 차단 */
        touch-action: auto;
    }
    
    nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .mobile-nav-open{
        transform: translateX(0);
    }
    .nav-menu {
        flex-direction: column;
        gap: 12px;
    }

    header {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .logo{
        font-size: 2rem;
        >span{
            font-size: .8rem;
            font-weight: 400;
        }
    }
    /* home */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    /* common */
    .section-title {
        font-size: 1.8rem;
    }

    /* about */
    .tab-content-container {
        width: 90%;
    }

    /* worship */

    .worship-grid {
        display: block;
    }

    .schedule {
        margin-bottom: 20px;
    }

    .description {
        min-height: 200px;
    }

    .desc-text {
        margin-top: 10px;
        padding: 10px;
        font-size: 1rem;
    }

    .worship-schedule li {
        padding: 14px 16px;
        border: 1px solid var(--color-highlight);
        border-radius: 8px;
        margin-bottom: 12px;
        background-color: var(--color-surface);
    }

    .worship-schedule li.active {
        background-color: var(--color-highlight);
        color: white;
        font-weight: bold;
    }

    /* 예배 아코디언 설명 */
.worship-schedule .desc {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.worship-schedule li.active .desc {
    padding: 8px 0;
}


/* 선택된 예배 강조 */
.worship-schedule li.active {
    background-color: var(--color-highlight);
    font-weight: bold;
    border-color: var(--color-accent);
}


    /* news */
    .news-grid {
        flex-direction: column;
    }


}


/* ===========================
    모바일 (480px 이하)
    스마트폰 화면 대응 스타일
   =========================== */
@media (max-width: 480px) {
    /* common */

    .section{
        padding: 60px 20px;
    }
    /* header */


    #hamburgerBtn {
        display: none; /* 기존 햄버거 숨김 */
    }

    #hamburgerBtnMobile {
        display: flex;
        align-items: center;
        position: fixed;
        top: 12px;
        right: 16px;
        width: 40px;
        background-color: var(--color-background);
        border-radius: 8px;
        padding: 6px;
        z-index: 1101;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }

    #hamburgerBtnMobile span {
        width: 20px;
        height: 3px;
        background-color: var(--color-text);
        border-radius: 2px;
        transition: all .3s ease;

    }

    #hamburgerBtnMobile.active span:nth-child(1){
        transform: rotate(45deg) translate(7px, 7px);
    }
    #hamburgerBtnMobile.active span:nth-child(2){
        opacity: 0;
    }
    #hamburgerBtnMobile.active span:nth-child(3){
        transform: rotate(-45deg) translate(6px, -6px);
    }
    nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 280px;
        background-color: #DCE4DF77;
        backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1100;
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.15);
        padding: 80px 24px 20px;
    }

    nav.mobile-nav-open {
        transform: translateX(0);
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 24px;
        font-size: 1.1rem;
    }

    /* 오버레이 추가 (선택사항) */
    .nav-overlay {
        content: "";
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 1000;
        display: none;
    }

    body.nav-open .nav-overlay {
        display: block;
    }
    .logo{
        font-size: 1.4rem;
        >span{
            font-size: .6rem;
        }
    }


    /* HERO 섹션 */
    .hero-title {
        font-size: 1.6rem; /* 타이틀 축소 */
    }

    .hero-subtitle {
        font-size: .8rem; /* 부제목 축소 */
    }
    .church-name{
        font-size: 1.6rem;
    }

    /* ABOUT*/
    .story-tabs {
        gap: 15px;
    }
    .tab-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .tab-content{
        font-size: .9rem;
    }
    .keywords-title {
        font-size: 1.6rem;
    }
    .keywords {
        gap: 15px;
    }
    .keywords span{
        padding: 8px 16px;
    }
    /* worship */
    .section-subdesc{
        font-size: 1rem;
    }
    /* CONTACT 폼 레이아웃 */
    .contact-form {
        padding: 0 10px; /* 양옆 여백 확보 */
    }
    .contact-item{
        padding: 16px;
    }
    .submit-button {
        width: 100%; /* 버튼 가로 전체 확장 */
    }
}
