@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

/* 다음세대 영문 타이틀 — Playfair Display (gstatic woff2) */
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/playfairdisplay/v40/nuFRD-vYSZviVYUb_rj3ij__anPXDTnCjmHKM4nYO7KN_qiTXtXA-W2r.woff2) format("woff2");
}

:root {
    --default-color: #222;
    --sub-color: #A3A3A3;
    --main-color: #4386A7;
    --bg-gray-color: #F3F3F3;
    --bg-dark-color: #384043;
    /* main3 — 보라 톤 글자·포인트 · 섹션 배경 거의 흰색 */
    --main3-heading: #4a2d7a;
    --main3-text-body: #6b5a8c;
    --main3-accent: #6b4ba3;
    --main3-section-bg: #fbfbfb;
    /* 모바일: 메뉴+검색(더 연한 파스텔) · 펼친 depth1 행(한 톤 진한 연보라) */
    --m-menu-search-bg: #f5f0fb;
    --m-nav-active-bg: #ebe4f5;
    /* 메시지 카드: 사진 위 흐릿한 스크림(밝은 안개 + 하단 글자 딤) */
    --main2-card-scrim: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.52) 0%,
        rgba(249, 246, 255, 0.4) 32%,
        rgba(243, 236, 250, 0.22) 58%,
        rgba(28, 22, 42, 0.42) 100%
    );
}

/* common */
*{margin: 0; padding: 0; box-sizing: border-box; font-family: "Pretendard Variable"; letter-spacing: -0.06em; scroll-behavior: smooth;}
body{color: var(--default-color); font-size: 16px; user-select: none; line-height: 1.4; font-synthesis: none;}
ul, li{margin: 0; padding: 0; list-style: none;}
a{text-decoration: none; color: inherit; display: flex;}
button{background: none; border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: inherit;}
body.scroll-lock{overflow: hidden;}

h1{font-size: 38px; font-weight: 700;}
h2{font-size: 28px; font-weight: 700;}
h3{font-size: 22px; font-weight: 700;}

