/* 최고가족대부 주식회사 — 정적 홈페이지
   글자 크기 규칙(대부업법 광고 표시): 페이지의 모든 글자는 --fs(상호 글자 크기) 이상,
   가장 큰 글자(--fs-max)는 --fs의 3배 미만. 작은 글씨(font-size < --fs)를 만들지 마세요. */
:root {
  --fs: 16px;          /* 상호 = 필수 항목 = 최소 글자 */
  --fs-lg: 20px;
  --fs-max: 40px;      /* 히어로 제목, 페이지 최대 글자 (3 × 16 = 48 미만) */
  --ink: #1d2327;
  --muted: #4a5560;
  --forest: #123c35;
  --forest-2: #1d5a4f;
  --sand: #f5efe3;
  --paper: #fbfaf6;
  --gold: #b8892b;
  --line: #dcd5c6;
  --warn: #8a2b12;
  --warn-bg: #fff4ec;
  --radius: 14px;
  --wrap: 1200px;
}
@media (max-width: 899px) {
  :root { --fs: 14px; --fs-lg: 16px; --fs-max: 24px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
  font-size: var(--fs);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 머리말 ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--forest); color: var(--sand); font-size: var(--fs); font-weight: 800; letter-spacing: -0.04em;
}
.brand__name { font-size: var(--fs); font-weight: 800; color: var(--forest); }
.gnb { display: flex; align-items: center; gap: 24px; }
.gnb a { text-decoration: none; font-size: var(--fs); font-weight: 600; color: var(--ink); }
.gnb a[aria-current="page"] { color: var(--forest-2); text-decoration: underline; text-underline-offset: 6px; }
.gnb__bar { width: 1px; height: 20px; background: var(--line); }
.gnb .gnb__cta { background: var(--forest); color: #fff; padding: 8px 16px; border-radius: 999px; }
.gnb .gnb__cta[aria-current="page"] { color: #fff; background: var(--forest-2); text-decoration: none; box-shadow: 0 0 0 2px var(--gold); }

/* ---------- 등록번호 띠 ---------- */
.reg-band { background: var(--forest); color: var(--sand); }
.reg-band__inner { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-top: 8px; padding-bottom: 8px; font-weight: 700; }
.reg-band__label { color: #e9c77a; font-weight: 600; margin-right: 6px; }

/* ---------- 히어로 + 대출 조건 ---------- */
.hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(184,137,43,.16), transparent 42%),
    linear-gradient(135deg, var(--sand) 0%, #efe6d3 100%);
}
.hero__inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.hero__eyebrow { display: inline-block; font-weight: 800; color: var(--forest-2); border-bottom: 2px solid var(--gold); padding-bottom: 2px; margin-bottom: 12px; }
.hero__title { font-size: var(--fs-max); line-height: 1.25; letter-spacing: -0.03em; color: var(--forest); font-weight: 800; }
.hero__sub { margin-top: 12px; font-size: var(--fs-lg); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: var(--fs); padding: 10px 18px; border-radius: 999px; border: 2px solid var(--forest); }
.btn--primary { background: var(--forest); color: #fff; }
.btn--ghost { background: #fff; color: var(--forest); }
.btn--lg { font-size: var(--fs-lg); padding: 14px 24px; }

.terms { background: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: 0 6px 24px rgba(18,60,53,.10); border-top: 4px solid var(--gold); }
.terms__title { font-size: var(--fs-lg); font-weight: 800; color: var(--forest); margin-bottom: 8px; }
.terms__list { display: grid; grid-template-columns: 1fr; gap: 6px; }
.terms__list > div { display: grid; grid-template-columns: auto; }
.terms__list .terms__wide { grid-column: 1 / -1; }
.terms__list > div:first-child { grid-column: 1 / -1; }
.terms__list > div:nth-child(2) { grid-column: 1 / -1; }
.terms dt { font-weight: 700; color: var(--forest-2); }
.terms .terms__dup { display: none; } /* 본문 문구에 항목명이 이미 들어 있어 중복 제목 숨김 */
.terms__list > div + div { padding-top: 6px; border-top: 1px dashed var(--line); }
.terms__rate { font-weight: 800; font-size: var(--fs-lg); }

/* ---------- 사업자 정보 ---------- */
.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts__inner { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 4px 24px; padding-top: 12px; padding-bottom: 12px; }
.facts__wide { grid-column: span 2; }
.facts strong { color: var(--forest-2); margin-right: 6px; }

/* ---------- 경고 3종 ---------- */
.warnings { background: var(--warn-bg); border-bottom: 1px solid #f0d6c4; }
.warnings__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.warning { font-weight: 800; color: var(--warn); border-left: 4px solid var(--warn); padding: 4px 10px; background: #fff; border-radius: 6px; }

/* ---------- 홈 본문 ---------- */
.call-strip { background: var(--forest-2); color: #fff; margin-top: 0; }
.call-strip__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }
.call-strip__label { font-size: var(--fs-lg); font-weight: 700; color: #e9c77a; }
.call-strip__num { font-size: 32px; font-weight: 800; letter-spacing: .02em; text-underline-offset: 6px; }
.call-strip__mail { font-size: var(--fs-lg); }

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h2, .card h3 { font-size: var(--fs-lg); color: var(--forest); margin-bottom: 12px; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--forest); margin-bottom: 16px; }
.card__head h2 { margin-bottom: 10px; }
.card__more { text-decoration: none; color: var(--muted); font-weight: 600; }
.card--plain { margin-top: 24px; }
.empty { text-align: center; color: var(--muted); background: var(--paper); padding: 36px 12px; border-radius: 10px; }
.info-list > div { display: grid; grid-template-columns: 88px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.info-list dt { font-weight: 700; color: var(--forest-2); }
.check-list { padding-left: 1.2em; display: grid; gap: 8px; }
.check-list li::marker { color: var(--gold); }
.check-list--num { margin: 16px 0; }

.alert { margin-top: 24px; margin-bottom: 48px; background: #fff; border: 2px solid var(--warn); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; }
.alert h2 { font-size: var(--fs-lg); color: var(--warn); }

/* ---------- 서브페이지 ---------- */
.subpage { padding-top: 40px; padding-bottom: 56px; display: grid; gap: 16px; }
.subpage__title { font-size: var(--fs-lg); color: var(--forest); border-bottom: 2px solid var(--forest); padding-bottom: 10px; }
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cs-grid .card p { margin-bottom: 16px; color: var(--muted); }
.note { color: var(--muted); }
.loan-contact { display: flex; flex-wrap: wrap; gap: 12px; }
.policy section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; scroll-margin-top: 16px; }
.policy h3 { font-size: var(--fs-lg); color: var(--forest); margin-bottom: 8px; }
.placeholder { color: var(--muted); }
.notice-list { list-style: none; padding: 0; }
.notice-list li { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); }

/* ---------- 바닥글 ---------- */
.site-footer { background: #17201e; color: #d9dfdc; padding: 32px 0 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #34413d; }
.footer-links a { text-decoration: none; color: #d9dfdc; }
.footer-info { display: grid; gap: 4px; }
.footer-info__name { font-weight: 800; color: #fff; }
.footer-info a { color: #fff; }

/* ---------- 모바일 ---------- */
@media (max-width: 899px) {
  .wrap { padding: 0 14px; }
  .site-header__inner { height: auto; flex-wrap: wrap; gap: 2px 8px; padding-top: 6px; padding-bottom: 6px; }
  .gnb { width: 100%; justify-content: space-between; gap: 6px; }
  .gnb a { white-space: nowrap; }
  .brand { gap: 6px; }
  .brand__mark { width: 28px; height: 28px; border-radius: 8px; }
  .gnb__bar { display: none; }
  .gnb .gnb__cta { padding: 4px 10px; }
  .reg-band__inner { flex-direction: column; gap: 0; padding-top: 4px; padding-bottom: 4px; }
  .reg-band__label { margin-right: 4px; }
  .hero__inner { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .hero__eyebrow { margin-bottom: 2px; }
  .hero__title { line-height: 1.25; }
  .hero__sub { margin-top: 4px; font-size: var(--fs); }
  .hero__cta { margin-top: 6px; gap: 6px; }
  .hero__cta .btn { padding: 4px 12px; }
  .terms { padding: 8px 12px; border-top-width: 3px; }
  .terms__title { display: none; }
  .terms__list { grid-template-columns: 1fr; gap: 2px; line-height: 1.4; }
  .terms__list > div { display: block; }
  .terms__rate-row dt { display: inline; margin-right: 6px; }
  .terms__rate-row dd { display: inline; }
  .terms__list > div + div { padding-top: 2px; }
  .facts__biz { grid-column: 1 / -1; }
  .facts__inner { grid-template-columns: 1fr 1fr; gap: 0 10px; padding-top: 6px; padding-bottom: 6px; line-height: 1.4; }
  .facts__wide { grid-column: 1 / -1; }
  .warnings__inner { grid-template-columns: 1fr; gap: 3px; padding-top: 5px; padding-bottom: 5px; }
  .warning { padding: 1px 8px; line-height: 1.4; }
  .call-strip__num { font-size: var(--fs-max); }
  .home-grid, .cs-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .card { padding: 16px; }
  .info-list > div { grid-template-columns: 72px 1fr; }
}

/* ---------- 개인채무자보호법 통지 ---------- */
.debtor { gap: 20px; }
.dn-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.dn-toc a { text-decoration: none; font-weight: 700; color: var(--forest); border: 2px solid var(--forest); border-radius: 999px; padding: 6px 14px; background: #fff; }
.dn-sec { display: grid; gap: 12px; scroll-margin-top: 12px; }
.debtor__h { font-size: var(--fs-lg); color: var(--forest); padding-top: 8px; }
.debtor__intro { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 18px 22px; display: grid; gap: 8px; }
.dn-notes { list-style: none; padding: 0; display: grid; gap: 4px; color: var(--muted); }
.debtor__remove { background: var(--sand); border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.board { width: 100%; border-collapse: collapse; background: #fff; border-top: 2px solid var(--forest); }
.board th, .board td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: var(--fs); }
.board thead th { background: var(--sand); color: var(--forest); white-space: nowrap; }
.board--kv th { width: 28%; background: var(--sand); color: var(--forest); }
.debtor__list .empty { margin-top: 0; border-radius: 0 0 10px 10px; }
@media (max-width: 899px) {
  .debtor__intro { padding: 12px 14px; }
  .board--kv th { width: 40%; }
  .board--list thead { display: none; }
  .board--list tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .board--list td { display: flex; gap: 8px; border: 0; padding: 2px 8px; }
  .board--list td::before { content: attr(data-th); flex: 0 0 132px; font-weight: 700; color: var(--forest-2); }
}
