/* 공통 바닥 — 이 시안은 자기 눈금을 갖고 있어 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); }

/* 굿모닝재활요양원(굿모닝재활요양원.com, 워드프레스 The7 테마) — 얇은 흰 머리(붉은 문장 로고 + 햄버거),
   전체 폭 슬라이더 → 가운데 정렬 「믿고 안심하는」 소개 글 → 검은 바탕 사진 타일 6장(2×3), 사진 위에
   흰 제목·설명이 얹힘 → 「좋은 요양원이란」 한 문단 + 알림마당 목록 → 연회색 푸터. 제목 25px. */
/* 색 전환기(palette.js)가 색을 고르기 전에는 이 시안 본래의 색을 씁니다.
   .js-pal 이 붙으면 palettes.css 의 --primary 가 이깁니다. */
body:not(.js-pal) { --primary: #a4262c; --primary-dk: #7d1c21; --primary-lt: #f6e6e7; }
body { --red: var(--primary); --ink: #222; }
body { color: var(--ink); font-size: 15px; word-break: keep-all; overflow-wrap: break-word; }

.hd { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 #eee; }
.hd__in { display: flex; align-items: center; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--ink); }
.logo i { width: 44px; height: 36px; position: relative; }
.logo i::before { content: "A"; font-family: "Gowun Batang", Batang, serif; font-style: italic; font-size: 38px; color: var(--red); position: absolute; left: 0; top: -12px; }
.logo i::after { content: ""; position: absolute; left: 2px; right: 0; bottom: 4px; height: 2px; background: var(--red); border-radius: 2px; }
.menu { margin-left: auto; position: relative; }
.burger { width: 44px; height: 44px; padding: 12px 8px; display: grid; align-content: space-between; cursor: pointer; list-style: none; }
.burger::-webkit-details-marker { display: none; }
.burger i { height: 2px; background: #333; transition: transform .2s ease, opacity .2s ease; }
.menu[open] .burger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu[open] .burger i:nth-child(2) { opacity: 0; }
.menu[open] .burger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu__nav { position: absolute; right: 0; top: calc(100% + 9px); width: 240px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.15); border-top: 3px solid var(--red); display: grid; padding: 8px 0; }
.menu__nav a { padding: 12px 22px; font-size: 16px; font-weight: 600; color: var(--ink); }
.menu__nav a:hover { background: var(--primary-lt); color: var(--primary-dk); }

.slider { position: relative; height: 695px; overflow: hidden; background: #000; }
.slider img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.slider__arr { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 44px; background: rgba(0,0,0,.4); color: #fff; display: grid; place-items: center; font-size: 20px; }
.slider__arr--l { left: 0; } .slider__arr--r { right: 0; }
.slider::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.35) 55%, transparent); pointer-events: none; }
.slider__cap { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 90px; text-align: center; color: #fff; font-size: 34px; font-weight: 500; letter-spacing: .06em; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.slider__cap b { font-weight: 800; }
.slider__arr { z-index: 1; }

.intro { text-align: center; padding: 90px 0 50px; }
.intro h2 { font-size: 25px; font-weight: 700; margin-bottom: 18px; }
.intro p { text-wrap: pretty; max-width: 720px; margin: 0 auto; color: #666; line-height: 1.9; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 20px 0 60px; }
.tile { position: relative; background: #000; aspect-ratio: 712/479; overflow: hidden; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.45) 55%, rgba(0,0,0,.1)); pointer-events: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: transform .6s ease, opacity .4s ease; }
.tile:hover img { transform: scale(1.06); opacity: .5; }
.tile__t { position: absolute; z-index: 1; left: 30px; right: 30px; bottom: 30px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.tile__t h2 { color: #fff; font-size: 25px; font-weight: 700; margin-bottom: 8px; }
.tile__t p { font-size: 15px; line-height: 1.6; color: #fff; text-wrap: balance; }

.state { padding: 60px 0 80px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; border-top: 1px solid #eee; }
.state h2 { font-size: 25px; margin-bottom: 14px; }
.state p { color: #666; line-height: 1.9; }
.notice h3 { font-size: 18px; margin-bottom: 12px; display: flex; justify-content: space-between; }
.notice h3 span { font-size: 13px; color: #6f6f6f; font-weight: 400; }
.notice li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.notice li em { font-style: normal; color: #6f6f6f; white-space: nowrap; }

.ft { background: #f6f6f6; color: #666666; font-size: 13px; line-height: 1.9; padding: 40px 0; }
.ft .wrap { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.ft__info p span { white-space: nowrap; }
.ft .logo { flex: none; white-space: nowrap; }
.ft__legal li { text-wrap: pretty; }
.ft b { color: #333; }
.ft__legal { margin-top: 8px; color: #6f6f6f; font-size: 12px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 900px) {
  .state { grid-template-columns: 1fr; gap: 40px; }
  .slider { height: 420px; }
  .slider__cap { font-size: 22px; bottom: 44px; letter-spacing: .02em; line-height: 1.45; }
  .slider__cap b { display: inline-block; }
  .intro { padding: 60px 0 36px; }
  .ft .wrap { flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .tile__t { left: 22px; right: 22px; bottom: 22px; }
  .tile__t h2 { font-size: 22px; }
  .slider { height: 380px; }
}

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