/* 날결 종합사회복지관 — 레퍼런스 meishoen.com 1:1 (2026-09-24, one-shot)
   유지: 왼쪽 고정 사이드바(워드마크 → 세로 내비 → 쌓아 놓은 CTA 세 칸) · 오른쪽의 크고 둥근 '오늘 한 장' 카드
        크림빛 밝은 지면 · 둥근 휴머니스트 산세리프 · CTA 세 칸 · 구획 순서 · 조용한 모션
   변경: 주황 28° → 자줏빛 포도주 343° 한 벌 · 링 제본 → 뜯는 자리(점선 천공) · 일러스트 인물 모자이크 → 사진 모자이크
        같은 크기 카드 줄 → 크기가 다른 판 · 가운데 제목 → 왼쪽 2단
   2026-09-28C 색 교체: "색 구성이 AI 티" 지적 — 자주 한 벌(자주·분홍 옅은 면·자주 3단 CTA)을 걷고
        복지관 물질(텃밭 잎·햇볕)에서 온 한 벌로. 강조 = 풀잎 초록 #377d12(텃밭 사진 m4 잎색을 깊고 선명하게) ·
        밝은 = 새순 연두 · 오늘 날짜 칸 = 햇볕 버터. 변수 이름(--wine*)은 짜임을 건드리지 않으려고 그대로 두었다 — 값은 초록이다. */

