/* =========================================================
   S&J세무회계 – 스타일
   색상은 아래 :root 값만 바꾸면 전체에 반영됩니다.
   ========================================================= */
:root {
  /* 명함 로고 색 기준: 남색 #2d3a7b, 회색 #59595b */
  --navy: #2d3a7b;
  --navy-deep: #161d45;
  --navy-soft: #3a4891;
  --gray: #59595b;
  --accent: #4a59b0;          /* 밝은 배경용 포인트 */
  --accent-light: #aab5f0;    /* 어두운 배경용 포인트 */
  --text: #1c2430;
  --text-sub: #5b6676;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --kakao: #fee500;
  --kakao-text: #191919;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 42, 74, .08);
  --header-h: 130px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.temp { color: #c0392b; font-size: .85em; }   /* 임시 문구 표시 – 완성 후 제거 */

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-kakao { background: var(--kakao); color: var(--kakao-text); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- 헤더 ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 42px; width: auto; }
/* 상단 로고 (메인 크기 2배) – 스크롤하면 작아짐 */
.header { transition: height .25s, border-color .2s, box-shadow .2s; }
.header .container { max-width: 1320px; }
.header .logo { gap: 18px; }
.header .logo-img { height: 84px; transition: height .25s; }
.header .logo-ko { font-size: 32px; letter-spacing: -.6px; line-height: 1.15; transition: font-size .25s; }
.header .logo-en { font-size: 27px; line-height: 1.15; transition: font-size .25s; }
.header.scrolled { height: 84px; }
.header.scrolled .logo-img { height: 52px; }
.header.scrolled .logo-ko { font-size: 21px; }
.header.scrolled .logo-en { font-size: 17px; }
.header.scrolled .logo { gap: 12px; }
.logo-words { display: flex; flex-direction: column; line-height: 1.2; }
.logo-ko { font-size: 16px; font-weight: 600; color: #333; letter-spacing: -.3px; }
.logo-en { font-size: 13.5px; font-weight: 400; color: #333; letter-spacing: .1px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 600; color: var(--text-sub); transition: color .15s; }
.nav a:hover { color: var(--navy); }
.menu-toggle { display: none; }

/* ---------- 메인 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 80px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(170,181,240,.16), transparent 42%),
    linear-gradient(135deg, var(--navy-deep) 0%, #232e68 55%, var(--navy) 100%);
}
/* 명함의 이중 라인 모티프 */
.hero::after {
  content: ""; position: absolute; right: 0; top: calc(var(--header-h) + 40px);
  width: 34%; height: 15px;
  background:
    linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.85)) top / 100% 5px no-repeat,
    linear-gradient(#8a8a8e, #8a8a8e) bottom / 100% 5px no-repeat;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .5px;
  padding: 6px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  margin-bottom: 24px; color: rgba(255,255,255,.85);
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.3; font-weight: 800; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero-sub { margin-top: 22px; font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; font-size: 15px; color: rgba(255,255,255,.75); }
.hero-points li::before { content: "✓"; color: var(--accent-light); font-weight: 800; margin-right: 8px; }
.hero-points small { font-size: 12px; color: #ffb4a8; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 110px 0; }
.section-gray { background: var(--bg-gray); }
.section-navy { background: var(--navy); color: #fff; }
.section-label { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 1px; margin-bottom: 12px; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.35; font-weight: 800; letter-spacing: -.5px; color: var(--navy); }
.section-navy { background: linear-gradient(135deg, var(--navy-deep), #232e68); }
.section-navy h2 { color: #fff; }
.section-navy .section-label { color: var(--accent-light); }
.section-head { text-align: center; margin-bottom: 56px; }
/* 제목 아래 이중 라인 (명함 모티프) */
.section-head h2::after, .about-text h2::after {
  content: ""; display: block; width: 56px; height: 10px; margin: 18px auto 0;
  background:
    linear-gradient(var(--navy), var(--navy)) top / 100% 3px no-repeat,
    linear-gradient(var(--gray), var(--gray)) bottom / 100% 3px no-repeat;
}
.about-text h2::after { margin-left: 0; }
.section-navy .section-head h2::after {
  background:
    linear-gradient(#fff, #fff) top / 100% 3px no-repeat,
    linear-gradient(#8a8a8e, #8a8a8e) bottom / 100% 3px no-repeat;
}
.section-head p:not(.section-label) { margin-top: 14px; color: var(--text-sub); font-size: 17px; }

/* ---------- 소개 ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(160deg, #e8edf4, #d3dbe7);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--navy-soft); font-weight: 700;
}
.photo-placeholder small { font-weight: 400; color: var(--text-sub); }
.about-text h2 { margin-bottom: 24px; }
.about-text > p { color: var(--text-sub); font-size: 17px; }
.about-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.profile { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.profile-name { font-size: 16px; color: var(--text-sub); margin-bottom: 14px; }
.profile-name strong { font-size: 22px; color: var(--navy); margin-left: 6px; }
.profile-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.profile-list li { font-size: 15.5px; padding-left: 14px; position: relative; }
.profile-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.profile-book {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 22px;
  padding: 18px 20px; background: var(--bg-gray); border-radius: 10px;
}
.profile-book span {
  flex-shrink: 0; font-size: 13px; font-weight: 700; color: #fff; background: var(--navy);
  padding: 3px 10px; border-radius: 6px; margin-top: 2px;
}
.profile-book p { font-weight: 700; color: var(--navy); line-height: 1.5; }
a.profile-book { transition: background .15s; }
a.profile-book:hover { background: #e9edf6; }

/* ---------- 저서 ---------- */
.book-section {
  padding: 96px 0; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f1f3fb 100%);
}
.book { display: grid; grid-template-columns: 4fr 7fr; gap: 72px; align-items: center; }
.book-cover-wrap { display: flex; justify-content: center; perspective: 1200px; }
.book-cover {
  width: 100%; max-width: 300px; height: auto; aspect-ratio: 426 / 628; object-fit: cover;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 2px 0 #fff inset, -6px 0 0 rgba(0,0,0,.08) inset,
              18px 24px 40px rgba(22,29,69,.28), 4px 6px 10px rgba(22,29,69,.18);
  transform: rotateY(-8deg); transition: transform .4s;
}
.book-cover:hover { transform: rotateY(0); }
.book-cover-css {
  display: flex; flex-direction: column; padding: 30px 26px; color: #fff; position: relative; text-align: left;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
}
.book-cover[hidden], .book-cover-css[hidden] { display: none; }
.book-cover-css::before { /* 책등 */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.08));
}
.bc-publisher { font-size: 12px; letter-spacing: 1px; opacity: .7; }
.bc-sub { margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--accent-light); }
.bc-title { margin-top: 10px; font-size: 34px; line-height: 1.25; font-weight: 800; letter-spacing: -1px; }
.bc-lines {
  margin-top: 22px; width: 64px; height: 10px;
  background: linear-gradient(#fff, #fff) top / 100% 3px no-repeat, linear-gradient(#8a8a8e, #8a8a8e) bottom / 100% 3px no-repeat;
}
.bc-author { margin-top: auto; font-size: 15px; font-weight: 600; }
.book-text h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.4; font-weight: 800; color: var(--navy); letter-spacing: -.5px; }
.book-badge {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  background: #f6e7b8; color: #6b4e0e; font-size: 12.5px; letter-spacing: 0; vertical-align: 1px;
}
.book-meta { margin-top: 14px; font-size: 15px; color: var(--text-sub); font-weight: 600; }
.book-desc { margin-top: 20px; font-size: 17px; color: var(--text-sub); }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.profile-book small { font-weight: 400; color: var(--text-sub); font-size: 14px; }

/* ---------- 업무 분야 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 40px 32px;
  box-shadow: var(--shadow); border-top: 4px solid var(--navy);
  transition: transform .2s;
}
.service-card:hover { transform: translateY(-6px); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; background: #eef2f8;
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linejoin: round; }
.service-card h3 { font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.service-card > p { color: var(--text-sub); font-size: 15.5px; margin-bottom: 22px; }
.service-card ul { display: grid; gap: 8px; padding-top: 20px; border-top: 1px dashed var(--line); }
.service-card li { font-size: 15px; font-weight: 500; }
.service-card li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }

/* ---------- 강점 ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { padding: 32px 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.why-num { font-size: 32px; font-weight: 800; color: var(--accent); }
.why-item h3 { font-size: 19px; color: var(--navy); margin: 10px 0 8px; }
.why-item p { font-size: 15px; color: var(--text-sub); }

/* ---------- 진행 절차 ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.process li {
  position: relative; text-align: center; padding: 32px 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
}
.process span {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent-light); color: var(--navy-deep); font-weight: 800; margin-bottom: 14px;
}
.process h3 { font-size: 18px; margin-bottom: 6px; }
.process p { font-size: 14.5px; color: rgba(255,255,255,.72); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 56px 22px 24px; position: relative;
  font-weight: 700; font-size: 17px; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; color: var(--accent); margin-right: 10px; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--text-sub); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-sub); font-size: 16px; }

/* ---------- 오시는 길 ---------- */
.location { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: #dfe5ee; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.location-info { background: #fff; border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); }
.location-info dl { display: grid; grid-template-columns: 80px 1fr; gap: 16px 12px; }
.location-info dt { font-weight: 700; color: var(--navy); }
.location-info dd { color: var(--text-sub); }
.location-info dd a { color: var(--navy); font-weight: 700; }
.map-links { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- 하단 CTA ---------- */
.cta { background: linear-gradient(135deg, var(--navy-soft), var(--navy)); color: #fff; padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta p { color: rgba(255,255,255,.8); margin-top: 6px; }
.cta .hero-actions { margin-top: 0; }

/* ---------- 푸터 ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.6); padding: 48px 0; font-size: 14px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-logo img { height: 40px; width: auto; }
.footer-logo .logo-ko, .footer-logo .logo-en { color: #fff; }
.footer-logo .logo-en { color: rgba(255,255,255,.7); }
.footer .temp { color: #ff9f8f; }
.copyright { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.4); }

/* ---------- 세무 정보 ---------- */
.nav a.active { color: var(--navy); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.post-card[hidden] { display: none; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.post-cat {
  align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent);
  background: #eef0fa; padding: 3px 10px; border-radius: 6px;
}
.post-card h3 { font-size: 19px; line-height: 1.45; color: var(--navy); }
.post-card p { font-size: 15px; color: var(--text-sub); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card time { font-size: 13.5px; color: #8a93a3; }
/* 대표 사진이 있는 카드 */
.post-card.has-thumb { padding: 0; gap: 0; overflow: hidden; }
.post-thumb { position: relative; aspect-ratio: 16 / 10; background: #1c2556; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.post-thumb.is-graphic img { object-fit: contain; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb .post-cat { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.94); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 24px 24px; }
/* 조회수 */
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.post-views { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: #8a93a3; }
.post-views[hidden] { display: none; }
.post-views svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.post-views b { font-weight: 700; color: var(--text-sub); }
.post-meta .post-views { margin-left: 14px; color: inherit; font-size: inherit; }
.post-meta .post-views b { color: inherit; }
.post-empty { text-align: center; color: var(--text-sub); padding: 40px 0; grid-column: 1 / -1; }
.more-link { text-align: center; margin-top: 40px; }

.page-hero {
  padding: calc(var(--header-h) + 64px) 0 56px; color: #fff;
  background: linear-gradient(135deg, var(--navy-deep) 0%, #232e68 55%, var(--navy) 100%);
}
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.35; font-weight: 800; letter-spacing: -.5px; }
.page-crumb { font-size: 14px; font-weight: 600; color: var(--accent-light); margin-bottom: 12px; }
.page-crumb a:hover { text-decoration: underline; }
.page-sub, .post-meta { margin-top: 14px; color: rgba(255,255,255,.75); }
.post-section { padding: 64px 0 96px; }

.post-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.post-filter button {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text-sub); transition: .15s;
}
.post-filter button:hover { border-color: var(--navy); color: var(--navy); }
.post-filter button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.post-body { font-size: 17px; line-height: 1.85; color: var(--text); }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 {
  font-size: 23px; color: var(--navy); margin-top: 2em; padding-bottom: 10px;
  border-bottom: 2px solid var(--navy); position: relative;
}
.post-body h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gray); opacity: .35; }
.post-body h3 { font-size: 19px; color: var(--navy); margin-top: 1.6em; }
.post-body strong { color: var(--navy); }
.post-body a { color: var(--accent); text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: .35em; }
.post-body li::marker { color: var(--accent); }
.post-body blockquote {
  background: #f1f3fb; border-left: 4px solid var(--navy); border-radius: 0 10px 10px 0;
  padding: 16px 20px; color: var(--text);
}
.post-body img { border-radius: 10px; margin: 0 auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.post-body th { background: var(--navy); color: #fff; font-weight: 700; white-space: nowrap; }
.post-body tr:nth-child(even) td { background: var(--bg-gray); }
.post-notice {
  margin-top: 48px; padding: 16px 20px; border-radius: 10px;
  background: var(--bg-gray); color: var(--text-sub); font-size: 14px;
}
.post-nav { display: grid; gap: 10px; margin-top: 32px; }
.post-nav-link {
  display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--navy); font-weight: 600; transition: border-color .15s;
}
.post-nav-link:hover { border-color: var(--navy); }
.post-nav-link small { display: block; font-size: 13px; color: var(--text-sub); font-weight: 400; }
.post-back { text-align: center; margin-top: 32px; }

/* ---------- 지원사업 검색 ---------- */
.sb-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; display: grid; gap: 18px;
}
.sb-search { position: relative; }
.sb-search svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; fill: none; stroke: var(--text-sub); stroke-width: 2; stroke-linecap: round;
}
.sb-search input {
  width: 100%; font: inherit; font-size: 17px; padding: 16px 18px 16px 50px;
  border: 1.5px solid var(--line); border-radius: 12px; outline: none; transition: border-color .15s;
}
.sb-search input:focus { border-color: var(--navy); }
.sb-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sb-label { font-size: 14px; font-weight: 700; color: var(--navy); min-width: 32px; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-chips button {
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text-sub); transition: .15s;
}
.sb-chips button:hover { border-color: var(--navy); color: var(--navy); }
.sb-chips button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.sb-selects { gap: 12px 24px; }
.sb-selects label { display: flex; align-items: center; gap: 10px; }
.sb-selects select {
  font: inherit; font-size: 15px; padding: 9px 36px 9px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6676' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  appearance: none; color: var(--text); cursor: pointer;
}
.sb-check { font-size: 15px; color: var(--text-sub); cursor: pointer; }
.sb-check input { width: 17px; height: 17px; accent-color: var(--navy); }

.sb-status { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; margin: 32px 0 16px; }
#sbCount { font-size: 17px; color: var(--text); }
#sbCount strong { color: var(--navy); font-size: 20px; }
#sbCount span { color: var(--text-sub); font-size: 14.5px; }
.sb-source { font-size: 13.5px; color: var(--text-sub); }
.sb-source a { text-decoration: underline; }

.sb-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sb-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: box-shadow .2s, border-color .2s;
}
.sb-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.sb-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sb-dday {
  font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 6px;
  background: var(--navy); color: #fff;
}
.sb-dday.sb-urgent { background: #d64545; }
.sb-dday.sb-open { background: #eef1f5; color: var(--text-sub); font-weight: 600; }
.sb-new { font-size: 12px; font-weight: 800; color: #d64545; letter-spacing: .5px; margin-left: 2px; }
.sb-card h3 { font-size: 18px; line-height: 1.45; }
.sb-card h3 a { color: var(--navy); }
.sb-card h3 a:hover { text-decoration: underline; }
.sb-meta { display: grid; gap: 4px; font-size: 14.5px; }
.sb-meta div { display: flex; gap: 10px; }
.sb-meta dt { flex-shrink: 0; width: 56px; color: var(--text-sub); }
.sb-meta dd { color: var(--text); }
.sb-summary {
  font-size: 14.5px; line-height: 1.65; color: var(--text-sub); padding-left: 12px; border-left: 3px solid var(--line);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sb-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.sb-skeleton { height: 260px; border-radius: var(--radius); background: linear-gradient(90deg, #f1f3f7 25%, #e8ebf1 50%, #f1f3f7 75%); background-size: 200% 100%; animation: sbShimmer 1.2s infinite; }
@keyframes sbShimmer { to { background-position: -200% 0; } }
.sb-more { text-align: center; margin-top: 32px; }
.sb-list .post-empty a { color: var(--navy); text-decoration: underline; }

/* 메인 화면 지원사업 배너 */
.sb-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 40px; padding: 32px 36px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff;
}
.sb-banner h3 { font-size: 22px; }
.sb-banner p { color: rgba(255,255,255,.78); margin-top: 4px; }

/* ---------- 오른쪽 부동산 정보 조회 ---------- */
.quick { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 95; display: flex; align-items: center; }
.quick.open { z-index: 110; }   /* 창이 열리면 상단 메뉴보다 위에 표시 */
.quick-tabs { display: flex; flex-direction: column; gap: 8px; }
.quick-tab[aria-expanded="true"] { background: var(--navy); color: #fff; border-color: #fff; }
.quick-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 64px; padding: 14px 6px; border: 0; cursor: pointer;
  border-radius: 12px 0 0 12px; background: #fff; color: var(--navy);
  border: 1.5px solid var(--navy); border-right: 0;
  font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.35; text-align: center;
  box-shadow: -4px 6px 18px rgba(22,29,69,.22); transition: background .15s, color .15s;
}
.quick-tab:hover { background: var(--navy); color: #fff; border-color: #fff; }
.quick-tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.quick-panel {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  width: 320px; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(22,29,69,.25); border: 1px solid var(--line);
  animation: qpIn .18s ease-out;
}
.quick-panel { display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.quick-panel > * { flex-shrink: 0; }
.quick-panel > .qp-body { flex: 1 1 auto; min-height: 0; }
.quick-panel[hidden] { display: none; }
@keyframes qpIn { from { opacity: 0; transform: translate(12px, -50%); } }
.qp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: var(--navy); color: #fff; font-size: 16px;
}
.qp-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: .8; }
.qp-close:hover { opacity: 1; }
.quick-panel ul { padding: 8px; }
.quick-panel li + li { border-top: 1px solid var(--line); }
.qp-item { display: flex; align-items: center; gap: 12px; padding: 14px 10px; border-radius: 10px; transition: background .15s; }
.qp-item:hover { background: var(--bg-gray); }
.qp-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: #eef0fa; display: flex; align-items: center; justify-content: center; }
.qp-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qp-text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.qp-text strong { font-size: 15.5px; color: var(--navy); }
.qp-text small { font-size: 12.5px; color: var(--text-sub); }
.qp-arrow { color: var(--text-sub); font-size: 15px; }
.qp-sub { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 10px 12px 62px; }
.qp-sub a {
  font-size: 12.5px; font-weight: 600; color: var(--navy); background: var(--bg-gray);
  padding: 4px 10px; border-radius: 999px; transition: background .15s;
}
.qp-sub a:hover { background: #e3e7f3; }
.qp-note { padding: 12px 18px 16px; font-size: 12.5px; color: var(--text-sub); background: var(--bg-gray); line-height: 1.6; }
.qp-note a { color: var(--navy); font-weight: 700; text-decoration: underline; }

/* 세목별 세율표 창 */
.qp-rates { width: 440px; }
.qp-rates .qp-head strong { flex: 1; }
.rt-asof { font-size: 12.5px; opacity: .75; margin-right: 8px; }
.rt-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px 12px; background: var(--bg-gray); border-bottom: 1px solid var(--line); }
.rt-tabs button {
  font: inherit; font-size: 13px; font-weight: 700; padding: 8px 4px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text-sub); white-space: nowrap;
}
.rt-tabs button:hover { color: var(--navy); border-color: var(--navy); }
.rt-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.qp-rates .qp-body { max-height: none; }
.rt-sec { padding: 14px 16px 6px; }
.rt-sec + .rt-sec { border-top: 1px solid var(--line); }
.rt-sec h4 { font-size: 15px; color: var(--navy); }
.rt-desc { font-size: 12.5px; color: var(--text-sub); margin-top: 2px; }
.rt-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.rt-table th {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 12px; padding: 7px 8px; text-align: center;
}
.rt-table th:first-child { text-align: left; border-radius: 6px 0 0 0; }
.rt-table th:last-child { border-radius: 0 6px 0 0; }
.rt-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); line-height: 1.4; vertical-align: middle; }
.rt-table tr:nth-child(even) td { background: #f8f9fc; }
.rt-table td.rt-num { text-align: center; font-weight: 700; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-table td.rt-num:last-child { font-weight: 500; color: var(--text); }
.rt-table th:only-child, .rt-table tr td:nth-child(2):last-child { font-weight: 700; color: var(--navy); }
.rt-law { font-size: 11.5px; color: var(--text-sub); margin-top: 6px; text-align: right; }
.rt-notes { margin: 8px 0 6px; display: grid; gap: 3px; }
.rt-notes li { font-size: 12px; color: #6b4e0e; line-height: 1.5; padding-left: 12px; position: relative; }
.rt-notes li::before { content: "※"; position: absolute; left: 0; }
.rt-body > .rt-notes { padding: 4px 16px 12px; margin: 0; border-top: 1px dashed var(--line); }

/* 기준환율 창 */
.qp-fx { width: 340px; }
.qp-fx { width: 360px; }
.qp-fx .qp-head strong { flex: 1; }
/* 일별/월별 탭 */
.fx-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px 12px 0; background: var(--bg-gray); }
.fx-modes button {
  font: inherit; font-size: 14px; font-weight: 700; padding: 8px; cursor: pointer;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #e9ecf3; color: var(--text-sub);
}
.fx-modes button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: inset 0 3px 0 var(--navy); }
.fx-mode-pane { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.fx-mode-pane[hidden] { display: none; }
.fx-mode-pane > * { flex-shrink: 0; }
.fx-mode-pane > .qp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; max-height: none; }

/* 월별 환율 */
.fx-mbar { display: grid; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.fx-mbar select {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); height: 34px;
  border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: #fff; cursor: pointer;
}
.fx-mcur { width: 100%; border: 1.5px solid var(--navy) !important; }
.fx-mnav { display: flex; gap: 6px; }
.fx-mnav select { flex: 1; }
.fm-title { padding: 12px 16px 0; font-size: 14px; color: var(--navy); }
.fm-title span { font-size: 12px; color: var(--text-sub); }
.fm-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 12px; }
.fm-sum div { background: var(--bg-gray); border-radius: 8px; padding: 8px 6px; text-align: center; display: flex; flex-direction: column; gap: 1px; }
.fm-sum span { font-size: 11.5px; color: var(--text-sub); font-weight: 600; }
.fm-sum strong { font-size: 14px; color: var(--navy); font-variant-numeric: tabular-nums; }
.fm-sum strong.up { color: #d64545; }
.fm-sum strong.down { color: #3b6fd6; }
.fm-sum small { font-size: 11px; color: var(--text-sub); }
.fm-table { width: calc(100% - 24px); margin: 0 12px 12px; border-collapse: collapse; font-size: 13.5px; }
.fm-table th { position: sticky; top: 0; background: var(--navy); color: #fff; font-size: 12px; padding: 7px 8px; }
.fm-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.fm-d { white-space: nowrap; }
.fm-d small { color: var(--text-sub); font-size: 11.5px; }
.fm-d.sun, .fm-d.sun small { color: #d64545; }
.fm-d.sat, .fm-d.sat small { color: #3b6fd6; }
.fm-r { text-align: right; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.fm-c { text-align: right; }
.fm-off td { background: #f6f7f9; color: #9aa1ad; }
.fm-off .fm-r { font-weight: 400; color: #9aa1ad; text-align: center; font-size: 12px; }

.fx-datebar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-gray); }
.fx-step, .fx-today {
  height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer;
  font: inherit; color: var(--navy); font-weight: 700;
}
.fx-step { width: 32px; font-size: 18px; line-height: 1; }
.fx-today { padding: 0 10px; font-size: 13px; }
.fx-step:disabled, .fx-today:disabled { opacity: .35; cursor: default; }
.fx-pick {
  flex: 1; height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid var(--navy); background: #fff; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--navy);
}
.fx-pick[aria-expanded="true"] { background: var(--navy); color: #fff; }
.fx-pick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.fx-cal { border-bottom: 1px solid var(--line); background: #fff; }
.fxc-head { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px 0; }
.fxc-head select {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--navy);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: #fff; cursor: pointer;
}
.fxc-nav { width: 30px; height: 30px; border: 0; background: var(--bg-gray); border-radius: 8px; cursor: pointer; font-size: 18px; color: var(--navy); }
.fxc-nav:disabled { opacity: .3; cursor: default; }
.fxc-grid { border-bottom: 0 !important; }
.fxc-grid button.qc-d {
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; color: var(--text);
}
.fxc-grid button.qc-d:hover { background: #eef0fa; }
.fxc-grid .qc-d.sel { background: var(--navy) !important; color: #fff !important; font-weight: 800; }
.fxc-grid .qc-d.off { color: #c4c9d3 !important; }
.fxc-hint { padding: 0 14px 10px; font-size: 11.5px; color: var(--text-sub); text-align: center; }
.fx-notice {
  margin: 10px 14px 0; padding: 8px 12px; border-radius: 8px; background: #fff7e0;
  font-size: 12.5px; color: #6b4e0e; line-height: 1.5;
}
.fx-headrow {
  display: flex; justify-content: space-between; padding: 10px 18px 6px;
  font-size: 12px; color: var(--text-sub); font-weight: 600; border-bottom: 1px solid var(--line);
}
.fx-list { padding: 2px 8px; }
.fx-list li { display: flex; align-items: center; gap: 10px; padding: 10px; }
.fx-list li + li, .fx-more { border-top: 1px solid var(--line); }
.fx-code {
  flex-shrink: 0; width: 44px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .3px;
  color: var(--navy); background: #eef0fa; border-radius: 6px; padding: 3px 0;
}
.fx-name { flex: 1; font-size: 14px; color: var(--text); }
.fx-name small { color: var(--text-sub); font-size: 11.5px; }
.fx-rate { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.fx-rate strong { font-size: 15.5px; color: var(--navy); font-variant-numeric: tabular-nums; }
.fx-diff { font-size: 11.5px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.fx-diff.up { color: #d64545; }
.fx-diff.down { color: #3b6fd6; }
.fx-toggle { margin-bottom: 10px; }

/* 세무일정 창 */
.qp-sched { width: 420px; }
.qp-sched .qp-head { gap: 6px; }
.qp-month { flex: 1; text-align: center; font-size: 16px; }
.qp-nav {
  width: 30px; height: 30px; border-radius: 8px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 20px; line-height: 1;
}
.qp-nav:hover:not(:disabled) { background: rgba(255,255,255,.25); }
.qp-nav:disabled { opacity: .3; cursor: default; }
.qp-sched .qp-close { margin-left: 4px; }
.qp-body { max-height: min(62vh, 520px); overflow-y: auto; }
.qp-fx .qp-body { max-height: none; }
.qp-empty { padding: 28px 18px; text-align: center; color: var(--text-sub); font-size: 14px; }
.qs-cal {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  padding: 12px 14px 10px; border-bottom: 1px solid var(--line); text-align: center;
}
.qs-cal > * { font-size: 13px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.qc-w { font-size: 12px !important; height: 24px !important; color: var(--text-sub); font-weight: 600; }
.qs-cal .sun { color: #d64545; }
.qs-cal .sat { color: #3b6fd6; }
.qc-d.ev {
  border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800;
  background: var(--navy); color: #fff !important; position: relative;
}
.qc-d.ev:hover { background: var(--navy-soft); }
.qc-d.today { box-shadow: inset 0 0 0 2px var(--accent); font-weight: 800; }
.qc-d.ev.today { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.qs-list { padding: 6px 8px 10px; }
.qs-group { display: flex; gap: 12px; padding: 12px 8px; border-radius: 10px; transition: background .3s; }
.qs-group + .qs-group { border-top: 1px solid var(--line); }
.qs-group.is-past { opacity: .5; }
.qs-list.hide-past .is-past { display: none; }
.qs-list.hide-past .is-past + .qs-group:not(.is-past) { border-top: 0; }
.qs-past-toggle {
  display: block; width: calc(100% - 28px); margin: 10px 14px 0; padding: 8px; border: 1px dashed var(--line);
  border-radius: 8px; background: #fff; color: var(--text-sub); font: inherit; font-size: 13px; cursor: pointer;
}
.qs-past-toggle:hover { border-color: var(--navy); color: var(--navy); }
.qs-group.flash { animation: qsFlash 1.2s ease-out; }
@keyframes qsFlash { from { background: #e3e8fb; } to { background: transparent; } }
.qs-date { flex-shrink: 0; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.qs-date strong { font-size: 17px; color: var(--navy); line-height: 1.2; }
.qs-date small { font-size: 12px; color: var(--text-sub); }
.qs-dday {
  margin-top: 4px; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px;
  background: #eef0fa; color: var(--navy);
}
.qs-dday.urgent { background: #d64545; color: #fff; }
.qs-dday.past { background: #e6e8ec; color: var(--text-sub); }
.qs-group > ul { flex: 1; display: grid; gap: 10px; min-width: 0; }
.qs-date { position: sticky; top: 8px; align-self: flex-start; }
.qs-title { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.4; }
.qs-who {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; vertical-align: 1px;
  color: var(--accent); background: #eef0fa; padding: 1px 7px; border-radius: 5px;
}
.qs-desc { font-size: 12.5px; color: #8a6d1e; line-height: 1.5; margin-top: 3px; }
.qs-group > ul > li + li { padding-top: 10px; border-top: 1px dashed var(--line); }
.qs-meta { display: flex; gap: 6px; font-size: 12.5px; color: var(--text); line-height: 1.5; margin-top: 3px; }
.qs-meta span {
  flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--accent);
  background: #eef0fa; padding: 0 6px; border-radius: 4px; height: 18px; line-height: 18px; margin-top: 1px;
}
.qs-law { color: var(--text-sub); }
.qs-law span { color: var(--text-sub); background: #f0f1f4; }

/* ---------- 모바일 하단 고정 바 ---------- */
.mobile-bar { display: none; }

/* =========================================================
   반응형
   ========================================================= */
/* 화면 폭이 좁아지면 상단 로고·메뉴를 단계적으로 줄임 */
@media (max-width: 1280px) {
  :root { --header-h: 110px; }
  .header .logo-img { height: 66px; }
  .header .logo-ko { font-size: 25px; }
  .header .logo-en { font-size: 21px; }
  .header-inner { gap: 24px; }
  .nav { gap: 22px; }
}
@media (max-width: 1080px) {
  :root { --header-h: 96px; }
  .header .logo { gap: 12px; }
  .header .logo-img { height: 54px; }
  .header .logo-ko { font-size: 20px; }
  .header .logo-en { font-size: 16.5px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
}

@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 74px; }
  .logo-img, .header .logo-img, .header.scrolled .logo-img { height: 46px; }
  .header .logo-ko, .header.scrolled .logo-ko { font-size: 18px; }
  .header .logo-en, .header.scrolled .logo-en { font-size: 14px; }
  .header .logo, .header.scrolled .logo { gap: 10px; }
  .header.scrolled { height: var(--header-h); }
  .hero::after { width: 40%; top: calc(var(--header-h) + 28px); height: 11px; background-size: 100% 4px, 100% 4px; }
  .pc-only { display: none; }
  .header-cta { display: none; }

  .menu-toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .menu-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.open { max-height: 400px; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); font-size: 16px; }

  .hero { padding: calc(var(--header-h) + 64px) 0 72px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  .about { grid-template-columns: 1fr; gap: 36px; }
  .book-section { padding: 64px 0; }
  .book { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .book-cover { max-width: 220px; transform: none; }
  .bc-title { font-size: 26px; }
  .book-actions { justify-content: center; }
  .book-actions .btn { flex: 1 1 100%; }
  .about-photo { max-width: 360px; margin: 0 auto; width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta .hero-actions { width: 100%; }

  /* 부동산 조회: 휴대폰에서는 작은 탭 + 화면 아래에서 올라오는 창 */
  .quick { top: auto; bottom: 120px; transform: none; }
  .quick-tabs { gap: 6px; }
  .qp-sched { width: auto; }
  .qp-body { max-height: none; }
  .quick-tab { width: 48px; padding: 10px 4px; font-size: 10.5px; gap: 4px; border-radius: 10px 0 0 10px; }
  .quick-tab svg { width: 18px; height: 18px; }
  .quick-panel {
    position: fixed; left: 12px; right: 12px; top: auto; bottom: 70px; width: auto; transform: none;
    max-height: calc(100vh - 140px); overflow-y: auto; animation: qpUp .2s ease-out;
  }
  @keyframes qpUp { from { opacity: 0; transform: translateY(16px); } }
  .has-nl-badge .quick-panel { bottom: 124px; }
  .has-nl-badge .quick { bottom: 170px; }

  /* 하단 고정 상담 버튼 */
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    box-shadow: 0 -4px 16px rgba(0,0,0,.1);
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
  }
  .mobile-bar a { padding: 17px 0; text-align: center; font-weight: 800; font-size: 16px; }
  .mb-call { background: var(--navy); color: #fff; }
  .mb-kakao { background: var(--kakao); color: var(--kakao-text); }
  .mb-mail { background: #fff; color: var(--navy); }
  /* Netlify 표시가 상담 버튼을 가리지 않도록 버튼 아래에 자리를 만듦 */
  .has-nl-badge .mobile-bar { padding-bottom: calc(54px + env(safe-area-inset-bottom)); background: var(--navy-deep); }
  .has-nl-badge .footer { padding-bottom: 170px; }
  .footer { padding-bottom: 110px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .why-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; text-align: left; padding: 20px; }
  .process span { grid-row: span 2; margin: 0; }
  .service-card { padding: 32px 24px; }
  .location-info { padding: 28px 22px; }
  .profile-list { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .sb-list { grid-template-columns: 1fr; }
  .sb-panel { padding: 20px 16px; }
  .sb-search input { font-size: 16px; }
  .sb-selects label:not(.sb-check) { flex: 1 1 140px; }
  .sb-selects select { flex: 1; }
  .sb-banner { padding: 26px 22px; }
  .sb-banner .btn { width: 100%; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 20px; }
  .post-body table { display: block; overflow-x: auto; font-size: 14.5px; }
  .post-body th { white-space: normal; min-width: 90px; }
  .location-info dl { grid-template-columns: 1fr; gap: 4px; }
  .location-info dd { margin-bottom: 12px; }
}

/* =========================================================
   세무 정보 글 – 기고문형 구성요소 (요약·목차·번호 제목·박스·관련 법령)
   글(.md)에서 <div class="tn-…" markdown="1"> 로 사용
   ========================================================= */
.tn-series {
  display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--accent);
  background: #eef1fb; border-radius: 999px; padding: 6px 14px;
}
.post-body .tn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tn-tags span { font-size: 13.5px; color: var(--text-sub); background: var(--bg-gray); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; }
.post-body .tn-lead { font-size: 18px; line-height: 1.9; color: var(--text); padding: 4px 0 4px 16px; border-left: 3px solid var(--accent-light); }
.tn-box-title { font-weight: 800; font-size: 15px; letter-spacing: .3px; color: var(--navy); margin: 0 0 10px !important; }
.post-body .tn-summary,
.post-body .tn-contents,
.post-body .tn-point,
.post-body .tn-warn,
.post-body .tn-check,
.post-body .tn-laws { border-radius: 12px; padding: 20px 24px; }
.post-body .tn-summary { background: linear-gradient(135deg, #f1f3fb, #fff); border: 1px solid #d9def3; }
.post-body .tn-summary ul { list-style: none; padding-left: 0; }
.post-body .tn-summary li { position: relative; padding-left: 18px; }
.post-body .tn-summary li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.post-body .tn-summary strong { display: inline-block; min-width: 92px; }
.post-body .tn-contents { background: var(--bg-gray); }
.post-body .tn-contents ol { counter-reset: tn; list-style: none; padding-left: 0; columns: 2; column-gap: 28px; }
.post-body .tn-contents li { counter-increment: tn; break-inside: avoid; }
.post-body .tn-contents li::before { content: counter(tn, decimal-leading-zero); font-weight: 800; color: var(--accent); margin-right: 8px; }
.post-body .tn-contents a { color: var(--text); text-decoration: none; }
.post-body .tn-contents a:hover { color: var(--navy); text-decoration: underline; }
.post-body h2 .tn-num {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 30px;
  margin-right: 10px; padding: 0 8px; border-radius: 8px; background: var(--navy); color: #fff;
  font-size: 15px; vertical-align: 3px;
}
.post-body h2[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.post-body .tn-point { background: #f1f3fb; border-left: 4px solid var(--navy); }
.post-body .tn-warn { background: #fff7e8; border-left: 4px solid #e0a43a; }
.post-body .tn-warn .tn-box-title { color: #a8660a; }
.post-body .tn-check { border: 1px dashed #b9c2e6; }
.post-body .tn-check ul { list-style: none; padding-left: 0; }
.post-body .tn-check li { position: relative; padding-left: 30px; }
.post-body .tn-check li::before {
  content: "✓"; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 5px;
  background: var(--navy); color: #fff; font-size: 13px; line-height: 20px; text-align: center; font-weight: 800;
}
.post-body .tn-laws { background: var(--bg-gray); font-size: 15px; }
.post-body .tn-laws ul { list-style: none; padding-left: 0; }
.post-body .tn-laws li::before { content: "§"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.post-body .tn-source, .post-body .tn-caption { font-size: 13.5px; color: var(--text-sub); }
.post-body p > img { display: block; width: 100%; height: auto; margin: 8px auto; box-shadow: var(--shadow); }
@media (max-width: 640px) {
  .post-body .tn-contents ol { columns: 1; }
  .post-body .tn-summary, .post-body .tn-contents, .post-body .tn-point,
  .post-body .tn-warn, .post-body .tn-check, .post-body .tn-laws { padding: 16px 18px; }
  .post-body .tn-summary strong { display: block; min-width: 0; }
  .post-body .tn-lead { font-size: 16.5px; }
  .post-body h2 .tn-num { min-width: 34px; height: 26px; font-size: 13px; }
}

/* ---------- 업종별 경비율 조회 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.er-quick { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.er-quick .sb-label { margin-right: 4px; }
.er-quick button {
  font: inherit; font-size: 14px; padding: 6px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text-sub); transition: all .15s;
}
.er-quick button:hover { border-color: var(--navy); color: var(--navy); }
.er-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.er-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.er-table th {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 16px; text-align: left; line-height: 1.4; white-space: nowrap;
}
.er-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.er-table tbody tr:hover td { background: var(--bg-gray); }
.er-table tr.is-selected td { background: #eef1fb; }
.er-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.er-table td.num { font-weight: 700; color: var(--navy); font-size: 16px; }
.er-table td.num small { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-sub); }
.er-table .code { font-variant-numeric: tabular-nums; color: var(--text-sub); width: 96px; }
.er-table .act { width: 1%; text-align: right; }
.er-table .act .btn { white-space: nowrap; padding: 7px 14px; font-size: 13.5px; }
.er-sector {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent);
  background: #eef1fb; border-radius: 6px; padding: 1px 8px; margin-right: 8px; vertical-align: 1px;
}
.er-empty { text-align: center; color: var(--text-sub); padding: 48px 16px !important; }
.er-empty a { color: var(--navy); text-decoration: underline; }

.er-calc {
  margin-top: 40px; padding: 30px; border-radius: var(--radius);
  background: var(--navy-deep); color: #fff; scroll-margin-top: calc(var(--header-h) + 16px);
}
.er-calc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.er-calc-label { font-size: 13.5px; font-weight: 700; color: var(--accent-light); }
.er-calc h2 { color: #fff; font-size: 21px; line-height: 1.4; margin-top: 2px; }
.er-calc-rates { font-size: 14.5px; color: rgba(255,255,255,.75); margin-top: 4px; }
.er-calc-rates b { color: #fff; }
.er-close {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.er-close:hover { background: rgba(255,255,255,.1); }
.er-calc-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px 20px; margin-top: 24px; align-items: end; }
.er-calc-grid > label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.er-calc-grid small { font-weight: 400; color: rgba(255,255,255,.6); }
.er-input { position: relative; display: block; }
.er-input input {
  width: 100%; font: inherit; font-size: 18px; font-weight: 700; text-align: right;
  padding: 12px 40px 12px 14px; border-radius: 10px; border: 1.5px solid transparent; outline: none; color: var(--text);
}
.er-input input:focus { border-color: var(--accent-light); }
.er-input em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--text-sub); font-size: 15px; }
.er-book { border: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.er-book legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.er-book label { display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.er-book input { accent-color: var(--accent-light); width: 16px; height: 16px; }
.er-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.er-result { background: rgba(255,255,255,.08); border-radius: 12px; padding: 18px 20px; display: grid; gap: 2px; }
.er-result p { font-size: 14px; color: rgba(255,255,255,.75); }
.er-result strong { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.er-result small { font-size: 13px; color: rgba(255,255,255,.65); }
.er-calc-foot { margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,.6); }

.er-guide { margin-top: 56px; }
.er-guide h2 { font-size: 22px; color: var(--navy); }
.er-guide > p { margin: 10px 0 20px; color: var(--text-sub); font-size: 15.5px; }
.er-guide > p strong { color: var(--text); }
.er-rule td { font-size: 14.5px; }
.er-rule td small { color: var(--text-sub); }
.er-rule td.num { font-size: 15px; }
.er-points { margin-top: 20px; display: grid; gap: 8px; font-size: 15px; }
.er-points li { position: relative; padding-left: 16px; color: var(--text-sub); }
.er-points li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.er-points b { color: var(--text); margin-right: 6px; }

@media (max-width: 860px) {
  .er-calc-grid { grid-template-columns: 1fr; }
  .er-book { flex-direction: row; gap: 18px; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .er-table:not(.er-rule) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .er-table:not(.er-rule) tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .er-table:not(.er-rule) tbody tr:first-child { border-top: 0; }
  .er-table:not(.er-rule) td { padding: 0; border: 0; background: none !important; }
  .er-table:not(.er-rule) tr.is-selected { background: #eef1fb; }
  .er-table:not(.er-rule) .code { grid-column: 1; width: auto; font-size: 13px; }
  .er-table:not(.er-rule) .name { grid-column: 1 / -1; font-weight: 600; }
  .er-table:not(.er-rule) .act { grid-column: 2; grid-row: 1; }
  .er-table:not(.er-rule) td.num { text-align: left; font-size: 15px; }
  .er-table:not(.er-rule) td.num::before { content: attr(data-label) " "; font-weight: 500; color: var(--text-sub); font-size: 13px; }
  .er-table:not(.er-rule) td.num small { display: inline; margin-left: 6px; }
  .er-table:not(.er-rule) .er-empty { grid-column: 1 / -1; }
  .er-rule th, .er-rule td { padding: 10px 12px; }
  .er-calc { padding: 22px 18px; }
  .er-results { grid-template-columns: 1fr; }
  .er-result strong { font-size: 23px; }
}
.sb-more .btn[hidden] { display: none; }
.er-result p b { color: #fff; font-weight: 700; }
.er-min { display: inline-block; font-size: 12px; color: var(--accent-light); border: 1px solid rgba(170,181,240,.5); border-radius: 999px; padding: 0 8px; margin-left: 4px; }
.er-compare { display: grid; gap: 6px; margin-top: 10px; }
.er-compare > div {
  display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: baseline;
  padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6);
}
.er-compare > div.is-applied { border-color: var(--accent-light); background: rgba(170,181,240,.12); color: #fff; }
.er-compare span { font-size: 13.5px; font-weight: 600; }
.er-compare b { font-size: 15px; font-variant-numeric: tabular-nums; }
.er-compare small { grid-column: 1 / -1; font-size: 12.5px; color: rgba(255,255,255,.55); }
.er-applied { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--navy-deep); background: var(--accent-light); border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.er-table-wrap { overflow-x: auto; }
@media (max-width: 640px) { .er-rule th { white-space: normal; } .er-rule td.num { white-space: normal; min-width: 84px; } }
@media (max-width: 640px) { .er-rule th, .er-rule td { padding: 10px 9px; } .er-rule th { font-size: 12.5px; } .er-rule td { font-size: 13.5px; } .er-rule td.num { min-width: 0; font-size: 13.5px; } }
.er-rule tr.er-rule-hl td { background: #eef1fb; }
.er-rule-hl small { display: block; }
.er-calc-sub { font-size: 12.5px; color: rgba(255,255,255,.55); }

/* 사이드바: 경비율에 따른 추계소득금액 계산 */
.qp-ec { width: 400px; }
.qp-ec .qp-head strong { flex: 1; font-size: 15.5px; }
.qp-ec .qp-body { overflow-y: auto; padding: 14px 16px 16px; display: grid; gap: 14px; align-content: start; }
.ec-step { display: grid; gap: 6px; }
.ec-label { font-size: 13px; font-weight: 700; color: var(--navy); }
.ec-label small { font-weight: 400; color: var(--text-sub); font-size: 11.5px; margin-left: 4px; }
.ec-finder[hidden], .ec-picked[hidden] { display: none; }
.ec-finder input {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); outline: none;
}
.ec-finder input:focus { border-color: var(--navy); }
.ec-results { padding: 0 !important; margin-top: 6px; max-height: 236px; overflow-y: auto; border-radius: 10px; }
.ec-results:not(:empty) { border: 1px solid var(--line); }
.ec-results li + li { border-top: 1px solid var(--line); }
.ec-results button {
  width: 100%; text-align: left; font: inherit; background: #fff; border: 0; cursor: pointer;
  padding: 9px 12px; display: grid; gap: 1px;
}
.ec-results button:hover { background: var(--bg-gray); }
.ec-r-name { font-size: 14px; font-weight: 600; color: var(--text); }
.ec-r-meta { font-size: 12px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.ec-none { padding: 12px; font-size: 13px; color: var(--text-sub); }
.ec-none a { color: var(--navy); text-decoration: underline; }
.ec-picked {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
  border-radius: 10px; background: #eef1fb; border: 1px solid #d8def5;
}
.ec-picked-main { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ec-picked-main strong { font-size: 14.5px; color: var(--navy); }
.ec-picked-main > span { font-size: 12.5px; color: var(--text-sub); }
.ec-personal { font-size: 12px; color: var(--text); margin-top: 4px; line-height: 1.5; }
.ec-personal .er-calc-sub { color: var(--text-sub); font-size: 11.5px; }
.ec-change {
  flex-shrink: 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--navy); cursor: pointer;
  background: #fff; border: 1px solid var(--navy); border-radius: 999px; padding: 4px 12px;
}
.ec-inputs { gap: 6px; }
.ec-money { position: relative; display: block; }
.ec-money input {
  width: 100%; font: inherit; font-size: 16px; font-weight: 700; text-align: right; color: var(--text);
  padding: 9px 34px 9px 12px; border-radius: 10px; border: 1.5px solid var(--line); outline: none;
}
.ec-money input:focus { border-color: var(--navy); }
.ec-money em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13.5px; color: var(--text-sub); }
.ec-book { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.ec-book label { cursor: pointer; }
.ec-book input { position: absolute; opacity: 0; pointer-events: none; }
.ec-book span {
  display: block; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 4px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--text-sub); transition: all .15s;
}
.ec-book input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.ec-book input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ec-out { display: grid; gap: 10px; }
.ec-hint { font-size: 13px; color: var(--text-sub); text-align: center; padding: 14px 8px; background: var(--bg-gray); border-radius: 10px; }
.ec-res { background: var(--navy-deep); color: #fff; border-radius: 12px; padding: 14px 14px 12px; display: grid; gap: 2px; }
.ec-res p { font-size: 12.5px; color: rgba(255,255,255,.75); }
.ec-res p b { color: #fff; }
.ec-res > strong { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.ec-res > small { font-size: 12px; color: rgba(255,255,255,.65); }
.ec-res .er-min { font-size: 11px; }
.ec-res .er-compare > div { padding: 8px 10px; }
.ec-res .er-compare span { font-size: 12.5px; }
.ec-res .er-compare b { font-size: 13.5px; }
.ec-res .er-compare small { font-size: 11.5px; }
.qp-ec .qp-note { font-size: 12px; }
@media (max-width: 860px) {
  .qp-ec { width: auto; }
}

/* 메인 화면: 도구 배너 (지원사업 검색 · 경비율 계산) 나란히 */
.tool-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.tool-banners .sb-banner { margin-top: 0; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 30px 32px; }
.er-banner { background: linear-gradient(135deg, #20295e, var(--accent)); }
.er-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
@media (max-width: 860px) {
  .tool-banners { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tool-banners .sb-banner { padding: 26px 22px; }
  .er-banner-actions { width: 100%; }
  .er-banner-actions .btn { flex: 1 1 140px; }
}

/* 사이드바: 휴대폰에서는 '세무 도구' 버튼 하나로 접어 두기 (본문 가림 방지) */
.quick-toggle { display: none; }
@media (max-width: 860px) {
  .quick { flex-direction: column; align-items: flex-end; gap: 6px; }
  .quick-tabs { display: none; }
  .quick.tabs-open .quick-tabs { display: flex; animation: qtIn .16s ease-out; }
  @keyframes qtIn { from { opacity: 0; transform: translateY(8px); } }
  .quick-toggle {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    width: 48px; padding: 9px 4px; cursor: pointer;
    border: 1.5px solid var(--navy); border-right: 0; border-radius: 10px 0 0 10px;
    background: var(--navy); color: #fff;
    font: inherit; font-size: 10.5px; font-weight: 700; line-height: 1.3; text-align: center;
    box-shadow: -4px 6px 18px rgba(22,29,69,.25);
  }
  .quick-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
  .quick.tabs-open .quick-toggle { background: #fff; color: var(--navy); }
}
