/* 사이트 공통 스타일 — 색은 [사이트 설정]의 메인·포인트·배경 색이 --main / --point / --bg 로 들어온다 */
:root {
  --main: #16284c;
  --point: #b79b6e;
  --bg: #f7f5f0;
  --text: #222;
  --muted: #5f6670;
  --line: #e6dccb;
  --card: #f6f6f6;
  --soft: #f3ece0;
  --link: #1e73be;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -0.02em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 100; background: #fff; padding: 8px 12px; }
.wrap { max-width: 1200px; margin: 0 auto; }

/* 상단 */
.site-header { background: #fff; }
.header-in { max-width: 1200px; margin: 0 auto; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-title { font-size: 25px; font-weight: 700; color: #222; letter-spacing: -0.02em; }
.main-nav a { color: var(--link); font-size: 15px; padding: 0 20px; }
.main-nav a:hover { color: #000; }

/* 본문 상자 */
.site-main { padding-top: 20px; }
.box-article { background: #fff; padding: 40px; margin-bottom: 20px; }

/* 글 카드 6개 */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); display: flex; flex-direction: column; margin: 0; }
.card-img { display: block; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.3s; }
.card-img:hover img { transform: scale(1.03); }
.card-body { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.card-title { font-size: 24px; font-weight: 400; line-height: 1.45; margin: 0 0 15px; }
.card-title a:hover { color: var(--link); }
.card-date { font-size: 14px; font-weight: 500; color: #333; margin: 0 0 15px; }
.btn-more { display: inline-block; margin-top: auto; background: #55555e; color: #fff; border-radius: 999px; padding: 10px 20px; font-size: 16px; line-height: 1.3; }
.btn-more:hover { background: #3f4047; }

/* 글 카드가 3의 배수가 아니라 마지막 줄에 1개만 남으면 가운데에 둔다 */
.post-grid > .card:last-child:nth-child(3n + 1) { grid-column: 2; }
.sep { border: 0; border-top: 2px solid #e8e8e8; margin: 40px 0; }

/* 지역별 안내 카드 */
.area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.area-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.area-card-wrap { display: flex; }
.area-card { display: block; width: 100%; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--main); border-radius: 16px; padding: 22px 20px; transition: transform 0.2s, border-color 0.2s; }
.area-card:hover { transform: translateY(-3px); border-color: var(--point); }
.area-card h3 { font-size: 20px; margin: 0 0 6px; color: var(--main); }
.area-card p { margin: 0; color: #666; font-size: 14.5px; }

/* 홈 본문 글 */
.home-article { max-width: 860px; margin: 0 auto; }
.home-article .prose h2 { font-size: 30px; margin-top: 0; text-align: center; }
.home-article .prose h3 { color: var(--main); }

/* 지역 페이지의 지도 */
.single .map-block { margin: 36px 0 0; }

.foot-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 14px 0 0; }
.foot-areas a { color: #cfd4da; text-decoration: underline; text-underline-offset: 3px; }
.foot-areas a:hover { color: #fff; }

/* 홈 강조 배너 (전국 큰 주수 상담 등) */
.hl-banner { display: grid; grid-template-columns: 320px 1fr; margin-top: 40px; background: var(--main); color: #fff; border-radius: 22px; overflow: hidden; }
.hl-img a { display: block; height: 100%; }
.hl-img img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hl-body { padding: 36px 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hl-eyebrow { display: inline-block; background: var(--point); color: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.hl-title { font-size: 34px; margin: 0 0 12px; color: #fff; letter-spacing: -0.03em; }
.hl-text { color: rgba(255, 255, 255, 0.85); margin: 0 0 24px; }
.hl-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* 페이지 이미지 · 지도 */
.page-images { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.page-img { margin: 0; width: 100%; max-width: 800px; }
.page-img img { width: 100%; }
.map-block { margin-top: 40px; }
.map-block iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-info { padding: 16px 0 0; }
.map-info strong { font-size: 18px; color: var(--main); }
.map-info p { margin: 4px 0 0; color: var(--muted); }
.map-note { color: var(--point); font-weight: 700; }

/* 안내 영역 */
.ag { color: #1f2933; margin-bottom: 20px; }
.ag-hero { background: #fff; padding: 70px 40px 44px; }
.ag-hero h1 { font-size: 44px; line-height: 1.25; margin: 0 0 18px; color: #161616; letter-spacing: -0.04em; }
.hero-t2 { color: var(--main); }
.hero-lead { font-size: 18px; color: #555; max-width: 780px; margin: 0; }
.ag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.ag-card-wrap { display: flex; }
/* 카드 수가 3의 배수가 아니라 마지막 줄에 1개만 남으면 가로로 꽉 채운다 */
.ag-grid > .ag-card-wrap:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.ag-card { display: block; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04); transition: transform 0.2s, border-color 0.2s; }
.ag-card:hover { transform: translateY(-3px); border-color: var(--point); }
.num { display: inline-block; background: var(--soft); color: var(--main); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 14px; line-height: 1.4; margin-bottom: 12px; }
.ag-card h2, .ag-card h3 { font-size: 22px; margin: 0 0 6px; color: #222; }
.ag-card p { margin: 0; color: #666; font-size: 15px; }
.ag-sec { padding: 56px 40px; }
.ag-light { background: #fff; }

.ag-cta { background: var(--main); color: #fff; border-radius: 26px; text-align: center; padding: 44px 24px; }
.ag-cta h2 { font-size: 34px; margin: 0 0 10px; color: #fff; }
.cta-text { color: rgba(255, 255, 255, 0.85); margin: 0 0 22px; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ag-btn { display: inline-block; background: #fff; color: var(--main); padding: 14px 26px; border-radius: 12px; font-weight: 800; }
.ag-btn:hover { background: var(--soft); }
.ag-btn.kakao { background: #fee500; color: #191600; }
.ag-btn.kakao:hover { background: #f5dc00; }
.cta-phone { margin: 16px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.7); }

.ag-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ag-box { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.ag-box .prose h2, .ag-box .prose h3 { color: var(--main); margin-top: 0; font-size: 24px; }
.ag-title { text-align: center; margin-bottom: 26px; }
.ag-title h2 { font-size: 34px; margin: 0 0 8px; }
.ag-title p { margin: 0; color: #666; }

.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 18px 20px; margin-bottom: 12px; }
.faq-q { display: block; font-weight: 800; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq-q::-webkit-details-marker { display: none; }
details .faq-q::after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--point); font-size: 24px; line-height: 1.2; }
details[open] .faq-q::after { content: "−"; }
.faq-a { margin-top: 12px; color: #555; }
.ag-notice { font-size: 14px; color: #666; background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 16px; margin: 18px 0 0; }
.bottom-text { text-align: center; margin: 30px 0; color: var(--muted); }

/* 서식 본문 */
.prose { font-size: 17px; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 26px; margin: 1.8em 0 0.6em; color: var(--main); }
.prose h3 { font-size: 21px; margin: 1.5em 0 0.5em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }
.prose a { color: var(--link); text-decoration: underline; }

/* 글 페이지 */
.entry-header { margin-bottom: 26px; }
.entry-title { font-size: 34px; font-weight: 700; margin: 0 0 10px; }
.entry-lead { font-size: 18px; color: #555; margin: 0 0 8px; }
.entry-meta { font-size: 15px; color: #777; }
.feature { margin: 0 0 32px; }
.feature img { width: 100%; max-width: 800px; margin: 0 auto; }
.single .post-grid { margin-top: 48px; }
.post-grid.sm .card-title { font-size: 20px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; }
.entry-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; font-size: 15px; }
.cat { color: #777; margin-bottom: 10px; }
.cat-name { color: var(--link); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; font-size: 15px; }
.post-nav a { color: var(--link); }
.post-nav a:hover { color: #000; }

/* 하단 */
.site-footer { background: #1f2933; color: #cfd4da; font-size: 14px; padding: 34px 20px; text-align: center; }
.foot-in { max-width: 1200px; margin: 0 auto; }
.foot-name { display: block; color: #fff; font-size: 16px; margin-bottom: 6px; }
.site-footer p { margin: 4px 0; }
.foot-tel { color: #fff; font-weight: 700; }
.site-footer .copy { margin-top: 14px; color: #9aa3ad; }

.sticky-cta { display: none; }

@media (max-width: 1024px) {
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-in { padding: 30px; }
  .box-article { padding: 30px; }
  .ag-hero, .ag-sec { padding-left: 30px; padding-right: 30px; }
  .card-title { font-size: 20px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .header-in { padding: 18px 16px; }
  .site-title { font-size: 21px; }
  .main-nav a { padding: 0; font-size: 14px; }
  .site-main { padding-top: 10px; }
  .box-article { padding: 20px 16px; margin-bottom: 10px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .post-grid > .card:last-child:nth-child(3n + 1) { grid-column: auto; }
  .area-grid, .area-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .area-card { padding: 16px 14px; }
  .area-card h3 { font-size: 16px; }
  .area-card p { font-size: 13px; }
  .home-article .prose h2 { font-size: 24px; }
  .card-body { padding: 12px; }
  .card-title, .post-grid.sm .card-title { font-size: 16px; margin-bottom: 8px; }
  .card-date { font-size: 12px; margin-bottom: 10px; }
  .btn-more { font-size: 13px; padding: 7px 14px; }
  .sep { margin: 28px 0; }
  .hl-banner { grid-template-columns: 1fr; margin-top: 28px; border-radius: 18px; }
  .hl-body { padding: 26px 20px 28px; }
  .hl-title { font-size: 26px; }
  .map-block iframe { height: 300px; }
  .ag-grid, .ag-two { grid-template-columns: 1fr; }
  .ag-hero { padding: 44px 16px 32px; }
  .ag-hero h1 { font-size: 32px; }
  .hero-lead { font-size: 16px; }
  .ag-sec { padding: 40px 16px; }
  .ag-cta { padding: 34px 18px; border-radius: 20px; }
  .ag-cta h2, .ag-title h2 { font-size: 26px; }
  .ag-box { padding: 22px; }
  .entry-title { font-size: 26px; }
  .prose h2 { font-size: 22px; }
  .gallery { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12); }
  .sticky-cta a { flex: 1; text-align: center; padding: 15px 8px; font-weight: 800; font-size: 16px; }
  .s-tel { background: var(--main); color: #fff; }
  .s-kakao { background: #fee500; color: #191600; }
  body.has-sticky { padding-bottom: 54px; }
}
