@charset "utf-8";
/* 든든재가노인복지센터 홈페이지 (2026-12-01 · 사장님이 고른 시안 1 + 3)
   흰 바탕 · 짙은 초록 글과 면 · 금빛 가는 줄 · 제목은 명조, 본문은 고딕 */

:root {
  --paper: #ffffff;
  --paper-2: #f1f4f2;
  --green: #0f3324;
  --green-2: #1b4634;
  --ink: #17211b;
  --body: #3b463f;
  --muted: #5b655e;
  --gold: #9a7b3c;
  --line: #d9dfdb;
  --on-green: #f5f8f6;
  --field: #ffffff;
  --field-line: #9aa59e;
  --on-green-soft: #c5d4cb;
  --err: #a3271c;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "Hahmlet", "Noto Serif KR", serif;        /* 제목 글씨 — 사장님이 고름(2026-12-01 · 함렛) */
  --numf: var(--sans);                               /* 전화번호 · 숫자 글씨 */
  --hw: 700;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --w: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-color: var(--green-2) var(--paper-2); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; caret-color: var(--green); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, p, figure, h1, h2, h3, address, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--on-green); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(100% - 48px, var(--w)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--green); color: var(--on-green); font-weight: 700; }
.skip:focus { top: 12px; }

/* ── 머리 ── */
.head { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 28px; padding: 18px 0; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 25px; letter-spacing: -0.03em; color: var(--green); white-space: nowrap; }
.nav { flex: 1; min-width: 0; padding-left: 28px; border-left: 1px solid var(--gold); }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.nav a { display: block; padding: 6px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.nav a:hover { color: var(--green); border-bottom-color: var(--gold); }
.head-tel { flex: none; padding-left: 28px; border-left: 1px solid var(--gold); text-align: right; line-height: 1.25; }
.head-tel strong { display: block; font-family: var(--numf); font-size: 24px; font-weight: 700; color: var(--green); letter-spacing: -0.01em; }
.head-tel span { font-size: 14.5px; color: var(--muted); }

/* ── 첫 화면 ── */
.hero { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); min-height: min(760px, calc(100vh - 150px)); }
.hero-say { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 5vw, 76px) clamp(24px, 4vw, 64px) clamp(40px, 5vw, 76px) max(24px, calc((100vw - var(--w)) / 2)); }
h1 { font-family: var(--serif); font-weight: var(--hw); font-size: clamp(36px, 4.5vw, 70px); line-height: 1.22; letter-spacing: -0.04em; color: var(--green); }
.hero-fact { margin-top: 24px; font-family: var(--serif); font-size: clamp(19px, 1.75vw, 25px); font-weight: 600; color: var(--ink); }
.acts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 30px; border: 1.5px solid var(--green); border-radius: 3px; font-family: var(--serif); font-size: 20px; font-weight: 700; cursor: pointer; transition: background .25s, color .25s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-fill { background: var(--green); color: var(--on-green); }
.btn-fill:hover { background: var(--green-2); }
.btn-line { background: transparent; color: var(--green); }
.btn-line:hover { background: var(--green); color: var(--on-green); }
.hero-tel { margin-top: 30px; display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; color: var(--green); }
.hero-tel svg { width: 38px; height: 38px; flex: none; }
.hero-tel strong { display: block; font-family: var(--numf); font-size: clamp(36px, 3.9vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.hero-tel span { display: block; font-size: 17px; color: var(--body); }
.hero-tel strong { background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.hero-tel:hover strong { background-size: 100% 2px; }
.hero-addr { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--gold); font-size: 17px; color: var(--body); }
.hero-photo { position: relative; overflow: hidden; background: var(--paper-2); min-height: 320px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-photo img + img { opacity: 0; }
.hero-photo::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; background: linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 55%, transparent) 45%, transparent 100%); pointer-events: none; }

/* ── 하는 일 띠 ── */
.strip { background: var(--paper-2); border-block: 1px solid var(--line); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: space-between; }
.strip li { flex: 1 1 auto; text-align: center; padding: 22px 16px; font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--green); position: relative; }
.strip li + li::before { content: ""; position: absolute; left: 0; top: 50%; height: 22px; margin-top: -11px; border-left: 1px solid var(--gold); }

