@font-face { font-family: 'Paperlogy'; font-style: normal; font-weight: 400; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-style: normal; font-weight: 600; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-style: normal; font-weight: 700; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-style: normal; font-weight: 900; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2'); }
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');

:root {
  --color-primary: #1B2A22;
  --color-secondary: #5C7A5E;
  --color-accent: #BE5B3C;
  --color-soft: #DCE3D6;
  --text-on-light: #1E2A20;
  --text-on-dark: #F6F1E7;
  --text-muted: #5B6B57;
  --bg-light: #F6F1E7;
  --bg-soft: var(--color-soft);
  --font-body: 'Paperlogy', 'Pretendard Variable', -apple-system, sans-serif;
  --font-display: 'Paperlogy', 'Pretendard Variable', -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius-card: 6px;
  --radius-btn: 8px;
  --shadow-card: 0 8px 24px rgba(27,42,34,0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-on-light);
  background: var(--bg-light);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
  .reveal, .proc-step { transition: none; opacity: 1; transform: none; }
  .btn, .card, .faq-icon, .faq-a { transition: none; }
}

body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}
p, h1, h2, h3, li { text-wrap: pretty; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
p { font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-btn); font-weight: 700;
  border: none; cursor: pointer; font-family: var(--font-body); font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--color-primary); color: var(--text-on-dark); }
.btn-accent { background: var(--color-accent); color: var(--text-on-light); }
.btn-outline { background: transparent; color: var(--text-on-dark); border: 2px solid rgba(246,241,231,.6); padding: 12px 26px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .card:hover, .svc-card:hover, .area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
  a.footer-link:hover { color: var(--color-accent); }
}
.btn:active { transform: translateY(-1px); }

.form-field {
  padding: 14px; border: 1px solid var(--bg-soft); border-radius: var(--radius-card);
  font-size: 1rem; font-family: var(--font-body);
}
.admin-login-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }

/* 그리드 (인라인 고정 그리드 금지 — 클래스로만 사용) */
.dp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dp-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dp-g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dp-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; align-items: center; }
@media (max-width: 1024px) { .dp-g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .dp-g2, .dp-g3, .dp-g4 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .dp-stat3 { grid-template-columns: 1fr; gap: 16px; } }

/* 카드 */
.card {
  background: #fff; border-radius: var(--radius-card); padding: 28px;
  box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease;
}
.card img { border-radius: calc(var(--radius-card) - 8px); margin-bottom: 16px; }

/* 카드 그리드 마지막 전환유도 카드 — 항상 시선이 먼저 가야 하므로 강조색 */
.card-cta {
  background: var(--bg-soft); border: 2px solid var(--color-accent); display: flex; align-items: center; justify-content: center;
  text-align: center; min-height: 100%;
}
.card-cta h3 { color: var(--color-accent); margin: 0; }

