/*
Theme Name: Yongdal Local
Description: 지역 용달이사 랜딩 + 블로그 테마 (전단지·광고형)
Version: 3.4
Author: -
Text Domain: yongdal-local
*/

/* 지역 용달이사 사이트 — 시안 A: 전단지·광고형 */
:root {
  --red: #e8352e;
  --red-dark: #c9241d;
  --yellow: #ffd400;
  --ink: #17202b;
  --paper: #ffffff;
  --cream: #fff7f0;
  --text: #2b333d;
  --text-sub: #6a7480;
  --line: #e9e2da;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  word-break: keep-all;
  padding-bottom: 62px; /* 하단 전화바 공간 */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.display { font-family: "Black Han Sans", "Noto Sans KR", sans-serif; font-weight: 400; }

/* 상단 띠 */
.topbar {
  background: var(--ink); color: var(--yellow);
  text-align: center; font-weight: 900; font-size: 0.9rem;
  padding: 7px 12px; letter-spacing: 0.02em;
}

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 3px solid var(--red);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand {
  font-family: "Black Han Sans", "Noto Sans KR", sans-serif;
  font-size: 1.45rem; color: var(--red); letter-spacing: 0;
}
.main-nav { display: flex; gap: 18px; margin-left: auto; font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.main-nav a:hover { color: var(--red); }
.header-call {
  background: var(--red); color: #fff; font-weight: 900;
  padding: 9px 18px; border-radius: 999px; font-size: 1rem; white-space: nowrap;
  box-shadow: 0 3px 0 rgba(0,0,0,0.18);
}
.header-call:hover { background: var(--red-dark); }

/* 브레드크럼 */
.breadcrumb { font-size: 0.85rem; color: var(--text-sub); padding-top: 12px; }
.breadcrumb a:hover { color: var(--red); }

/* 히어로 (메인) */
.hero {
  background: repeating-linear-gradient(-45deg, var(--red), var(--red) 26px, #dd2c25 26px, #dd2c25 52px);
  color: #fff; text-align: center; padding: 52px 0 46px;
}
.hero-eyebrow {
  display: inline-block; background: var(--yellow); color: var(--ink);
  border-radius: 999px; padding: 6px 20px; font-size: 0.95rem; font-weight: 900;
  transform: rotate(-2deg); box-shadow: 0 3px 0 rgba(0,0,0,0.25); margin-bottom: 18px;
}
.hero h1 {
  font-family: "Black Han Sans", "Noto Sans KR", sans-serif; font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.22; margin-bottom: 10px;
  text-shadow: 0 3px 0 rgba(0,0,0,0.2);
}
.hero h1 em, .hero h1 strong { font-style: normal; color: var(--yellow); font-weight: inherit; }
.hero-sub { font-size: 1.05rem; font-weight: 700; opacity: 0.95; max-width: 640px; margin: 0 auto 20px; }
.hero-tel {
  display: inline-block; background: #fff; color: var(--red);
  font-family: "Black Han Sans", "Noto Sans KR", sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 2.5rem); border-radius: 14px; padding: 10px 34px;
  box-shadow: 0 5px 0 rgba(0,0,0,0.25); margin-bottom: 16px;
}
.hero-tel:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0,0,0,0.25); }
.hero-areas { margin-top: 18px; font-size: 0.92rem; font-weight: 700; opacity: 0.85; }

/* 체크 띠 */
.check-strip {
  display: flex; justify-content: center; flex-wrap: wrap;
  background: var(--yellow); color: var(--ink); font-weight: 900; text-align: center;
}
.check-strip div { padding: 11px 20px; font-size: 0.95rem; border-right: 2px dashed rgba(23,32,43,0.25); }
.check-strip div:last-child { border-right: none; }

