/* 두레 종합사회복지관 — 레퍼런스 fukushi-greencoop.or.jp 1:1 (2026-09-24, one-shot)
   유지: 크림빛 밝은 지면 · 오른쪽 정렬 세로쓰기 표제와 세로 본문 칸 · 떠 있는 둥근 알약 내비(색 점 붙은 항목)
        오른쪽 가장자리에 세로로 붙은 둥근 버튼 · 히어로 아래 가장자리까지 채운 사진 줄 · 세리프 성격 · 조용한 모션
   변경: 초록 135° → 올리브 70° 한 벌 · 갈고리 괄호 → 가는 세로 괘 · 사진 줄 칸 너비를 서로 다르게
        아래 구획 짜임 전면 교체(가운데 1단 → 비대칭 2단 · 같은 크기 카드 줄 → 큰 판 1 + 작은 판 2) */

:root {
  --cream: #f8f5ea;
  --cream2: #efe9d7;
  --paper: #fffdf6;
  --olive: #6b7a1e;
  --olive-deep: #4b5612;
  --olive-light: #9aa851;
  --olive-tint: #edf0dc;
  --ink: #2a2a20;
  --muted: #61604f;
  --line: #e2ddc9;
  --w: 1160px;
}

* { 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.86; letter-spacing: -0.004em; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.36; letter-spacing: -0.012em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 40px, var(--w)); margin-inline: auto; }
.en { font-family: "Halant", "Pretendard Variable", Pretendard, serif; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--olive-deep); color: #fff; padding: 12px 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--olive-deep); outline-offset: 2px; }

/* ── 헤더 ─────────────────────────────────────────── */
.hd {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  padding: 14px clamp(16px, 2.4vw, 30px);
  background: rgba(248,245,234,.94); backdrop-filter: blur(8px);
}
.brand { display: block; }
.brand small { display: block; font-size: 11px; color: var(--muted); }
.brand b { display: block; font-family: "Halant", serif; font-weight: 600; font-size: 29px; letter-spacing: .14em; line-height: 1.05; color: var(--olive-deep); }
.brand i { display: block; font-style: normal; font-size: 12px; font-weight: 700; }
.gnb { margin-left: auto; display: flex; align-items: center; gap: 6px; background: var(--paper); border-radius: 999px; padding: 8px 16px; border: 1px solid var(--line); }
.gnb a { display: flex; align-items: center; gap: 8px; padding: 6px 14px; min-height: 46px; border-radius: 999px; }
.gnb em { width: 9px; height: 9px; border-radius: 50%; background: var(--olive-light); flex: none; }
.gnb a.on em, .gnb a:hover em { background: var(--olive-deep); }
.gnb b { font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; } /* 2026-09-27 메뉴 한글만(복지관) */
.gnb i { font-style: normal; font-size: 11px; color: var(--muted); }
.gnb a.on b { color: var(--olive-deep); }

