/* 하위 페이지 공통 스타일 (회사 소개, 사례 상세) — index.html 의 색과 글꼴을 따른다 */
:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --primary-light: #e8f0fe;
  --accent: #059669;
  --accent-light: #d1fae5;
  --text: #111827;
  --text-secondary: #6b7280;
  --bg: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a {
  color: var(--primary);
}
img {
  max-width: 100%;
}

/* 상단 */
.sub-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
}
.sub-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sub-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.sub-logo img {
  height: 34px;
  width: auto;
  display: block;
}
.sub-logo span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding-left: 0.6rem;
  border-left: 1px solid var(--border);
}
.role-logo {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 0.6rem;
}
.sub-footer-logo {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 0.6rem;
}
.sub-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.sub-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}
.sub-nav a:hover {
  color: var(--primary);
}

/* 본문 */
.sub-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.crumbs {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.crumbs a {
  color: var(--text-secondary);
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}
.sub-main h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.35;
  margin: 0.6rem 0 0.75rem;
  text-wrap: balance;
}
.sub-main h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
}
.lead {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 65ch;
}
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.desc {
  white-space: pre-line;
  font-size: 0.98rem;
}

/* 사진 */
.photos {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin: 1.25rem 0;
}
.photos figure {
  margin: 0;
}
.photos img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}

/* 역할 분담 카드 */
.roles {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.role h3 {
  margin: 0.4rem 0 0.25rem;
  font-size: 1.1rem;
}
.role .what {
  color: var(--primary-dark);
  font-weight: 700;
}
.role ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

/* 상담 안내 */
.cta {
  margin-top: 2.5rem;
  background: var(--primary-light);
  border: 1.5px solid #c7d7fb;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.cta strong {
  font-size: 1.1rem;
  color: var(--primary-dark);
}
.cta-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
}
.btn-call {
  background: var(--accent);
}
.btn-sms {
  background: #f59e0b;
}
.btn-form {
  background: var(--primary);
}

/* 다른 사례 */
.related {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.related a {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.related img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.related span {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.related small {
  display: block;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 하단 */
.sub-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.sub-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}
.sub-footer a {
  color: inherit;
  font-weight: 700;
}

/* 휴대폰 하단 고정 버튼 */
.quick-bar {
  display: none;
}
@media (max-width: 768px) {
  .sub-logo span {
    display: none;
  }
  /* 휴대폰: 메뉴를 로고 아래 한 줄로, 옆으로 밀어서 보기 */
  .sub-header-inner {
    flex-wrap: wrap;
    row-gap: 0.4rem;
    padding-bottom: 0.5rem;
  }
  .sub-nav {
    width: 100%;
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    font-size: 0.85rem;
  }
  .sub-nav::-webkit-scrollbar {
    display: none;
  }
  body {
    padding-bottom: 64px;
  }
  .quick-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
  }
  .quick-bar a {
    flex: 1;
    margin: 0 0.2rem;
    justify-content: center;
    padding: 0.75rem 0.3rem;
    font-size: 0.86rem;
  }
}

/* 상단 메뉴: 항목이 많아 PC 에서도 좁으면 줄인다 */
.sub-nav a[aria-current="page"] {
  color: var(--primary);
}
@media (max-width: 1100px) {
  .sub-logo span {
    display: none;
  }
  .sub-nav {
    gap: 0.7rem;
    font-size: 0.82rem;
  }
}

/* 표 (이온히팅 비교) */
.table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0;
}
table.compare {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9rem;
}
table.compare th,
table.compare td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
table.compare thead th {
  background: var(--bg);
}
table.compare .ion {
  background: var(--primary-light);
  font-weight: 700;
  color: var(--primary-dark);
}
.note {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
ul.facts {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

/* 자주 묻는 질문 */
details.faq {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
}
details.faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  list-style: none;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq summary::before {
  content: "Q. ";
  color: var(--primary);
}
details.faq[open] summary {
  border-bottom: 1px solid var(--border);
}
.faq-a {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

/* 업종 페이지: 사례 목록 */
.case-list {
  display: grid;
  gap: 0.75rem;
}
.case-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.case-item img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
}
.case-item-body {
  display: grid;
  gap: 0.25rem;
  align-content: center;
  padding: 0.75rem 1rem 0.75rem 0;
  min-width: 0;
}
.case-item-body span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.case-item-body em {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}
@media (max-width: 560px) {
  .case-item {
    grid-template-columns: 1fr;
  }
  .case-item img {
    height: 170px;
  }
  .case-item-body {
    padding: 0 1rem 1rem;
  }
}
.other-links {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 업종 모음 카드 */
.ind-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.ind-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.ind-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.ind-card span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}
.ind-card small {
  color: var(--text-secondary);
}

/* 인증·언론 */
.cert-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.panel.cert {
  display: grid;
  gap: 0.3rem;
  text-align: center;
  justify-items: center;
}
.panel.cert img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}
.cert-icon {
  font-size: 2.5rem;
}
.panel.cert small,
.panel.press small,
.panel.news small {
  color: var(--text-secondary);
}
.press-list {
  display: grid;
  gap: 0.75rem;
}
.panel.press,
.panel.news {
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--text);
}
.panel.press span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 블로그 */
.post-list {
  display: grid;
  gap: 0.75rem;
}
.post-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.post-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.post-card-body {
  display: grid;
  gap: 0.25rem;
  align-content: center;
  padding: 0.9rem 1rem 0.9rem 0;
  min-width: 0;
}
.post-card-body small {
  color: var(--text-secondary);
}
.post-card-body strong {
  font-size: 1.05rem;
}
.post-card-body span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
@media (max-width: 560px) {
  .post-card {
    grid-template-columns: 1fr;
  }
  .post-card img {
    height: 180px;
  }
  .post-card-body {
    padding: 0 1rem 1rem;
  }
}
.post {
  max-width: 760px;
}
.post-meta {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0 0 1.25rem;
}
.post-hero {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.post-body {
  font-size: 1rem;
}
.post-body h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
}
.post-body h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}
.post-body p,
.post-body ul,
.post-body ol {
  margin: 0 0 1rem;
}
.post-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 0.5rem 0;
}
.post-body table.compare {
  min-width: 0;
}

/* 상단 무료 상담 버튼, 하단 링크 */
.sub-nav a.sub-cta {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}
.sub-nav a.sub-cta:hover {
  color: #fff;
  opacity: 0.9;
}
.sub-footer-links {
  margin: 0.3rem 0;
}
@media (max-width: 768px) {
  /* 휴대폰은 하단 고정 버튼에 '무료 진단'이 있어 상단 버튼은 숨긴다 */
  .sub-nav a.sub-cta {
    display: none;
  }
}

/* 제품 소개 */
.model-jump {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.5rem;
}
.model-jump a {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.model {
  scroll-margin-top: 80px;
}
#choose {
  scroll-margin-top: 80px;
}
.model-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #0b1a3a;
  display: block;
  margin: 0.75rem 0;
}
table.compare.spec {
  min-width: 0;
}
table.compare.spec th {
  width: 34%;
  background: var(--bg);
}
.installed {
  font-size: 0.92rem;
}

/* 인물 사진, 인용 */
.person {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 0 0.2rem;
}
.person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  float: right;
  margin: 0 0 0.75rem 1rem;
}
.press-quote {
  clear: both;
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--primary-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
}
.press-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--text-secondary);
}
