/* 퍼스트그룹 메인페이지 */

/* 메인은 상단 브레드크럼 블록이 없으므로 헤더 바로 아래에서 시작한다 */
.hm-hero {
  position: relative;
  min-height: 750px;
  display: flex; align-items: center;
  overflow: hidden; background: #0f0926;
}
.hm-hero-track { position: absolute; inset: 0; }
.hm-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
  opacity: 0; transition: opacity .9s ease;
  pointer-events: none;
}
.hm-slide.is-active { opacity: 1; pointer-events: auto; }
.hm-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,14,30,.86) 0%, rgba(8,14,30,.62) 48%, rgba(8,14,30,.32) 100%);
}
.hm-slide-inner { position: relative; z-index: 1; width: 100%; color: #fff; padding: 56px 20px; }

.hm-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #8fb4ff; margin: 0 0 14px;
}
.hm-title {
  font-size: clamp(30px, 5vw, 54px); line-height: 1.2; font-weight: 800;
  margin: 0 0 16px; max-width: 18ch; color: #fff;
}
.hm-lead { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7; margin: 0 0 28px; max-width: 46ch; color: rgba(255,255,255,.88); }

.hm-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.hm-btn:hover { text-decoration: none; transform: translateY(-1px); }
.hm-btn-primary { background: var(--c-primary-2); color: #fff; }
.hm-btn-primary:hover { background: #1a66e0; color: #fff; }
.hm-btn-ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.hm-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

.hm-dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; display: flex; justify-content: center; gap: 9px; }
.hm-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.42); transition: background .2s, width .2s;
}
.hm-dot.is-active { background: #fff; width: 26px; border-radius: 999px; }

/* ── 공통 섹션 타이포 ── */
.hm-sec-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-primary); margin: 0 0 10px;
}
.hm-sec-title { font-size: 45px; line-height: 1.2; margin: 0 0 4px; }
.hm-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.hm-sec-head-center { justify-content: center; text-align: center; }
.hm-link { font-weight: 600; font-size: 14px; color: var(--c-primary); white-space: nowrap; }



