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

/* ほのぼの荘(honobonoso.jp) — 초록·주황·노랑 세 색. 머리 위에 초록 곡선 띠와 주황 모서리 띠, 오른쪽에
   전화·메일 알약 둘. 히어로는 건물 사진 위에 세로 글이 든 흰 카드 → 「WELCOME」 기울인 사진 셋과
   짧은 소개 → 시설안내(연회색 바탕, 사진 카드에 색 꼬리표) → 소식(손 사진 바탕 + 목록 + SNS 상자)
   → 채용(연노랑, 잎 모양) → 문의 초록 띠에 흰 알약 둘 → 연회색 푸터. */
/* 색 전환기(palette.js)가 색을 고르기 전에는 이 시안 본래의 색을 씁니다.
   .js-pal 이 붙으면 palettes.css 의 --primary 가 이깁니다. */
body:not(.js-pal) { --primary: #68ba5a; --primary-dk: #3d6f34; --primary-lt: #e6f3e2; }
body { --g: var(--primary); --or: #f39a2b; --y: #f6d33a; --ink: #000; }
body { color: var(--ink); font-size: 15px; }
h1, h2, h3 { color: var(--ink); }

.hd { position: sticky; top: 0; z-index: 50; background: #fff; overflow: hidden; }
.hd::before { content: ""; position: absolute; left: 0; top: -74px; width: 40%; height: 100px; background: var(--g); border-radius: 0 0 100% 0; opacity: .9; }
.hd::after { content: ""; position: absolute; right: 0; top: -66px; width: 26%; height: 90px; background: var(--or); border-radius: 0 0 0 100%; }
.hd__in { position: relative; z-index: 1; display: flex; align-items: center; min-height: 98px; gap: 30px; }
.hd__menu { display: contents; }
.hd__ham { display: none; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.logo i { width: 34px; height: 34px; background: radial-gradient(circle at 30% 30%, var(--y) 30%, var(--g) 32%); border-radius: 50% 50% 50% 0; }
.logo small { display: block; font-size: 12px; color: #555; font-weight: 400; }
.nv { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nv-fb { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #4267b2; color: #fff; font-weight: 700; }
.hd__btns { margin-left: auto; display: flex; gap: 10px; }
.hd__btns a { color: #1f1f1f; font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 999px; background: var(--or); }
.hd__btns a:last-child { background: var(--g); }

.hero { position: relative; height: 700px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero__card { position: absolute; left: 12%; top: 90px; background: #fff; padding: 30px 22px; writing-mode: vertical-rl; font-size: 34px; font-weight: 700; line-height: 1.4; letter-spacing: .1em; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.hero__card mark { background: var(--y); }
.hero__leaf { position: absolute; left: 20%; bottom: 40px; width: 90px; height: 60px; background: linear-gradient(90deg, var(--g) 50%, var(--y) 50%); border-radius: 100% 0 100% 0; }

.sec { padding: 80px 0; }
.sec__t { text-align: center; font-size: 15px; font-weight: 700; margin-bottom: 40px; }
.sec__t small { display: block; font-size: 12px; letter-spacing: .2em; color: var(--primary-dk); margin-top: 4px; }
.welcome { text-align: center; }
.welcome p { font-size: 15px; line-height: 2; margin-bottom: 20px; }
.welcome__pics { display: flex; justify-content: center; gap: 30px; margin: 40px 0 30px; }
.welcome__pics img { width: 240px; aspect-ratio: 4/3; object-fit: cover; border: 6px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.welcome__pics img:nth-child(1) { transform: rotate(-5deg); } .welcome__pics img:nth-child(3) { transform: rotate(6deg); }
.bt { display: inline-block; padding: 12px 30px; border: 1px solid #333; font-size: 13px; font-weight: 700; }
.bt::after { content: " ▶"; font-size: 10px; }
.stripe { height: 8px; background: linear-gradient(90deg, var(--g) 33%, var(--y) 33% 66%, var(--or) 66%); }

.fac { background: #f5f5f5; }
.fac__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.fac__grid a { position: relative; text-align: center; font-size: 15px; font-weight: 700; }
.fac__grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; margin-bottom: 12px; }
.fac__grid span { position: absolute; left: 14px; top: -10px; color: #1f1f1f; padding: 6px 12px; font-size: 12px; background: var(--g); clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%); padding-bottom: 12px; }
.fac__grid a:nth-child(2) span { background: var(--y); color: #333; } .fac__grid a:nth-child(3) span { background: var(--or); color: #1f1f1f; }
.fac__grid small { display: block; font-size: 13px; color: #555; font-weight: 400; }

.news { position: relative; }
.news::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(18,22,16,.62), rgba(18,22,16,.62)), url("/portfolio/assets/img/hands-w.jpg") center / cover; }
.news__in { position: relative; display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.news__in .sec__t { text-align: left; color: #fff; font-size: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.5); } .news__in .sec__t small { color: #fff; }
.news li { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; font-size: 14px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); flex-wrap: wrap; }
.news li span { background: var(--g); color: #1f1f1f; text-shadow: none; font-size: 12px; font-weight: 700; padding: 3px 8px; }
.news li b { width: 100%; font-size: 16px; }
.news ul { margin-bottom: 28px; }
.sns { background: #fff; padding: 10px; font-size: 14px; }
.sns__h { background: #4267b2; color: #fff; padding: 8px; margin-bottom: 8px; }
.sns__p { border: 1px solid #ddd; padding: 8px; margin-bottom: 8px; line-height: 1.6; }

.recruit { background: #feffe5; position: relative; overflow: hidden; text-align: center; }
.recruit .leaf { position: absolute; width: 140px; height: 90px; border-radius: 100% 0 100% 0; }
.recruit .leaf:nth-child(1) { left: 10%; top: 40px; background: var(--g); } .recruit .leaf:nth-child(2) { left: 16%; top: 110px; background: var(--y); transform: rotate(40deg); }
.recruit .leaf:nth-child(3) { right: 10%; top: 60px; background: var(--or); transform: rotate(-30deg); } .recruit .leaf:nth-child(4) { right: 18%; top: 130px; background: var(--g); transform: rotate(60deg); }
.recruit h2 { writing-mode: vertical-rl; margin: 0 auto 20px; font-size: 34px; letter-spacing: .3em; color: var(--primary-dk); font-weight: 700; }
.ft__legal { line-height: 1.8; }
.ft__addr span { white-space: nowrap; }
.cta { background: var(--g); padding: 60px 0; }
.cta__box { background: #fff; border-radius: 16px; padding: 34px 40px; display: flex; align-items: center; gap: 40px; }
.cta__box h3 { font-size: 18px; margin-bottom: 6px; } .cta__box p { font-size: 15px; }
.cta__btns { margin-left: auto; display: grid; gap: 10px; }
.cta__btns a { border: 2px solid var(--g); border-radius: 999px; padding: 10px 24px; font-size: 14px; text-align: center; font-weight: 700; }
.cta__btns a::before { content: "● "; color: var(--primary-dk); }
.ft { background: #f8f8f8; padding: 30px 0; font-size: 14px; }
.ft .wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.ft nav { margin-left: auto; display: flex; gap: 16px; }
.ft small { width: 100%; text-align: center; color: #5f5f5f; font-size: 12px; }
.totop { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--g); color: #1f1f1f; display: grid; place-items: center; }
@media (max-width: 900px) { .news__in { grid-template-columns: 1fr; } .fac__grid { gap: 16px; } .welcome__pics { flex-wrap: wrap; } .hero { height: 480px; } .hero__card { font-size: 22px; } .cta__box { flex-direction: column; } .cta__btns { margin: 0; } }

/* ── 원래 인라인 style 이던 자리 — CSP 때문에 클래스로 뺐습니다 ── */
.si-1 { background:#fff; }
.si-2 { font-size:14px;letter-spacing:.08em;color:#555;margin-bottom:24px; }
.si-2 span { white-space: nowrap; }
.si-3 { font-size:12px;letter-spacing:.2em;color:var(--primary-dk); }

.nv a, .hd__btns a { white-space: nowrap; }
@media (max-width: 1100px) { .hd__in { gap: 16px; } .nv { gap: 14px; } .hd__btns { gap: 8px; } .hd__btns a { padding: 9px 12px; } }

/* ── 좁은 화면: 머리는 로고 + 메뉴 단추, 펼치면 메뉴와 문의 단추 ── */
@media (max-width: 900px) {
  .hd__in { min-height: 68px; gap: 12px; flex-wrap: wrap; }
  .hd::before { top: -90px; } .hd::after { top: -78px; }
  .hd__ham { display: grid; align-content: center; gap: 5px; margin-left: auto; width: 44px; height: 44px; padding: 0 11px; border-radius: 50%; background: var(--g); cursor: pointer; }
  .hd__ham i { display: block; height: 2px; background: #1f1f1f; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .hd__tg:focus-visible + .hd__ham { outline: 2px solid #1f1f1f; outline-offset: 2px; }
  .hd__tg:checked + .hd__ham i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hd__tg:checked + .hd__ham i:nth-child(2) { opacity: 0; }
  .hd__tg:checked + .hd__ham i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hd__menu { display: none; width: 100%; padding: 4px 0 18px; }
  .hd__tg:checked ~ .hd__menu { display: block; }
  .nv { flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; border-top: 1px solid #e5e5e5; }
  .nv a { padding: 13px 4px; border-bottom: 1px solid #e5e5e5; }
  .nv .nv-fb { width: 36px; height: 36px; padding: 0; margin-top: 12px; border: 0; }
  .hd__btns { margin: 14px 0 0; display: grid; gap: 10px; }
  .hd__btns a { text-align: center; padding: 12px 18px; font-size: 15px; }
  .recruit .leaf { width: 84px; height: 54px; }
  .recruit .leaf:nth-child(1) { left: -18px; top: 30px; } .recruit .leaf:nth-child(2) { display: none; }
  .recruit .leaf:nth-child(3) { right: -18px; top: 50px; } .recruit .leaf:nth-child(4) { display: none; }
  .cta__box { padding: 30px 24px; gap: 24px; text-align: center; }
  .cta__btns { width: 100%; }
  .ft .wrap { justify-content: center; gap: 18px; }
  .ft nav { margin: 0; flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
  .welcome__pics { gap: 18px; }
}
@media (max-width: 600px) {
  .fac__grid { grid-template-columns: 1fr; gap: 30px; }
  .welcome__pics img { width: min(240px, 70%); }
}
