/* =========================================================
   경성교회 기본 스타일
   색을 바꾸려면 아래 :root 의 --primary 계열만 수정하세요.
   ========================================================= */
:root {
    /* 메인 색 (브라운) - 바꾸기 쉬운 곳 */
    --primary:       #7A5638;
    --primary-dark:  #5A3E28;
    --primary-light: #F3ECE4;
    --accent:        #C49A6C;

    /* 기본 색 */
    --text:       #2B2420;
    --text-muted: #6F655E;
    --bg:         #FFFFFF;
    --bg-soft:    #FAF7F3;
    --line:       #E8E0D7;

    --radius: 14px;
    --shadow: 0 6px 24px rgba(60, 40, 20, .08);
    --header-h: 76px;
    --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 17px;
    line-height: 1.7;
    word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 버튼 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 24px;
    border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 16px;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* ---------- 헤더 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--primary); color: #fff; font-size: 18px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 20px; color: var(--primary-dark); }
.logo-text small { font-size: 12px; color: var(--text-muted); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 8px; }
.nav-item { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: 4px;
    background: none; border: 0; padding: 10px 14px;
    font-size: 17px; font-weight: 600; color: var(--text);
    border-radius: 8px;
}
.nav-link:hover, .nav-item.is-active .nav-link { color: var(--primary); }
.chevron { transition: transform .2s; }