.sr-only{position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;}
.w100{width: 100%; max-width: 100%;}
.thumb{position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden;}
.thumb > img{position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.01); width: 100%; height: 100%; object-fit: cover; transition: 0.2s ease-in-out;}
a:has(.thumb):hover .thumb > img{transform: translate(-50%, -50%) scale(1.05); transition: 0.2s ease-in-out;}
.scroll_top{position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 100%; border: 1px solid #CDCDCD; justify-content: center; z-index: 10;}
.scroll_top img{width: 20px;}

/* main popup */
.main_popup{position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px;}
.main_popup[hidden]{display: none !important;}
.main_popup__backdrop{position: absolute; inset: 0; background: rgba(24, 18, 38, 0.55);}
.main_popup__panel{
    position: relative;
    width: min(92vw, 400px);
    border-radius: 16px;
    padding: 30px 26px 18px;
    background: #fff;
    border: 1px solid rgba(34, 34, 34, 0.08);
    box-shadow: 0 22px 54px rgba(15, 15, 20, 0.26);
}
.main_popup__close{
    position: absolute;
    top: 8px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #8a8a8a;
    font-size: 28px;
    line-height: 34px;
    text-align: center;
}
.main_popup__title{
    margin: 0 28px 0 0;
    font-size: 25px;
    font-weight: 800;
    color: #222;
    line-height: 1.3;
    letter-spacing: -0.03em;
    text-align: center;
}
.main_popup__desc{
    margin: 14px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 17px;
    line-height: 1.65;
    color: #222;
    text-align: center;
}
.main_popup__cta{
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    background: #5a3fa3;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}
.main_popup__foot{
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.main_popup__check{display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #222;}
.main_popup__check input{width: 16px; height: 16px;}

/* 메인 이미지 팝업: 상·하 고정, 이미지는 가운데 슬롯에만 배치 (하단 체크 영역 구분) */
.main_popup--image .main_popup__panel--image-wide{
    padding: 0;
    padding-top: 44px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    width: min(94vw, 720px);
    max-height: min(92vh, 860px);
}
.main_popup--image .main_popup__figure{
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 6px 18px 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main_popup--image .main_popup__image{
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}
.main_popup--image .main_popup__foot{
    margin-top: 0;
    padding: 14px 18px 16px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    border-top: 1px solid rgba(74, 45, 122, 0.16);
    background: linear-gradient(180deg, #faf8fd 0%, #f3eef9 100%);
}
.main_popup--image .main_popup__check{
    color: #222;
    font-weight: 600;
}
.main_popup--image .main_popup__close{
    z-index: 2;
}

@media (max-width: 767.98px){
    .main_popup__panel{
        width: min(94vw, 360px);
        border-radius: 14px;
        padding: 26px 20px 16px;
    }
    .main_popup__title{
        font-size: 22px;
    }
    .main_popup__desc{
        margin-top: 12px;
        padding-top: 16px;
        font-size: 16px;
        line-height: 1.62;
    }
    .main_popup--image .main_popup__panel--image-wide{
        width: min(94vw, 100%);
        max-height: min(90vh, 820px);
        padding-top: 42px;
    }
    .main_popup--image .main_popup__figure{
        padding: 4px 14px 6px;
    }
    .main_popup--image .main_popup__foot{
        padding: 12px 14px 14px;
    }
}

@media (min-width: 1200px){
    .m-only{display: none !important;}
}

@media (max-width: 1199.98px){
    .pc-only{display: none !important;}
    h1{font-size: 32px;}
    h2{font-size: 24px;}
    h3{font-size: 20px;}
    .scroll_top{bottom: 20px; right: 20px; width: 40px; height: 40px;}
    .scroll_top img{width: 14px;}
    /* 서브 페이지·본문이 짧을 때 푸터가 화면 중간에 뜨는 현상: 뷰포트 높이까지 채우고 main이 늘어남(푸터는 여전히 문서 흐름, 고정 아님) */
    body:has(main.sub_page){
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }
    body:has(main.sub_page) > #head,
    body:has(main.sub_page) > .top_banner{
        flex-shrink: 0;
    }
    body:has(main.sub_page) > main.sub_page{
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        /* 하트 등 장식으로 가로 스크롤이 생기지 않도록 */
        overflow-x: clip;
    }
    body:has(main.sub_page) > #foot{
        flex-shrink: 0;
    }
}

/* header */
#head{position: sticky; top: 0; z-index: 100;}
/* 본문 내 <header>(예: dept_hero)는 제외하려면 #head 한정 */
#head header{background: #FFF; position: sticky; top: 0; z-index: 100;}
.gnb{height: 44px; align-content: center; background: #E8E8E8;}
.gnb .container{display: flex; justify-content: end; align-items: center;}
.gnb .gnb_menu{display: flex; align-items: center; gap: 30px;}
.gnb .gnb_menu > a{font-size: 14px; font-weight: 700;}
/* 최상단 GNB(회색 바 · 새가족/예배/오시는 길 등 링크, .gnb.pc-only) 비표시 — 복구 시 이 두 줄 삭제 */
#head header .gnb.pc-only{display: none !important;}
.menu{height: 90px; align-content: center; position: relative; z-index: 100;}
.menu .container{display: flex; justify-content: space-between; align-items: center; height: 100%;}
#head header .menu .logo{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: none;
    text-decoration: none;
    color: #222;
}
#head header .menu .logo_mark{
    display: block;
    height: 28px;
    width: auto;
    min-width: 14px;
    flex-shrink: 0;
    object-fit: contain;
}
#head header .menu .logo_text{
    font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: clamp(17px, 1.75vw, 24px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
}
.menu .menu_primary{display: flex; align-items: center; gap: 60px; height: 100%;}
.menu .menu_primary .item{height: 100%; position: relative;}
.menu .menu_primary .item > .menu_primary_trigger{
    display: flex;
    align-items: center;
    font-size: 21px;
    font-weight: 700;
    height: 100%;
    position: relative;
    transition: color 0.2s ease-in-out;
    cursor: default;
    user-select: none;
}
.menu .menu_primary .item:hover > .menu_primary_trigger{color: var(--main3-accent);}
.menu .menu_primary .item > .menu_primary_trigger::after{content: ""; width: 0; height: 5px; background-color: var(--main3-accent); position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); transition: width 0.2s ease-in-out;}
.menu .menu_primary .item:hover > .menu_primary_trigger::after{width: 100%;}
.menu button{width: 40px; height: 40px;}

/* PC 드롭다운: 1차 항목 호버 시에만 해당 섹션 패널 + 전체 너비 배경 */
.menu_backdrop{position: absolute; left: 0; right: 0; top: 100%; max-height: 0; overflow: hidden; background: var(--bg-gray-color); z-index: 99; transition: max-height 0.32s ease; pointer-events: none;}
.menu:has(.menu_primary .item:not(.menu_primary_item--direct):hover) .menu_backdrop{max-height: 420px;}
.menu_primary_item--direct > a.menu_primary_trigger{
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.menu_panel{position: absolute; left: 50%; top: 100%; min-width: 248px; max-width: min(360px, 92vw); padding: 18px 16px 22px; margin-top: 0; border-radius: 0 0 14px 14px; background: #fff; text-align: center; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease; z-index: 102; pointer-events: none; box-shadow: 0 12px 24px rgba(74, 45, 122, 0.08);}
.menu_panel::before{content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;}
.menu_primary .item:hover .menu_panel{opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto;}
.menu_panel_heading{
    display: flex;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--main3-heading, #4a2d7a);
    cursor: default;
    user-select: none;
}
.menu_panel_list{display: flex; flex-direction: column; align-items: stretch; gap: 2px;}
.menu_sub{font-size: 15px; font-weight: 500; padding: 8px 6px; border-radius: 8px; color: var(--default-color); transition: color 0.2s ease, font-weight 0.2s ease; justify-content: center;}
.menu_sub:hover{color: var(--main3-accent); font-weight: 700;}

.header_search{position: relative;}
.header_search .search_close{display: none;}
.header_search .group{position: absolute; top: 70px; right: 0; width: 330px; height: 60px; border: 1px solid #D9D9D9; align-items: center; gap: 5px; background-color: #FFF; padding: 10px; display: none;}
.header_search input{width: 100%; height: 100%; padding: 5px 10px; border-radius: 0; border: none; font-size: 18px;}
.header_search input:focus{outline: none;}
.header_search.active .search_open{display: none;} 
.header_search.active .search_close{display: flex;}
.header_search.active .group{display: flex;}

.m_menu{position: fixed; inset: 0; z-index: 200; display: none;}
.m_menu_overlay{position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(32, 24, 48, 0.45); width: 100%; height: 100%; z-index: 101; backdrop-filter: blur(2px);}
.m_menu .wrap{position: absolute; right: 0; width: min(88vw, 320px); height: 100%; background: #fff; z-index: 102; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(74, 45, 122, 0.18); overflow: hidden;}
.m_menu_search{flex-shrink: 0; padding: 14px 16px 14px; background: var(--m-menu-search-bg); border-bottom: none;}
.m_menu_search_head{display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;}
.m_menu_title{font-size: 17px; font-weight: 800; color: var(--main3-heading); letter-spacing: -0.05em;}
.m_menu_search_head .m_menu_close{display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -8px -6px 0; flex-shrink: 0; transition: background 0.2s ease;}
.m_menu_search_head .m_menu_close:active{background: rgba(107, 75, 163, 0.12);}
.m_menu_search_head .m_menu_close img{width: 20px; height: 20px;}
.m_menu_search .group{display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 4px 4px 14px; background: #fff; border: 1px solid rgba(107, 75, 163, 0.16); height: auto; float: none; box-shadow: 0 2px 8px rgba(74, 45, 122, 0.06);}
.m_menu_search .group > *{float: none;}
.m_menu_search input{flex: 1; width: auto; min-width: 0; font-size: 15px; color: var(--default-color); outline: none; background: none; border: none;}
.m_menu_search input::placeholder{color: #9b8fb0;}
.m_menu_search button{flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; transition: background 0.2s ease;}
.m_menu_search button:active{background: rgba(107, 75, 163, 0.1);}
.m_menu_search button img{width: 20px; height: 20px; opacity: 0.75;}
.m_menu_btn{flex-shrink: 0; padding: 14px 14px 12px; background: var(--m-menu-search-bg); border-bottom: 1px solid rgba(107, 75, 163, 0.22);}
.m_menu_btn .row{display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: none; margin-bottom: 10px;}
.m_menu_btn .row:last-child{margin-bottom: 0;}
.m_menu_btn .item{justify-content: center; align-items: center; text-align: center; min-height: 46px; height: auto; padding: 11px 8px; font-size: 13px; font-weight: 600; color: var(--default-color); background: #fff; border: 1px solid rgba(107, 75, 163, 0.22); border-radius: 10px;}
.m_nav{flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 max(28px, env(safe-area-inset-bottom, 0px)); background: #fff; -webkit-overflow-scrolling: touch;}
.m_nav .item{border-bottom: 1px solid rgba(0, 0, 0, 0.08); margin: 0;}
.m_nav .item:last-child{border-bottom: none;}
.m_nav .item > .m_nav_toggle{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(107, 75, 163, 0.12);
    transition: background 0.2s ease, color 0.2s ease;
}
.m_nav .item > .m_nav_toggle .m_nav_toggle_label{flex: 1; font-weight: 700; font-size: 16px; letter-spacing: -0.03em;}
.m_nav .item > .m_nav_toggle .m_nav_toggle_icon{flex-shrink: 0; display: flex; align-items: center; justify-content: center;}
.m_nav .item > .m_nav_toggle .m_nav_toggle_icon img{width: 14px; height: 14px; opacity: 0.45; transition: transform 0.25s ease, opacity 0.2s ease;}
.m_nav .item.active > .m_nav_toggle{background: var(--m-nav-active-bg); color: var(--main3-accent);}
.m_nav .item.active > .m_nav_toggle .m_nav_toggle_label{font-weight: 800; color: var(--main3-accent);}
.m_nav .item.active > .m_nav_toggle .m_nav_toggle_icon img{opacity: 0.85; transform: rotate(180deg);}
.m_nav .group{display: none; padding: 0 20px 14px; font-size: 15px; line-height: 1.55; border-top: 1px solid rgba(107, 75, 163, 0.18);}
.m_nav .item.active .group{border-top-color: rgba(107, 75, 163, 0.22);}
.m_nav .depth2{padding: 0; border-top: 1px solid rgba(0, 0, 0, 0.05);}
.m_nav .depth2:first-child{border-top: none;}
.m_nav .depth_title{
    font-weight: 600;
    padding: 12px 8px 12px 12px;
    color: var(--default-color);
    -webkit-tap-highlight-color: rgba(107, 75, 163, 0.15);
    touch-action: manipulation;
}
.m_nav .depth_title:active{
    color: var(--main3-accent);
    font-weight: 800;
}
.m_nav .depth3{padding-left: 5px;}
.m_nav .depth3 a{color: var(--sub-color);}
.m_nav .depth3 a::before{content: "-"; margin-right: 5px;}
.m_nav a.m_nav_direct{
    display: block;
    padding: 16px 20px;
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.03em;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(107, 75, 163, 0.12);
    transition: background 0.2s ease, color 0.2s ease;
}
.m_nav a.m_nav_direct:active{
    background: var(--m-nav-active-bg);
    color: var(--main3-accent);
}

@media (min-width: 1200px){
    #head header{box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);}
    .m_menu{display: none !important;}
}

@media (max-width: 1199.98px){
    #head header{border-bottom: 1px solid #D9D9D9;}
    #head header .menu{height: 56px;}
    #head header .menu .logo_mark{height: 24px;}
    #head header .menu .logo{gap: 7px;}
    #head header .menu .logo_text{font-size: clamp(15px, 3.5vw, 19px);}
}

/* 공통 */
section{padding: 110px 0;}
section.dept_gallery{padding: clamp(12px, 2vw, 20px) 0 clamp(20px, 3vw, 32px);}
.container{max-width: 1440px; padding: 0 30px; margin-right: auto; margin-left: auto;}
.title{margin-bottom: 40px;}
.row{display: flex; flex-wrap: wrap;}
.row > .item{flex: 1;}

.btn_type1{width: 200px; height: 48px; border-radius: 15px; border: 2px solid var(--main-color); color: var(--main-color); display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0 20px; font-weight: 600; transition: 0.2s ease-in-out;}
.btn_type1 img{filter: invert(47%) sepia(95%) saturate(257%) hue-rotate(155deg) brightness(85%) contrast(93%);}
.btn_type1:hover{background: var(--main-color); color: #FFF; transition: 0.2s ease-in-out;}
.btn_type1:hover img{filter: brightness(100);}

@media (max-width: 1199.98px){
    section{padding: 40px 0;}
    .container{padding: 0 16px;}
    .title{margin-bottom: 30px;}
    .btn_type1{width: 160px; height: 40px; padding: 0 10px; border-radius: 12px; font-size: 14px;}
}

/* main */
.main1{padding: 0;}
.main1_slide{--swiper-navigation-color: #FFF; --swiper-navigation-size: 32px; max-width: 1920px; margin: 0 auto;}
.main1_slide .swiper-slide{
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 7.5;
    container-type: inline-size;
    container-name: main1-banner;
}
.main1_slide .swiper-slide > picture{position: absolute; inset: 0; display: block; margin: 0;}
.main1_slide .swiper-slide > picture img{width: 100%; height: 100%; object-fit: cover; display: block;}
@media (min-width: 1200px){
    /* PC: SVG 배너 실제 비율(1920×760) — 16/7.5보다 낮아서 그때보다 덜 커 보임 */
    .main1_slide .swiper-slide{aspect-ratio: 1920 / 760;}
}
.main1_banner-cta{position: absolute; inset: 0; display: flex; align-items: center; box-sizing: border-box; padding: clamp(28px, 5cqw, 72px) clamp(24px, 6.25cqw, 120px);}
.main1_banner-cta--dawn{background: linear-gradient(127deg, #f5f8ff 0%, #ebe4f8 45%, #fce8f0 100%);}
/* CTA: 모바일 본문 24/900, PC 본문 28/1920 · 제목 모바일 54/900 · PC 76/1920 */
.main1_banner-cta_inner{max-width: min(1100px, 92cqw); display: flex; flex-direction: column; align-items: flex-start; gap: 0;}
.main1_banner-cta_title{
    font-weight: 800;
    color: #222;
    line-height: 1.26;
    letter-spacing: -0.06em;
    margin: 0;
    font-size: calc(100cqw * 54 / 900);
}
.main1_banner-cta_desc{
    font-weight: 500;
    color: #625b6e;
    line-height: 1.58;
    margin: calc(100cqw * 28 / 900) 0 0;
    font-size: calc(100cqw * 24 / 900);
}
.main1_banner-cta_btn{
    margin-top: calc(100cqw * 32 / 900);
    border-color: var(--main3-accent);
    color: var(--main3-accent);
}
@media (min-width: 1200px){
    .main1_banner-cta_title{font-size: calc(100cqw * 76 / 1920);}
    .main1_banner-cta_desc{
        font-size: calc(100cqw * 28 / 1920);
        margin-top: calc(100cqw * 40 / 1920);
    }
    .main1_banner-cta_btn{margin-top: calc(100cqw * 48 / 1920);}
}
.main1_banner-cta_btn:hover{background: var(--main3-accent); color: #fff;}
.main1_slide .swiper-pagination{display: inline-flex; bottom: 30px; gap: 10px; justify-content: center;}
.main1_slide .swiper-pagination-bullet{width: 40px; height: 4px; border-radius: 0; background: #FFF; margin: 0 !important;}

.main1_slide .swiper-button-next{background: url('../images/icon/carousel-next.svg') no-repeat center center; background-size: 18px; width: 30px; height: 30px;}
.main1_slide .swiper-button-next::after{content: ""; display: none;}
.main1_slide .swiper-button-prev{background: url('../images/icon/carousel-prev.svg') no-repeat center center; background-size: 18px; width: 30px; height: 30px;}
.main1_slide .swiper-button-prev::after{content: ""; display: none;}
.main1_slide--single .swiper-button-next,
.main1_slide--single .swiper-button-prev,
.main1_slide--single .swiper-pagination{display: none !important;}

@media (min-width: 1400px){
    .main1_slide .swiper-button-prev, .main1_slide .swiper-button-next{top: 50%; transform: translateY(-50%); z-index: 10;}
    .main1_slide .swiper-button-prev{left: calc(50% - 700px);}
    .main1_slide .swiper-button-next{right: calc(50% - 700px);}
}

@media (max-width: 1199.98px){
    .main1_banner-cta_btn{
        width: auto;
        min-width: 0;
        height: 36px;
        padding: 0 14px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 10px;
        border-width: 1.5px;
    }
    .main1_slide .swiper-button-prev{left: 20px;}
    .main1_slide .swiper-button-next{right: 20px;}
    .main1_slide .swiper-pagination{bottom: 20px;}
    .main1_slide .swiper-pagination-bullet{background: #D9D9D9; opacity: 1;}
    .main1_slide .swiper-pagination-bullet-active{background: #666;}
}

/* 메시지: 좌 영상 / 우 설명 카드 · 아래 주일예배 3카드 */
.main2{background: #fff;}
.main2 .container{
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
}
.main2_feature{
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 44px);
    align-items: stretch;
}
.main2_feature_media{
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    align-self: start;
    box-shadow: 0 8px 32px rgba(42, 28, 68, 0.1);
}
.main2_feature_media--embed .main2_feature_embed{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.main2_feature_media--embed iframe{
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.main2_feature_media:focus-visible{outline: 2px solid var(--main3-accent); outline-offset: 3px;}
.main2_feature_poster{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.main2_feature_media:hover .main2_feature_poster{transform: scale(1.02);}
.main2_feature_play{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.main2_feature_duration{
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: rgba(24, 18, 36, 0.75);
}
.main2_feature_panel{
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    align-self: stretch;
    padding-top: 2px;
    gap: 0;
}
/* 제목 우선 · 부가정보는 한 줄로 묶어 산만함 감소 */
.main2_feature_title{
    margin: 0 0 8px;
    font-size: clamp(22px, 2.35vw, 29px);
    font-weight: 800;
    color: #222;
    line-height: 1.25;
    letter-spacing: -0.055em;
}
.main2_feature_sub{
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: #8e8899;
}
.main2_feature_sub time{
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #7a7388;
}
.main2_feature_sub_dot{
    margin: 0 0.35em;
    color: #d4d0dc;
    font-weight: 500;
}
.main2_feature_scripture{
    font-weight: 600;
    color: #7a7388;
}
.main2_feature_pastor{
    font-weight: 700;
    color: #6b6578;
    letter-spacing: -0.02em;
}
.main2_feature_schedule_inline {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: #9a94aa;
}
.main2_feature_schedule_inline strong {
    font-weight: 700;
    color: #7a7388;
}
.main2_feature_cta_row{
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    justify-content: flex-end;
}
/* 메인 PC(2열): 장소·시간 한 덩어 유지 */
@media (min-width: 1200px) {
    .main2_feature_schedule_inline {
        white-space: nowrap;
        font-size: 13px;
    }
}
.main2_feature_cta{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--main3-accent);
    color: var(--main3-accent);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}
.main2_feature_cta:hover{
    background: var(--main3-accent);
    color: #fff;
}
.main2_feature_cta:hover img{filter: brightness(0) invert(1);}
.main2_feature_cta img{
    filter: invert(29%) sepia(62%) saturate(1800%) hue-rotate(243deg) brightness(93%) contrast(91%);
}

.main2_recent{margin-top: clamp(44px, 5.5vw, 64px);}
.main2_recent_head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.main2_recent_heading{
    font-size: clamp(19px, 1.9vw, 22px);
    font-weight: 800;
    color: #222;
    margin: 0;
    letter-spacing: -0.06em;
}
.main2_recent_more{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #888;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}
.main2_recent_more:hover{color: var(--main3-accent);}
.main2_recent_track{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 18px);
    align-items: stretch;
}
.main2_card{
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-radius: 14px;
    border: 1px solid #e8e6ec;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 92px;
}
.main2_card:hover{
    border-color: rgba(107, 75, 163, 0.28);
    box-shadow: 0 6px 20px rgba(74, 45, 122, 0.07);
}
.main2_card:focus-visible{outline: 2px solid var(--main3-accent); outline-offset: 2px;}
.main2_card_text{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    text-align: left;
    padding: 16px 18px;
    background: #fff;
}
.main2_card_cat{
    font-size: 12px;
    font-weight: 800;
    color: var(--main3-accent);
    letter-spacing: -0.03em;
}
.main2_card_title{
    font-size: 14px;
    font-weight: 800;
    color: #222;
    line-height: 1.38;
    letter-spacing: -0.05em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.main2_card_date{
    font-size: 12px;
    font-weight: 500;
    color: #9a96a3;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.main2_card_meta{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    color: #9a96a3;
    margin-top: 4px;
    line-height: 1.45;
    letter-spacing: -0.02em;
    gap: 0;
}
.main2_card_meta time{font-variant-numeric: tabular-nums;}
.main2_card_media{
    position: relative;
    flex: 0 0 clamp(100px, 28%, 118px);
    width: clamp(100px, 28%, 118px);
    align-self: stretch;
    overflow: hidden;
}
.main2_card_media::after{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(74, 45, 122, 0.12);
    pointer-events: none;
}
.main2_card_media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92);
}
.main2_card_play{
    position: absolute;
    inset: 0;
    margin: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1;
}
.main2_card_play::after{
    content: "";
    position: absolute;
    left: 54%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent var(--main3-heading);
}

@media (max-width: 1199.98px){
    .main2_feature{
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .main2_feature_cta{justify-content: center;}
    /* 함께 듣는 메시지: 3카드 세로 스택 · 가독 폭 제한 */
    .main2_recent_track{
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: min(520px, 100%);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 599.98px){
    .main2_recent_track{max-width: 100%;}
    .main2_card_media{flex: 0 0 96px; width: 96px;}
}

/* 메시지 영역 — 모바일: 설명 카드 · 여백·타이포 */
@media (max-width: 767.98px){
    .main2{
        padding-top: clamp(24px, 6vw, 40px);
        padding-bottom: clamp(32px, 10vw, 52px);
        background: linear-gradient(180deg, #fff 0%, #faf9fd 55%, #fff 100%);
    }
    .main2_feature{
        gap: 20px;
        padding-bottom: 22px;
        margin-bottom: 6px;
        border-bottom: 1px solid rgba(74, 45, 122, 0.14);
    }
    .main2_feature_media{
        border-radius: 12px;
        box-shadow: 0 4px 22px rgba(42, 28, 68, 0.09);
    }
    .main2_feature_panel{
        padding-top: 0;
        margin-top: 0;
        border-top: none;
        height: auto;
        min-height: 0;
    }
    /* 모바일: 부·시간(목사 옆 꼬리) 생략 */
    .main2_feature_schedule_tail {
        display: none;
    }
    .main2_feature_title{
        font-size: clamp(20px, 5.4vw, 26px);
        line-height: 1.28;
        letter-spacing: -0.05em;
        margin-bottom: 6px;
    }
    .main2_feature_sub{
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.55;
    }
    .main2_feature_pastor{
        font-weight: 700;
    }
    .main2_feature_cta_row{
        padding-top: 14px;
        justify-content: flex-end;
    }
    .main2_feature_cta{
        width: auto;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 8px;
        border-width: 1px;
        gap: 6px;
    }
    .main2_feature_cta img{
        width: 14px;
        height: 14px;
    }
    .main2_recent{
        margin-top: clamp(22px, 5.5vw, 30px);
        padding-top: 18px;
    }
    .main2_recent_head{
        margin-bottom: 16px;
        align-items: flex-end;
        gap: 8px;
    }
    .main2_recent_heading{
        font-size: 17px;
        line-height: 1.25;
    }
    .main2_recent_more{
        font-size: 13px;
    }
    .main2_card_text{
        padding: 12px 14px;
        gap: 5px;
    }
    .main2_card_title{
        font-size: 13px;
        line-height: 1.4;
    }
    .main2_card_cat{
        font-size: 11px;
    }
    /* 카드: 날짜 숨김(다른 메인 카드) — 주일예배 3주 카드는 날짜 표시 */
    .main2_card_date{
        display: none;
    }
    .main2_card.main2_card--sunday .main2_card_date{
        display: block;
        margin-top: 4px;
        font-size: 11px;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        color: #8b8496;
    }
}

.main3{
    background: var(--main3-section-bg);
    text-align: center;
    color: var(--main3-heading);
    /* 배너(main1)와 간격 — PC는 이 값, 모바일은 아래 미디어쿼리에서 덮음 */
    margin-top: clamp(24px, 3.5vw, 44px);
    padding-top: 76px;
    padding-bottom: 110px;
}
.main3 .container{display: flex;}
.main3 .title{flex: 1; text-align: center; margin-bottom: 0;}
.main3 .title h2{color: var(--main3-heading);}
.main3 .title p{color: var(--main3-text-body); font-weight: 500;}
.main3 .title > *:not(:last-child){margin-bottom: 10px;}
.main3 .title .btn_type1{margin: 30px auto 0; border-color: var(--main3-accent); color: var(--main3-accent);}
.main3 .title .btn_type1:hover{background: var(--main3-accent); color: #FFF;}
.main3 .content .circle{background: #FFF; border-radius: 100%; width: 100px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; transition: 0.2s ease-in-out; box-shadow: 0 2px 12px rgba(74, 45, 122, 0.08);}
.main3 .content .circle img{width: 35px; height: 35px; object-fit: contain; display: block;}
.main3 .content .item{flex-direction: column; align-items: center; gap: 20px;}
.main3 .content .item:hover .circle{transition: 0.2s ease-in-out; background: var(--main3-accent);}
.main3 .content .item:hover .circle img{filter: brightness(0) invert(1); transition: 0.2s ease-in-out;}
.main3 .content .item span{font-size: 18px; font-weight: 700; color: var(--main3-accent);}

@media (min-width: 1200px){
    .main3 .content{flex-basis: 800px; align-content: center;}
}

@media (max-width: 1199.98px){
    .main3{
        margin-top: clamp(16px, 4vw, 32px);
        padding-top: 36px;
        padding-bottom: 40px;
    }
    .main3 .container{flex-direction: column; row-gap: 30px;}
    .main3 .title{flex-basis: auto;}
    .main3 .content .row{row-gap: 40px;}
    .main3 .content .circle{width: 72px;}
    .main3 .content .circle img{width: 28px; height: 28px;}
    .main3 .content .item{flex: 25% 0;}
    .main3 .content .item span{font-size: 14px;}
}

/* 메인: 환영(좌) + 새소식(우) — main2(1260)와 동일 폭으로 좌우 여백 대칭 */
/* .main3 { text-align: center } 상속 끊기 — 좌열 콘텐츠가 열 안에서 왼쪽에 붙도록 */
.main3.main3--split{
    text-align: left;
}
.main3.main3--split .container.main3--split__grid{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    /* 모바일: 환영 블록 ↔ 소식 (+10px) */
    row-gap: clamp(38px, 15vw, 58px);
    align-items: stretch;
}
.main3--split__welcome{
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 20px);
    min-width: 0;
    text-align: center;
}
.main3--split__welcome .main3--split__quick{
    display: flex;
    justify-content: center;
    width: 100%;
}
.main3--split__title{
    text-align: center;
    margin-bottom: 0;
    flex: none;
}
.main3--split__title h2{
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.25;
}
.main3--split__title p{
    font-size: clamp(13px, 1.35vw, 15px);
    font-weight: 500;
    line-height: 1.55;
    color: var(--main3-text-body);
}
.main3--split__title p strong{
    font-weight: 600;
}
.main3--split__title > *:not(:last-child){
    margin-bottom: 8px;
}
.main3--split__title .btn_type1{
    margin-top: 14px;
    margin-left: auto;
    margin-right: auto;
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
}
.main3.main3--split .main3--split__quick .row{
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 3.5vw, 50px);
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}
.main3.main3--split .main3--split__quick .row > .item{
    flex: 0 0 auto;
}
.main3.main3--split .main3--split__quick .item{
    gap: 8px;
}
.main3.main3--split .main3--split__quick .circle{
    width: 68px;
    aspect-ratio: 1;
}
.main3.main3--split .main3--split__quick .circle img{
    width: 26px;
    height: 26px;
}
.main3--split__quick .item span{
    font-size: 13px;
    font-weight: 600;
}
.main3--split__news{
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}
.main3--split__news .board_top h3{
    margin: 0;
    font-size: clamp(17px, 1.65vw, 21px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--main3-heading, #4a2d7a);
}
.main3--split__news.main4{
    text-align: left;
}
.main3--split__news.main4 .board_top{
    margin-bottom: 10px;
    flex-shrink: 0;
}
.main3--split__news.main4 .board_top .more{
    font-size: 13px;
    font-weight: 600;
    color: #222;
}
.main3--split__news.main4 .board_list{
    display: flex;
    flex-direction: column;
    /* 모바일(한 줄 세로): flex-grow로 높이가 줄면 본문은 넘치고 다음 섹션(main2)이 겹쳐 보임 — 콘텐츠 높이만 사용 */
    flex: 0 1 auto;
    min-height: auto;
}
.main3--split__news.main4 .board_list .item{
    flex: 0 0 auto;
    align-items: center;
    min-height: 36px;
    padding: 4px 0;
    justify-content: flex-start;
    text-align: left;
}
.main3--split__news.main4 .board_list .text{
    flex: 1;
    min-width: 0;
    min-height: 0;
    align-self: center;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}
.main3--split__news.main4 .board_list .board_title{
    font-size: 15px;
    font-weight: 600;
}
.main3--split__news.main4 .board_list .board_date{
    font-size: 12px;
    font-weight: 500;
    color: #7a7a7a;
}
.main3--split__news.main4 .board_list a.item > div:not(.text){
    margin-left: auto;
    flex-shrink: 0;
    text-align: right;
}
@media (min-width: 1025px){
    .main3.main3--split .main3--split__quick.content{
        flex-basis: auto;
        width: 100%;
        max-width: 100%;
    }
    .main3.main3--split .container.main3--split__grid{
        display: grid !important;
        width: 100%;
        max-width: 1260px;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: clamp(20px, 3vw, 40px);
        row-gap: 0;
        align-items: stretch;
    }
    .main3--split__welcome{
        min-height: 100%;
    }
    .main3--split__news.main4{
        min-height: 100%;
        height: 100%;
    }
    /* 2열: 우측 소식란을 환영 블록 높이에 맞출 때만 균등 분배(모바일 단일 열에서는 제외) */
    .main3--split__news.main4 .board_list{
        flex: 1 1 0;
        min-height: 0;
    }
    .main3--split__news.main4 .board_list .item{
        flex: 1 1 0;
    }
}

/* 메인: 다음 세대 — 배경 레이어는 z-index로만 정리(3D 플립을 위해 isolation·overflow 비침해 유지) */
.main_nextgen{
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    background-color: #f7f4fc;
    margin-top: clamp(10px, 1.6vw, 18px);
    padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px);
}
.main_nextgen::before{
    content: '';
    position: absolute;
    z-index: 0;
    /* inset:0만 — scale()은 세로로 박스 밖까지 그려져 다음 섹션(갤러리)과 겹침 */
    inset: 0;
    transform: translateZ(0);
    pointer-events: none;
    background-color: #f7f4fc;
    background-image: url('../images/main/background.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}
.main_nextgen > .container{
    position: relative;
    z-index: 1;
}
.main_nextgen__title{
    margin: 0 0 clamp(22px, 3.2vw, 40px);
    text-align: center;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3.35vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #222;
    -webkit-font-smoothing: antialiased;
}
.main_nextgen__grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
    align-items: stretch;
}
/* 메인 다음세대: 한 장짜리 Y 플립 — 원근은 카드 한 곳만, 껍데기 투명 + inner는 앞·뒤 면이 모두 숨는 각도에서만 비침(그때 검정처럼 보이지 않게 연노랑) */
.main_nextgen .nextgen_card{
    position: relative;
    display: block;
    min-height: clamp(400px, 31vw, 480px);
    height: auto;
    background: transparent;
    border-radius: 20px;
    overflow: visible;
    border: none;
    perspective: 1100px;
    touch-action: manipulation;
    box-sizing: border-box;
}
.main_nextgen .nextgen_card__inner{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    /* 플립 중간(≈90°): 양면 backface-hidden으로 비는 순간 — 요청 RGB(256,263,172) → sRGB rgb(255,255,172) */
    background-color: rgb(255, 255, 172);
    transform-style: preserve-3d;
    transform-origin: center center;
    /* ease-in-out은 끝에서 덜 미끄러짐 — GPU 레이어(translateZ) + 완만한 감속 곡선 */
    transform: rotateY(0deg) translateZ(0);
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.32, 1);
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(42, 28, 68, 0.08);
}
/* PC·터치 공통: hover 또는 .is-flipped 시 뒤집힘 */
.main_nextgen .nextgen_card:hover .nextgen_card__inner,
.main_nextgen .nextgen_card.is-flipped .nextgen_card__inner{
    transform: rotateY(180deg) translateZ(0);
}
/* 터치: 가짜 :hover만 무효 — .is-flipped일 때는 위 규칙이 우선(더 높은 특이도) */
@media (hover: none){
    .main_nextgen .nextgen_card:hover:not(.is-flipped) .nextgen_card__inner{
        transform: rotateY(0deg) translateZ(0);
    }
    .main_nextgen .nextgen_card{
        -webkit-tap-highlight-color: transparent;
    }
}
@media (prefers-reduced-motion: reduce){
    .main_nextgen .nextgen_card__inner{
        transition-duration: 0.28s;
        transition-timing-function: cubic-bezier(0.22, 1, 0.32, 1);
    }
}
/* 3D 플립: 앞면 z-index로 뒷면 비침 완화. 플립 시 앞면을 z-index:0으로 내리면(일부 GPU·카드 높이) 검은 화면처럼 보일 수 있어 호버 전용 z-index 전환은 쓰지 않음 */
.main_nextgen .nextgen_card__face{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    box-shadow: inset 0 0 0 1px rgba(74, 45, 122, 0.08);
}
.main_nextgen .nextgen_card__face--front{
    transform: rotateY(0deg) translateZ(2px);
    display: flex;
    flex-direction: column;
    background: #fff;
    z-index: 2;
}
.main_nextgen .nextgen_card__face--back{
    transform: rotateY(180deg) translateZ(2px);
    display: flex;
    flex-direction: column;
    background-color: #2a1a42;
    z-index: 1;
}
.main_nextgen .nextgen_card__face--back::before{
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--nextgen-card-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(0.78) contrast(0.92) brightness(1.06);
    transform: translateZ(0);
}
.main_nextgen .nextgen_card__face--back::after{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(76, 39, 130, 0.72);
}
.main_nextgen .nextgen_card__back-content{
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: clamp(18px, 2.4vw, 26px) clamp(14px, 2vw, 22px);
    gap: clamp(14px, 2.2vw, 20px);
    text-align: center;
}
.main_nextgen .nextgen_card__face--back .nextgen_card__text{
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.main_nextgen .nextgen_card__face--back .nextgen_card__worship{
    margin: clamp(18px, 3.6vw, 38px) 0 0;
    padding-top: clamp(17px, 2.5vw, 27px);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.95);
}
.main_nextgen .nextgen_card__face--back .nextgen_card__worship-label{
    color: #e8dff5;
}
.main_nextgen .nextgen_card__face--back .nextgen_card__cta{
    margin-left: 0;
    margin-right: 0;
    align-self: stretch;
}
.main_nextgen .nextgen_card__body--front{
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 clamp(16px, 2vw, 22px) clamp(12px, 1.8vw, 18px);
    gap: 0;
    overflow-x: clip;
}
/* 흰 영역 세등분: 위·아래 1fr, 가운데에 제목+슬로건 */
.main_nextgen .nextgen_card__body--front::before,
.main_nextgen .nextgen_card__body--front::after{
    content: '';
    flex: 1 1 0;
    min-height: 0;
    width: 0;
}
.main_nextgen .nextgen_card__body--front .nextgen_card__title,
.main_nextgen .nextgen_card__body--front .nextgen_card__tagline{
    flex-shrink: 0;
}
.main_nextgen .nextgen_card__body--front .nextgen_card__tagline{
    margin-top: clamp(8px, 1.2vw, 14px);
    font-size: clamp(16px, 1.55vw + 8.5px, 20px);
}
/* 앞면 본문: 가독성 — 제목·캐치·성구 한 단계↑ */
.main_nextgen .nextgen_card__body--front .nextgen_card__title{
    font-size: clamp(24px, 2.5vw + 9px, 34px);
}
.main_nextgen .nextgen_card__body--front .nextgen_card__tagline.nextgen_card__tagline--long{
    font-size: clamp(15px, 1.2vw + 8.5px, 18px);
    /* 긴 캐치 + <br>: text-wrap balance와 충돌 완화 */
    text-wrap: wrap;
    overflow-wrap: break-word;
    word-break: keep-all;
}
.main_nextgen .nextgen_card__body--front .nextgen_card__ref{
    font-size: clamp(13.5px, 1vw + 8px, 16.5px);
}
@media (hover: none){
    .main_nextgen .nextgen_card{
        cursor: pointer;
    }
}
.nextgen_card__media{
    position: relative;
    flex-shrink: 0;
    /* 16/10보다 낮은 띠 — 본문 영역 비중 ↑ */
    aspect-ratio: 16 / 6.5;
    overflow: hidden;
    background: #e8e4ef;
}
.nextgen_card__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* 흑백 느낌 + 더 연한 톤(색기·명암 부드럽게) */
    filter: grayscale(0.78) contrast(0.92) brightness(1.06);
    transform: translateZ(0);
}
.nextgen_card__body{
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(12px, 1.8vw, 17px);
    padding: clamp(20px, 2.5vw, 28px) clamp(16px, 2vw, 22px) 16px;
    min-height: 0;
}
.nextgen_card__title{
    margin: 0;
    width: 100%;
    font-size: clamp(22px, 2.2vw + 8px, 30px);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--main3-heading, #4a2d7a);
    line-height: 1.22;
    text-align: center;
}
.nextgen_card__emoji{
    display: inline-block;
    font-size: 0.68em;
    line-height: 1;
    vertical-align: 0.08em;
}
.nextgen_card__tagline{
    margin: 0;
    width: 100%;
    font-size: clamp(14.5px, 1.4vw + 8px, 18px);
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: -0.03em;
    color: #3d2f5c;
    text-align: center;
    text-wrap: balance;
}
/* 긴 캐치문구(청소년부) — 좁은 열에서도 한 줄에 가깝게 */
.nextgen_card__tagline.nextgen_card__tagline--long{
    font-size: clamp(13.5px, 1.1vw + 8px, 16.5px);
    letter-spacing: -0.04em;
    line-height: 1.36;
}
.nextgen_card__ref{
    display: block;
    margin-top: 4px;
    font-size: clamp(12.5px, 0.9vw + 8px, 15px);
    font-weight: 600;
    color: #5c4d78;
    text-align: center;
}
.nextgen_card__text{
    margin: 4px 0 0;
    width: 100%;
    /* tagline보다 한 단계 작게(캐치 vs 설명 위계) */
    font-size: clamp(13.5px, 0.65vw + 9px, 16px);
    font-weight: 500;
    line-height: 1.55;
    color: #222;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.nextgen_card__worship{
    margin: 8px 0 0;
    width: 100%;
    padding-top: clamp(14px, 1.8vw, 18px);
    border-top: 1px solid rgba(74, 45, 122, 0.12);
    font-size: clamp(14px, 0.75vw + 9px, 16px);
    font-weight: 600;
    line-height: 1.48;
    color: #222;
    text-align: center;
}
.nextgen_card__worship-label{
    display: block;
    margin-bottom: 6px;
    font-size: clamp(12px, 0.5vw + 10px, 13.5px);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--main3-accent, #6b4ba3);
    text-align: center;
}
.nextgen_card__cta{
    /* 기본: 버튼이 본문 바로 아래(모바일·태블릿 빈칸 최소화) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 12px clamp(14px, 1.8vw, 20px) clamp(14px, 1.8vw, 20px);
    align-self: stretch;
    text-align: center;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1.5px solid var(--main3-accent, #6b4ba3);
    background: var(--main3-accent, #6b4ba3);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nextgen_card__cta:hover{
    background: #5d3d94;
    border-color: #5d3d94;
    color: #fff;
    box-shadow: 0 6px 18px rgba(107, 75, 163, 0.35);
}
.nextgen_card__cta:focus-visible{
    outline: 2px solid var(--main3-accent, #6b4ba3);
    outline-offset: 3px;
}
/* 카드 안 포커스 시 inner 그림자만 바꾸면 PC/모바일 모두 '얇은 레이어'처럼 보임 → :focus-within 그림자 분기 제거. 키보드 포커스는 CTA :focus-visible로 유지 */
@media (max-width: 1199.98px){
    .main_nextgen__grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    /* 행 높이 맞춤 시 본문이 늘어나 생기는 하단 빈칸 방지 */
    .nextgen_card__body{
        flex: 0 1 auto;
    }
}
@media (max-width: 599.98px){
    .main_nextgen{
        padding: 40px 0 clamp(52px, 10vw, 72px);
    }
    .main_nextgen__title{
        margin-bottom: 18px;
        font-size: clamp(23px, 5.8vw, 29px);
    }
    .main_nextgen__grid{
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .main_nextgen .nextgen_card{
        min-height: 360px;
        border-radius: 14px;
    }
    .main_nextgen .nextgen_card__face{
        border-radius: 14px;
    }
    .main_nextgen .nextgen_card__inner{
        border-radius: 14px;
    }
    /* 이미지 띠를 조금 올려 시각적 무게 ↑ */
    .nextgen_card__media{
        aspect-ratio: 16 / 6.4;
    }
    .nextgen_card__title{
        font-size: clamp(23px, 5.2vw, 28px);
    }
    .nextgen_card__body{
        gap: 12px;
        padding: 18px 14px 14px;
    }
    .nextgen_card__worship{
        margin-top: 8px;
        padding-top: 14px;
        font-size: 15px;
    }
    .nextgen_card__worship-label{
        font-size: 13px;
        margin-bottom: 6px;
    }
    /* 캐치문구: 가독성 ↑, 성구는 같은 줄(넘치면 자연 줄바꿈) */
    .nextgen_card__tagline{
        font-size: 17px;
        line-height: 1.3;
        letter-spacing: -0.035em;
    }
    .nextgen_card__tagline.nextgen_card__tagline--long{
        font-size: 16px;
        line-height: 1.34;
        letter-spacing: -0.045em;
    }
    .nextgen_card__tagline .nextgen_card__ref{
        display: inline;
        margin-top: 0;
        margin-left: 0.2em;
        font-size: 0.88em;
    }
    .nextgen_card__text{
        font-size: 15px;
        line-height: 1.52;
    }
}

@media (max-width: 767.98px){
    /* 모바일: 앞면 타이포·뒷면 예배 안내 — 다른 규칙(599·공통)에 밀리지 않도록 특이도↑ + !important */
    .main_nextgen article.nextgen_card .nextgen_card__face--front .nextgen_card__body.nextgen_card__body--front h3.nextgen_card__title{
        font-size: clamp(26px, 6.2vw, 34px) !important;
    }
    .main_nextgen article.nextgen_card .nextgen_card__face--front .nextgen_card__body.nextgen_card__body--front p.nextgen_card__tagline{
        font-size: clamp(18px, 4.5vw, 22px) !important;
    }
    .main_nextgen article.nextgen_card .nextgen_card__face--front .nextgen_card__body.nextgen_card__body--front p.nextgen_card__tagline.nextgen_card__tagline--long{
        font-size: clamp(17px, 4vw, 20px) !important;
    }
    .main_nextgen article.nextgen_card .nextgen_card__face--front .nextgen_card__body.nextgen_card__body--front .nextgen_card__ref{
        font-size: clamp(15px, 3.6vw, 18px) !important;
    }
    .main_nextgen article.nextgen_card .nextgen_card__face--back .nextgen_card__back-content{
        gap: clamp(20px, 3.4vw, 28px) !important;
    }
    .main_nextgen article.nextgen_card .nextgen_card__face--back .nextgen_card__back-content p.nextgen_card__worship{
        margin-top: clamp(32px, 5.8vw, 56px) !important;
        padding-top: clamp(26px, 3.8vw, 38px) !important;
    }
    .main_nextgen article.nextgen_card .nextgen_card__face--back .nextgen_card__back-content a.nextgen_card__cta{
        margin-top: clamp(14px, 2.4vw, 20px) !important;
    }
}
.main4 .row{column-gap: 110px;}
.main4 .board_top{display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;}
.main4 .board_top .more{font-weight: 700; gap: 10px; color: var(--default-color); font-size: 14px;}
.main4 .board_list{border-top: 1px solid var(--default-color); border-bottom: 1px solid var(--default-color);}
.main4 .board_list .item{width: 100%; min-height: 80px; align-items: center; gap: 10px; padding: 10px 0;}
.main4 .board_list .item:not(:last-child){border-bottom: 1px solid #D9D9D9;}
.main4 .board_list .text{display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 6px;}
.main4 .board_list .board_title{font-size: 18px; font-weight: 700;}
.main4 .board_list .board_content{font-size: 14px; font-weight: 500;}
.main4 .board_list .board_date{font-size: 12px; color: #898989;}
.main4 .board_list .board_arrow{flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;}
.main4 .board_list .board_arrow img{width: 20px; height: 20px; display: block; opacity: 0.45; transition: opacity 0.2s ease-in-out;}
.main4 .board_list a.item:hover .board_arrow img{opacity: 0.95;}
.main4 .board_list .more{background: #D9D9D9; width: 30px; height: 30px; border-radius: 100%; transition: 0.2s ease-in-out;}
.main4 .board_list .more img{filter: brightness(100);}
.main4 .board_list a:hover .board_title{text-decoration: underline;}
.main4 .board_list a:hover .more{background: var(--main-color); transition: 0.2s ease-in-out;}

@media (min-width: 600px){
    .main4 .title{text-align: center;}
    .main4 .content{max-width: 1000px; margin: 0 auto;}
    .main4 .board_list .board_date{display: none;}
    #main-notice-list .board_date{display: inline;}
}
@media (max-width: 599.98px){
    .main4 .row{row-gap: 40px;}
    .main4 .row > .item{flex: 100% 0;}
    .main4 .board_top{margin-bottom: 10px;}
    .main4 .board_list{border-top: 2px solid var(--default-color);}
    .main4 .board_list .item{min-height: 60px;}
    .main4 .board_list .board_title{font-size: 14px;}
    .main4 .board_list .board_content{display: none;}
    .main4 .board_list .more{display: none;}
}

.main5{
    position: relative;
    z-index: 1;
    background: #fff;
}
.main5 .title .more,
.dept_gallery .title .more{font-weight: 700; gap: 10px; color: var(--default-color); font-size: 14px;}
.main5 .content{
    max-width: 100%;
    min-width: 0;
}
.dept_gallery .content,
.dept_gallery_track{
    max-width: 100%;
    min-width: 0;
}
/* 메인 예은 갤러리(main5) */
.main5_slide{
    --main5-gallery-card-w: 330px;
    padding-bottom: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}
.main5_slide .swiper-slide.main5_gallery_slide{
    width: var(--main5-gallery-card-w);
    min-width: var(--main5-gallery-card-w);
    max-width: var(--main5-gallery-card-w);
    height: auto;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.main5_slide .main5_gallery_link{
    display: block;
    width: 100%;
    min-width: 0;
    border-radius: clamp(18px, 2.2vw, 24px);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 24px rgba(42, 28, 68, 0.08);
    text-decoration: none;
    color: inherit;
}
.main5_slide .main5_gallery_figure{
    margin: 0;
    position: relative;
    min-width: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #ece8f2;
}
.main5_slide .main5_gallery_figure img{
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.main5_slide .main5_gallery_link:hover .main5_gallery_figure img,
.main5_slide .main5_gallery_link:focus-visible .main5_gallery_figure img{
    transform: scale(1.04);
}
/* 부서 페이지 하단 갤러리 — 메인과 클래스·변수 분리 */
.dept_gallery_swiper{
    --dept-gallery-card-w: 220px;
    padding-bottom: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    transform: translateZ(0);
}
.dept_gallery_swiper .swiper-wrapper{
    transition-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
}
.dept_gallery_swiper .swiper-slide.dept_gallery_slide{
    width: var(--dept-gallery-card-w);
    min-width: var(--dept-gallery-card-w);
    max-width: var(--dept-gallery-card-w);
    height: auto;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}
.dept_gallery_swiper .dept_gallery_link{
    display: block;
    width: 100%;
    min-width: 0;
    border-radius: clamp(12px, 1.6vw, 16px);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(42, 28, 68, 0.06);
    text-decoration: none;
    color: inherit;
}
.dept_gallery_swiper .dept_gallery_figure{
    margin: 0;
    position: relative;
    min-width: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ece8f2;
}
.dept_gallery_swiper .dept_gallery_figure img{
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}
@media (hover: hover){
    .dept_gallery_swiper .dept_gallery_link:hover .dept_gallery_figure img,
    .dept_gallery_swiper .dept_gallery_link:focus-visible .dept_gallery_figure img{
        transition: transform 0.45s ease;
        transform: scale(1.04) translateZ(0);
    }
}
.main5 .content .btn_type1,
.dept_gallery .content .btn_type1,
.dept_gallery_actions .btn_type1{border-color: var(--main3-accent); color: var(--main3-accent);}
.main5 .content .btn_type1:hover,
.dept_gallery .content .btn_type1:hover,
.dept_gallery_actions .btn_type1:hover{background: var(--main3-accent); color: #FFF;}
/* 갤러리 더보기 등: 청록 필터 → 키컬러 보라에 맞춘 아이콘 틴트(#6b4ba3 근사) */
.main5 .content .btn_type1 img,
.dept_gallery .content .btn_type1,
.dept_gallery_actions .btn_type1 img{
    filter: invert(29%) sepia(62%) saturate(1800%) hue-rotate(243deg) brightness(93%) contrast(91%);
}
.main5 .content .btn_type1:hover img,
.dept_gallery .content .btn_type1:hover img,
.dept_gallery_actions .btn_type1:hover img{filter: brightness(0) invert(1);}
.main5 .content .btn{width: 200px; height: 48px; border-radius: 15px; border: 2px solid var(--main3-accent); color: var(--main3-accent); display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0 20px; margin: 50px auto 0; font-weight: 600; transition: 0.2s ease-in-out;}
.main5 .content .btn span{flex: 1; text-align: center;}
.main5 .content .btn img{filter: invert(29%) sepia(62%) saturate(1800%) hue-rotate(243deg) brightness(93%) contrast(91%);}
.main5 .content .btn:hover{background: var(--main3-accent); color: #FFF; transition: 0.2s ease-in-out;}
.main5 .content .btn:hover img{filter: brightness(100);}

@media (min-width: 1200px){
    .main5 .title,
    .dept_gallery .title{text-align: center;}
    .main5 .content .btn_type1,
    .dept_gallery .content .btn_type1,
    .dept_gallery_actions .btn_type1{margin: 16px auto 0;}
    .main5_slide .main5_gallery_link,
    .dept_gallery_swiper .dept_gallery_link{overflow: hidden;}
}

@media (max-width: 1199.98px){
    .main_nextgen{
        /* 2열 그리드·카드 그림자가 다음 섹션으로 비치지 않도록 하단 여유 */
        padding-bottom: clamp(56px, 8.5vw, 88px);
    }
    .main5 .title,
    .dept_gallery .title{display: flex; justify-content: space-between; align-items: center;}
    .main5_slide,
    .dept_gallery_swiper{padding-bottom: 8px;}
    /* PC가 아닐 때: NEXT Gen과 갤러리 사이 간격(767 전용보다 넓은 구간 포함) */
    .main5{
        margin-top: clamp(16px, 3.2vw, 36px);
        padding-top: clamp(24px, 5vw, 48px);
        padding-bottom: clamp(28px, 5.5vw, 52px);
    }
    .main5 .title,
    .dept_gallery .title{
        margin-bottom: clamp(12px, 2.8vw, 22px);
    }
    /* 부서 갤러리: 한 장 + 다음 장 1~2cm만 비침 (220px 고정 제거) */
    .dept_gallery_track .dept_gallery_swiper{
        --dept-gallery-card-w: calc(100% - clamp(56px, 12vw, 72px));
    }
}

@media (max-width: 767.98px){
    /* 한 장만 보일 때: 카드 폭을 살짝 줄여 오른쪽에 다음 슬라이드가 약 1~2cm(≈38~72px) 비치게 */
    .main5_slide{
        --main5-gallery-card-w: min(330px, calc(100% - clamp(38px, 10vw, 72px)));
    }
    .dept_gallery_track .dept_gallery_swiper{
        --dept-gallery-card-w: calc(100% - clamp(52px, 13vw, 68px));
    }
    .main5{
        margin-top: clamp(12px, 2.5vw, 22px);
        padding-top: clamp(28px, 6.5vw, 44px);
        padding-bottom: clamp(32px, 7.5vw, 48px);
    }
    .main5 .title,
    .dept_gallery .title{
        margin-bottom: clamp(14px, 3.2vw, 20px);
    }
}

.main6{background: var(--main3-section-bg); padding: 60px 0;}
.main6 .row{gap: 80px; justify-content: center;}
.main6 .item{flex: none; flex-basis: 120px;}
.main6 .item > .main6_parent_title{
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--main3-heading, #4a2d7a);
    letter-spacing: -0.04em;
    user-select: none;
}
.main6 .group{font-size: 14px; font-weight: 500; line-height: 2;}
.main6 .group .depth2:has(.depth3) .depth_title{display: flex; align-items: center;}
.main6 .group .depth2:has(.depth3) .depth_title::after{
    content: "";
    width: 12px;
    height: 12px;
    background-image: url(../images/icon/arrow-right.svg);
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: center;
    margin-left: 6px;
    transition: transform 0.2s ease-in-out;
    transform: rotate(90deg);
    display: inline-block;
    flex-shrink: 0;
}
.main6 .group .depth2.active .depth_title::after{transform: rotate(-90deg);}
.main6 .group .depth3{display: none; padding-left: 10px;}

/* footer */
footer{background: var(--bg-dark-color); color: var(--sub-color); padding: 60px 0; font-size: 12px; font-weight: 500;}
footer .container{display: flex; flex-direction: column;}
footer .container > *:not(:last-child){margin-bottom: 12px;}
.footer_familysite{position: relative;}
.familysite{border: 1px solid #B2B5B7; color: var(--sub-color); width: 160px; height: 40px; padding: 0 10px; font-weight: 600; background: var(--bg-dark-color);}
.familysite span{flex: 1;}
.familysite img{filter: brightness(100); transition: transform 0.3s;}
.family_list{display: none; position: absolute; width: 160px; border: 1px solid #B2B5B7; border-top: none; background: var(--bg-dark-color); /*max-height: 100px; overflow-y: auto;*/ bottom: 39px; z-index: 10;}
.family_list::-webkit-scrollbar{width: 5px;}
.family_list::-webkit-scrollbar-track{background-color: var(--bg-dark-color);}
.family_list::-webkit-scrollbar-thumb{background-color: var(--sub-color);}
.family_list a{padding: 5px 10px;}
.familysite.active img{transform: rotate(180deg); transition: transform 0.3s;}
.footer_link{display: flex; color: var(--sub-color); font-weight: 600;}
.footer_link a{height: fit-content;}
.footer_info{
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.88);
}
.footer_info .footer_meta{
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer_info .footer_name{
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    font-size: 1.08em;
    line-height: 1.5;
    color: #fff;
}
.footer_info .footer_church_full{
    font-weight: 800;
    letter-spacing: -0.03em;
}
.footer_info .footer_pastor_inline{
    font-size: 0.88em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
}
.footer_info .footer_label{
    font-weight: 700;
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: -0.02em;
}
.footer_info .footer_pastor_name{
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}
.footer_info .footer_address_line{
    margin: 0 0 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}
.footer_info .footer_address_text{
    word-break: keep-all;
    min-width: 0;
}
.footer_info .footer_address_line .footer_tel{
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}
.footer_bottom{color: var(--sub-color); display: flex; justify-content: space-between; align-items: center; gap: 12px; line-height: 1.45;}
.footer_bottom > p{margin: 0; text-align: left; flex: 1; min-width: 0; line-height: 1.45;}
.footer_bottom .sns{display: flex; gap: 20px; align-items: center; flex-shrink: 0;}
.footer_bottom .sns a{display: flex; align-items: center;}
.footer_bottom .sns img{height: 22px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.92;}
.footer_bottom .sns a:hover img{opacity: 1;}

@media (min-width: 1200px){
    footer{font-size: 13px;}
    .footer_info{font-size: 14px;}
    .footer_top{display: flex; justify-content: space-between;}
    .footer_link > a:not(:first-child){margin-left: 10px;}
    .footer_link > a:not(:first-child)::before{content: "｜"; margin-right: 10px;}
}

@media (max-width: 1199.98px){
    footer{padding: 28px 0 24px 0;}
    footer .container{padding: 0;}
    footer .container > *{padding: 0 16px;}
    footer .container .footer_top{padding: 0;}
    .footer_link{order: -1; font-size: 12px; border-bottom: 1px solid #555D61;}
    .footer_link > a{width: 100%; height: 40px; justify-content: center; align-items: center;}
    .footer_link > a:not(:last-child){border-right: 1px solid #555D61;}
    .footer_familysite{margin-top: 20px; padding: 0 16px;}
    .footer_bottom{flex-direction: row; justify-content: space-between; align-items: center;}
    .footer_bottom .sns{justify-content: flex-end;}
}

/* 서브페이지(인사말 등) */
.sub_page{padding: 48px 0 100px;}
.sub_page .container{max-width: 820px;}
.sub_page .container.sub_with_lnb{
    max-width: 1140px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: clamp(56px, 8vw, 120px);
}
@media (min-width: 1200px){
    .sub_page .container.sub_with_lnb{
        padding-left: max(0px, env(safe-area-inset-left, 0px));
        padding-right: 30px;
    }
    .sub_page .container.sub_with_lnb > .sub_main{
        margin-left: clamp(20px, 2.8vw, 44px);
    }
}
.sub_lnb{
    flex: 0 0 auto;
    width: min(148px, 28vw);
    max-width: 148px;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    padding: 0;
    margin: 0;
    margin-left: 0;
    margin-right: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: right;
}
@media (min-width: 1200px){
    .sub_lnb{
        margin-left: -32px;
    }
}
.sub_lnb_item--current{
    margin: 0;
    padding: 0 0 6px;
}
.sub_lnb_current{
    display: block;
    padding: 2px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--main3-heading);
    line-height: 1.4;
    letter-spacing: -0.03em;
}
.sub_lnb_top{
    margin: 0 0 14px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.03em;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px 6px;
}
.sub_lnb_sm{
    color: var(--main3-accent);
    font-weight: 800;
}
.sub_lnb_sep{
    color: rgba(70, 70, 70, 0.35);
    font-weight: 500;
    user-select: none;
}
.sub_lnb_lg{
    color: var(--sub-color);
    font-weight: 600;
    display: inline;
}
.sub_lnb_lg:hover{
    color: var(--main3-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sub_lnb_list{
    margin: 0;
    padding: 14px 0 0;
    list-style: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.sub_lnb_list li{margin: 0;}
.sub_lnb_link{
    display: block;
    padding: 7px 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--default-color);
    line-height: 1.4;
}
.sub_lnb_link:hover{
    background: transparent;
    color: var(--main3-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sub_page .sub_main{
    flex: 1;
    min-width: 0;
    max-width: none;
}
/* LNB 오른쪽: 사진 | 본문 (사진·텍스트만, 테두리·박스 없음) */
.sub_page .sub_main:has(.sub_visual){
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(20px, 3vw, 36px);
}
.sub_page .sub_main:has(.pastor_intro_bg) > .pastor_intro_bg{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(20px, 3vw, 36px);
    flex: 1;
    min-width: 0;
    width: 100%;
    position: relative;
    isolation: isolate;
}
/* Safari 구버전 등 :has() 미지원 브라우저 fallback — 담임목사 인사말은 컨테이너 없이도 레이아웃 고정 */
.pastor_intro_bg{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(20px, 3vw, 36px);
    width: 100%;
    position: relative;
    isolation: isolate;
}
.pastor_intro_bg .sub_text{
    flex: 1;
    min-width: 0;
}
.sub_visual{
    flex: 0 0 auto;
    width: min(232px, 24vw);
    max-width: 260px;
    margin: 0;
    padding: 0;
}
.sub_visual img{
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
}
.sub_page .sub_main:has(.sub_visual) > .pastor_intro_bg > .sub_text{
    flex: 1;
    min-width: 0;
    max-width: 820px;
}
.sub_header{
    margin: 0 0 24px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}
.sub_kicker{
    font-size: 15px;
    font-weight: 500;
    color: var(--sub-color);
    letter-spacing: -0.04em;
    margin: 0 0 4px;
    line-height: 1.5;
}
.sub_header h1{
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 600;
    color: var(--default-color);
    line-height: 1.4;
    letter-spacing: -0.05em;
}
.sub_body{
    font-size: 17px;
    line-height: 1.85;
    font-weight: 500;
    color: var(--default-color);
}
.sub_lead{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.sub_lead_leaf{
    flex-shrink: 0;
    width: 26px;
    max-width: 26px;
    height: 26px;
    max-height: 26px;
    object-fit: contain;
    display: block;
}
.sub_lead_text{
    flex: 1;
    min-width: 0;
    color: var(--main3-accent);
    font-weight: 800;
    line-height: 1.4;
}
.sub_body p{margin: 0 0 1.35em;}
.sub_body p:last-child{margin-bottom: 0;}
.sub_sign{
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 16px;
    color: var(--main3-text-body);
    text-align: right;
}
.sub_sign_label{font-weight: 600;}
.sub_sign_name{font-weight: 800; color: var(--main3-heading);}
@media (max-width: 1199.98px){
    .sub_page{
        padding: 28px 0 56px;
        box-sizing: border-box;
    }
    .dept_page.sub_page{
        padding-bottom: clamp(16px, 2.5vw, 28px);
    }
    /* LNB+본문: 전체 너비·세로 늘어남 방지 */
    .sub_page .container.sub_with_lnb{
        width: 100%;
        max-width: min(1140px, 100%);
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .sub_page .sub_main{
        flex: none;
        flex-grow: 0;
        flex-shrink: 0;
    }
    /* 모바일 서브 본문: 읽기용 타이포 */
    .sub_page .sub_body{
        font-size: 17px;
        line-height: 1.82;
        font-weight: 400;
        letter-spacing: -0.03em;
        color: #222;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    .sub_page .sub_body p{
        margin: 0 0 1.15em;
    }
    .sub_page .sub_body p:last-child{
        margin-bottom: 0;
    }
    .sub_page .sub_lead_text{
        font-size: 1.08em;
        line-height: 1.42;
        font-weight: 800;
        letter-spacing: -0.04em;
    }
    .sub_page .sub_sign{
        font-size: 15px;
        line-height: 1.7;
        margin-top: 2.1em;
        padding-top: 1.35em;
    }
    /* 모바일: LNB → 상단 가로 칩 메뉴(스크롤) */
    .sub_lnb{
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: none;
        position: static;
        margin: 0 0 20px;
        padding: 0 max(0px, env(safe-area-inset-right, 0px)) 14px max(0px, env(safe-area-inset-left, 0px));
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
        flex: none;
        text-align: center;
    }
    .sub_lnb_top{
        margin-bottom: 10px;
        font-size: 12px;
        gap: 4px 6px;
        line-height: 1.35;
        justify-content: center;
    }
    .sub_lnb_sm{font-size: 12px;}
    .sub_lnb_sep{font-size: 11px;}
    .sub_lnb_lg{font-size: 12px;}
    .sub_lnb_list{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 max(4px, env(safe-area-inset-right, 0px)) 6px max(4px, env(safe-area-inset-left, 0px));
        margin: 0;
        border-top: none;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .sub_lnb_list::-webkit-scrollbar{
        display: none;
        width: 0;
        height: 0;
        background: transparent;
    }
    .sub_lnb_list li{flex: 0 0 auto;}
    /* 활성 메뉴를 가로 칩 맨 앞에 보이게(스크롤 없이 현재 위치 확인) */
    .sub_lnb_item--current{
        order: -1;
        margin: 0;
        padding: 0;
    }
    .sub_lnb_item--current .sub_lnb_current{
        display: inline-flex;
        align-items: center;
        padding: 7px 13px;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.25;
        border-radius: 999px;
        background: rgba(107, 75, 163, 0.13);
        color: var(--main3-accent);
        letter-spacing: -0.03em;
    }
    .sub_lnb_link{
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 7px 13px !important;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.25;
        border-radius: 999px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: #fff;
        color: var(--default-color);
        white-space: nowrap;
        text-decoration: none !important;
    }
    .sub_lnb_link:hover,
    .sub_lnb_link:active{
        color: var(--main3-accent);
        border-color: rgba(107, 75, 163, 0.32);
        background: rgba(107, 75, 163, 0.05);
        text-decoration: none !important;
    }
    .sub_page .sub_main{
        max-width: none;
        width: 100%;
        min-width: 0;
        flex: none;
        flex-grow: 0;
    }
}

/* 768px 미만만 사진 위·글 아래(모바일). 768px 이상은 PC와 동일하게 사진 | 글 가로 배치 */
@media (max-width: 767.98px){
    .sub_page .sub_body br{
        display: none;
    }
    .sub_page .sub_main:has(.sub_visual){
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .sub_page .sub_main:has(.pastor_intro_bg) > .pastor_intro_bg{
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .pastor_intro_bg{
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .sub_visual{
        width: 100%;
        max-width: min(334px, 88vw);
        margin-left: auto;
        margin-right: auto;
    }
    .sub_visual img{
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        max-height: min(272px, 42vw);
        object-fit: cover;
        object-position: center 20%;
    }
    /* 담임목사 인사말 사진(모바일)은 sub.css에서 한 블록으로 정리 — main.css 공통 규칙과 중복 방지 */
    .sub_visual img.sub_visual_img--fallback{
        object-fit: contain;
        padding: clamp(16px, 5vw, 28px);
        background: rgba(107, 75, 163, 0.07);
        object-position: center center;
    }
    .sub_page .sub_main:has(.sub_visual) > .pastor_intro_bg > .sub_text{
        max-width: none;
    }
}

/* 부서 하위 페이지 (청년·청소년·유초등 등 공통 레이아웃) */
.dept_page.sub_page{
    padding-top: 55px;
    padding-bottom: clamp(20px, 3vw, 36px);
}
.dept_page .sub_text{
    flex: 1;
    min-width: 0;
    max-width: none;
}
.dept_hero{
    margin: 0 0 39px;
    padding: 0;
    border: none;
    background: none;
}
.dept_banner{
    position: relative;
    margin: 0;
    padding: 0;
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}
.dept_banner img{
    display: block;
    width: 100%;
    height: auto;
    /* 21:9보다 와이드 → 같은 너비에서 세로 높이 감소 */
    aspect-ratio: 32 / 9;
    object-fit: cover;
    object-position: center;
    vertical-align: top;
}
.dept_banner_overlay{
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(12px, 3vw, 24px);
    box-sizing: border-box;
    background: linear-gradient(
        180deg,
        rgba(28, 22, 42, 0.45) 0%,
        rgba(28, 22, 42, 0.32) 50%,
        rgba(28, 22, 42, 0.45) 100%
    );
    pointer-events: none;
}
.dept_banner_overlay .dept_hero_theme{
    margin: 0;
    font-size: clamp(18px, 4.85vw, 34px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 0, 0, 0.25);
}
.dept_banner_overlay .dept_hero_ref{
    margin-inline-start: 0.35em;
    color: #ede5ff;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
/* 배너 아래 소개: 자동 줄바꿈(한글 단어 단위), 가운데 정렬(모바일·PC 공통) */
.dept_hero .dept_hero_lead{
    margin: 12px 0 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 8px;
    text-align: center;
}
.dept_hero .dept_hero_lead_inner{
    font-size: clamp(12px, 2.4vw, 16px);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: -0.03em;
    color: var(--default-color);
    word-break: keep-all;
    overflow-wrap: break-word;
}
@media (min-width: 1200px){
    .dept_hero .dept_hero_lead{
        padding: 0 2px;
    }
    .dept_hero .dept_hero_lead_inner{
        font-size: clamp(15px, 1.45vw, 18px);
    }
}
.dept_hero_kicker{
    font-size: 14px;
    font-weight: 700;
    color: var(--main3-accent);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.dept_hero_title{
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: var(--main3-heading);
    line-height: 1.25;
    margin-bottom: 12px;
}
.dept_hero .dept_staff{
    margin: 14px 0 0;
    text-align: right;
}
.dept_content{
    font-size: 17px;
    line-height: 1.85;
    font-weight: 500;
    color: var(--default-color);
}
.dept_block{
    margin-bottom: 72px;
    padding: 0; /* 전역 section{ padding:110px 0 } 무력화 */
}
.dept_block:last-child{
    margin-bottom: 0;
}
.dept_block h2{
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 800;
    color: var(--main3-heading);
    margin: 0 0 14px;
    letter-spacing: -0.04em;
    text-decoration: underline;
    text-decoration-color: var(--main3-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.dept_block p{
    margin: 0 0 1em;
}
.dept_block p:last-child{
    margin-bottom: 0;
}
.dept_staff_label{
    display: inline-block;
    margin-right: 8px;
    font-weight: 700;
    color: var(--main3-text-body);
}
.dept_goals{
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(10px, 2vw, 16px);
}
.dept_goals li{
    flex: 1;
    min-width: 0;
    margin: 0;
    min-height: clamp(112px, 16vw, 152px);
    padding: clamp(18px, 2.5vw, 26px) clamp(10px, 1.5vw, 14px);
    box-sizing: border-box;
    border: 1px solid rgba(107, 75, 163, 0.28);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(74, 45, 122, 0.07);
    font-size: clamp(12px, 1.35vw, 16px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.03em;
    color: var(--default-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    word-break: keep-all;
}
.dept_goal_icon{
    width: 26px;
    max-width: 26px;
    height: 26px;
    max-height: 26px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}
/* 유초등부: 교육목표 콜론 앞·뒤 분리 — 뒤줄 작게·보라 */
.dept_goals--split .dept_goal_text{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-width: 100%;
}
.dept_goals--split .dept_goal_head{
    display: block;
}
.dept_goals--split .dept_goal_desc{
    display: block;
    font-size: 0.84em;
    font-weight: 500;
    line-height: 1.38;
    color: #6b4ba3;
}
/* 섬기는 분들: 연간계획서 표와 동일 베이스 + 여유 있는 셀 간격 */
.dept_serving_table thead th:first-child{
    width: auto;
    min-width: 7rem;
}
.dept_serving_table thead th,
.dept_serving_table tbody th[scope="row"],
.dept_serving_table tbody td{
    padding: 15px 18px;
}
.dept_serving_table tbody td{
    line-height: 1.65;
}
/* 양육: 훈련 3개 — 가로 한 줄 그라데이션 원 */
.dept_training_map{
    width: 100%;
    max-width: 100%;
    margin: 10px auto 0;
}
.dept_training_row{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: clamp(10px, 2.2vw, 20px);
}
.dept_training_item{
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.dept_training_circle{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1;
    height: auto;
    border-radius: 50%;
    box-sizing: border-box;
    padding: 8px 12px;
    text-align: center;
    font-size: clamp(14px, 3.6vw, 18px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.04em;
    color: var(--main3-heading);
    word-break: keep-all;
    box-shadow: 0 1px 3px rgba(74, 45, 122, 0.08), 0 8px 22px rgba(107, 75, 163, 0.14);
    background: linear-gradient(165deg, #f2ecfb 0%, #e5daf5 42%, #d8c6ec 78%, #cdb4e3 100%);
    border: 1px solid rgba(107, 75, 163, 0.28);
}
/* 청소년부·청년부 양육: 카드 그리드(번호·아이콘·부제·목록) */
#teen-nurture-heading,
#youth-nurture-heading,
#elem-nurture-heading{
    margin-bottom: 10px;
}
.teen_nurture_grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 24px);
    margin-top: 6px;
}
.teen_nurture_grid--3col{
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.teen_nurture_card{
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(18px, 2.2vw, 22px) clamp(16px, 2vw, 20px);
    border-radius: 14px;
    background: #f6f6f8;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(74, 45, 122, 0.06);
}
.teen_nurture_card_head{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.teen_nurture_card_title{
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    line-height: 1.2;
}
.teen_nurture_card_no{
    font-size: 13px;
    font-weight: 600;
    color: var(--sub-color);
    letter-spacing: 0.02em;
}
.teen_nurture_card_name{
    font-size: clamp(17px, 2vw, 19px);
    font-weight: 800;
    color: #222;
    letter-spacing: -0.04em;
}
.teen_nurture_card_icon{
    flex-shrink: 0;
    color: var(--main3-accent);
    opacity: 0.85;
    line-height: 0;
}
.teen_nurture_card_icon svg,
.teen_nurture_card_icon img{
    width: 26px;
    height: 26px;
    max-width: 26px;
    max-height: 26px;
    display: block;
    flex-shrink: 0;
}
.teen_nurture_card_sub{
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--default-color);
    letter-spacing: -0.03em;
}
.teen_nurture_card ul.teen_nurture_card_list{
    margin: 0;
    padding-left: 1.25em;
    list-style-type: disc;
    list-style-position: outside;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--default-color);
    word-break: keep-all;
    flex: 1 1 auto;
}
.teen_nurture_card ul.teen_nurture_card_list > li{
    display: list-item;
    list-style-type: disc;
    margin-bottom: 0.4em;
}
.teen_nurture_card ul.teen_nurture_card_list > li:last-child{
    margin-bottom: 0;
}
.dept_bullet{
    margin: 0;
    padding-left: 1.2em;
    list-style: disc;
}
.dept_bullet li{
    margin-bottom: 0.35em;
}
.dept_bullet li:last-child{
    margin-bottom: 0;
}
.dept_block--plan{
    margin-bottom: 0;
}
.dept_plan{
    padding-top: 0;
}
.dept_plan_table_wrap{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -2px;
}
.dept_plan_table{
    width: 100%;
    min-width: 280px;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.55;
    color: var(--default-color);
}
.dept_plan_table thead th{
    text-align: left;
    vertical-align: middle;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.03em;
    color: var(--main3-heading);
    background: rgba(107, 75, 163, 0.08);
    border-bottom: 2px solid rgba(107, 75, 163, 0.22);
    padding: 12px 14px;
}
.dept_plan_table thead th:first-child{
    width: 4.5rem;
    white-space: nowrap;
    text-align: center;
    border-right: 1px solid rgba(107, 75, 163, 0.28);
}
.dept_plan_table thead th:last-child{
    text-align: left;
}
.dept_plan_table tbody th[scope="row"]{
    text-align: center;
    vertical-align: middle;
    font-weight: 800;
    font-size: 15px;
    color: var(--main3-accent);
    letter-spacing: -0.03em;
    background: transparent;
    border-right: 1px solid rgba(107, 75, 163, 0.28);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 12px 14px;
    white-space: nowrap;
}
.dept_plan_table tbody td{
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 12px 14px;
    vertical-align: middle;
    word-break: keep-all;
}
.dept_plan_table tbody tr:last-child th[scope="row"],
.dept_plan_table tbody tr:last-child td{
    border-bottom: none;
}
/* rowspan 월 셀이 표의 마지막 행까지 이어질 때: th는 마지막 tr에 없어 :last-child 규칙이 안 먹음 */
.dept_plan_table tbody th.dept_plan_rowspan_last{
    border-bottom: none;
}
.dept_plan_empty{
    color: var(--sub-color);
    font-size: 15px;
}
@media (max-width: 1199.98px){
    .dept_hero{
        margin-bottom: 33px;
    }
    .dept_banner img{
        aspect-ratio: 32 / 9;
    }
    .dept_hero .dept_hero_lead{
        margin-top: 10px;
    }
    .dept_content{
        font-size: 16px;
        line-height: 1.82;
    }
    .dept_block{
        margin-bottom: 56px;
    }
    .dept_goals{
        gap: 8px;
    }
    .dept_goals li{
        min-height: 100px;
        padding: 14px 6px;
        font-size: 12px;
        line-height: 1.4;
        gap: 8px;
    }
    .dept_goals--split .dept_goal_desc{
        font-size: 0.82em;
    }
    .dept_serving_table thead th,
    .dept_serving_table tbody th[scope="row"],
    .dept_serving_table tbody td{
        padding: 13px 14px;
    }
    .dept_training_row{
        gap: 8px;
    }
    .dept_training_circle{
        max-width: 118px;
        font-size: clamp(12px, 3.4vw, 16px);
        padding: 6px 8px;
    }
    .teen_nurture_grid{
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .teen_nurture_grid--3col{
        grid-template-columns: 1fr;
    }
    .teen_nurture_card{
        padding: 16px 12px;
    }
    .teen_nurture_card ul.teen_nurture_card_list{
        font-size: 13px;
        padding-left: 1.15em;
    }
    .teen_nurture_card_no{
        font-size: 12px;
    }
    .teen_nurture_card_name{
        font-size: 16px;
    }
    .dept_plan_table{
        font-size: 15px;
    }
    .dept_plan_table thead th,
    .dept_plan_table tbody th[scope="row"],
    .dept_plan_table tbody td{
        padding: 10px 12px;
    }
}