:root {
  --cream: #f7f6ee;
  --cream2: #edeedd;
  --paper: #ffffff;
  --wine: #377d12;
  --wine-deep: #22500a;
  --wine-light: #a6d05a;
  --wine-tint: #eef5dc;
  --sun: #fbf0c4;
  --ink: #1f2419;
  --muted: #595f50;
  --line: #dfe2cf;
  --rail: 268px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  font-size: 16px; line-height: 1.82; letter-spacing: -0.008em; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.32; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.en { font-family: "Duru Sans", "Pretendard Variable", Pretendard, sans-serif; font-weight: 400; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--wine-deep); color: #fff; padding: 12px 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--wine-deep); outline-offset: 2px; }

/* ── 왼쪽 고정 레일 ───────────────────────────────── */
.hd {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 60;
  display: flex; flex-direction: column; padding: 34px 0 0; background: var(--cream);
}
.brand { padding: 0 30px; display: block; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.brand b { display: block; margin-top: 4px; font-family: "Duru Sans", sans-serif; font-size: 31px; letter-spacing: .12em; line-height: 1.1; color: var(--wine); }
.brand i { display: block; margin-top: 2px; font-style: normal; font-size: 13px; font-weight: 700; }
.gnb { margin-top: 34px; padding: 0 30px; display: grid; gap: 4px; flex: 1; align-content: start; }
.gnb a { display: block; padding: 10px 0 10px 18px; position: relative; min-height: 46px; }
.gnb a::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--wine-light); }
.gnb a.on::before, .gnb a:hover::before { background: var(--wine); }
.gnb b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; } /* 2026-09-27 메뉴 한글만(복지관) */
.gnb a.on b { color: var(--wine-deep); }
.gnb i { font-style: normal; font-size: 15px; font-weight: 700; }
.gnb a.on i { color: var(--wine-deep); }
.rail-cta { display: grid; }
.rail-cta a { display: flex; align-items: center; gap: 12px; padding: 20px 26px; min-height: 66px; color: #fff; }
.rail-cta svg { width: 21px; height: 21px; flex: none; }
.rail-cta svg:last-child { margin-left: auto; width: 17px; height: 17px; }
.rail-cta span { font-size: 15px; font-weight: 700; }
.rail-cta .c1 { background: var(--ink); }
.rail-cta .c2 { background: var(--wine); }
.rail-cta .c3 { background: var(--wine-light); color: #17240a; }
.rail-cta a:hover { filter: brightness(1.08); }

.burger { display: none; width: 54px; min-height: 46px; border: 0; background: none; color: inherit; cursor: pointer; }
.burger i { display: block; height: 2px; width: 24px; margin: 5px auto; background: currentColor; }
.mobile-nav {
  position: fixed; inset: var(--mm-top, 64px) 0 0 auto; width: min(86vw, 330px);
  background: var(--cream2); z-index: 70; padding: 22px 20px 30px;
  transform: translateX(105%); transition: transform .3s cubic-bezier(.4,0,.2,1); overflow-y: auto;
}
.mobile-nav.open { transform: none; }
.mobile-nav a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--line); min-height: 46px; }
.mobile-nav b { display: block; font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
.mobile-nav span { font-size: 15px; font-weight: 700; }
.mnav-foot { margin-top: 18px; display: grid; gap: 10px; }
.mnav-foot a { display: flex; align-items: center; gap: 8px; justify-content: center; border: 1px solid var(--line); border-radius: 999px; padding: 12px; font-size: 14px; background: #fff; }
.mnav-foot svg { width: 18px; height: 18px; }
.mnav-foot .fill { background: var(--wine); color: #fff; border-color: var(--wine); }

/* ── 본문 자리 ───────────────────────────────────── */
main { margin-left: var(--rail); }
.wrap { width: min(100% - 56px, 1020px); margin-inline: auto; }

/* 히어로 = 오늘 한 장 카드 */
.hero { padding: 30px 28px 0; }
.sheet { position: relative; background: var(--paper); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -44px rgba(34,52,14,.5); }
.perf { display: flex; align-items: center; gap: 9px; padding: 14px 26px 0; }
.perf i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--cream2); flex: none; }
.sheet-in { display: grid; grid-template-columns: 1fr 186px; }
.sheet-body { padding: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) clamp(28px, 3.4vw, 46px); }
.sheet h1 .l1 { display: block; font-family: "Duru Sans", sans-serif; font-size: clamp(38px, 5.4vw, 68px); letter-spacing: .05em; line-height: 1.02; color: var(--wine); }
.sheet h1 .l2 { display: block; margin-top: 14px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; line-height: 1.44; }
.sheet .tag { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.sheet .sub { margin-top: 14px; font-size: 16.5px; color: var(--muted); max-width: 40ch; }
.mosaic { margin-top: clamp(20px, 2.6vw, 34px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.mosaic figure { margin: 0; }
.mosaic .x2 { grid-column: span 2; }
.mosaic .x3 { grid-column: span 3; }
.mosaic .x2 img { aspect-ratio: 1/1; }
.mosaic .x3 img { aspect-ratio: 16/9; }
.today { background: var(--sun); padding: 26px 18px; text-align: center; border-left: 1px solid var(--line); }
.today b { display: block; font-family: "Duru Sans", sans-serif; font-size: 12.5px; letter-spacing: .24em; color: var(--wine); }
.today .m { display: block; margin-top: 10px; font-family: "Duru Sans", sans-serif; font-size: 19px; color: var(--wine-deep); }
.today .d { display: block; font-family: "Duru Sans", sans-serif; font-size: clamp(44px, 5vw, 66px); line-height: 1; color: var(--wine-deep); }
.today .w { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.today .note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: left; }

/* ── 공통 ────────────────────────────────────────── */
.sec { padding: clamp(56px, 6.4vw, 92px) 0; }
.sec.tint { background: var(--cream2); }
.sec-hd { margin-bottom: 30px; }
.sec-hd .mark { display: block; font-family: "Duru Sans", sans-serif; font-size: 12.5px; letter-spacing: .24em; color: var(--wine); margin-bottom: 8px; }
.sec-hd h2 { font-size: clamp(24px, 2.8vw, 33px); font-weight: 800; }
.sec-hd p { margin-top: 12px; color: var(--muted); max-width: 56ch; }

/* 인사 — 비대칭 2단 */
.greet { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(22px, 3.4vw, 52px); align-items: center; }
.greet h2 { font-size: clamp(23px, 2.9vw, 34px); font-weight: 800; line-height: 1.46; }
.greet h2 em { font-style: normal; color: var(--wine); }
.greet .body { margin-top: 18px; }
.greet .body p + p { margin-top: 13px; }
.greet .body p { color: var(--muted); font-size: 16.2px; }
.greet img { border-radius: 22px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* 대상별 사업 — 크기가 다른 판 */
.svcs { display: grid; grid-template-columns: 1.28fr .86fr; gap: 18px; align-items: start; }
.svcs .stack { display: grid; gap: 18px; }
.sv { background: var(--paper); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.tint .sv { background: var(--paper); }
.sv:hover { transform: translateY(-4px); box-shadow: 0 20px 38px -28px rgba(34,52,14,.45); }
.sv img { width: 100%; object-fit: cover; }
.sv.big img { aspect-ratio: 16/9; }
.sv.sm img { aspect-ratio: 21/9; }
.sv .sx { padding: 22px 26px 26px; }
.sv .kd { font-family: "Duru Sans", sans-serif; font-size: 12px; letter-spacing: .2em; color: var(--wine); }
.sv h3 { margin-top: 7px; font-size: 20px; font-weight: 800; }
.sv.big h3 { font-size: 24px; }
.sv p { margin-top: 10px; color: var(--muted); font-size: 15.4px; }
.sv .li { margin-top: 13px; display: grid; gap: 7px; }
.sv .li li { position: relative; padding-left: 16px; font-size: 15.2px; }
.sv .li li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--wine-light); }

/* 소식 — 가로 특집 + 비대칭 2단 */
.feat { display: grid; grid-template-columns: .95fr 1.05fr; border-radius: 24px; overflow: hidden; background: var(--sun); color: var(--ink); }
.feat img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.feat .fx { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.feat .kd { font-family: "Duru Sans", sans-serif; font-size: 12px; letter-spacing: .2em; color: var(--wine-deep); }
.feat h3 { margin-top: 10px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; }
.feat p { margin-top: 12px; color: var(--muted); font-size: 15.4px; }
.feat time { margin-top: 14px; font-family: "Duru Sans", sans-serif; font-size: 13.5px; color: var(--muted); }
.duo { margin-top: 18px; display: grid; grid-template-columns: 1.26fr .74fr; gap: 18px; }
.nc { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; }
.nc.alt { background: var(--wine-tint); border-color: transparent; }
.nc .kd { font-family: "Duru Sans", sans-serif; font-size: 12px; letter-spacing: .2em; color: var(--wine); }
.nc h3 { margin-top: 7px; font-size: 18.5px; font-weight: 800; }
.nc p { margin-top: 9px; font-size: 15.2px; color: var(--muted); }
.nc time { display: block; margin-top: 12px; font-family: "Duru Sans", sans-serif; font-size: 13px; color: #7b8270; }

/* 마감 판 */
.plate { margin: 0 28px clamp(40px, 5vw, 70px); border-radius: 30px; background: var(--wine-deep); color: #fff; padding: clamp(40px, 5vw, 70px) clamp(24px, 3.4vw, 54px); display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(20px, 3.4vw, 48px); align-items: center; }
.plate .mark { font-family: "Duru Sans", sans-serif; font-size: 12.5px; letter-spacing: .24em; color: #d4ec9e; }
.plate h2 { margin-top: 10px; font-size: clamp(23px, 2.9vw, 33px); font-weight: 800; }
.plate p { margin-top: 12px; color: rgba(255,255,255,.86); }
.plate .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.plate a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.plate .p { background: #fff; color: var(--wine-deep); }
.plate .g { border: 1.5px solid rgba(255,255,255,.62); color: #fff; }

/* ── 푸터 ────────────────────────────────────────── */
.ft { background: var(--cream2); padding: clamp(46px, 5.4vw, 74px) 0 0; margin-left: var(--rail); }
.ft-in { width: min(100% - 56px, 1020px); margin-inline: auto; display: grid; grid-template-columns: .9fr 1.5fr; gap: clamp(24px, 4vw, 56px); }
.ft-mark { font-family: "Duru Sans", sans-serif; font-size: 30px; letter-spacing: .12em; color: var(--wine); }
.ft-ko { margin-top: 4px; font-size: 15px; font-weight: 700; }
.ft-say { margin-top: 12px; font-size: 14px; color: var(--muted); }
.ft-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ft-map b { display: block; font-family: "Duru Sans", sans-serif; font-size: 12px; letter-spacing: .2em; color: var(--wine); margin-bottom: 8px; }
.ft-map a { display: flex; align-items: center; min-height: 44px; font-size: 14.5px; color: var(--muted); }
.ft-map a:hover { color: var(--wine-deep); }
.ft-law { width: min(100% - 56px, 1020px); margin: clamp(26px, 4vw, 44px) auto 0; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: #767c6a; }
.ft-law p { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ft-copy { margin-top: 14px; font-family: "Duru Sans", sans-serif; letter-spacing: .1em; }

.gotop { position: fixed; right: 16px; bottom: 90px; z-index: 55; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--wine); color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
.gotop svg { width: 20px; height: 20px; }
.is-scrolled .gotop { opacity: .94; pointer-events: auto; }
.mbar { display: none; }

/* ── 하위 페이지 ─────────────────────────────────── */
.subhero { padding: 30px 28px 0; }
.sub-sheet { background: var(--paper); border-radius: 26px; overflow: hidden; }
.sub-sheet .sx { padding: clamp(28px, 3.4vw, 50px); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
.sub-sheet .mark { display: block; font-family: "Duru Sans", sans-serif; font-size: clamp(30px, 4vw, 50px); letter-spacing: .1em; line-height: 1; color: var(--wine); }
.sub-sheet h1 { margin-top: 12px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.sub-sheet p { margin-top: 10px; color: var(--muted); max-width: 48ch; }
.sub-sheet img { width: 250px; border-radius: 18px; aspect-ratio: 1/1; object-fit: cover; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 3.6vw, 50px); align-items: center; }
.split.flip > *:first-child { order: 2; }
.split img { border-radius: 22px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.prose p + p { margin-top: 13px; }
.prose .sign { margin-top: 20px; font-weight: 700; }

.rows { display: grid; gap: 13px; }
.row { display: grid; grid-template-columns: 192px 1fr; gap: 20px; padding: 21px 26px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.row b { font-weight: 800; color: var(--wine-deep); }
.row b em { display: block; font-style: normal; font-family: "Duru Sans", sans-serif; font-size: 11.5px; letter-spacing: .2em; color: var(--wine); margin-bottom: 2px; }
.row p { color: var(--muted); font-size: 15.3px; }

.tt { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 20px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.tt th, .tt td { padding: 14px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.tt thead th { background: var(--wine); color: #fff; font-weight: 700; }
.tt tbody th { width: 118px; font-weight: 800; color: var(--wine-deep); }
.tt tr:last-child th, .tt tr:last-child td { border-bottom: 0; }

.panels { display: grid; grid-template-columns: 1.26fr .74fr; gap: 18px; }
.panel { border-radius: 22px; padding: clamp(22px, 2.8vw, 34px); background: var(--paper); border: 1px solid var(--line); }
.panel h3 { font-size: 19px; font-weight: 800; }
.panel p { margin-top: 10px; color: var(--muted); font-size: 15.3px; }
.panel .li { margin-top: 13px; display: grid; gap: 8px; }
.panel .li li { position: relative; padding-left: 16px; font-size: 15.3px; }
.panel .li li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--wine-light); }
.panel.wine { background: var(--wine); color: #fff; border-color: transparent; }
.panel.wine p { color: rgba(255,255,255,.88); }
.panel.wine .big { font-family: "Duru Sans", sans-serif; font-size: 28px; letter-spacing: .08em; color: #d4ec9e; }

.steps { display: grid; gap: 13px; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 20px 24px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.steps .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--wine-tint); display: grid; place-items: center; }
.steps .dot i { width: 11px; height: 11px; border-radius: 50%; background: var(--wine); display: block; }
.steps h3 { font-size: 17px; font-weight: 800; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15.3px; }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; min-height: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--wine); font-weight: 900; }
.faq details[open] summary::after { content: "−"; }
.faq .a { margin-top: 12px; color: var(--muted); font-size: 15.3px; }

.info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.info div { border-top: 2px solid var(--wine-tint); padding-top: 14px; }
.info b { display: block; font-family: "Duru Sans", sans-serif; font-size: 11.5px; letter-spacing: .2em; color: var(--wine); }
.info span { display: block; margin-top: 6px; font-size: 16px; }

.gal { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 13px; }
.gal figure { margin: 0; }
.gal img { border-radius: 18px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gal figure:first-child img { aspect-ratio: 3/4; }
.gal figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.pop { opacity: 0; transform: translateY(16px); transition: opacity .62s, transform .62s; }
.pop.go { opacity: 1; transform: none; }
.reduce .pop { opacity: 1; transform: none; transition: none; }

/* ── 반응형 ───────────────────────────────────────── */
@media (max-width: 1180px) {
  :root { --rail: 224px; }
  .sheet-in { grid-template-columns: 1fr 150px; }
  .greet, .svcs, .feat, .duo, .plate, .split, .panels, .info { grid-template-columns: 1fr; }
  .split.flip > *:first-child { order: 0; }
  .svcs .stack { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: 1fr 1fr; }
  .gal figure:first-child img { aspect-ratio: 4/3; }
}
@media (max-width: 860px) {
  :root { --rail: 0px; }
  body { font-size: 15.5px; }
  main, .ft { margin-left: 0; }
  .hd { position: sticky; inset: 0 0 auto 0; width: auto; height: 64px; min-height: 64px; flex-direction: row; align-items: center; padding: 0 16px; background: var(--cream); border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  .brand small { display: none; }
  .brand b { font-size: 21px; margin-top: 0; }
  .brand i { font-size: 11px; }
  .gnb, .rail-cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .hero, .subhero { padding: 16px 16px 0; }
  .wrap { width: calc(100% - 32px); }
  .sheet-in { grid-template-columns: 1fr; }
  .today { border-left: 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 22px; flex-wrap: wrap; }
  .today .d { font-size: 40px; }
  .today .note { margin-top: 0; padding-top: 0; border-top: 0; flex: 1 1 100%; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic .x2, .mosaic .x3 { grid-column: span 1; }
  .mosaic .x3 img { aspect-ratio: 1/1; }
  .svcs .stack { grid-template-columns: 1fr; }
  .sub-sheet .sx { grid-template-columns: 1fr; }
  .sub-sheet img { width: 100%; aspect-ratio: 16/9; }
  .plate { margin: 0 16px 40px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .ft-map { grid-template-columns: 1fr; gap: 10px; }
  .gal { grid-template-columns: 1fr; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: #fff; border-top: 1px solid var(--line); }
  .mbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; font-size: 12px; }
  .mbar svg { width: 19px; height: 19px; }
  .mbar .tel { background: var(--wine); color: #fff; }
  .gotop { bottom: 72px; }
  .tt thead { display: none; }
  .tt, .tt tbody, .tt tr, .tt td, .tt th { display: block; width: auto; }
  .tt tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tt tbody th { width: auto; padding-bottom: 4px; }
  .tt td { border-bottom: 0; padding: 4px 18px; }
  .tt td::before { content: attr(data-label) " · "; font-weight: 700; color: var(--wine); }
  .tt tr:last-child { border-bottom: 0; }
}