/* ── 최신 소식 ── */
.hm-news { padding: clamp(56px, 8vw, 96px) 0; }
.hm-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hm-news-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px 28px; }
.hm-news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--c-fg); margin-bottom: 6px; }
.hm-news-head h2 { font-size: 19px; margin: 0; }
.hm-news-list { list-style: none; margin: 0; padding: 0; }
.hm-news-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--c-line-2); }
.hm-news-list li:last-child { border-bottom: 0; }
.hm-news-list a { color: var(--c-fg); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-news-list a:hover { color: var(--c-primary); }
.hm-news-list time { color: var(--c-muted); font-size: 13px; white-space: nowrap; }
.hm-empty { color: var(--c-muted); font-size: 14px; padding: 18px 0; justify-content: center; }

/* ── 견적 · 상담 ── */
.hm-estimate { padding: clamp(56px, 8vw, 96px) 0; background: var(--c-line-2); }
.hm-est-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.hm-est-card {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 28px; text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hm-est-body { min-width: 0; flex: 1 1 auto; }
.hm-est-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hm-est-card, .hm-est-card h3, .hm-est-desc, .hm-est-ico { transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.hm-est-card h3 { font-size: 22px; margin: 0 0 10px; color: var(--c-primary); }
.hm-est-desc { font-size: 16px; line-height: 1.7; color: var(--c-muted); margin: 0; }

/* ── 연락처 ── */
.hm-contact { padding: clamp(56px, 8vw, 96px) 0; }
.hm-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.hm-contact-note { font-size: 15px; line-height: 1.8; color: var(--c-muted); margin: 14px 0 24px; }
.hm-contact-list { margin: 0; display: grid; gap: 0; }
.hm-contact-list > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--c-line); }
.hm-contact-list > div:first-child { border-top: 1px solid var(--c-line); }
.hm-contact-list dt { font-size: 13px; font-weight: 700; color: var(--c-muted); letter-spacing: .04em; text-transform: uppercase; }
.hm-contact-list dd { margin: 0; font-size: 15px; line-height: 1.7; color: var(--c-fg); }

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .hm-biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hm-hero { min-height: 78vh; }
  .hm-slide-inner { padding: 40px 16px; }
  .hm-title { max-width: none; }
  .hm-cta .hm-btn { flex: 1 1 auto; }
  .hm-biz-grid, .hm-news-grid, .hm-est-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-est-grid { gap: 14px; }
  .hm-est-card { padding: 20px; gap: 14px; }
  .hm-est-card h3 { font-size: 19px; margin-bottom: 8px; }
  .hm-est-desc { font-size: 15px; }
  .hm-news-card { padding: 20px; }
  .hm-contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .hm-sec-head { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-slide { transition: none; }
  .hm-btn:hover, .hm-biz-card:hover, .hm-est-card:hover { transform: none; }
}

/* 최신소식: 제목이 nowrap 이라 컬럼을 밀어내지 않도록 축소 허용 */
.hm-news-card { min-width: 0; }
.hm-news-list li { min-width: 0; }
.hm-news-list a { min-width: 0; flex: 1 1 auto; }

/* ── 신뢰 지표 밴드 ─────────────────────────────────────── */
.hm-stats { background: #150b38; color: #fff; padding: 58px 0; }
.hm-stat-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.hm-stat-grid li { text-align: center; position: relative; }
.hm-stat-grid li + li::before {
  content: ""; position: absolute; left: -12px; top: 12%; bottom: 12%;
  width: 1px; background: rgba(255,255,255,.16);
}
.hm-stat-num {
  display: block; font-size: clamp(40px, 5.2vw, 64px); font-weight: 800;
  line-height: 1.05; letter-spacing: -.03em; color: var(--c-accent, #b0863a);
}
/* 카운트업 중 자릿수가 바뀌어도 폭이 흔들리지 않게 등폭 숫자 + 최종 폭 고정(JS) */
.hm-stat-v { display: inline-block; text-align: center; font-variant-numeric: tabular-nums; }
.hm-stat-suffix { font-size: .6em; margin-left: 2px; }
.hm-stat-label { display: block; margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.74); }

/* ── 인허가 · 인증 ──────────────────────────────────────── */
.hm-cert { padding: clamp(56px, 8vw, 96px) 0; }
.hm-sec-note { margin: -18px 0 26px; color: var(--c-muted); font-size: 15px; line-height: 1.7; }
.hm-cert-strip {
  list-style: none; margin: 0; padding: 4px 0 12px;
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.hm-cert-strip::-webkit-scrollbar { height: 6px; }
.hm-cert-strip::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 3px; }
.hm-cert-strip li { flex: 0 0 auto; scroll-snap-align: start; }
.hm-cert-strip img {
  width: 152px; height: 200px; object-fit: cover; object-position: top;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: #fff; transition: transform .18s ease, box-shadow .18s ease;
}
.hm-cert-strip a:hover img { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ── 주요 고객사 로고 마퀴 ──────────────────────────────── */
.hm-clients { padding: clamp(56px, 8vw, 96px) 0; background: var(--c-line-2); overflow: hidden; }
.hm-logo-row { overflow: hidden; margin-top: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
               mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hm-logo-track { display: flex; gap: 14px; width: max-content; animation: hm-marquee 46s linear infinite; }
.hm-logo-row.is-reverse .hm-logo-track { animation-direction: reverse; animation-duration: 58s; }
.hm-logo-row:hover .hm-logo-track { animation-play-state: paused; }
.hm-logo {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 156px; height: 74px; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius);
}
.hm-logo img { max-width: 128px; max-height: 50px; width: auto; height: auto; object-fit: contain; }
@keyframes hm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 768px) {
  .hm-stats { padding: 46px 0; }
  .hm-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .hm-stat-grid li:nth-child(odd) + li::before { display: none; }
  .hm-stat-label { font-size: 13.5px; margin-top: 9px; }
  .hm-sec-note { margin: -12px 0 18px; font-size: 14px; }
  .hm-cert-strip img { width: 122px; height: 160px; }
  .hm-logo { width: 128px; height: 62px; }
  .hm-logo img { max-width: 104px; max-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-logo-track { animation: none; }
  .hm-logo-row { overflow-x: auto; }
}

/* ── 수행사례 카드 ──────────────────────────────────────── */
.hm-cases { padding: clamp(56px, 8vw, 96px) 0; }
.hm-case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.hm-case {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hm-case:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.hm-case-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--c-line-2); overflow: hidden; }
.hm-case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.hm-case:hover .hm-case-thumb img { transform: scale(1.04); }
.hm-case-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--c-line-2), var(--c-tag)); }
.hm-case-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1 1 auto; }
.hm-case-title {
  font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--c-fg);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hm-case-date { font-size: 13px; color: var(--c-muted); margin-top: auto; }

.hm-map-cta { margin-top: 18px; align-self: flex-start; }

@media (max-width: 1024px) {
  .hm-case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .hm-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hm-case-body { padding: 12px 12px 14px; gap: 6px; }
  .hm-case-title { font-size: 14px; }
  .hm-case-date { font-size: 12px; }
}

