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

/* 三重福祉会(miefukushikai.jp) — 미색 바탕(#f8f5f0)에 흰 머리, 사진 히어로 오른쪽에 세로 제목 38px
   「住み慣れたこの街で あなたとつながる」. 절마다 파스텔 얼룩(분홍·하늘·노랑)이 배경으로 깔리고 영문 큰
   제목(NEWS·FACILITY·SERVICE·RECRUIT) → 소식 목록 → 시설 7타일 → 서비스 계단식 카드 셋(01·02·03)
   → 채용 띠(세로 글 + 사진) → 갈색 푸터 위에 일러스트 띠. 그림 자리는 색 얼룩과 사진으로. */
/* 색 전환기(palette.js)가 색을 고르기 전에는 이 시안 본래의 색을 씁니다.
   .js-pal 이 붙으면 palettes.css 의 --primary 가 이깁니다. */
body:not(.js-pal) { --primary: #c9645f; --primary-dk: #6b4a2b; --primary-lt: #f6d3d3; }
body { --pg: #f8f5f0; --ink: #171515; --pink: var(--primary-lt); --sky: #cfe8ef; --yel: #f9dd9a; --brown: var(--primary-dk); }
body { background: var(--pg); color: var(--ink); }
h1, h2, h3 { color: var(--ink); font-weight: 700; }
.blob { position: absolute; border-radius: 47% 53% 42% 58% / 55% 40% 60% 45%; z-index: 0; }

.hd { position: sticky; top: 0; z-index: 50; background: #fff; }
.hd__in { display: flex; align-items: center; height: 110px; gap: 30px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.logo i { flex: none; width: 40px; height: 28px; border-radius: 50% 50% 0 0; background: #c74c48; }
.nv { margin-left: auto; display: flex; gap: 24px; font-size: 13px; }
.nv a { white-space: nowrap; }
.hd__btns { display: flex; gap: 10px; }
.hd__btns a { font-size: 12px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hd__btns i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; background: var(--ink); }
.hd__btns a:last-child i { background: #c74c48; }
.burger { display: none; flex: none; width: 44px; height: 44px; padding: 13px 9px; gap: 6px; cursor: pointer; }
.burger i { height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nv-t:focus-visible ~ .burger { outline: 2px solid var(--ink); outline-offset: 2px; }
.nv-t:checked ~ .burger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nv-t:checked ~ .burger i:nth-child(2) { opacity: 0; }
.nv-t:checked ~ .burger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 1080px) { .hd__in { gap: 20px; } .nv { gap: 16px; } }

.kv { position: relative; height: 890px; padding: 24px; }
.kv__pic { position: relative; height: 100%; border-radius: 20px; overflow: hidden; width: calc(100% - 200px); }
.kv__pic img { width: 100%; height: 100%; object-fit: cover; }
.kv h1 { position: absolute; right: 60px; top: 60px; writing-mode: vertical-rl; font-size: 38px; letter-spacing: .2em; line-height: 1.8; }
.kv__deco { position: absolute; right: 70px; bottom: 60px; display: flex; gap: 10px; }
.kv__deco i { width: 40px; height: 60px; border-radius: 50% 50% 10% 10%; background: #f2a33a; }
.kv__deco i:nth-child(2) { background: #6cb257; height: 80px; }

.sec { position: relative; padding: 100px 0; overflow: hidden; }
.big { font-size: 60px; letter-spacing: .04em; line-height: 1; }
.big small { display: block; font-size: 14px; letter-spacing: .1em; margin-top: 8px; }
.news { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: center; }
.news li { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid #ddd; font-size: 14px; align-items: center; }
.news em { flex: none; font-style: normal; font-size: 12px; } .news span { flex: none; background: #c74c48; color: #fff; font-size: 12px; padding: 2px 10px; }
.news__t { position: relative; text-align: center; }
.news__t .blob { width: 380px; height: 300px; background: var(--pink); left: -30px; top: -80px; }
.news__t h2 { position: relative; writing-mode: vertical-rl; margin: 0 auto; }
.news__t .circ { position: relative; margin-top: 16px; }
.circ { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.circ i { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; }

.fac .blob { width: 520px; height: 360px; background: var(--sky); left: -60px; top: 40px; }
.fac__h { position: relative; margin-bottom: 50px; }
.fac__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fac__grid a { font-size: 13px; font-weight: 700; }
.fac__grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; margin-bottom: 8px; border-radius: 4px; }
.fac__grid span { display: block; font-size: 12px; background: var(--ink); color: #fff; width: fit-content; padding: 2px 10px; margin-top: -26px; margin-bottom: 14px; position: relative; margin-left: 10px; }

.svc .blob { width: 480px; height: 360px; background: var(--yel); right: -60px; top: 20px; }
.svc__h { position: relative; text-align: right; margin-bottom: 60px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.step { background: #fff; border-radius: 16px; padding: 40px 30px 30px; text-align: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.step:nth-child(2) { margin-top: 50px; } .step:nth-child(3) { margin-top: 100px; }
.step__n { position: absolute; right: 20px; top: 20px; color: #9d6925; font-size: 22px; font-weight: 700; }
.step__n small { display: block; font-size: 12px; letter-spacing: .1em; writing-mode: vertical-rl; margin: 4px auto 0; }
.step img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 auto 20px; }
.step h3 { font-size: 25px; margin-bottom: 20px; }
.step a { display: inline-block; padding: 10px 24px; border: 1px solid var(--ink); border-radius: 999px; font-size: 12px; font-weight: 700; }
.step small { display: block; margin-top: 12px; font-size: 12px; color: #8a5c20; }

.recruit { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 30px; align-items: stretch; }
.recruit h2 { writing-mode: vertical-rl; font-size: 60px; line-height: 1; }
.recruit h2 small { font-size: 14px; letter-spacing: .1em; margin-right: 8px; }
.recruit__pic { position: relative; height: 420px; border-radius: 16px; overflow: hidden; }
.recruit__pic::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.05) 38%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.62) 100%); }
.recruit__pic img { width: 100%; height: 100%; object-fit: cover; }
.recruit__pic div { position: absolute; left: 40px; top: 40px; color: #fff; font-size: 28px; line-height: 1.6; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.recruit__pic p { position: absolute; left: 40px; bottom: 40px; font-size: 14px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); line-height: 1.8; }
.recruit__pic .circ { position: absolute; right: 40px; bottom: 40px; color: #fff; } .recruit__pic .circ i { background: #fff; color: var(--ink); }

.strip { height: 90px; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 60px; }
.strip i { width: 40px; height: 60px; border-radius: 50% 50% 10% 10%; background: #6cb257; }
.strip i:nth-child(even) { width: 60px; height: 40px; border-radius: 4px; background: #e8a33a; }
.strip i:nth-child(3n) { width: 30px; height: 30px; border-radius: 50%; background: #c74c48; }
.ft { background: var(--brown); color: #fff; padding: 60px 0 30px; }
.ft .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; font-size: 12px; }
.ft b { display: block; font-size: 16px; margin-bottom: 10px; }
.ft a { display: block; line-height: 2.2; }
.ft__legal { margin-top: 16px; font-size: 12px; line-height: 1.9; opacity: .85; }
.ft small { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 30px; opacity: .85; font-size: 12px; }
.totop { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #fff; background: var(--brown); color: #fff; display: grid; place-items: center; }
@media (max-width: 900px) {
  .nv { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; padding: 4px 24px 16px; font-size: 16px; box-shadow: 0 12px 24px rgba(0,0,0,.08); border-top: 1px solid #eee; }
  .nv a { padding: 14px 0; border-bottom: 1px solid #f0ece6; }
  .nv a:last-child { border-bottom: 0; }
  .nv-t:checked ~ .nv { display: flex; }
  .burger { display: grid; }
  .hd__in { height: 76px; gap: 12px; }
  .hd__btns { margin-left: auto; }
  .kv { height: 560px; }
  .kv__pic { width: calc(100% - 92px); }
  .kv h1 { right: 18px; top: 44px; font-size: 22px; letter-spacing: .14em; }
  .kv__deco { right: 22px; bottom: 44px; gap: 5px; }
  .kv__deco i { width: 20px; height: 30px; }
  .kv__deco i:nth-child(2) { height: 40px; }
  .news, .steps, .recruit, .ft .wrap { grid-template-columns: 1fr; }
  .news { gap: 24px; }
  .news__t { order: -1; text-align: left; }
  .news__t br { display: none; }
  .news__t .blob { width: 260px; height: 170px; left: -60px; top: -50px; }
  .news__t h2 { writing-mode: horizontal-tb; margin: 0; }
  .fac__grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .step:nth-child(n) { margin-top: 0; }
  .recruit h2 { writing-mode: horizontal-tb; }
  .recruit h2 small { margin-right: 0; }
  .big { font-size: 40px; }
  .sec { padding: 72px 0; }
  .fac__h, .svc__h { margin-bottom: 32px; }
  .recruit__pic { height: 440px; }
  .recruit__pic div { left: 24px; top: 28px; font-size: 22px; }
  .recruit__pic p { left: 24px; right: 24px; bottom: 84px; }
  .recruit__pic .circ { left: 24px; right: auto; bottom: 28px; }
  .strip { height: 64px; padding: 0 16px; }
  .strip i:nth-child(n+7) { display: none; }
}
@media (max-width: 480px) {
  .hd__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hd__btns i { width: 36px; height: 36px; }
}
@media (max-width: 400px) {
  .hd__in { gap: 8px; }
  .logo { gap: 8px; }
  .logo i { width: 30px; height: 22px; }
  .hd__btns { gap: 8px; }
}

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