/* ─────────────────────────────────────────────
   ho1.co.kr 공용 스타일
   헤더 / 네비게이션 / 본문 / 푸터
   클래스 접두어 sh-, pg- 사용 (계산기 페이지 CSS와 충돌 방지)
───────────────────────────────────────────── */

:root {
  --brand:        #2470ff;
  --brand-dark:   #1b57c9;
  --ink:          #1e293b;
  --ink-soft:     #475569;
  --ink-mute:     #94a3b8;
  --line:         #e2e8f0;
  --bg:           #f0f4f8;
  --surface:      #ffffff;
  --font:         'Noto Sans KR', 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
}

/* ── 헤더 ── */
.sh-header {
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-family: var(--font);
}
.sh-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sh-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 19px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}
.sh-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2470ff, #4f8cff);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.sh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.sh-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sh-nav a:hover {
  background: #eff6ff;
  color: var(--brand);
}
.sh-nav a.is-active {
  background: #eff6ff;
  color: var(--brand);
}

/* ── 페이지 골격 ── */
.pg-body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
.pg-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}
.pg-wrap-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

/* ── 브레드크럼 ── */
.pg-crumb {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.pg-crumb a {
  color: var(--ink-mute);
  text-decoration: none;
}
.pg-crumb a:hover { color: var(--brand); text-decoration: underline; }

/* ── 히어로 ── */
.pg-hero {
  background: linear-gradient(135deg, #2470ff 0%, #4f46e5 100%);
  color: #fff;
  padding: 56px 20px 52px;
  text-align: center;
}
.pg-hero-inner { max-width: 780px; margin: 0 auto; }
.pg-hero h1 {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -0.8px;
  line-height: 1.35;
}
.pg-hero p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto;
  max-width: 620px;
}
.pg-hero-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 168px;
  padding: 13px 22px;
  border-radius: 26px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s, opacity 0.15s;
}
.pg-btn:active { transform: scale(0.98); }
.pg-btn-light {
  background: #fff;
  color: var(--brand);
}
.pg-btn-light:hover { opacity: 0.9; }
.pg-btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.pg-btn-ghost:hover { background: rgba(255, 255, 255, 0.26); }

/* ── 페이지 제목 (히어로 없는 페이지) ── */
.pg-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.5px;
  line-height: 1.4;
}
.pg-lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

/* ── 섹션 ── */
.pg-section { margin-bottom: 40px; }
.pg-section h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  letter-spacing: -0.3px;
}
.pg-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 26px 0 10px;
}
.pg-section p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.pg-section ul, .pg-section ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.pg-section li {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.pg-section strong { color: var(--ink); font-weight: 700; }
.pg-section a { color: var(--brand); }

/* ── 카드 ── */
.pg-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.pg-card h3 {
  margin-top: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--brand);
}
.pg-card p:last-child, .pg-card ul:last-child { margin-bottom: 0; }

.pg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.pg-grid .pg-card { margin-bottom: 0; }

/* ── 서비스 링크 카드 ── */
.pg-linkcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.pg-linkcard:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 8px 22px rgba(36, 112, 255, 0.12);
}
.pg-linkcard-icon { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.pg-linkcard-name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.pg-linkcard-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}
.pg-linkcard-more {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

/* ── 표 ── */
.pg-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 18px;
  background: var(--surface);
}
.pg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pg-table th {
  background: #1e293b;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  white-space: nowrap;
}
.pg-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink-soft);
}
.pg-table tbody tr:nth-child(even) { background: #f8fafc; }
.pg-table tbody tr:last-child td { border-bottom: none; }

/* ── 콜아웃 ── */
.pg-note {
  background: #eff6ff;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.pg-note p {
  font-size: 14px;
  color: var(--brand-dark);
  margin: 0;
}

/* ── FAQ ── */
.pg-faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 24px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.pg-faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.pg-faq-item:last-child { border-bottom: none; }
.pg-faq-q {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.pg-faq-a {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ── 관련 글 ── */
.pg-related {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pg-related a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.pg-related a:hover { border-color: #bfdbfe; transform: translateY(-2px); }
.pg-related-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.pg-related-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

/* ── 본문 내 광고 ── */
.pg-ad {
  margin: 26px 0;
  text-align: center;
}
.pg-ad-label {
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* ── 푸터 ── */
.sh-footer {
  background: #1e293b;
  color: #cbd5e1;
  font-family: var(--font);
  padding: 36px 20px 0;
}
.sh-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}
.sh-footer-brand strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.sh-footer-brand p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.7;
}
.sh-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.sh-footer-col a {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 9px;
}
.sh-footer-col a:hover { color: #fff; text-decoration: underline; }
.sh-copy {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 0 22px;
  border-top: 1px solid #334155;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

/* ── 반응형 ── */
@media (max-width: 860px) {
  .sh-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .pg-grid { grid-template-columns: 1fr; }
  .pg-related { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sh-inner { padding: 10px 16px; gap: 10px; }
  .sh-nav { gap: 2px; }
  .sh-nav a { padding: 7px 9px; font-size: 13px; }
  .pg-wrap, .pg-wrap-wide { padding: 24px 16px 44px; }
  .pg-hero { padding: 40px 18px 38px; }
  .pg-hero h1 { font-size: 23px; }
  .pg-hero p { font-size: 14.5px; }
  .pg-title { font-size: 22px; }
  .pg-section h2 { font-size: 19px; }
  .pg-card { padding: 18px 18px; }
  .pg-faq { padding: 4px 18px; }
  .sh-footer-inner { grid-template-columns: 1fr; gap: 22px; }
}