/* ── 구역 공통 ── */
.sec { padding: clamp(60px, 7.5vw, 116px) 0; }
h2 { font-family: var(--serif); font-weight: var(--hw); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.3; letter-spacing: -0.035em; color: var(--green); text-wrap: balance; }
.sec-lead { margin-top: 16px; max-width: 32em; color: var(--body); }
.two { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.two.half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.link { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--green); border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: border-color .25s; }
.link:hover { border-bottom-color: var(--green); }

/* 서비스 안내 */
.svc-list { border-top: 1px solid var(--green); }
.svc-list li { display: grid; grid-template-columns: minmax(0, 11em) 1fr; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.svc-list strong { font-family: var(--serif); font-size: 25px; font-weight: 700; color: var(--green); letter-spacing: -0.02em; }
.svc-list span { color: var(--body); }
.also { margin-top: clamp(40px, 5vw, 68px); padding: clamp(26px, 3.2vw, 44px); background: var(--green); color: var(--on-green); border-radius: 3px; display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 64px); align-items: start; }
.also h3 { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 31px); font-weight: var(--hw); line-height: 1.4; letter-spacing: -0.03em; text-wrap: balance; }
.also ul { border-top: 1px solid color-mix(in srgb, var(--on-green) 40%, transparent); }
.also li { display: grid; grid-template-columns: 7.5em 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--on-green) 28%, transparent); }
.also strong { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.also span { color: var(--on-green-soft); }

/* ── 군산 · 센터장 ── */
.town { position: relative; min-height: clamp(460px, 46vw, 640px); display: flex; align-items: stretch; overflow: hidden; background: var(--green); color: var(--on-green); }
.town-photo { position: absolute; inset: 0; }
.town-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.town-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--green) 0%, var(--green) 30%, rgba(15, 51, 36, .82) 42%, rgba(15, 51, 36, 0) 68%); }
.town-in { position: relative; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(52px, 6vw, 88px); }
.town h2 { color: var(--on-green); max-width: 9.5em; }
.town p { margin-top: 20px; max-width: 24em; color: var(--on-green-soft); }
.town .btn { margin-top: 30px; align-self: flex-start; border-color: var(--on-green); }
.town .btn-fill { background: var(--on-green); color: var(--green); }
.town .btn-fill:hover { background: #fff; }

/* ── 이용 절차 ── */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--green); counter-reset: s; }
.steps li { padding: 26px 26px 0 0; counter-increment: s; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--gold); font-variant-numeric: lining-nums; }
.steps strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 25px; font-weight: 700; color: var(--green); letter-spacing: -0.02em; }
.steps span { display: block; margin-top: 8px; font-size: 17px; line-height: 1.75; color: var(--body); }
.fine { margin-top: 28px; font-size: 16.5px; color: var(--muted); }

/* ── 비용 ── */
.cost { background: var(--paper-2); border-block: 1px solid var(--line); }
.cost-big { margin-top: 18px; font-family: var(--numf); font-weight: 700; font-size: clamp(54px, 7vw, 104px); line-height: 1; letter-spacing: -0.04em; color: var(--green); }
.cost-big small { display: block; margin-top: 12px; font-family: var(--sans); font-size: 18px; font-weight: 500; letter-spacing: 0; line-height: 1.6; color: var(--body); }
.rate { width: 100%; border-collapse: collapse; border-top: 1px solid var(--green); }
.rate caption { caption-side: bottom; text-align: left; padding-top: 14px; font-size: 16px; color: var(--muted); }
.rate th, .rate td { padding: 20px 0; border-bottom: 1px solid var(--line); text-align: left; }
.rate thead th { font-size: 16px; font-weight: 500; color: var(--muted); padding: 12px 0; }
.rate tbody th { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--green); }
.rate td, .rate thead th + th { text-align: right; }
.rate td { font-family: var(--numf); font-size: 28px; font-weight: 700; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }

/* ── 자주 묻는 질문 ── */
.faq-list { border-top: 1px solid var(--green); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 48px 24px 0; font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--green); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 34px; width: 12px; height: 12px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(6px) rotate(225deg); }
.faq-list p { padding: 0 0 26px; max-width: 38em; color: var(--body); }

/* ── 상담 신청 ── */
.ask { background: var(--green); color: var(--on-green); }
.ask h2 { color: var(--on-green); }
.ask .sec-lead { color: var(--on-green-soft); }
.ask-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.ask-ways { margin-top: 32px; border-top: 1px solid color-mix(in srgb, var(--on-green) 35%, transparent); }
.ask-ways a { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--on-green) 35%, transparent); transition: color .25s; }
.ask-ways a:hover { color: #fff; }
.ask-ways span { font-size: 16.5px; color: var(--on-green-soft); }
.ask-ways strong { font-family: var(--numf); font-size: 27px; font-weight: 700; white-space: nowrap; font-variant-numeric: lining-nums; }
.form { background: var(--paper); color: var(--ink); padding: clamp(24px, 3.2vw, 44px); border-radius: 3px; display: grid; gap: 22px; }
.field label, .field legend { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--green); }
.field small { margin-left: 6px; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--field-line); border-radius: 3px; background: var(--field); font-size: 18px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #6f6a5c; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 51, 36, .16); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.err { display: none; margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--err); }
.field input[aria-invalid="true"] ~ .err, .agree[data-bad] .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 10px 18px; border: 1px solid var(--field-line); border-radius: 3px; background: var(--field); transition: background .2s, border-color .2s, color .2s; }
.chips label:hover span { border-color: var(--green); }
.chips input:checked + span { background: var(--green); border-color: var(--green); color: var(--on-green); }
.chips input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.agree { padding: 18px 20px; background: var(--paper-2); border-radius: 3px; font-size: 16px; line-height: 1.75; color: var(--body); }
.agree label { display: flex; gap: 12px; align-items: flex-start; font-size: 17.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.agree input { flex: none; width: 22px; height: 22px; margin: 5px 0 0; accent-color: var(--green); }
.agree ul { margin-top: 8px; padding-left: 34px; }
.form .btn { width: 100%; }
.done { display: none; padding: 16px 18px; background: var(--paper-2); border-left: 0; font-weight: 600; }
.done[data-on] { display: block; }

/* ── 오시는 길 ── */
.nap { border-top: 1px solid var(--green); }
.nap div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.nap dt { color: var(--muted); }
.nap dd { font-weight: 600; }
.nap dd a { color: var(--green); border-bottom: 1px solid var(--gold); white-space: nowrap; }
.nap dd a:hover { border-bottom-color: var(--green); }

/* ── 아래 ── */
.foot { background: var(--green); color: var(--on-green-soft); padding: 48px 0; font-size: 16.5px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; }
.foot-name { font-family: var(--serif); font-size: 23px; font-weight: 700; color: var(--on-green); }
.foot a { color: var(--on-green); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { border-bottom: 1px solid color-mix(in srgb, var(--on-green) 40%, transparent); }
.foot-links a:hover { border-bottom-color: var(--gold); }
.callbar { display: none; }

/* ── 움직임 (움직임 줄이기를 켠 기기에서는 모두 멈춤) ── */
@media (prefers-reduced-motion: no-preference) {
  /* 장면 셋이 8초씩 — 천천히 다가오다가 다음 장면으로 녹아 넘어감 */
  .hero-photo img { opacity: 0; animation: scene 24s linear infinite both; will-change: transform, opacity; }
  .hero-photo img:nth-child(1) { animation-delay: -1.2s; transform-origin: 70% 60%; }
  .hero-photo img:nth-child(2) { animation-delay: 6.8s; transform-origin: 40% 55%; }
  .hero-photo img:nth-child(3) { animation-delay: 14.8s; transform-origin: 60% 45%; }
  @keyframes scene {
    0% { opacity: 0; transform: scale(1); }
    6% { opacity: 1; }
    33.3% { opacity: 1; }
    41% { opacity: 0; transform: scale(1.07); }
    100% { opacity: 0; transform: scale(1.07); }
  }
  /* 서비스 사진 — 내려오면 살짝 줄어들며 자리 잡음 (사진은 늘 보임) */
  @supports (animation-timeline: view()) {
    .svc-grid img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes settle { from { scale: 1.1; } to { scale: 1; } }
  }
  h1, .hero-fact, .acts, .hero-tel, .hero-addr { animation: rise 1s var(--ease) both; }
  .hero-fact { animation-delay: .1s; } .acts { animation-delay: .18s; } .hero-tel { animation-delay: .26s; } .hero-addr { animation-delay: .34s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  @supports (animation-timeline: view()) {
    .town-photo img { animation: pan linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes pan { from { transform: scale(1.06) translateY(-2.5%); } to { transform: scale(1.06) translateY(2.5%); } }
  }
}

/* ── 좁은 화면 ── */
@media (max-width: 1100px) {
  .nav { display: none; }
  .head-in { justify-content: space-between; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-say { padding: 36px 24px 40px; }
  .hero-photo { order: -1; aspect-ratio: 3 / 2; min-height: 0; }
  .two, .two.half, .ask-in, .also { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { margin-top: 26px; border-top: 1px solid var(--line); }
  .town-photo::after { background: linear-gradient(180deg, rgba(15, 51, 36, .2) 0%, rgba(15, 51, 36, .9) 46%, var(--green) 70%); }
  .town { min-height: 560px; }
  .town-in { justify-content: flex-end; }
}
@media (max-width: 640px) {
  body { font-size: 17.5px; padding-bottom: 76px; }
  .wrap { width: min(100% - 40px, var(--w)); }
  .logo { font-size: 21px; }
  .head-tel { display: none; }
  .hero-say { padding: 30px 20px 36px; }
  .btn { width: 100%; }
  .strip li { flex-basis: 50%; font-size: 19px; padding: 16px 8px; }
  .strip li + li::before { display: none; }
  .svc-list li, .also li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 22px 0 0; border-left: 0; margin-top: 22px; border-top: 1px solid var(--line); }
  .steps li:first-child { margin-top: 0; border-top: 0; }
  .nap div { grid-template-columns: 5.4em 1fr; }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--gold); }
  .callbar .btn { min-height: 54px; padding: 0 12px; font-size: 18px; }
  .callbar .btn-fill { flex: 1.4; }
  .callbar .btn-line { flex: 1; }
}

/* ── 서비스 사진 다섯 장 ── */
.svc-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.svc-grid figure { min-width: 0; }
.svc-grid .ph { overflow: hidden; border-radius: 3px; background: var(--paper-2); aspect-ratio: 2 / 3; }
.svc-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-grid figure:hover img { transform: scale(1.03); }
.svc-grid figcaption { padding-top: 16px; border-top: 1px solid var(--gold); margin-top: 16px; }
.svc-grid strong { display: block; font-family: var(--serif); font-size: 23px; font-weight: 700; color: var(--green); letter-spacing: -0.02em; }
.svc-grid span { display: block; margin-top: 6px; font-size: 16.5px; line-height: 1.7; color: var(--body); }
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(64%, 300px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
  .svc-grid figure { scroll-snap-align: start; }
}



/* ── 사진이 바탕으로 자연스럽게 스며들게 (2026-12-01 사장님: 일자로 떨어지는 게 별로) ──
   곧은 띠 대신 사진 자체를 여러 단계로 서서히 흐리고, 둥근 가림을 겹쳐 가장자리가 휘어지게 함 */
.hero { position: relative; display: block; min-height: min(760px, calc(100vh - 150px)); }
.hero-say { position: relative; z-index: 1; width: 52%; min-height: inherit; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 68%; min-height: 0; background: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.02) 7%, rgba(0,0,0,.07) 14%, rgba(0,0,0,.16) 21%, rgba(0,0,0,.3) 28%, rgba(0,0,0,.48) 35%, rgba(0,0,0,.67) 42%, rgba(0,0,0,.83) 49%, rgba(0,0,0,.94) 56%, #000 64%), radial-gradient(ellipse 100% 130% at 82% 46%, #000 52%, rgba(0,0,0,.6) 74%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.02) 7%, rgba(0,0,0,.07) 14%, rgba(0,0,0,.16) 21%, rgba(0,0,0,.3) 28%, rgba(0,0,0,.48) 35%, rgba(0,0,0,.67) 42%, rgba(0,0,0,.83) 49%, rgba(0,0,0,.94) 56%, #000 64%), radial-gradient(ellipse 100% 130% at 82% 46%, #000 52%, rgba(0,0,0,.6) 74%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-photo::after { display: none; }
.town-photo::after { background: linear-gradient(90deg, var(--green) 0%, var(--green) 16%, color-mix(in srgb, var(--green) 96%, transparent) 23%, color-mix(in srgb, var(--green) 88%, transparent) 30%, color-mix(in srgb, var(--green) 74%, transparent) 37%, color-mix(in srgb, var(--green) 56%, transparent) 44%, color-mix(in srgb, var(--green) 38%, transparent) 51%, color-mix(in srgb, var(--green) 22%, transparent) 58%, color-mix(in srgb, var(--green) 10%, transparent) 65%, color-mix(in srgb, var(--green) 3%, transparent) 72%, transparent 80%); }
@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-say { width: 100%; min-height: 0; margin-top: -56px; }
  .hero-photo { position: relative; inset: auto; width: 100%; order: -1; aspect-ratio: 3 / 2;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, rgba(0,0,0,.86) 58%, rgba(0,0,0,.62) 69%, rgba(0,0,0,.36) 79%, rgba(0,0,0,.15) 88%, rgba(0,0,0,.04) 95%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 46%, rgba(0,0,0,.86) 58%, rgba(0,0,0,.62) 69%, rgba(0,0,0,.36) 79%, rgba(0,0,0,.15) 88%, rgba(0,0,0,.04) 95%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add; }
  .town-photo::after { background: linear-gradient(180deg, color-mix(in srgb, var(--green) 6%, transparent) 0%, color-mix(in srgb, var(--green) 18%, transparent) 16%, color-mix(in srgb, var(--green) 40%, transparent) 30%, color-mix(in srgb, var(--green) 66%, transparent) 42%, color-mix(in srgb, var(--green) 86%, transparent) 54%, color-mix(in srgb, var(--green) 96%, transparent) 64%, var(--green) 74%); }
}

/* ── 안쪽 페이지 (서비스 · 비용 · 이용 절차 · 질문 · 센터 소개) ── */
.page-head { padding: clamp(48px, 6vw, 92px) 0 clamp(36px, 4.4vw, 60px); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.page-head h1 { font-size: clamp(36px, 4.4vw, 62px); }
.page-lead { margin-top: 20px; max-width: 34em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.8; color: var(--body); }
.rows { display: grid; gap: clamp(44px, 5.5vw, 84px); }
.row { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, 1fr); gap: clamp(24px, 4.4vw, 72px); align-items: center; scroll-margin-top: 110px; }
.row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, .36fr); }
.row:nth-child(even) .ph { order: 2; }
.row .ph { overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 5; background: var(--paper-2); }
.row .ph img { width: 100%; height: 100%; object-fit: cover; }
.row h2 { font-size: clamp(28px, 3vw, 42px); }
.row p { margin-top: 14px; max-width: 34em; color: var(--body); }
.kv { margin-top: 24px; border-top: 1px solid var(--green); max-width: 40em; }
.kv div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--serif); font-weight: 700; color: var(--green); }
.kv dd { color: var(--body); }
.tbl-wrap { margin-top: 32px; overflow-x: auto; }
.limits { width: 100%; min-width: 640px; border-collapse: collapse; border-top: 1px solid var(--green); background: var(--paper); }
.limits th, .limits td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.limits thead th { font-size: 16px; font-weight: 600; color: var(--muted); padding: 12px 18px; }
.limits thead tr:first-child th[colspan] { text-align: center; border-left: 1px solid var(--line); }
.limits thead tr:first-child th:first-child, .limits tbody th { text-align: left; }
.limits tbody th { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--green); }
.limits tbody td { font-family: var(--numf); font-size: 20px; font-weight: 600; }
.limits tbody td:nth-child(2) { font-size: 23px; font-weight: 800; color: var(--green); }
.limits tbody td:nth-child(3) { border-left: 1px solid var(--line); }
.ask-band { background: var(--green); color: var(--on-green); text-align: center; }
.ask-band h2 { color: var(--on-green); }
.ask-band .acts { justify-content: center; }
.ask-band .btn { border-color: var(--on-green); }
.ask-band .btn-fill { background: var(--on-green); color: var(--green); }
.ask-band .btn-fill:hover { background: #fff; }
.ask-band .btn-line { color: var(--on-green); }
.ask-band .btn-line:hover { background: var(--on-green); color: var(--green); }
.town-more { margin-top: 18px; align-self: flex-start; color: var(--on-green); border-bottom: 1px solid var(--gold); padding-bottom: 2px; font-weight: 600; }
.town-more:hover { border-bottom-color: var(--on-green); }
@media (max-width: 860px) {
  .row, .row:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .row:nth-child(even) .ph { order: 0; }
  .row .ph { aspect-ratio: 3 / 2; }
}

/* 자동 프로그램만 채우는 숨은 칸 · 보내는 중 단추 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: default; }

/* 센터 마크 (집 · 하트 · 손 — 명함 · 간판과 같은 것) */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { height: 46px; width: auto; flex: none; }
@media (max-width: 640px) { .logo { gap: 9px; } .logo img { height: 38px; } }

/* ── 서비스 다섯 페이지 ── */
.limits.narrow { min-width: 0; }
.limits.items td { text-align: left; white-space: normal; font-family: var(--sans); font-size: 18px; font-weight: 500; line-height: 1.75; color: var(--body); }
.limits.items tbody td:nth-child(2) { font-size: 18px; font-weight: 500; color: var(--body); }
.limits.items tbody th { white-space: nowrap; vertical-align: top; }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.strip a { display: block; margin: -22px -16px; padding: 22px 16px; transition: background .25s; }
.strip a:hover { background: var(--paper); }
.svc-grid strong a { border-bottom: 1px solid transparent; transition: border-color .25s; }
.svc-grid strong a:hover { border-bottom-color: var(--gold); }
.nap dd a { white-space: normal; }
@media (max-width: 860px) {
  .steps.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.five li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .steps.five li:nth-child(n+3) { margin-top: 26px; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .steps.five { grid-template-columns: minmax(0, 1fr); }
  .strip a { margin: -16px -8px; padding: 16px 8px; }
  .limits.narrow th, .limits.narrow td { padding: 14px 10px; }
  .limits.narrow tbody td { font-size: 17px; }
  .limits.narrow tbody td:nth-child(2) { font-size: 18px; }
}
/* 휴대폰에서 표 세 칸이 화면 안에 들어오게 */
@media (max-width: 640px) {
  .limits.narrow thead th { white-space: normal; padding: 10px 6px; font-size: 14.5px; line-height: 1.4; }
  .limits.narrow th, .limits.narrow td { padding: 13px 6px; }
  .limits.narrow tbody th { font-size: 17px; white-space: normal; }
  .limits.narrow tbody td, .limits.narrow tbody td:nth-child(2) { font-size: 16px; }
  .limits.items tbody td, .limits.items tbody td:nth-child(2) { font-size: 16.5px; }
}

.also h3 a { border-bottom: 1px solid color-mix(in srgb, var(--on-green) 40%, transparent); transition: border-color .25s; }
.also h3 a:hover { border-bottom-color: var(--gold); }

.town p + p { margin-top: 12px; }

/* 두 해를 나란히 보는 표 — 새 해 금액을 굵게 · 해 사이에 줄 */
.limits.yy tbody td:nth-child(2) { font-size: 20px; font-weight: 600; color: var(--body); }
.limits.yy tbody td:nth-child(3) { border-left: 0; }
.limits.yy tbody td:nth-child(4) { border-left: 1px solid var(--line); font-size: 23px; font-weight: 800; color: var(--green); }