.side-btns { position: fixed; right: 14px; top: 132px; z-index: 58; display: grid; gap: 10px; }
.side-btns a { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; gap: 2px; background: var(--olive); color: #fff; box-shadow: 0 12px 24px -16px rgba(50,60,10,.7); }
.side-btns .call { background: var(--olive-deep); }
.side-btns svg { width: 21px; height: 21px; }
.side-btns span { font-size: 11px; font-weight: 700; }
.side-btns a:hover { filter: brightness(1.1); }

.burger { display: none; width: 52px; min-height: 46px; border: 0; background: none; color: inherit; cursor: pointer; margin-left: auto; }
.burger i { display: block; height: 2px; width: 24px; margin: 5px auto; background: currentColor; }
.mobile-nav {
  position: fixed; inset: var(--mm-top, 70px) 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: 12px; color: var(--muted); }
.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: var(--paper); }
.mnav-foot svg { width: 18px; height: 18px; }
.mnav-foot .fill { background: var(--olive-deep); color: #fff; border-color: var(--olive-deep); }

/* ── 히어로 (세로쓰기) ───────────────────────────── */
/* 2026-09-28C: 한글 세로쓰기는 위→아래로 읽고 줄은 왼쪽→오른쪽으로 진행한다(vertical-lr).
   일본식 vertical-rl·오른쪽 배치를 걷고 블록을 왼쪽에서 시작한다. */
.hero { padding: clamp(24px, 3.4vw, 52px) 0 0; }
.vert { width: min(100% - 40px, var(--w)); margin-inline: auto; display: flex; flex-direction: row; justify-content: flex-start; gap: clamp(20px, 3vw, 44px); align-items: flex-start; }
.vert .headline { writing-mode: vertical-lr; text-orientation: sideways; white-space: nowrap; font-family: "Halant", serif; font-weight: 600; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: .08em; color: var(--olive-deep); border-right: 2px solid var(--olive-light); padding-right: clamp(14px, 1.8vw, 26px); }
.vert .cols .big { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--ink); letter-spacing: .04em; }
.vert .cols { writing-mode: vertical-lr; display: flex; flex-direction: row; gap: clamp(14px, 1.8vw, 30px); font-size: 16.5px; line-height: 2.1; color: var(--muted); max-height: 460px; flex-wrap: wrap; }
.vert .cols p { letter-spacing: .02em; }
.vert .cols .lead { color: var(--ink); font-weight: 700; }
.hero .strip { margin-top: clamp(24px, 3.4vw, 46px); display: grid; grid-template-columns: 1.4fr 1fr 1.7fr 1.1fr; gap: 6px; }
.hero .strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero .notice { width: min(100% - 40px, var(--w)); margin: clamp(18px, 2.4vw, 30px) auto 0; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.hero .notice time { font-family: "Halant", serif; font-weight: 600; font-size: 14.5px; color: var(--olive); }
.hero .notice a { font-size: 15.5px; border-bottom: 1px solid var(--olive-light); }

/* ── 공통 ────────────────────────────────────────── */
.sec { padding: clamp(58px, 7vw, 100px) 0; }
.sec.tint { background: var(--cream2); }
.sec.olivet { background: var(--olive-tint); }
.sec-hd { margin-bottom: 30px; }
.sec-hd .mark { display: block; font-family: "Halant", serif; font-weight: 600; font-size: 14px; letter-spacing: .26em; color: var(--olive); margin-bottom: 8px; }
.sec-hd h2 { font-size: clamp(24px, 2.9vw, 34px); font-weight: 800; }
.sec-hd p { margin-top: 12px; color: var(--muted); max-width: 56ch; }

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

/* 사업 — 큰 판 1 + 작은 판 2 */
.svcs { display: grid; grid-template-columns: 1.32fr .84fr; gap: 18px; align-items: start; }
.svcs .stack { display: grid; gap: 18px; }
.sv { background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.sv:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -26px rgba(50,60,10,.5); }
.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: "Halant", serif; font-weight: 600; font-size: 13px; letter-spacing: .2em; color: var(--olive); }
.sv h3 { margin-top: 6px; 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: 15px; font-size: 15.2px; }
.sv .li li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--olive-light); }

/* 나눔 띠 */
.shareband { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.shareband img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.shareband .sx { background: var(--olive-deep); color: #fff; padding: clamp(32px, 4.4vw, 68px); display: flex; flex-direction: column; justify-content: center; }
.shareband .mark { font-family: "Halant", serif; font-weight: 600; font-size: 14px; letter-spacing: .26em; color: var(--olive-light); }
.shareband h2 { margin-top: 10px; font-size: clamp(23px, 2.9vw, 34px); font-weight: 800; }
.shareband p { margin-top: 13px; color: rgba(255,255,255,.88); font-size: 15.8px; }
.shareband .li { margin-top: 16px; display: grid; gap: 8px; }
.shareband .li li { position: relative; padding-left: 15px; font-size: 15.4px; }
.shareband .li li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--olive-light); }