.sub-list {
    position: absolute; top: 100%; left: 50%;
    min-width: 170px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-item:hover .sub-list,
.nav-item:focus-within .sub-list {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-item:hover .chevron { transform: rotate(180deg); }
.sub-list a {
    display: block; padding: 10px 14px; border-radius: 8px;
    font-size: 15px; white-space: nowrap;
}
.sub-list a:hover { background: var(--primary-light); color: var(--primary-dark); }
.sub-list a[aria-current="page"] { color: var(--primary); font-weight: 700; }

.nav-cta { min-height: 42px; padding: 0 20px; font-size: 15px; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px; border: 0; background: none;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 홈 히어로 (전체 화면 슬라이드) ---------- */
.hero {
    position: relative; overflow: hidden;
    height: 100vh; height: 100svh;          /* 화면 높이 가득 */
    min-height: 560px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-align: center;
    border-radius: 0 0 48px 48px;           /* 아래쪽 둥근 모서리 */
    background: var(--primary-dark);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    opacity: 0; transform: scale(1.06);
    transition: opacity 1.4s ease, transform 7s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
/* 글씨가 잘 읽히도록 위·아래만 살짝 어둡게 (사진 가운데는 밝게 유지) */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(20,12,6,.45) 0%, rgba(20,12,6,.10) 35%, rgba(20,12,6,.10) 60%, rgba(20,12,6,.45) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 40px; }
.hero-eyebrow { margin: 0 0 16px; font-size: 15px; letter-spacing: .12em; opacity: .9; }
.hero-title {
    font-family: 'Noto Serif KR', 'Noto Serif CJK KR', serif;
    font-size: clamp(30px, 4.6vw, 60px); font-weight: 700;
    line-height: 1.35; letter-spacing: -.02em;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-verse { margin: 26px auto 0; max-width: 640px; }
.hero-verse p { margin: 0; font-size: 17px; line-height: 1.7; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero-verse cite { display: block; margin-top: 6px; font-style: normal; font-size: 14px; opacity: .85; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 36px; display: flex; justify-content: center; gap: 8px; }
.hero-dot {
    width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(255,255,255,.5); transition: width .3s, background .3s;
}
.hero-dot.is-active { width: 28px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: opacity .3s; transform: none; }
}

/* ---------- 바로가기 카드 ---------- */
.quick { margin-top: 0; padding-top: 64px; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 28px 20px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    transition: transform .2s, box-shadow .2s;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(60,40,20,.12); }
.quick-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--primary-light); margin-bottom: 10px;
}
.quick-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-card strong { font-size: 17px; }
.quick-card small { font-size: 13px; color: var(--text-muted); }

/* ---------- 공통 섹션 ---------- */
.section { padding: 88px 0; }
.eyebrow {
    margin: 0 0 6px; color: var(--accent);
    font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.section h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.lead { color: var(--text-muted); font-size: 18px; margin: 16px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.more { color: var(--primary); font-weight: 600; font-size: 15px; }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.home-block { background: var(--bg-soft); border-radius: var(--radius); padding: 40px; }

.time-list li {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 18px 0; border-bottom: 1px solid var(--line);
}
.time-list li:last-child { border-bottom: 0; }
.time-name { font-weight: 600; }
.time-value { color: var(--primary); font-weight: 700; }

.signature { margin-top: 24px; color: var(--text-muted); }
.signature strong { color: var(--text); font-size: 18px; margin-left: 4px; }

/* ---------- CTA 띠 ---------- */
.cta-band { background: var(--primary-dark); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 28px; }
.cta-band p { margin: 8px 0 0; opacity: .8; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 서브 페이지 상단 ---------- */
.page-hero {
    background-color: var(--primary-dark);   /* 사진을 못 불러올 때 대신 보일 색 */
    background-image:
        linear-gradient(rgba(40, 25, 15, .55), rgba(40, 25, 15, .55)),
        url('../images/main.jpg');
    background-size: cover;
    background-position: center;
    color: #fff; padding: 88px 0 72px;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-top: 10px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; opacity: .85; flex-wrap: wrap; }
.breadcrumb a:hover { text-decoration: underline; }

.subtabs { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: var(--header-h); z-index: 50; }
.subtabs-inner { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subtabs-inner::-webkit-scrollbar { display: none; }
.subtabs a {
    padding: 16px 18px; white-space: nowrap;
    font-weight: 600; color: var(--text-muted);
    border-bottom: 3px solid transparent;
}
.subtabs a:hover { color: var(--primary); }
.subtabs a.is-active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- 사진 자리 ---------- */
.photo-placeholder {
    width: 100%; aspect-ratio: 3 / 4; border-radius: var(--radius);
    display: grid; place-items: center;
    background: linear-gradient(160deg, var(--primary-light), #E6D9CB);
}
.photo-placeholder span { font-size: 64px; font-weight: 800; color: var(--primary); opacity: .55; }

/* ---------- 인사말 ---------- */
.greeting { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.greeting-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 80px); }
.greeting-photo img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; }
.greeting-photo figcaption { margin-top: 16px; text-align: center; color: var(--text-muted); }
.greeting-photo figcaption strong { color: var(--text); margin-left: 4px; }
.prose h2 { margin-bottom: 28px; }
.prose p { margin: 0 0 20px; }
.verse-box {
    margin: 36px 0; padding: 28px 32px;
    background: var(--primary-light); border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}
.verse-box p { margin: 0; font-size: 18px; font-weight: 600; color: var(--primary-dark); }
.verse-box cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; color: var(--text-muted); }

/* ---------- 비전 ---------- */
.vision {
    --v-blue: #93B1C9;  --v-blue-text: #3F5E7A;
    --v-green: #97AC8E; --v-green-text: #566E51;
    --v-rose: #DFA48F;  --v-rose-text: #A2573F;
    --v-serif: 'Noto Serif KR', 'Noto Serif CJK KR', 'Nanum Myeongjo', 'Batang', serif;
    position: relative; overflow: hidden;
    padding: 96px 0 160px;
    background-color: #FAF8F4;
    /* 아래쪽 은은한 물결 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath d='M0 90 C 300 10, 520 200, 860 150 S 1300 60, 1440 120 V220 H0z' fill='%23DCE6EE' fill-opacity='.55'/%3E%3Cpath d='M0 170 C 380 90, 760 230, 1100 150 S 1380 120, 1440 140 V220 H0z' fill='%23F3DFD5' fill-opacity='.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 200px;
}
.vision-head { text-align: center; max-width: 760px; margin: 0 auto 72px; }
.vision-cross { width: 26px; height: 44px; margin: 0 auto 28px; display: block; fill: none; stroke: #A99B89; stroke-width: 2.2; stroke-linecap: round; }
.vision-title {
    font-family: var(--v-serif);
    font-size: clamp(28px, 4.2vw, 46px); font-weight: 400;
    line-height: 1.45; letter-spacing: -.01em; color: #3A3530;
}
.vision-title strong { font-weight: 700; color: #2A2622; }
.vision-verse { margin: 32px 0 0; font-family: var(--v-serif); color: #5E5650; }
.vision-verse p { margin: 0; font-size: 18px; line-height: 1.8; }
.vision-verse cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: #8C837B; }

.vision-list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.vision-line {
    position: absolute; top: 50px; left: 16.6%; right: 16.6%;
    width: 66.8%; height: 60px; z-index: 0;
    fill: none; stroke: #D3C6B8; stroke-width: 2; vector-effect: non-scaling-stroke;
}
.vision-item { position: relative; z-index: 1; text-align: center; }
.vision-icon {
    width: 160px; height: 160px; margin: 0 auto 28px; border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: 0 0 0 10px #FAF8F4;   /* 연결선이 원 가장자리에서 살짝 끊겨 보이도록 */
}
.vision-icon svg { width: 92px; height: 92px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vision-item h3 { font-family: var(--v-serif); font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.vision-item p { margin: 0; font-family: var(--v-serif); font-size: 16px; line-height: 1.8; color: #6A625B; }

.vision-item.is-blue  .vision-icon { background: var(--v-blue); }
.vision-item.is-green .vision-icon { background: var(--v-green); }
.vision-item.is-rose  .vision-icon { background: var(--v-rose); }
.vision-item.is-blue  h3 { color: var(--v-blue-text); }
.vision-item.is-green h3 { color: var(--v-green-text); }
.vision-item.is-rose  h3 { color: var(--v-rose-text); }
.vision-item.is-rose .heart { fill: var(--v-rose); }

/* ---------- 교역자 ---------- */
.staff-rows { display: grid; gap: 56px; }
.staff-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 28px; }
.staff-row .staff-card { width: 220px; }
.staff-row.is-lead .staff-card { width: 280px; }   /* 담임목사 카드는 조금 크게 */
.staff-row.is-lead h3 { font-size: 24px; }
.staff-card { text-align: center; }
.staff-photo { margin-bottom: 16px; }
.staff-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.staff-role { margin: 0; font-size: 14px; color: var(--primary); font-weight: 700; }
.staff-card h3 { font-size: 21px; margin: 2px 0 4px; }
.staff-duty { margin: 0; font-size: 15px; color: var(--text-muted); }

/* ---------- 예배 시간 ---------- */
.worship-group { margin-bottom: 48px; }
.worship-group-title {
    font-size: 22px; margin-bottom: 16px; padding-left: 12px;
    border-left: 4px solid var(--primary);
}
.worship-table { border-top: 2px solid var(--primary-dark); }
.worship-row {
    display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 16px;
    padding: 20px 16px; border-bottom: 1px solid var(--line);
}
.worship-head { background: var(--bg-soft); font-weight: 700; font-size: 15px; color: var(--text-muted); padding: 14px 16px; }
.w-name { font-weight: 600; }
.w-time { color: var(--primary); font-weight: 700; }
.w-place { color: var(--text-muted); }
.note { color: var(--text-muted); font-size: 15px; }
.note a { color: var(--primary); font-weight: 600; }

/* ---------- 새가족 ---------- */
.welcome-box {
    text-align: center; padding: 56px 32px; margin-bottom: 72px;
    background: var(--bg-soft); border-radius: var(--radius);
}
.block-title { font-size: 24px; margin-bottom: 24px; }
.steps { display: grid; gap: 16px; margin-bottom: 72px; counter-reset: step; }
.step {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius);
}
.step-no {
    flex: none; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--primary); color: #fff; font-weight: 800; font-size: 18px;
}
.step h4 { font-size: 19px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--text-muted); }

.faq { display: grid; gap: 12px; margin-bottom: 72px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item summary {
    list-style: none; cursor: pointer;
    padding: 20px 56px 20px 24px; font-weight: 600; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
    font-size: 24px; color: var(--primary); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--text-muted); }

.contact-card {
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
    padding: 36px 40px; border-radius: var(--radius);
    background: var(--primary-light);
}
.contact-card h3 { font-size: 21px; }
.contact-card p { margin: 6px 0 0; color: var(--text-muted); }

/* ---------- 푸터 ---------- */
.site-footer { background: #241C17; color: #CFC5BC; padding: 56px 0 28px; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px 48px; }
.footer-brand strong { font-size: 22px; color: #fff; }
.footer-brand p { margin: 6px 0 0; }
.footer-info li { display: flex; gap: 12px; padding: 3px 0; }
.footer-info span { flex: none; width: 48px; color: #8F847A; }
.footer-info a:hover { color: #fff; }
.footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 24px; font-size: 13px; color: #8F847A; }

/* =========================================================
   태블릿 (960px 이하)
   ========================================================= */
@media (max-width: 960px) {
    :root { --header-h: 64px; }

    /* 모바일 메뉴 (backdrop-filter 가 있으면 fixed 메뉴가 헤더 안에 갇히므로 제거) */
    .site-header { backdrop-filter: none; background: #fff; }
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 16px 24px 32px;
        background: #fff; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open { overflow: hidden; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-item { border-bottom: 1px solid var(--line); }
    .nav-link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 18px; }
    .sub-list {
        position: static; transform: none; box-shadow: none; border: 0;
        opacity: 1; visibility: visible; padding: 0 0 12px;
        display: none;
    }
    .nav-item:hover .sub-list, .nav-item:focus-within .sub-list { transform: none; }
    .nav-item:hover .chevron { transform: none; }
    .nav-item.is-open .sub-list { display: block; }
    .nav-item.is-open .chevron { transform: rotate(180deg); }
    .sub-list a { padding: 12px 8px; font-size: 16px; color: var(--text-muted); }
    .nav-cta { margin-top: 24px; min-height: 52px; font-size: 16px; }

    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .home-split { grid-template-columns: 1fr; gap: 24px; }
    .vision-icon { width: 136px; height: 136px; }
    .vision-icon svg { width: 78px; height: 78px; }
    .vision-line { top: 38px; }
    .greeting { grid-template-columns: 1fr; gap: 40px; }
    .greeting-photo { position: static; max-width: 300px; margin: 0 auto; }
}

/* =========================================================
   모바일 (640px 이하)
   ========================================================= */
@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .logo-mark { width: 36px; height: 36px; font-size: 16px; }
    .logo-text strong { font-size: 18px; }

    .quick-grid { gap: 12px; }
    .quick-card { padding: 20px 12px; }
    .quick-icon { width: 48px; height: 48px; }

    .section { padding: 56px 0; }
    .section-intro { margin-bottom: 36px; }
    .home-block { padding: 28px 22px; }

    .cta-band { padding: 48px 0; text-align: center; }
    .cta-inner { justify-content: center; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1; }

    .page-hero { padding: 44px 0 40px; }

    .vision { padding: 64px 0 120px; background-size: 100% 120px; }
    .vision-head { margin-bottom: 48px; }
    .vision-verse p { font-size: 16px; }
    .vision-list { grid-template-columns: 1fr; gap: 48px; }
    .vision-line { display: none; }
    .vision-icon { width: 120px; height: 120px; margin-bottom: 20px; }
    .vision-icon svg { width: 70px; height: 70px; }
    .vision-item h3 { font-size: 21px; }
    .staff-rows { gap: 40px; }
    .staff-row { gap: 24px 14px; }
    .staff-row .staff-card { width: calc(50% - 7px); }
    .staff-row.is-lead .staff-card { width: 70%; }
    .staff-card h3 { font-size: 18px; }
    .staff-duty { font-size: 14px; }
    .photo-placeholder span { font-size: 44px; }

    /* 예배 시간: 표 → 카드 */
    .worship-head { display: none; }
    .worship-row {
        grid-template-columns: 1fr auto; gap: 2px 12px;
        padding: 18px 4px;
    }
    .w-name { grid-column: 1; }
    .w-time { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
    .w-place { grid-column: 1; font-size: 14px; }

    .welcome-box { padding: 40px 20px; margin-bottom: 48px; }
    .step { padding: 20px; gap: 16px; }
    .step-no { width: 38px; height: 38px; font-size: 16px; }
    .contact-card { padding: 28px 22px; }
    .contact-card .btn { width: 100%; }

    .footer-inner { grid-template-columns: 1fr; }
}

/* ===== 하단 로고 ===== */
.footer-logo { display: block; height: 40px; width: auto; margin-bottom: 12px; }

/* ===== 홈: 사진 위에 투명 메뉴 (파일 맨 끝) ===== */

.logo-img { display: block; height: 42px; width: auto; }
.logo-white { display: none; }

.is-home .site-header {
    position: fixed; left: 0; right: 0; top: 0;
    background: transparent; border-bottom-color: transparent;
    backdrop-filter: none;
    transition: background .3s, border-color .3s;
}
.is-home .site-header .nav-link { color: #fff; }
.is-home .site-header .nav-toggle span { background: #fff; }
.is-home .site-header .logo-color { display: none; }
.is-home .site-header .logo-white { display: block; }

/* 스크롤을 내리거나 모바일 메뉴를 열면 흰 헤더로 */
.is-home.is-scrolled .site-header,
.is-home.nav-open .site-header { background: #fff; border-bottom-color: var(--line); }
.is-home.is-scrolled .site-header .nav-link,
.is-home.nav-open .site-header .nav-link { color: var(--text); }
.is-home.is-scrolled .site-header .nav-toggle span,
.is-home.nav-open .site-header .nav-toggle span { background: var(--text); }
.is-home.is-scrolled .site-header .logo-color,
.is-home.nav-open .site-header .logo-color { display: block; }
.is-home.is-scrolled .site-header .logo-white,
.is-home.nav-open .site-header .logo-white { display: none; }

@media (max-width: 960px) {
    .is-home .site-header .sub-list a { color: var(--text-muted); }
}
@media (max-width: 640px) {
    .logo-img { height: 34px; }
    .hero { border-radius: 0 0 28px 28px; min-height: 520px; }
    .hero-title { font-size: 26px; }
    .hero-verse p { font-size: 15px; }
    .hero-actions .btn { flex: 1; padding: 0 12px; white-space: nowrap; }
    .hero-dots { bottom: 24px; }
    .quick { padding-top: 40px; }
}


/* ===== 홈: 사진은 사진만, 글은 사진 아래 (파일 맨 끝) ===== */
.hero {
    height: 82vh; height: 82svh;            /* 사진 높이: 아래 글이 살짝 보이도록 */
    min-height: 420px;
}
.hero::before {                              /* 투명 메뉴가 잘 보이도록 위쪽만 살짝 어둡게 */
    background: linear-gradient(to bottom, rgba(20,12,6,.40) 0%, rgba(20,12,6,0) 22%);
}

.intro { padding: 72px 0 8px; text-align: center; }
.intro-eyebrow {
    display: inline-block; margin: 0 0 18px; padding: 5px 14px;
    font-size: 13px; font-weight: 700; letter-spacing: .06em;
    color: var(--primary-dark); background: var(--primary-light); border-radius: 999px;
}
.intro-title {
    font-family: 'Noto Serif KR', 'Noto Serif CJK KR', serif;
    font-size: clamp(28px, 3.8vw, 46px); font-weight: 700;
    line-height: 1.4; letter-spacing: -.02em; color: var(--primary-dark);
}
.intro-verse { margin: 24px auto 0; max-width: 640px; }
.intro-verse p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--text-muted); }
.intro-verse cite { display: block; margin-top: 6px; font-style: normal; font-size: 14px; color: var(--text-muted); opacity: .8; }
.intro-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 640px) {
    .hero { height: 62vh; height: 62svh; min-height: 340px; }
    .intro { padding: 48px 0 0; }
    .intro-title { font-size: 25px; }
    .intro-verse p { font-size: 15px; }
    .intro-actions .btn { flex: 1; padding: 0 12px; white-space: nowrap; }
}


/* ===== 홈 슬라이드: 사진마다 맞춤 표시 (파일 맨 끝) ===== */
.hero-slide { object-position: initial; }
.hero-slide picture,
.hero-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide-img { object-fit: cover; object-position: center; }
.hero-slide.pos-top    .hero-slide-img { object-position: center top; }
.hero-slide.pos-bottom .hero-slide-img { object-position: center bottom; }
.hero-slide.pos-left   .hero-slide-img { object-position: left center; }
.hero-slide.pos-right  .hero-slide-img { object-position: right center; }
.hero-slide-bg { display: none; }

/* ===== 모바일: 닫힌 메뉴가 화면 터치를 가로채지 않도록 (파일 맨 끝) ===== */
@media (max-width: 960px) {
    .site-nav { pointer-events: none; }
    .nav-open .site-nav { pointer-events: auto; }
    .sub-list { visibility: inherit; }
}

/* ===== 교회 둘러보기 페이지 ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-btn {
    display: block; width: 100%; padding: 0; border: 0; background: none;
    border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
}
.gallery-btn img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    transition: transform .4s ease;
}
.gallery-btn:hover img, .gallery-btn:focus-visible img { transform: scale(1.04); }
.gallery-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery-caption { margin: 10px 0 0; font-size: 15px; color: var(--text-muted); text-align: center; }
.gallery-empty { text-align: center; color: var(--text-muted); }

.church-links { padding-top: 0; }
.link-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.link-card {
    display: flex; align-items: center; gap: 18px;
    padding: 28px 30px; border-radius: var(--radius);
    background: var(--bg-soft); border: 1px solid var(--line);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.link-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.link-icon {
    flex: none; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; background: #fff;
}
.link-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link-card.is-map .link-icon { background: #03C75A; }
.link-card.is-map .link-icon svg { stroke: #fff; }
.link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link-text strong { font-size: 19px; }
.link-text small { font-size: 14px; color: var(--text-muted); }
.link-arrow { font-size: 22px; color: var(--primary); }

.location { background: var(--bg-soft); }
.location-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.location-list { margin: 24px 0 28px; display: grid; gap: 14px; }
.location-list div { display: flex; gap: 16px; }
.location-list dt { flex: none; width: 48px; color: var(--text-muted); }
.location-list dd { margin: 0; font-weight: 600; }
.location-list a { color: var(--primary); }
.location-map {
    display: block; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 16 / 10; background: #fff; box-shadow: var(--shadow);
}
.location-map img { width: 100%; height: 100%; object-fit: cover; }
.map-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background:
        linear-gradient(90deg, rgba(122,86,56,.06) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(rgba(122,86,56,.06) 1px, transparent 1px) 0 0 / 40px 40px,
        var(--primary-light);
    color: var(--primary-dark);
}
.map-placeholder svg { width: 48px; height: 48px; fill: #03C75A; stroke: #fff; stroke-width: 1.4; }
.map-placeholder strong { font-size: 20px; }
.map-placeholder small { color: var(--text-muted); }

.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 56px 72px; background: rgba(15, 10, 6, .92);
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 8px; }
.lb-caption { margin-top: 14px; color: #fff; font-size: 16px; text-align: center; }
.lb-close, .lb-prev, .lb-next {
    position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff;
    width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1;
    display: grid; place-items: center;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

@media (max-width: 960px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .location-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .gallery { gap: 12px; }
    .gallery-caption { font-size: 14px; margin-top: 6px; }
    .link-cards { grid-template-columns: 1fr; gap: 12px; }
    .link-card { padding: 20px; gap: 14px; }
    .link-icon { width: 48px; height: 48px; }
    .subtabs a { padding: 14px 10px; font-size: 15px; }
    .lightbox { padding: 64px 12px; }
    .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
    .lb-prev { left: calc(50% - 60px); }
    .lb-next { right: calc(50% - 60px); }
}

/* ===== 교회 둘러보기: 사진 원래 비율로 · 오시는 길 가운데 (파일 맨 끝) ===== */
.gallery { display: block; columns: 3; column-gap: 20px; }
.gallery-item { break-inside: avoid; margin-bottom: 24px; }
.gallery-btn img { aspect-ratio: auto; height: auto; }

.location-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.location-list { justify-items: center; }
.location-list div { justify-content: center; }
.location-list dt { width: auto; }

@media (max-width: 640px) {
    .gallery { columns: 2; column-gap: 12px; }
    .gallery-item { margin-bottom: 14px; }
}

/* ===== 하단(푸터) 정리 ===== */
.footer-inner { grid-template-columns: 1fr 1.4fr; align-items: start; }
.footer-brand p { margin: 0; }
.footer-sns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-sns a {
    padding: 6px 14px; border-radius: 999px; font-size: 14px;
    border: 1px solid rgba(255,255,255,.22); color: #E8DFD6;
    transition: background .2s, border-color .2s;
}
.footer-sns a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); color: #fff; }

.footer-info { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 10px 48px; }
.footer-info li { padding: 0; }
.footer-info li.is-wide { grid-column: 1 / -1; }
.footer-info a { white-space: nowrap; }

@media (max-width: 640px) {
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-info { grid-template-columns: 1fr; gap: 8px; }
}

/* ===== 담임목사 설교영상 ===== */
.sermon-main { max-width: 960px; margin: 0 auto; scroll-margin-top: calc(var(--header-h) + 24px); }
.sermon-player {
    position: relative; aspect-ratio: 16 / 9; width: 100%;
    border-radius: var(--radius); overflow: hidden; background: #111;
    box-shadow: 0 16px 40px rgba(40, 25, 15, .18);
}
.sermon-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sermon-now { margin-top: 20px; }
.sermon-badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 700; color: #fff; background: var(--primary);
}
.sermon-now h3 { margin-top: 10px; font-size: clamp(20px, 2.4vw, 26px); }
.sermon-now time { display: block; margin-top: 4px; color: var(--text-muted); font-size: 15px; }

.sermon-list-title { margin-top: 72px; }
.sermon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.sermon-card { display: flex; flex-direction: column; gap: 4px; }
.sermon-thumb {
    position: relative; display: block; margin-bottom: 8px;
    aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--primary-light);
}
.sermon-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sermon-play {
    position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
    border-radius: 50%; background: rgba(0, 0, 0, .55); transition: background .2s;
}
.sermon-play::after {
    content: ""; position: absolute; left: 18px; top: 14px;
    border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff;
}
.sermon-card:hover .sermon-thumb img { transform: scale(1.05); }
.sermon-card:hover .sermon-play { background: #FF0000; }
.sermon-card strong {
    font-size: 16px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sermon-card small { font-size: 14px; color: var(--text-muted); }
.sermon-card.is-playing .sermon-thumb { outline: 3px solid var(--primary); outline-offset: 2px; }

.sermon-channel {
    margin-top: 72px; padding: 32px 36px; border-radius: var(--radius);
    background: var(--bg-soft); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.sermon-channel strong { font-size: 19px; }
.sermon-channel p { margin: 4px 0 0; color: var(--text-muted); font-size: 15px; }
.btn-youtube { gap: 8px; background: #FF0000; color: #fff; }
.btn-youtube:hover { background: #D90000; }
.btn-youtube svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 960px) {
    .sermon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .sermon-list-title { margin-top: 48px; }
    .sermon-grid { gap: 20px 12px; }
    .sermon-card strong { font-size: 14px; }
    .sermon-card small { font-size: 13px; }
    .sermon-channel { margin-top: 48px; padding: 24px 20px; }
    .sermon-channel .btn { width: 100%; }
}

/* ===== 홈: 이번 주 말씀 ===== */
.home-sermon { padding-bottom: 0; }
.home-sermon-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.home-sermon-video {
    position: relative; display: block; aspect-ratio: 16 / 9;
    border-radius: var(--radius); overflow: hidden; background: #111;
    box-shadow: 0 16px 40px rgba(40, 25, 15, .16);
}
.home-sermon-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.home-sermon-video:hover img { transform: scale(1.03); }
.home-sermon-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-sermon-play {
    position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px;
    border-radius: 12px; background: rgba(33, 33, 33, .8); transition: background .2s;
}
.home-sermon-play::after {
    content: ""; position: absolute; left: 27px; top: 14px;
    border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.home-sermon-video:hover .home-sermon-play { background: #FF0000; }
.home-sermon-text h3 { margin-top: 12px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; }
.home-sermon-meta { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text-muted); font-size: 15px; }
.home-sermon-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.home-sermon-actions .btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.home-sermon-actions .btn-outline:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 960px) {
    .home-sermon-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
    .home-sermon-actions .btn { flex: 1; padding: 0 12px; white-space: nowrap; }
}