@charset "utf-8";

/* =============================================
   반응형 표시/숨김 유틸리티
   ============================================= */
.pc_v {
  display: block;
} /* PC 전용 – 태블릿↓ 숨김 */
.mo_v {
  display: none;
} /* 모바일 전용 – PC에서 숨김 */

/* ================================
   HEADER (1단 / 히어로 위 오버레이형)
   ================================ */

:root {
  --hd-h: 74px;
  --hd-h-tb: 66px;
  --hd-h-mo: 56px;
}

.one-hd-con {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--hd-h);
  z-index: 100;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.4s ease, height 0.4s ease, border-color 0.4s ease;
}

/* 스크롤 시 JS가 부여하는 클래스 */
.one-hd-con.is_scrolled {
  height: 62px;
  background: rgba(12, 12, 12, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.one-hd-con .one-hd-inner {
  max-width: var(--container-w-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

/* ── 좌측 : 로고 + 변호사명 ── */
.one-hd-con .one-hd-lf {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.one-hd-con .one-hd-logo {
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* 워드프레스 커스텀 로고 래퍼 대응 */
.one-hd-con .one-hd-logo .custom-logo-link {
  display: block;
}

.one-hd-con .one-hd-logo img {
  width: auto;
  height: 34px;
  transition: height 0.4s ease;
}

/* 로고 미등록 시 텍스트 대체 */
.one-hd-con .one-hd-logo a {
  font-size: var(--p-title);
  font-weight: var(--font-w-b);
  color: var(--white-c);
  line-height: 1.2;
}

.one-hd-con .one-hd-name {
  position: relative;
  margin: 0;
  padding: 0 0 0 var(--space-xs);
  font-size: var(--p-caption);
  font-weight: var(--font-w-m);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

/* 로고와의 구분선 */
.one-hd-con .one-hd-name::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.28);
}

/* ── 우측 : 블로그 + CTA ── */
.one-hd-con .one-hd-rg {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.one-hd-con .one-hd-blog {
  position: relative;
  font-size: var(--p-caption);
  font-weight: var(--font-w-b);
  letter-spacing: 0.06em;
  color: var(--white-c);
  white-space: nowrap;
}

/* 밑줄이 좌→우로 그려지는 절제된 호버 */
.one-hd-con .one-hd-blog::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--main-c);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.one-hd-con .one-hd-blog:hover::after {
  transform: scaleX(1);
}

.one-hd-con .one-hd-cta {
  display: flex;
  align-items: stretch;
}

.one-hd-con .one-hd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  font-size: var(--p-caption);
  font-weight: var(--font-w-bm);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.one-hd-con .one-hd-btn--line {
  background: rgba(255, 255, 255, 0.92);
  color: var(--bagic-color);
}

.one-hd-con .one-hd-btn--line:hover {
  background: var(--white-c);
}

.one-hd-con .one-hd-btn--fill {
  gap: 6px;
  background: var(--sub-c-01);
  color: var(--white-c);
  font-weight: var(--font-w-b);
  letter-spacing: 0.02em;
}

.one-hd-con .one-hd-btn--fill:hover {
  background: var(--main-c);
}

/* 전화 아이콘 (mask 방식 - 색상을 CSS로 제어) */
.one-hd-con .one-hd-btn-ico {
  display: none;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-image: url('../images/tel_icon.svg');
  mask-image: url('../images/tel_icon.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* 서브페이지 : 고정 헤더에 콘텐츠가 가려지지 않도록 여백 확보
   (메인은 히어로가 헤더 아래로 깔리므로 제외) */
body:not(.home) #main {
  padding-top: var(--hd-h);
}


/* ================================
   반응형
   ================================ */

/* 랩탑 */
@media (max-width: 1280px) {
  .one-hd-con .one-hd-inner {
    padding: 0 var(--space-sm);
  }
}

/* 태블릿 */
@media (max-width: 1023px) {
  .one-hd-con {
    height: var(--hd-h-tb);
  }

  .one-hd-con .one-hd-logo img {
    height: 30px;
  }

  .one-hd-con .one-hd-name {
    font-size: 13px;
  }

  .one-hd-con .one-hd-rg {
    gap: var(--space-xs);
  }

  .one-hd-con .one-hd-btn {
    padding: 0 14px;
  }

  body:not(.home) #main {
    padding-top: var(--hd-h-tb);
  }
}

/* 모바일 */
@media (max-width: 900px) {
  .one-hd-con {
    height: var(--hd-h-mo);
  }

  .one-hd-con.is_scrolled {
    height: var(--hd-h-mo);
  }

  .one-hd-con .one-hd-inner {
    padding: 0 var(--space-xs);
  }

  .one-hd-con .one-hd-logo img {
    height: 24px;
  }

  /* 정보 밀도 조절 : 변호사명 · 블로그는 히어로 영역에서 재노출 */
  .one-hd-con .one-hd-name,
  .one-hd-con .one-hd-blog {
    display: none;
  }

  .one-hd-con .one-hd-btn {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .one-hd-con .one-hd-btn--line {
    padding: 0 10px;
  }

  body:not(.home) #main {
    padding-top: var(--hd-h-mo);
  }
}

/* 소형 모바일 */
@media (max-width: 480px) {
  /* 전화 CTA만 아이콘 + 번호로 유지 */
  .one-hd-con .one-hd-btn--line {
    display: none;
  }

  .one-hd-con .one-hd-btn--fill {
    padding: 0 14px;
    font-size: 13px;
  }

  .one-hd-con .one-hd-btn-ico {
    display: block;
  }
}