/* 공통 바닥 — 이 시안은 자기 눈금을 갖고 있어 layouts.css 의 눈금을 쓰지 않습니다. */
html { overflow-x: hidden; }
h1, h2, h3, h4 { line-height: 1.3; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 다나헌(danahun.com) — 자간 넓은 명조 로고 「다 나 헌_danahun」, 햄버거 하나. 사진 히어로에 흰 명조
   두 줄 + 테두리만 있는 버튼 → 가운데 따옴표 한 문장 → 사진 카드 셋(황토구들방·청정 자연·자연식 식단)
   → 「다나헌은」 긴 인사말 → 위치·예약문의 → 짧은 푸터. 글이 적고 여백이 넓은 한옥 요양 시설. */
/* 색 전환기(palette.js)가 색을 고르기 전에는 이 시안 본래의 색을 씁니다.
   .js-pal 이 붙으면 palettes.css 의 --primary 가 이깁니다. */
body:not(.js-pal) { --primary: #333333; --primary-dk: #111111; --primary-lt: #eeeeee; }
body { --ink: #333; --serif: "Gowun Batang", Batang, "Nanum Myeongjo", serif; }
body { color: var(--ink); font-size: 15px; }

.hd { position: relative; z-index: 20; background: #fff; }
.hd__in { display: flex; align-items: center; height: 92px; gap: 16px; }
.logo { font-family: var(--serif); font-size: 28px; letter-spacing: .5em; color: #222; white-space: nowrap; }
.logo small { font-family: "Pretendard Variable", sans-serif; font-size: 16px; letter-spacing: 0; color: #666; margin-left: -.4em; }
.burger { margin-left: auto; flex: none; width: 44px; height: 44px; padding: 11px 7px; display: grid; gap: 7px; cursor: pointer; }
.burger i { height: 2px; background: #333; transition: transform .2s, opacity .2s; }
.nv-t:focus-visible + .burger { outline: 2px solid #333; outline-offset: 2px; }
.nv { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #e5e5e5; box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 8px 0 16px; }
.nv a { display: block; width: min(1200px, 100% - 48px); margin-inline: auto; padding: 14px 0; font-family: var(--serif); font-size: 17px; letter-spacing: .12em; border-bottom: 1px solid #f0f0f0; }
.nv a:last-child { border-bottom: 0; }
.nv-t:checked ~ .nv { display: block; }
.nv-t:checked + .burger i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nv-t:checked + .burger i:nth-child(2) { opacity: 0; }
.nv-t:checked + .burger i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.hero { position: relative; height: 560px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(0,0,0,.3), rgba(0,0,0,0)), rgba(0,0,0,.3); }
.hero__in { position: relative; z-index: 2; padding: 0 20px; color: #fff; font-family: var(--serif); text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero__in p { font-size: 26px; letter-spacing: .3em; }
.hero__in h1 { color: #fff; font-family: var(--serif); font-size: 42px; letter-spacing: .28em; font-weight: 400; margin-top: 6px; }
.hero__btn { display: inline-block; margin-top: 30px; padding: 14px 40px; border: 1px solid rgba(255,255,255,.9); background: rgba(0,0,0,.18); color: #fff; font-family: var(--serif); font-size: 15px; letter-spacing: .5em; text-indent: .5em; }

.quote { text-align: center; font-family: var(--serif); font-size: 22px; padding: 80px 0 50px; color: var(--primary); }

.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 70px; }
.item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.item h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 18px 0 8px; }
.item p { font-size: 14px; color: #666; line-height: 1.8; }

.about { background: #f7f5f1; padding: 80px 0; }
.about__in { max-width: 860px; margin: 0 auto; text-align: center; }
.about h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: .1em; margin-bottom: 26px; }
.about p { line-height: 2.1; color: #555; }

.where { padding: 80px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.where h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: .1em; margin-bottom: 16px; }
.where p { line-height: 2; color: #555; font-size: 14.5px; }
.where__en { display: block; font-size: 13.5px; color: #6a6a6a; }
.where b { font-size: 24px; display: block; margin-top: 8px; color: var(--primary); font-family: var(--serif); letter-spacing: .06em; }
.map { grid-column: 1 / -1; height: 320px; position: relative; background-color: #efeee9;
  background-image:
    linear-gradient(transparent 56%, #fff 56%, #fff calc(56% + 14px), transparent calc(56% + 14px)),
    linear-gradient(90deg, transparent 38%, #fff 38%, #fff calc(38% + 12px), transparent calc(38% + 12px)),
    linear-gradient(90deg, transparent 72%, #fbfaf6 72%, #fbfaf6 calc(72% + 8px), transparent calc(72% + 8px)),
    linear-gradient(transparent 22%, #fbfaf6 22%, #fbfaf6 calc(22% + 8px), transparent calc(22% + 8px)),
    linear-gradient(135deg, transparent 60%, #dde7d3 60%, #dde7d3 78%, transparent 78%),
    linear-gradient(#e4e3dd 1px, transparent 1px), linear-gradient(90deg, #e4e3dd 1px, transparent 1px);
  background-size: auto, auto, auto, auto, auto, 50px 50px, 50px 50px; }
.map::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: 12px 0 0 -7px; background: #333; transform: rotate(45deg); }
.map::after { content: "브릿지 요양원"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); white-space: nowrap; background: #333; color: #fff; padding: 8px 16px; font-family: var(--serif); letter-spacing: .2em; font-size: 14px; }

.ft { border-top: 1px solid #e5e5e5; padding: 30px 0; font-size: 12.5px; color: #6a6a6a; text-align: center; line-height: 1.9; }
.ft .logo { font-size: 20px; display: block; margin-bottom: 8px; }
.ft__legal { font-size: 12px; color: #6a6a6a; }
@media (max-width: 860px) { .items, .where { grid-template-columns: 1fr; } .where { gap: 40px; } .hero__in h1 { font-size: 28px; } .hero__in p { font-size: 18px; } }
@media (min-width: 561px) and (max-width: 860px) { .item img { aspect-ratio: 16/9; } }
@media (max-width: 560px) {
  .hd__in { height: 72px; }
  .logo { font-size: 21px; letter-spacing: .36em; }
  .logo small { display: none; }
  .hero { height: 520px; }
  .hero__in p { font-size: 16px; letter-spacing: .2em; }
  .hero__in h1 { font-size: 26px; letter-spacing: .16em; }
  .hero__btn { padding: 13px 28px; }
  .quote { font-size: 19px; padding: 60px 0 40px; }
  .map { height: 240px; }
}

/* ── 원래 인라인 style 이던 자리 — CSP 때문에 클래스로 뺐습니다 ── */
