/* =========================================================
   과천연합교회 홈페이지 디자인
   색상을 바꾸려면 아래 :root 의 값을 바꾸세요.
   ========================================================= */
:root{
  --forest:#2F4A35;      /* 진녹색 (푸터, 제목) */
  --olive:#7FA052;       /* 첫 화면 큰 상자 */
  --brown:#634111;       /* 교회소개 제목 */
  --brown-2:#8D6833;
  --mauve:#7A5F5F;
  --ink:#212121;
  --menu:#312828;
  --line:#E4E4DE;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:"Pretendard","Pretendard Variable",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:var(--ink);background:#fff;line-height:1.7;word-break:keep-all;overflow-wrap:break-word}
img{max-width:100%;height:auto}
a{color:inherit}
main{display:block;min-height:60vh}

/* ---------- 머리글(메뉴) ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.4) blur(6px);border-bottom:1px solid #f0f0ec}
.site-header-in{max-width:1200px;margin:0 auto;padding:0 24px;height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{font-weight:700;font-size:18px;color:var(--brown);text-decoration:none;letter-spacing:-.3px}
.home .brand{visibility:hidden}
.site-nav{display:flex;gap:28px}
.site-nav a{font-size:17px;font-weight:700;color:var(--menu);text-decoration:none;padding:6px 0;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.site-nav a:hover{color:var(--brown)}
.site-nav a.on{color:var(--brown);border-bottom-color:var(--brown)}
.ham{display:none;background:none;border:0;padding:10px;cursor:pointer}
.ham span{display:block;width:24px;height:2px;background:var(--menu);margin:5px 0;transition:transform .2s,opacity .2s}
@media(max-width:767px){
  .site-header-in{height:62px;padding:0 16px}
  .ham{display:block}
  .site-nav{display:none;position:absolute;left:0;right:0;top:62px;background:#fff;flex-direction:column;gap:0;border-bottom:1px solid var(--line);box-shadow:0 10px 20px rgba(0,0,0,.06)}
  .site-nav a{padding:14px 20px;border-bottom:1px solid #f2f2ee;font-size:16px}
  .site-nav a.on{border-bottom-color:#f2f2ee;background:#F6F8F2}
  .nav-open .site-nav{display:flex}
  .nav-open .ham span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .nav-open .ham span:nth-child(2){opacity:0}
  .nav-open .ham span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
}

/* ---------- 푸터 ---------- */
.uc-foot{background:var(--forest);padding:44px 16px}
.uc-foot-box{border:1px solid #fff;outline:1px solid #fff;outline-offset:6px;padding:26px 24px;margin:0 auto;max-width:900px;color:#fff;text-align:center}
.uc-foot-box b{display:block;font-size:22px;font-weight:700;margin-bottom:10px;letter-spacing:-.3px}
.uc-foot-box div{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 26px}
.uc-foot-box span{font-size:15.5px;line-height:1.6}
@media(max-width:767px){.uc-foot{padding:34px 14px}.uc-foot-box{padding:20px 14px}.uc-foot-box b{font-size:19px}.uc-foot-box div{flex-direction:column;gap:2px}.uc-foot-box span{font-size:14px}}

/* ---------- 첫 화면 ---------- */
.uc-hero{background:var(--olive);min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 16px 110px}
.uc-hero h1{color:#fff;font-size:clamp(32px,7vw,58px);font-weight:700;letter-spacing:-1px;margin:0 0 12px;line-height:1.2}
.uc-hero p{color:#EEF0DC;font-size:clamp(16px,3.6vw,22px);margin:0}
.uc-tiles{display:grid;grid-template-columns:repeat(2,1fr);max-width:1000px;margin:-70px auto 40px;padding:0 12px;position:relative;z-index:2}
.uc-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;aspect-ratio:1/1;overflow:hidden;text-decoration:none;background-size:cover;background-position:center;padding:10px}
.uc-tile b,.uc-tile small,.uc-tile i{position:relative;z-index:1;display:block}
.uc-tile b{font-size:clamp(17px,4.6vw,26px);font-weight:600;line-height:1.25}
.uc-tile small{font-size:clamp(11px,3vw,14px);line-height:1.4;margin-top:6px}
.uc-tile i{width:36px;height:1px;background:currentColor;margin-top:14px;transition:width .2s}
.uc-tile i::after{content:"";position:absolute;right:0;top:-3px;width:7px;height:1px;background:currentColor;transform:rotate(35deg);transform-origin:right}
.uc-tile:hover i{width:48px}
.uc-photo::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.38)}
.uc-photo,.uc-photo b,.uc-photo small{color:#fff}
.uc-forest{background:var(--forest)}.uc-forest,.uc-forest b,.uc-forest small{color:#fff}
.uc-brown{background:#CDB496}.uc-brown,.uc-brown b,.uc-brown small{color:#3B2E22}
.uc-gray{background:#DEDDD8}.uc-gray,.uc-gray b,.uc-gray small{color:#3A3A36}
/* 휴대폰 2열에서 사진·단색이 엇갈리도록 3,4번째 순서를 바꿉니다 */
.uc-tile:nth-child(3){order:4}.uc-tile:nth-child(4){order:3}
.uc-tile:nth-child(1){order:1}.uc-tile:nth-child(2){order:2}.uc-tile:nth-child(5){order:5}.uc-tile:nth-child(6){order:6}
@media(min-width:768px){
  .uc-hero{min-height:440px;padding-bottom:140px}
  .uc-tiles{grid-template-columns:repeat(3,1fr);margin-top:-110px;margin-bottom:64px;padding:0 24px}
  .uc-tile{padding:20px}.uc-tile b{font-size:28px}.uc-tile small{font-size:15px}
  .uc-tile:nth-child(3){order:3}.uc-tile:nth-child(4){order:4}
}
.uc-new{max-width:1000px;margin:0 auto 90px;padding:0 24px}
.uc-new h3{font-size:22px;font-weight:700;color:var(--forest);margin:0 0 18px;display:flex;align-items:center;gap:10px}
.uc-new h3::after{content:"";flex:1;height:1px;background:#C9D3BC}
.uc-new-list{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.uc-new a{display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:16px;background:#F3F6EE;text-decoration:none;transition:transform .2s,box-shadow .2s}
.uc-new a:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(47,74,53,.15)}
.uc-ico{flex:0 0 56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--c,#4E7A45);box-shadow:0 3px 8px rgba(47,74,53,.25)}
.uc-ico svg{width:28px;height:28px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.uc-new em{display:block;font-style:normal;font-size:13px;color:#6B7A5A;margin-bottom:3px}
.uc-new strong{display:block;font-size:17px;color:#2B3326;font-weight:600;line-height:1.35}
@media(max-width:767px){.uc-new{padding:0 12px;margin-bottom:60px}.uc-new-list{grid-template-columns:1fr;gap:10px}.uc-new a{padding:14px 16px}.uc-ico{flex-basis:48px;height:48px}}

/* ---------- 환영의 글 (병풍) ---------- */
.wl{padding:6vw 0 60px}
.wl-title{text-align:center;font-family:"Times New Roman","Pretendard",serif;font-size:clamp(28px,5vw,60px);font-weight:600;letter-spacing:-2px;color:var(--brown);margin:0 0 40px}
.wl-screen{display:flex;height:685px;overflow:hidden}
.wl-item{all:unset;box-sizing:border-box;position:relative;flex:1;min-width:0;background-size:cover;background-position:center;cursor:pointer;transition:flex .6s ease;overflow:hidden}
.wl-item+.wl-item{border-left:1px solid #FDFDFD}
.wl-item::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.35);opacity:0;transition:opacity .5s}
.wl-item.on{flex:4;cursor:default}
.wl-item.on::before{opacity:1}
.wl-content{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 40px;color:#fff;opacity:0;transform:translateY(16px);transition:opacity .4s,transform .4s;pointer-events:none}
.wl-item.on .wl-content{opacity:1;transform:none;transition-delay:.25s;pointer-events:auto}
.wl-small{display:block;font-size:16px;margin-bottom:15px}
.wl-h{display:block;font-family:"Times New Roman","Pretendard",serif;font-size:50px;line-height:1.2;padding-bottom:25px}
.wl-text{display:block;font-size:17px;color:#FAF5F5;padding-bottom:40px;max-width:520px}
.wl-btn{display:inline-block;background:#fff;color:var(--brown);padding:15px 30px;font-size:16px}
.wl-guide{text-align:center;font-size:20px;line-height:1.6;color:#1e3a2b;margin:24px 16px 0}
@media(max-width:1024px){.wl-screen{height:420px}.wl-h{font-size:26px}.wl-text{font-size:15px;line-height:1.5}.wl-content{padding:25px}.wl-btn{padding:13px 23px}}
@media(max-width:767px){.wl{padding-top:11%}.wl-title{font-size:28px;letter-spacing:-1.5px;margin-bottom:24px}.wl-screen{height:300px}.wl-item.on{flex:10}.wl-h{font-size:17px;padding-bottom:16px}.wl-small{font-size:13px;margin-bottom:8px}.wl-text{display:none}.wl-btn{font-size:13px;padding:10px 14px}.wl-content{padding:14px}.wl-guide{font-size:16px}}

/* ---------- 교회소개 / 앨범 머리 그림 ---------- */
.pg-hero{position:relative;min-height:380px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background-size:cover;background-position:center;color:#fff;padding:40px 16px}
.pg-hero::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.30)}
.pg-hero>*{position:relative}
.pg-hero h1{font-size:clamp(28px,5vw,44px);font-weight:700;margin:0;letter-spacing:-1px}
.pg-hero p{margin:0 0 12px;font-size:15px}
@media(max-width:767px){.pg-hero{min-height:240px}}

.ab{max-width:820px;margin:0 auto;padding:30px 20px 80px}
.ab-sec{margin:56px 0}
.ab-center{text-align:center}
.ab-rule{display:block;width:24px;height:2px;background:var(--mauve);margin:0 auto 18px}
.ab-big{font-size:clamp(34px,6vw,48px);color:var(--mauve);margin:0 0 10px;letter-spacing:-1px}
.ab-lead{font-size:clamp(19px,3.4vw,26px);font-weight:700;color:var(--brown);line-height:1.5;margin:0 0 30px}
.ab-photo{margin:0 0 26px}
.ab-photo img{width:100%;display:block}
.ab-photo figcaption{font-size:14px;color:#444;text-align:left;margin-top:6px}
.ab-h{font-size:clamp(26px,4.5vw,36px);color:var(--mauve);margin:0 0 22px;letter-spacing:-.5px}
.ab-history{list-style:none;padding:0;margin:0}
.ab-history li{font-size:19px;color:var(--mauve);padding:6px 0 6px 18px;border-left:3px solid #D9CFCF;margin-bottom:10px}
.ab-row{display:flex;align-items:center;gap:22px;margin-bottom:16px}
.ab-row h3{font-size:clamp(19px,3.4vw,26px);color:var(--brown);margin:0;line-height:1.35}
.ab-row p{margin:6px 0 0;font-size:15px;color:#444}
.ab-portrait{width:min(46%,260px);display:block}
.ab-worship .ab-row{margin-bottom:0}
.ab-icon{width:min(38%,200px);display:block}
.ab-dir{font-size:17px;color:#444}
.ab-addr{font-size:15px;color:var(--forest)}
@media(max-width:767px){.ab-row{gap:14px}.ab-history li{font-size:16px}}

/* ---------- 앨범 ---------- */
.al-grid{max-width:1140px;margin:40px auto 80px;padding:0 20px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.al-c{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;border-radius:6px;text-decoration:none;background:#eee}
.al-c img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.al-c:hover img{transform:scale(1.06)}
.al-c span{position:absolute;left:0;right:0;bottom:0;padding:26px 16px 14px;color:#fff;font-weight:700;font-size:17px;background:linear-gradient(transparent,rgba(0,0,0,.6))}
.al-page{max-width:1100px;margin:0 auto;padding:24px 20px 70px}
.al-page h1{font-size:clamp(24px,4vw,34px);color:var(--forest);margin:0 0 20px}
.al-photos{columns:3 260px;column-gap:14px;margin-bottom:20px}
.al-ph{display:block;break-inside:avoid;margin-bottom:14px;text-decoration:none}
.al-ph img{width:100%;display:block;border-radius:6px}
.al-ph span{display:block;font-size:14px;color:#555;padding:4px 2px}
.lb{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.9);display:flex;align-items:center;justify-content:center}
.lb[hidden]{display:none}
.lb img{max-width:92vw;max-height:88vh}
.lb button{all:unset;cursor:pointer;color:#fff;font-size:44px;line-height:1;position:absolute;padding:12px 18px}
.lb-x{top:8px;right:8px}.lb-p{left:6px;top:50%;transform:translateY(-50%)}.lb-n{right:6px;top:50%;transform:translateY(-50%)}
@media(max-width:767px){.al-grid{grid-template-columns:repeat(2,1fr);gap:10px;padding:0 12px}.al-c span{font-size:14px;padding:20px 10px 10px}}
.empty{grid-column:1/-1;text-align:center;color:#888}

/* ---------- 교육자료 카드 ---------- */
.ek-wrap{max-width:1140px;margin:30px auto 60px;padding:0 20px}
.ek-title{text-align:center;margin-bottom:28px}
.ek-title h2{font-size:clamp(26px,5vw,36px);font-weight:700;color:var(--forest);margin:0 0 6px}
.ek-title p{color:#6B7366;font-size:15px;margin:0}
.ek-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;margin:-10px 0 26px}
.ek-legend span{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:#55554E}
.ek-legend i{width:12px;height:12px;border-radius:4px;background:var(--a)}
.ek-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.ek-c{position:relative;display:flex;flex-direction:column;aspect-ratio:3/4;border-radius:16px;overflow:hidden;background:linear-gradient(160deg,var(--s),var(--a));color:#fff;text-decoration:none;padding:18px 18px 16px;box-shadow:0 6px 18px rgba(0,0,0,.10);transition:transform .25s,box-shadow .25s}
.ek-c:hover{transform:translateY(-4px);box-shadow:0 12px 26px rgba(0,0,0,.16)}
.ek-c::after{content:"";position:absolute;right:-40px;top:-40px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.08)}
.ek-c .cat{font-size:12.5px;font-weight:600;letter-spacing:.3px;color:rgba(255,255,255,.88);display:flex;align-items:center;gap:7px}
.ek-c .cat svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ek-c .no{font-size:36px;font-weight:300;line-height:1;color:rgba(255,255,255,.55);margin:auto 0 10px}
.ek-c h4{margin:0 0 8px;font-size:17.5px;font-weight:700;color:#fff;line-height:1.35}
.ek-c p{margin:0;font-size:12.8px;color:rgba(255,255,255,.85);line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ek-c .go{margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.3);font-size:12.5px;font-weight:600;color:#fff}
.ek-c.dk,.ek-c.dk h4,.ek-c.dk .go{color:#4A4030}
.ek-c.dk .cat,.ek-c.dk p{color:#6B5F47}
.ek-c.dk .no{color:rgba(74,64,48,.45)}
.ek-c.dk .cat svg{stroke:#6B5F47}
.ek-c.dk .go{border-top-color:rgba(74,64,48,.2)}
.ek-c.dk::after{background:rgba(255,255,255,.35)}
.ek-c.dk.gr,.ek-c.dk.gr h4,.ek-c.dk.gr .go{color:#3A3A36}.ek-c.dk.gr .cat,.ek-c.dk.gr p{color:#5E5E58}.ek-c.dk.gr .cat svg{stroke:#5E5E58}.ek-c.dk.gr .no{color:rgba(58,58,54,.4)}
@media(max-width:1024px){.ek-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:767px){.ek-wrap{padding:0 12px}.ek-grid{grid-template-columns:repeat(2,1fr);gap:12px}.ek-c{padding:14px 14px 12px;border-radius:14px}.ek-c .no{font-size:30px;margin-bottom:6px}.ek-c h4{font-size:16px;margin-bottom:6px}.ek-c p{-webkit-line-clamp:2;font-size:12px}.ek-c .go{margin-top:10px;padding-top:8px;font-size:12px}.ek-c .cat{font-size:11px}.ek-legend{margin-top:-14px}}

/* ---------- 글 읽기 화면 ---------- */
.ek-reader{max-width:900px;margin:0 auto;padding:24px 20px 60px}
.ek-back{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:600;color:#fff;background:var(--a,var(--forest));border-radius:22px;padding:8px 18px;margin:6px 0 18px;text-decoration:none}
.ek-back:hover{filter:brightness(1.08)}
.ek-rh{border-radius:16px;background:var(--bg);border-left:8px solid var(--a);padding:18px 22px;margin-bottom:22px}
.ek-rh small{font-size:13px;font-weight:600;color:var(--a)}
.ek-rh h2{margin:4px 0 0;font-size:clamp(22px,4.5vw,30px);font-weight:700;color:#26261F;line-height:1.3}
.ek-body{font-size:16.5px;line-height:1.85;color:#2b2b28}
.ek-body h1{font-size:clamp(26px,5vw,40px);line-height:1.25;color:#4E3939;margin:.2em 0 .6em}
.ek-body h2{font-size:clamp(21px,4vw,28px);line-height:1.35;color:#4E3939}
.ek-body h3{font-size:clamp(18px,3.4vw,23px);line-height:1.4;color:#4E3939}
.ek-body img{display:block;margin:24px auto;border-radius:16px;max-width:100%}
.ek-body figure{margin:24px auto;text-align:center}
.ek-box{border-radius:18px;padding:20px 24px;margin:0 0 18px}
.ek-box>*:first-child{margin-top:0!important}.ek-box>*:last-child{margin-bottom:0!important}
.yt{position:relative;max-width:360px;aspect-ratio:9/16;margin:10px auto 26px;border-radius:16px;overflow:hidden;background:#000}
.yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
@media(max-width:767px){.ek-reader{padding:16px 14px 40px}.ek-box{padding:16px;border-radius:14px}.ek-body{font-size:16px}}

/* ---------- 게시판 카드 ---------- */
.bd-wrap{max-width:1100px;margin:30px auto 60px;padding:0 20px}
.bd-title{text-align:center;margin-bottom:10px}
.bd-title h2{font-size:clamp(26px,5vw,36px);font-weight:700;color:var(--forest);margin:0 0 6px}
.bd-title p{color:#6B7366;font-size:15px;margin:0}
.bd-note{max-width:760px;margin:14px auto 28px;background:#F3F3F0;border-radius:12px;padding:10px 16px;font-size:13.5px;color:#66665F;text-align:center;line-height:1.5}
.bd-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.bd-c{display:flex;flex-direction:column;background:#fff;border-radius:20px;overflow:hidden;border:1px solid var(--line);box-shadow:0 6px 18px rgba(0,0,0,.07);text-decoration:none;transition:transform .25s,box-shadow .25s}
.bd-c:hover{transform:translateY(-4px);box-shadow:0 12px 26px rgba(0,0,0,.13)}
.bd-c .pic{aspect-ratio:16/10;overflow:hidden}
.bd-c .pic img{width:100%;height:100%;display:block;object-fit:cover}
.bd-c .in{padding:16px 20px 18px;display:flex;flex-direction:column;flex:1}
.bd-c .chip{align-self:flex-start;font-size:12.5px;font-weight:700;color:var(--c);background:var(--bg);border-radius:20px;padding:3px 12px;margin-bottom:10px}
.bd-c h4{margin:0 0 8px;font-size:19px;font-weight:700;color:#26261F;line-height:1.4}
.bd-c p{margin:0;font-size:14px;color:#5E5E57;line-height:1.6}
.bd-c .go{margin-top:auto;padding-top:14px;font-size:13.5px;font-weight:700;color:var(--c)}
@media(max-width:900px){.bd-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.bd-wrap{padding:0 12px}.bd-grid{grid-template-columns:1fr;gap:16px}}

.nf{text-align:center;padding:100px 20px}
.nf h1{color:var(--forest)}