/* 카드 뱃지 — flex (grid 아님, 폭 제각각) */
.card-badges { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 768px) {
  .card-badges { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.badge {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-btn);
  background: var(--bg-soft); color: var(--text-on-light); font-size: .85rem; font-weight: 600;
}

/* 테이블 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--bg-soft); text-align: left; }
th { background: var(--bg-soft); font-family: var(--font-display); }

/* 히어로 */
.hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; animation: hero-fade 15s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
@keyframes hero-fade {
  0% { opacity: 0; transform: scale(1.04); }
  5% { opacity: 1; transform: scale(1); }
  30% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes hero-drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-content {
  position: relative; z-index: 2; padding: 48px 0 56px;
  width: 100%;
}
.hero-content .container { padding-top: 120px; position: relative; }
.hero-sub { color: var(--color-accent); font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; font-family: var(--font-display); text-transform: uppercase; font-size: .85rem; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.hero h1 { color: var(--text-on-dark); text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero-content p { text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.hero-cta { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.phone-display {
  display: inline-block; margin-top: 16px; font-family: var(--font-display);
  font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--color-primary);
}

/* 스크롤 리빌 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.stagger.is-visible > * { transition-delay: calc(var(--i, 0) * .08s); }

/* 프로세스 — 연결선은 .proc-step::after (모든 스텝이 flex:1로 폭이 동일하므로
   left:50%; width:100%만으로 좌표 계산 없이 항상 다음 스텝 중심과 맞아떨어짐).
   선 색은 배경색(var(--bg-soft))과 절대 겹치지 않는 고정 잉크색 — bg-soft 섹션 위에서
   선이 배경에 묻혀 끊겨 보이던 문제의 원인이었음.
   .proc-list에 gap을 주면 그만큼 선이 못 미치므로 금지, 간격은 .proc-step padding으로. */
.proc-list { display: flex; justify-content: space-between; margin: 44px 0; }
.proc-step {
  flex: 1; text-align: center; position: relative; padding: 8px 14px;
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease;
}
.proc-list.reveal { opacity: 1; transform: none; } /* 컨테이너는 스크롤 트리거 훅으로만 사용, 자체 페이드 없음 */
.proc-list.reveal.is-visible .proc-step { opacity: 1; transform: none; }
.proc-list.reveal.is-visible .proc-step:nth-child(1) { transition-delay: .05s; }
.proc-list.reveal.is-visible .proc-step:nth-child(2) { transition-delay: .2s; }
.proc-list.reveal.is-visible .proc-step:nth-child(3) { transition-delay: .35s; }
.proc-list.reveal.is-visible .proc-step:nth-child(4) { transition-delay: .5s; }
.proc-num {
  width: 64px; height: 64px; border-radius: 50%; background: var(--color-accent); color: var(--text-on-dark);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 800;
  font-size: 1.4rem; box-shadow: 0 6px 16px rgba(232,85,31,.35);
  margin: 0 auto 14px; position: relative; z-index: 1;
}
.proc-step p { font-size: 1rem; font-weight: 700; color: var(--text-on-light); margin: 0; }
.proc-step::after {
  content: ''; position: absolute; top: 40px; left: 50%; width: 100%;
  height: 2px; background: rgba(27,42,34,.18);
}
.proc-step:last-child::after { display: none; }
@media (max-width: 768px) {
  .proc-list { flex-direction: column; gap: 10px; }
  .proc-step {
    display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 0;
    opacity: 1; transform: none; /* 모바일 세로 목록은 즉시 표시, 스태거는 데스크톱 가로형 전용 */
  }
  .proc-num { margin: 0; flex-shrink: 0; }
  .proc-step::after { display: none; }
}

/* FAQ 아코디언 */
.faq-list { margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--bg-soft); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; font-weight: 700; background: none; border: none;
  width: 100%; text-align: left; font-family: var(--font-body); font-size: 1rem; color: var(--text-on-light);
}
.faq-icon { transition: transform .25s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 20px; margin: 0; }

/* 카운터 */
.counter-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--color-primary); }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(246,241,231,.96);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1px solid var(--bg-soft);
}
.hdr-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.hdr-logo { display: inline-flex; align-items: center; gap: 10px; }
.hdr-logo-icon { border-radius: 50%; flex-shrink: 0; }
.hdr-logo-text { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--color-primary); line-height: 1.15; }
.hdr-logo-text small { font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .04em; color: var(--text-muted); }
.hdr-nav { display: flex; gap: 28px; align-items: center; }
.hdr-nav a { font-weight: 600; }
.hdr-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; width: 44px; height: 44px; padding: 0; }
.hamburger span { width: 24px; height: 2px; background: var(--color-primary); }
#mob-nav {
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100%;
  background: #fff; z-index: 200; padding: 24px; transition: right .3s ease; box-shadow: -4px 0 20px rgba(0,0,0,.1);
}
#mob-nav.open { right: 0; }
#mob-nav a { display: block; padding: 14px 0; font-weight: 700; border-bottom: 1px solid var(--bg-soft); }
#mob-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 150; }
#mob-overlay.open { display: block; }

@media (max-width: 768px) {
  .hdr-nav, .hdr-phone { display: none; }
  .hamburger { display: flex; }
  body { padding-bottom: 64px; }
}

/* 모바일 하단 스티키 CTA */
#mob-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--color-primary); padding: 10px 16px; box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}
#mob-bar a { display: block; text-align: center; color: #fff; font-weight: 700; padding: 14px 10px; }
@media (max-width: 768px) { #mob-bar { display: block; } #float-cta { display: none; } }

#float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  background: var(--color-accent); color: var(--text-on-light); padding: 14px 22px;
  border-radius: var(--radius-btn); font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* 푸터 */
.site-footer { background: var(--color-primary); color: var(--text-on-dark); padding: 56px 0 28px; }
.site-footer h4 { color: var(--color-accent); font-family: var(--font-display); font-size: 1rem; margin-bottom: 14px; }
.site-footer a, .site-footer p { color: rgba(255,255,255,.82); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15);
  font-size: .8rem; color: rgba(255,255,255,.55);
}