/* 페이지 헤드 (서브페이지) */
.page-head {
  background: repeating-linear-gradient(-45deg, var(--red), var(--red) 26px, #dd2c25 26px, #dd2c25 52px);
  color: #fff; padding: 38px 0 34px; text-align: center;
}
.page-head h1 {
  font-family: "Black Han Sans", "Noto Sans KR", sans-serif; font-weight: 400;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin-bottom: 8px; text-shadow: 0 3px 0 rgba(0,0,0,0.2);
}
.page-head .hero-sub { margin-bottom: 0; }

/* 버튼 */
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; font-weight: 900; border-radius: 10px;
  padding: 13px 26px; font-size: 1rem; transition: 0.12s;
}
.btn-lg { padding: 15px 32px; font-size: 1.1rem; }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,0.22); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.22); }
.btn-ghost { background: var(--ink); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,0.3); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,0.3); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost:hover { background: #232f3d; }
.section .btn-ghost, .cta-box .btn-ghost { background: var(--ink); color: #fff; }

/* 섹션 */
.section { padding: 48px 0; }
.section-alt { background: var(--cream); }
.section h2 {
  font-family: "Black Han Sans", "Noto Sans KR", sans-serif; font-weight: 400;
  font-size: 1.6rem; color: var(--ink); margin: 28px 0 18px;
  padding-left: 14px; border-left: 6px solid var(--red);
}
.section h2:first-child { margin-top: 0; }
.section-sub { color: var(--text-sub); margin-bottom: 22px; max-width: 720px; }
.body-text { margin-bottom: 16px; max-width: 780px; }

/* 카드 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 20px; transition: 0.12s; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 4px 4px 0 var(--ink);
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); border-color: var(--red); }
.card h3 { font-family: "Black Han Sans", "Noto Sans KR", sans-serif; font-weight: 400; color: var(--red); font-size: 1.15rem; }
.card p { font-size: 0.92rem; color: var(--text-sub); flex: 1; }
.card-more { color: var(--ink); font-weight: 900; font-size: 0.9rem; }

/* 블로그 목록: 가로 3 × 세로 2 */
.post-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* 특징 */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.feature { background: var(--cream); border-radius: var(--radius); padding: 22px 18px; border: 2px dashed var(--line); }
.feature-icon { font-size: 1.9rem; display: block; margin-bottom: 8px; }
.feature h3 { color: var(--ink); font-size: 1.05rem; font-weight: 900; margin-bottom: 6px; }
.feature p { font-size: 0.92rem; color: var(--text-sub); }

/* 가격 카드 (메인) — 서비스 카드와 동일 규격 */
.price-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 20px; }
.price-card {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  text-align: center; padding: 24px 16px; box-shadow: 4px 4px 0 var(--ink);
}
.price-card .t { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.price-card .v {
  font-family: "Black Han Sans", "Noto Sans KR", sans-serif; font-weight: 400;
  color: var(--red); font-size: 1.6rem; margin-top: 2px;
}
.price-card .n { font-size: 0.8rem; color: var(--text-sub); }

/* 가격표 */
.table-scroll { overflow-x: auto; margin-bottom: 26px; }
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--ink); min-width: 520px; }
.price-table th { background: var(--ink); color: var(--yellow); text-align: left; padding: 13px 16px; font-size: 0.95rem; }
.price-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.price-table tr:last-child td { border-bottom: none; }
.price-table .price {
  color: var(--red); font-family: "Black Han Sans", "Noto Sans KR", sans-serif;
  font-weight: 400; font-size: 1.15rem; white-space: nowrap;
}

