@charset "utf-8";

/* =============================================
   반응형 표시/숨김 유틸리티
   ============================================= */
.pc_v {
  display: block;
} /* PC 전용 – 태블릿↓ 숨김 */
.mo_v {
  display: none;
} /* 모바일 전용 – PC에서 숨김 */

/* ================================
   HEADER (1단 / 히어로 위 오버레이형)
   ================================ */

:root {
  --hd-h: 85px;
  --hd-h-tb: 66px;
  --hd-h-mo: 64px;
}

.one-hd-con {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--hd-h);
  z-index: 100;
  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;
}

/* 메인은 어두운 히어로 위에 얹히므로 투명하게 두지만,
   히어로가 없는 페이지는 배경을 깔지 않으면 로고·메뉴가 묻힌다 */
body:not(.home) .one-hd-con {
  background: rgba(12, 12, 12, 0.95);
}

/* 스크롤 시 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: 1300px;
  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;
  margin-top: 8px;
}

/* 워드프레스 커스텀 로고 래퍼 대응 */
.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 {
  margin: 0;
  padding: 0 0 0 var(--space-xs);
  font-size: var(--p-body);
  font-weight: var(--font-w-r);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

/* ── 우측 : 블로그 + 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-body);
  font-weight: var(--font-w-r);
  letter-spacing: 0.06em;
  color: var(--white-c);
}

/* 밑줄이 좌→우로 그려지는 절제된 호버 */
.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: var(--main-c);
  color: var(--bagic-color);
}

.one-hd-con .one-hd-btn--fill {
  gap: 6px;
  border: 2px solid var(--main-c);
  color: var(--main-c);
  font-weight: var(--font-w-bm);
  letter-spacing: 0.02em;
  font-size: var(--p-body);
}

.one-hd-con .one-hd-btn--fill:hover {
  background: var(--main-c);
  color: var(--white-c);
}

/* 모바일 전용 원형 전화 버튼 (표시 전환은 reset.css 의 .mo_view) */
.one-hd-con .one-hd-tel {
  line-height: 0;
}

.one-hd-con .one-hd-tel img {
  width: 40px;
  height: 40px;
}

/* 전화 아이콘 (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 .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);
    gap: var(--space-xs);
  }

  .one-hd-con .one-hd-lf {
    gap: 10px;
  }

  .one-hd-con .one-hd-logo img {
    height: 24px;
  }

  .one-hd-con .one-hd-name {
    padding: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  /* 시안에서는 두 줄로 끊기므로 가운뎃점을 감춘다 */
  .one-hd-con .one-hd-dot {
    display: none;
  }

  .one-hd-con .one-hd-blog {
    font-size: 13px;
  }

  /* 상담신청·전화번호 버튼 대신 원형 전화 버튼(.one-hd-tel)을 쓴다 */
  .one-hd-con .one-hd-cta {
    display: none;
  }

  body:not(.home) #main {
    padding-top: var(--hd-h-mo);
  }
}

/* 소형 모바일 */
@media (max-width: 480px) {
  .one-hd-con .one-hd-logo img {
    height: 20px;
  }

  .one-hd-con .one-hd-name {
    font-size: 11px;
  }

  .one-hd-con .one-hd-blog {
    font-size: 12px;
  }

  .one-hd-con .one-hd-tel img {
    width: 36px;
    height: 36px;
  }
}