/* 소식 */
.news { display: grid; grid-template-columns: 1.24fr .76fr; gap: 20px; }
.nbig { background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-columns: .94fr 1.06fr; }
.nbig img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.nbig .nx { padding: clamp(22px, 2.8vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.nbig .kd { font-family: "Halant", serif; font-weight: 600; font-size: 13px; letter-spacing: .2em; color: var(--olive); }
.nbig h3 { margin-top: 8px; font-size: clamp(19px, 2.1vw, 25px); font-weight: 800; }
.nbig p { margin-top: 11px; color: var(--muted); font-size: 15.3px; }
.nbig time { margin-top: 13px; font-family: "Halant", serif; font-weight: 600; font-size: 14px; color: #8d8b76; }
.nsm { display: grid; gap: 20px; }
.nc { padding: 22px 26px; background: var(--olive-tint); }
.olivet .nc { background: var(--paper); border: 1px solid var(--line); }
.nc .kd { font-family: "Halant", serif; font-weight: 600; font-size: 13px; letter-spacing: .2em; color: var(--olive); }
.nc h3 { margin-top: 6px; font-size: 18px; font-weight: 800; }
.nc p { margin-top: 9px; font-size: 15.2px; color: var(--muted); }
.nc time { display: block; margin-top: 12px; font-family: "Halant", serif; font-weight: 600; font-size: 13.5px; color: #8d8b76; }

/* 마감 */
.close { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(22px, 4vw, 54px); align-items: center; }
.close .mark { font-family: "Halant", serif; font-weight: 600; font-size: 14px; letter-spacing: .26em; color: var(--olive); }
.close h2 { margin-top: 10px; font-size: clamp(23px, 2.9vw, 34px); font-weight: 800; }
.close p { margin-top: 12px; color: var(--muted); }
.close .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.close a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; font-weight: 700; font-size: 15px; }
.close .p { background: var(--olive-deep); color: #fff; }
.close .g { border: 1.5px solid var(--olive); color: var(--olive-deep); }

/* ── 푸터 ────────────────────────────────────────── */
.ft { background: var(--cream2); padding: clamp(46px, 5.4vw, 76px) 0 0; }
.ft-in { width: min(100% - 40px, var(--w)); margin-inline: auto; display: grid; grid-template-columns: .88fr 1.5fr; gap: clamp(24px, 4vw, 56px); }
.ft-mark { font-family: "Halant", serif; font-weight: 600; font-size: 32px; letter-spacing: .16em; color: var(--olive-deep); }
.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: "Halant", serif; font-weight: 600; font-size: 13px; letter-spacing: .2em; color: var(--olive); 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(--olive-deep); }
.ft-law { width: min(100% - 40px, var(--w)); margin: clamp(26px, 4vw, 44px) auto 0; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: #85836f; }
.ft-law p { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ft-copy { margin-top: 14px; font-family: "Halant", serif; font-weight: 600; letter-spacing: .12em; }

.gotop { position: fixed; right: 16px; bottom: 90px; z-index: 55; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--olive-deep); 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: clamp(30px, 4vw, 56px) 0 0; }
.sub-in { width: min(100% - 40px, var(--w)); margin-inline: auto; display: grid; grid-template-columns: 1fr .82fr; gap: clamp(22px, 3.4vw, 50px); align-items: end; }
.subhero .mark { display: block; font-family: "Halant", serif; font-weight: 600; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: .12em; line-height: 1; color: var(--olive-light); }
.subhero h1 { margin-top: 12px; font-size: clamp(24px, 3vw, 35px); font-weight: 800; }
.subhero p { margin-top: 10px; color: var(--muted); max-width: 46ch; }
.subhero .pic img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.split { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(24px, 3.6vw, 52px); align-items: center; }
.split.flip > *:first-child { order: 2; }
.split img { 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: 196px 1fr; gap: 20px; padding: 21px 26px; background: var(--paper); border: 1px solid var(--line); }
.row b { font-weight: 800; color: var(--olive-deep); }
.row b em { display: block; font-style: normal; font-family: "Halant", serif; font-weight: 600; font-size: 12.5px; letter-spacing: .2em; color: var(--olive); margin-bottom: 2px; }
.row p { color: var(--muted); font-size: 15.3px; }

.tt { width: 100%; border-collapse: separate; border-spacing: 0; 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(--olive-deep); color: #fff; font-weight: 700; }
.tt tbody th { width: 118px; font-weight: 800; color: var(--olive-deep); }
.tt tr:last-child th, .tt tr:last-child td { border-bottom: 0; }

.panels { display: grid; grid-template-columns: 1.24fr .76fr; gap: 18px; }
.panel { 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: 15px; font-size: 15.3px; }
.panel .li li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--olive-light); }
.panel.olive { background: var(--olive-deep); color: #fff; border-color: transparent; }
.panel.olive p { color: rgba(255,255,255,.88); }
.panel.olive .big { font-family: "Halant", serif; font-weight: 600; font-size: 28px; letter-spacing: .12em; color: var(--olive-light); }

.steps { display: grid; gap: 13px; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); }
.steps .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--olive-tint); display: grid; place-items: center; }
.steps .dot i { width: 12px; height: 3px; background: var(--olive); 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); 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(--olive); 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(--olive-tint); padding-top: 14px; }
.info b { display: block; font-family: "Halant", serif; font-weight: 600; font-size: 12.5px; letter-spacing: .2em; color: var(--olive); }
.info span { display: block; margin-top: 6px; font-size: 16px; }

.gal { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; }
.gal figure { margin: 0; }
.gal img { 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: 1080px) {
  .gnb i { display: none; }
  .side-btns { top: auto; bottom: 150px; }
  .greet, .svcs, .shareband, .news, .nbig, .close, .split, .panels, .info, .sub-in { grid-template-columns: 1fr; }
  .split.flip > *:first-child { order: 0; }
  .svcs .stack { grid-template-columns: 1fr 1fr; }
  .ft-in { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr 1fr; }
  .gal figure:first-child img { aspect-ratio: 4/3; }
  .greet img { aspect-ratio: 16/9; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .hd { padding: 10px 16px; }
  .gnb { display: none; }
  .burger { display: block; }
  .brand small { display: none; }
  .brand b { font-size: 22px; }
  .side-btns { display: none; }
  .vert { flex-direction: column; align-items: stretch; }
  .vert .headline { writing-mode: horizontal-tb; white-space: normal; border-right: 0; padding-right: 0; font-size: 30px; }
  .vert .cols { writing-mode: horizontal-tb; flex-direction: column; max-height: none; gap: 12px; }
  .hero .strip { grid-template-columns: 1fr 1fr; }
  .svcs .stack { grid-template-columns: 1fr; }
  .shareband img { min-height: 220px; }
  .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: var(--paper); 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(--olive-deep); 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(--olive-deep); }
  .tt tr:last-child { border-bottom: 0; }
}