/* 체크리스트 */
.check-list { list-style: none; margin: 0 0 24px; max-width: 780px; }
.check-list li { padding: 9px 0 9px 32px; position: relative; border-bottom: 1px dashed var(--line); }
.check-list li::before {
  content: "✓"; position: absolute; left: 2px; top: 7px;
  background: var(--yellow); color: var(--ink); font-weight: 900;
  width: 22px; height: 22px; border-radius: 50%; text-align: center; line-height: 22px; font-size: 0.85rem;
}
.check-list a { color: var(--red); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

/* 실측 행정경계 SVG 지도 */
.geo-map { display: block; max-width: 660px; width: 100%; height: auto; margin: 0 auto 28px; }
.geo-map .gu { stroke: #17202b; stroke-width: 1.6; stroke-linejoin: round; transition: 0.12s; }
.geo-map .gu.off { stroke: #cdc2ab; stroke-width: 1; }
.geo-map a .gu:hover { fill: var(--yellow); }
.geo-map .lb { font-family: "Noto Sans KR", sans-serif; font-weight: 900; font-size: 17px; text-anchor: middle; fill: #17202b; paint-order: stroke; stroke: #ffffff; stroke-width: 4px; stroke-linejoin: round; }
.geo-map a .lb:hover { fill: var(--red); }
.geo-map .lb.off { font-size: 12px; font-weight: 700; fill: #a89f8d; stroke-width: 3px; }
.geo-map .lb.dark { fill: #ffffff; stroke: #17202b; }
.geo-map .river-cut { fill: none; stroke: var(--cream); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.geo-map .river { fill: none; stroke: #8ecbef; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }

/* 지도형 타일 (구 단위, 실제 지리 배치) */
.map-wrap {
  position: relative; max-width: 680px; margin: 0 auto 28px;
  padding: 36px 22px; overflow: hidden;
}
.map-wrap::before {
  content: ""; position: absolute; inset: 4% 2%;
  background: radial-gradient(ellipse at 50% 46%, #efe0c3 0%, #f5ead4 55%, rgba(245,234,212,0) 82%);
  border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
}
.map-river {
  position: absolute; left: -3%; right: -3%; height: 24px;
  background: linear-gradient(90deg, #c4e2f4, #a9d5ef 50%, #c4e2f4);
  opacity: 0.8; border-radius: 999px; transform: rotate(-4deg); z-index: 1;
}
.map-river span {
  position: absolute; right: 40px; top: 2px;
  font-size: 0.7rem; font-weight: 900; color: #3a7ca8; letter-spacing: 0.2em;
}
.map-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(5, minmax(58px, 120px));
  grid-auto-rows: minmax(52px, auto); gap: 10px;
  justify-content: center;
}
.map-grid a {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--ink); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink); font-weight: 900; font-size: 0.95rem;
  padding: 12px 4px; text-align: center; transition: 0.12s; word-break: keep-all;
}
.map-grid a:hover { background: var(--yellow); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--red); border-color: var(--red); }
@media (max-width: 560px) {
  .map-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .map-grid a { font-size: 0.72rem; padding: 10px 2px; border-radius: 8px; }
}

/* 지역 블록 */
.area-grid { columns: 2; column-gap: 14px; }
.area-grid .area-block { break-inside: avoid; margin-bottom: 14px; }
@media (max-width: 700px) { .area-grid { columns: 1; } }
.area-block { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; box-shadow: 4px 4px 0 var(--ink); }
.area-block h2, .area-block h3 { border-left: none !important; padding-left: 0 !important; }
.area-block h2 a, .area-block h3 a { color: var(--red); }
.area-block h3 { font-family: "Black Han Sans", "Noto Sans KR", sans-serif; font-weight: 400; font-size: 1.15rem; margin-bottom: 8px; }
.dong-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dong-links a {
  background: var(--cream); border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 4px 13px; font-size: 0.86rem; font-weight: 700; color: var(--ink); transition: 0.12s;
}
.dong-links a:hover { background: var(--yellow); }
.dong-links-lg a { font-size: 0.95rem; padding: 7px 16px; }

/* CTA 박스 */
.cta-box {
  background: var(--ink); color: #fff; border: none; border-radius: 16px;
  padding: 34px 28px; text-align: center; margin: 30px 0; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--yellow), var(--yellow) 14px, var(--ink) 14px, var(--ink) 28px);
}
.cta-title { font-family: "Black Han Sans", "Noto Sans KR", sans-serif; font-weight: 400; font-size: 1.45rem; margin-bottom: 8px; }
.cta-sub { opacity: 0.8; margin-bottom: 20px; font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 780px; }
.faq-item { border: 2px solid var(--ink); border-radius: 10px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 14px 18px; font-weight: 900; color: var(--ink);
  list-style: none; position: relative; padding-right: 44px;
}
.faq-item summary::before { content: "Q."; color: var(--red); margin-right: 8px; font-weight: 900; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 11px; font-size: 1.3rem; color: var(--red); }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 18px 16px; color: var(--text-sub); font-size: 0.95rem; }

/* 빠른 비용 확인 폼 */
.quote-sec { max-width: 720px; }
.quote-form { display: flex; flex-direction: column; gap: 12px; }
.quote-form .q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-form input[type="text"], .quote-form input[type="tel"], .quote-form select {
  width: 100%; padding: 13px 14px; border: 2px solid var(--ink); border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--text);
}
.quote-form input:focus, .quote-form select:focus { outline: none; border-color: var(--red); }
.quote-form input[readonly] { cursor: pointer; background: var(--cream); }
.quote-form input[type="tel"] { background: var(--cream); }
.quote-form .q-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.q-phone { display: flex; gap: 8px; }
.q-phone .q-prefix {
  flex: 0 0 64px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--cream);
  font-weight: 900; font-size: 1rem;
}
.q-phone input { flex: 1; }
.quote-form .q-bad { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(232,53,46,0.2); }
.q-consent { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 700; flex-wrap: wrap; }
.q-consent input { width: 18px; height: 18px; accent-color: var(--red); }
.q-view { background: none; border: none; color: var(--text-sub); text-decoration: underline; cursor: pointer; font-size: 0.85rem; padding: 0; }
.q-terms { background: var(--cream); border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-size: 0.85rem; color: var(--text-sub); }
.q-submit { width: 100%; font-size: 1.1rem; padding: 16px; }
.q-msg { font-weight: 700; text-align: center; min-height: 1.2em; }
.q-msg.ok { color: #1a7d3c; }
.q-msg.err { color: var(--red); }
@media (max-width: 560px) { .quote-form .q-row { grid-template-columns: 1fr; } }

/* 푸터 */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 38px 0 46px; font-size: 0.9rem; border-top: 6px solid var(--yellow); }
.site-footer a { color: #fff; }
.footer-brand { font-family: "Black Han Sans", "Noto Sans KR", sans-serif; font-weight: 400; font-size: 1.3rem; color: var(--yellow); margin-bottom: 8px; }
.footer-links { margin-top: 10px; line-height: 1.9; }
.footer-links a { opacity: 0.8; }
.footer-links a:hover { opacity: 1; color: var(--yellow); }
.footer-note { margin-top: 18px; font-size: 0.8rem; opacity: 0.55; }
.footer-keywords { margin-top: 10px; font-size: 0.76rem; opacity: 0.45; line-height: 1.8; word-break: keep-all; }

/* 하단 고정 전화바 (모바일) */
.call-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.call-bar-btn {
  flex: 1; text-align: center; padding: 14px 8px; font-weight: 900; font-size: 1.02rem;
  background: var(--red); color: #fff; white-space: nowrap; overflow: hidden;
}
.call-bar-btn.sms { flex: 1; background: var(--yellow); color: var(--ink); }
.call-bar-btn:active { filter: brightness(0.92); }

/* 반응형 */
@media (max-width: 760px) {
  /* 모바일: 상단 메뉴를 가로 스크롤 줄로 표시, 전화버튼은 오른쪽 구석 */
  .header-inner { height: auto; flex-wrap: wrap; padding: 8px 0 0; row-gap: 0; }
  .brand { font-size: 1.25rem; order: 1; }
  .header-call { font-size: 0.88rem; padding: 8px 14px; order: 2; margin-left: auto; }
  .main-nav {
    order: 3; width: 100%; margin-left: 0;
    display: flex; gap: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    font-size: 0.88rem; padding: 8px 2px 10px; white-space: nowrap;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .topbar { font-size: 0.8rem; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 36px 0; }
  .check-strip div { padding: 9px 12px; font-size: 0.85rem; }
  .cta-actions .btn { width: 100%; max-width: 340px; }
}
@media (min-width: 761px) {
  .call-bar { display: none; }
  body { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

/* ---------- 워드프레스 전용 ---------- */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* 블로그 글 */
.post-article { padding: 40px 20px 60px; max-width: 820px; margin: 0 auto; }
.post-head h1 { font-family: "Black Han Sans", "Noto Sans KR", sans-serif; font-weight: 400; font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--ink); line-height: 1.35; margin-bottom: 10px; }
.post-meta { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.post-body { font-size: 1.02rem; }
.post-body h2 { font-family: "Black Han Sans", "Noto Sans KR", sans-serif; font-weight: 400; font-size: 1.4rem; color: var(--ink); margin: 34px 0 14px; padding-left: 12px; border-left: 6px solid var(--red); }
.post-body h3 { font-size: 1.15rem; color: var(--ink); font-weight: 900; margin: 26px 0 10px; }
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol { margin: 0 0 16px 22px; }
.post-body li { margin-bottom: 6px; }
.post-body img { border-radius: 10px; margin: 10px 0; height: auto; }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 20px; border: 2px solid var(--ink); }
.post-body table th { background: var(--ink); color: var(--yellow); padding: 10px 14px; text-align: left; }
.post-body table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.post-body blockquote { border-left: 5px solid var(--yellow); background: var(--cream); padding: 14px 18px; border-radius: 0 10px 10px 0; margin-bottom: 16px; color: var(--text-sub); }
.post-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* 페이지네이션 */
.pagination { margin-top: 30px; text-align: center; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 8px; font-weight: 900; color: var(--ink); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--yellow); }