/* ── 수행사례: 좌측 타이틀 + 우측 4개씩 슬라이드 ────────── */
.hm-cases-layout {
  display: grid; grid-template-columns: minmax(0, 225px) minmax(0, 1fr);
  gap: 38px; align-items: start;
}
.hm-cases-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.hm-cases-aside .hm-sec-title { font-size: 45px; line-height: 1.2; margin-bottom: 12px; }
.hm-cases-aside .hm-sec-note { margin: 0 0 22px; }

.hm-btn-outline {
  border: 1.5px solid var(--c-primary); color: var(--c-primary);
  background: transparent; gap: 8px;
}
.hm-btn-outline:hover { background: var(--c-primary); color: #fff; }

.hm-cases-count { margin: 26px 0 0; font-size: 15px; color: var(--c-muted); letter-spacing: .04em; }
.hm-cases-count strong { font-size: 30px; font-weight: 800; color: var(--c-fg); letter-spacing: -.02em; }
.hm-cases-count span { margin: 0 2px; }

.hm-cases-main { position: relative; min-width: 0; --case-gap: 20px; }
/* overflow:hidden 이 호버 시 -4px 들린 카드의 윗변(테두리 + 그림자)까지 잘라낸다.
   위아래로 여유를 padding 으로 만들고 같은 값의 음수 margin 으로 되돌려
   레이아웃은 그대로 두면서 세로 잘림만 없앤다. 가로 클리핑은 그대로. */
.hm-case-viewport { overflow: hidden; padding: 10px 0 34px; margin: -10px 0 -34px; }
.hm-case-track {
  display: flex; gap: var(--case-gap);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1); will-change: transform;
}
.hm-case-track > .hm-case { flex: 0 0 calc((100% - 3 * var(--case-gap)) / 4); }

.hm-case-arrow {
  position: absolute; top: 34%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--c-line); color: var(--c-fg);
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 3;
  box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, opacity .15s;
}
.hm-case-arrow:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.hm-case-arrow[disabled] { opacity: .35; cursor: default; }
.hm-case-arrow[disabled]:hover { background: #fff; border-color: var(--c-line); color: var(--c-fg); }
.hm-case-arrow.is-prev { left: -18px; }
.hm-case-arrow.is-next { right: -18px; }

.hm-case-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.hm-case-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--c-line); cursor: pointer; transition: width .2s, background .2s;
}
.hm-case-dots button.is-active { width: 26px; border-radius: 999px; background: var(--c-primary); }

@media (max-width: 1200px) {
  .hm-case-track > .hm-case { flex: 0 0 calc((100% - 2 * var(--case-gap)) / 3); }
}
@media (max-width: 1024px) {
  .hm-cases-layout { grid-template-columns: minmax(0, 1fr); }
  .hm-cases-aside { position: static; }
  .hm-cases-count { margin-top: 16px; }
  .hm-case-arrow.is-prev { left: 4px; }
  .hm-case-arrow.is-next { right: 4px; }
}
@media (max-width: 768px) {
  .hm-cases-main { --case-gap: 14px; }
  .hm-case-track > .hm-case { flex: 0 0 calc((100% - var(--case-gap)) / 2); }
  .hm-case-arrow { width: 40px; height: 40px; font-size: 20px; top: 30%; }
  .hm-cases-count strong { font-size: 24px; }
}

/* ── 고객사: 좌측 타이틀 + 우측 로고 마퀴 ───────────────── */
.hm-clients { background: #fff; }
.hm-clients-layout {
  display: grid; grid-template-columns: minmax(0, 225px) minmax(0, 1fr);
  gap: 38px; align-items: center;
}
.hm-clients-aside .hm-sec-title { font-size: 45px; line-height: 1.2; margin-bottom: 12px; }
.hm-clients-aside .hm-sec-note { margin: 0 0 22px; }
.hm-clients-main { min-width: 0; }
/* 로고는 테두리 없이 이미지만 */
.hm-clients .hm-logo { background: transparent; border: 0; width: auto; height: 56px; padding: 0 15px; }
.hm-clients .hm-logo img { max-width: 124px; max-height: 43px; mix-blend-mode: multiply; }
.hm-clients .hm-logo-row { margin-top: 0; }
.hm-clients .hm-logo-row + .hm-logo-row { margin-top: 35px; }

@media (max-width: 1024px) {
  .hm-clients-layout { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 768px) {
  .hm-clients .hm-logo { height: 46px; padding: 0 10px; }
  .hm-clients .hm-logo img { max-width: 98px; max-height: 35px; }
}

/* ── 오시는 길 — 배경 사진 위 지도 + 네이비 정보 패널 ───── */
.hm-map {
  position: relative; padding: clamp(64px, 8vw, 110px) 0;
  background: #dfe5ee url("/assets/pages/home/hero-02.jpg") center / cover no-repeat;
}
.hm-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(231 241 255 / 37%), rgb(215 224 236 / 31%));
}
.hm-map > .container { position: relative; z-index: 1; }

.hm-map-layout {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  border-radius: 10px; overflow: hidden; box-shadow: 0 28px 60px rgba(10,20,40,.22);
}
.hm-map-frame { background: #fff; min-height: 420px; }
.hm-map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.hm-map-panel {
  background: #150b38; color: #fff;
  padding: clamp(32px, 3.4vw, 52px); display: flex; flex-direction: column;
}
.hm-map-kicker {
  margin: 0 0 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--c-accent, #b0863a);
}
.hm-map-name { margin: 0 0 26px; font-size: clamp(24px, 2.4vw, 32px); color: #fff; letter-spacing: -.02em; }

.hm-map-info { list-style: none; margin: 0 0 28px; padding: 0; flex: 1 1 auto; }
.hm-map-info li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.hm-map-info li:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.hm-map-ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.10); color: var(--c-accent, #b0863a);
  display: flex; align-items: center; justify-content: center;
}
.hm-map-ico svg { width: 18px; height: 18px; }
.hm-map-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hm-map-k { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-accent, #b0863a); }
.hm-map-v { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.94); word-break: keep-all; }
.hm-map-v a { color: rgba(255,255,255,.94); }
.hm-map-v a:hover { color: #fff; }

.hm-map-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--c-ink, #100a28);
  font-weight: 700; font-size: 15px; padding: 17px 24px; border-radius: 6px;
  transition: background .15s ease, transform .15s ease;
}
.hm-map-btn:hover { background: var(--c-accent, #b0863a); color: #0e1420; text-decoration: none; transform: translateY(-1px); }

@media (max-width: 1024px) {
  .hm-map-layout { grid-template-columns: minmax(0, 1fr); }
  .hm-map-frame, .hm-map-frame iframe { min-height: 340px; }
}
@media (max-width: 768px) {
  .hm-map { padding: 44px 0; }
  .hm-map-frame, .hm-map-frame iframe { min-height: 260px; }
  .hm-map-panel { padding: 26px 20px; }
  .hm-map-name { margin-bottom: 18px; }
  .hm-map-info { margin-bottom: 20px; }
  .hm-map-info li { padding: 14px 0; gap: 12px; }
  .hm-map-ico { width: 34px; height: 34px; }
  .hm-map-v { font-size: 14px; }
  .hm-map-btn { padding: 15px 20px; }
}

/* ── 주요 사업: 좌측 타이틀 + 우측 카드 ────────────────── */
.hm-biz { padding: clamp(56px, 8vw, 96px) 0; background: var(--c-line-2); }
.hm-biz-layout {
  display: grid; grid-template-columns: minmax(0, 225px) minmax(0, 1fr);
  gap: 38px; align-items: start;
}
.hm-biz-aside .hm-sec-title { font-size: 45px; line-height: 1.2; margin-bottom: 14px; }
.hm-biz-aside .hm-sec-note { margin: 0; }

.hm-biz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-biz-card {
  display: flex; flex-direction: column; min-width: 0;
  position: relative; overflow: hidden;
  background: var(--c-card); border: 1px solid var(--c-line);
  padding: 35px 25px 30px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hm-biz-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }

/* 숫자는 카드 우상단 워터마크 (색은 theme-security.css 에서 지정) */
.hm-biz-num {
  position: absolute;
  top: 9px;
  right: 22px;
  z-index: 0;
  font-size: 70px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  pointer-events: none;
  user-select: none;
}

.hm-biz-name { position: relative; z-index: 1; display: block; font-size: 25px; font-weight: 700; color: var(--c-fg); margin-bottom: 10px; letter-spacing: -.02em; }
.hm-biz-desc { position: relative; z-index: 1; display: block; font-size: 15px; line-height: 1.7; color: var(--c-muted); margin-bottom: 22px; flex: 1 1 auto; }

.hm-biz-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hm-biz-more { font-size: 14.5px; font-weight: 700; color: var(--c-primary); }
.hm-biz-arrow {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--c-line); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.hm-biz-arrow svg { width: 16px; height: 16px; }
.hm-biz-card:hover .hm-biz-arrow { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

@media (max-width: 1280px) {
  .hm-biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hm-biz-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .hm-biz-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hm-biz-card { padding: 28px 20px 24px; }
  .hm-biz-num { font-size: 80px; right: 18px; }
  .hm-biz-name { font-size: 21px; }
  .hm-biz-desc { margin-bottom: 18px; }
}





/* ── 회사 소개 — [타이틀+내용] / 이미지 2단 ─────────────── */
.hm-about {
  padding: clamp(48px, 6vw, 76px) 0 0;
  background: #ffffff;
  overflow: hidden;
}
.hm-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
}
.hm-about-body { padding-bottom: clamp(48px, 6vw, 84px); }
/* 킥커·제목은 사업안내 aside 와 같은 위계 (요소 선택자에 덮이지 않도록 명시) */
.hm-about-body .hm-sec-eyebrow { font-size: 12px; letter-spacing: .16em; color: var(--c-accent); margin: 0 0 10px; }
.hm-about-body .hm-sec-title { font-size: 45px; line-height: 1.2; margin: 0 0 18px; }
.hm-about-body p { font-size: 17.5px; line-height: 1.8; color: var(--c-fg); margin: 0 0 16px; }
.hm-about-body p:last-of-type { margin-bottom: 24px; }
/* 이미지 — 섹션 하단에 붙여 세우고 컨테이너 우측 끝 정렬 */
.hm-about-photo { align-self: end; margin-bottom: -1px; min-width: 0; }
.hm-about-photo img {
  display: block; width: 100%; max-width: 380px; height: auto;
  margin-left: auto; margin-right: 0;
  filter: drop-shadow(0 18px 30px rgba(14,20,32,.13));
}

@media (max-width: 1024px) {
  .hm-about-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); gap: 28px; }
  .hm-about-photo img { max-width: 300px; }
}
@media (max-width: 768px) {
  .hm-about { padding-top: 36px; }
  .hm-about-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hm-about-body { padding-bottom: 24px; }
  .hm-about-body p { font-size: 16px; }
  .hm-about-photo img { max-width: 240px; margin: 0 auto; }
}

/* 섹션 타이틀 반응형 — 넓은 조건(1024) 을 먼저, 좁은 조건(768) 을 뒤에 둬야 한다 */
@media (max-width: 1024px) {
  .hm-cases-aside .hm-sec-title,
  .hm-clients-aside .hm-sec-title,
  .hm-biz-aside .hm-sec-title,
  .hm-about-body .hm-sec-title,
  .hm-sec-title { font-size: 38px; }
}
@media (max-width: 768px) {
  .hm-cases-aside .hm-sec-title,
  .hm-clients-aside .hm-sec-title,
  .hm-biz-aside .hm-sec-title,
  .hm-about-body .hm-sec-title,
  .hm-sec-title { font-size: 30px; }
}

/* ── 한글 줄바꿈 — 단어 중간에서 끊기지 않게 ───────────────
   기본 break-word 는 "수행합니/다" 처럼 어절을 쪼갠다.
   keep-all 로 어절 단위로만 줄을 넘긴다. */
.hm-hero, .hm-stats, .hm-about, .hm-estimate,
.hm-biz, .hm-cases, .hm-clients, .hm-news, .hm-map { word-break: keep-all; }
/* 영문 URL·긴 단어가 넘칠 때만 예외적으로 끊는다 */
.hm-news-list a, .hm-case-title, .hm-map-v { overflow-wrap: anywhere; }


/* ── 견적·상담 카드 아이콘 ────────────────────────────────
   오시는 길 패널의 원형 아이콘과 같은 언어로 통일. */
.hm-est-ico {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 54px; height: 54px; margin: 2px 0 0;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--c-accent, #b0863a);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.hm-est-ico svg { width: 26px; height: 26px; }
.hm-est-card:hover .hm-est-ico {
  background: rgba(176,134,58,.16);
  border-color: rgba(176,134,58,.5);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .hm-est-ico { width: 46px; height: 46px; margin: 1px 0 0; }
  .hm-est-ico svg { width: 22px; height: 22px; }
}

/* ── 모바일: 섹션 타이틀 블록 가운데 정렬 ──────────────────
   2단(타이틀 좌 / 콘텐츠 우) 이 1단으로 접히면 좌측 정렬 타이틀이 허전해 보인다. */
@media (max-width: 768px) {
  .hm-biz-aside,
  .hm-cases-aside,
  .hm-clients-aside { text-align: center; }

  /* 설명문의 줄바꿈은 데스크톱 폭에 맞춰 넣은 것이라 좁은 화면에선 어색하게 끊긴다.
     br 을 죽여 자연스러운 흐름에 맡긴다. (섹션에 word-break:keep-all 이 걸려 있어
     어절 단위로만 넘어간다.) */
  .hm-sec-note br { display: none; }
}
