﻿/* =========================================
   1. Reset CSS (브라우저 기본 스타일 초기화)
========================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0 !important; padding: 0 !important; width: 100%; overflow-x: hidden; 
  line-height: 1.5; font-family: 'Pretendard', sans-serif; color: #313131; background-color: #FFF;
}
h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; font-size: 100%; font-weight: normal; line-height: normal; }
p, figure, blockquote, dl, dt, dd { margin: 0; padding: 0; }
ul, ol, li { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; color: inherit; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: 100%; margin: 0; border: none; background: none; border-radius: 0; outline: none; }
button { cursor: pointer; }

/* 공통 컨테이너 */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.experts .container {
 padding: 0;
}
.reviews .container {
 padding: 0;

}
.news .container {
 padding: 0;

}
.consulting .container {
 padding: 0;

}
.location .container {
 padding: 0;

}
.report-section .container {
 padding: 0;

}
.review-section .container {
 padding: 0;

}
.consult-section .container {
 padding: 0 36px;

}
.news-section .container {
 padding: 0;

}

.news-view-section .container {
  padding: 0 20px;
}
@media screen and (max-width: 768px) {
  .news-view-section .container {
    padding: 0;
  }
}
/* =========================================
   공통 컴포넌트 (필터 버튼)
========================================= */
.filter-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 60px;
}

.filter-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 44px;
  border-radius: 30px;
  border: 0.5px solid #939393;
  background: #FFFFFF;
  color: #313131;
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active {
  background: #B70000;
  border-color: #B70000;
  color: #FFFFFF;
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .filter-wrap { gap: 10px; margin-bottom: 40px; }
  .filter-btn { width: auto; padding: 0 20px; height: 27px; font-size: 13px; font-weight: 400; line-height: 1.4; }
}

/* =========================================
   공통 컴포넌트 (검색창)
========================================= */
.search-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
  height: 49px;
  background: #F5F5F5;
  border-radius: 4px;
  padding: 0 15px;
}

.search-box input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  color: #313131;
  outline: none;
}

.search-box button {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   공통 컴포넌트 (버튼 영역)
========================================= */

/* --- 하단 더보기 버튼 영역 (가운데 정렬) --- */
.btn-area {
  display: flex;
  justify-content: center; /* 가로 기준 완벽한 정중앙 정렬 */
  align-items: center;
  width: 100%; 
}

/* --- 기본 하얀색 더보기 버튼 --- */
.btn-more {
  display: inline-flex; 
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  text-decoration: none; 
  box-sizing: border-box; 
  
  width: 270px;
  height: 50px;
  border-radius: 30px;
  border: 0.5px solid #939393;
  background: #FFF;
  
  color: #313131;
  text-align: center;
  font-family: 'Pretendard', sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 38px; 
  transition: all 0.3s ease;
}

.btn-more:hover {
  background: #F8F9FA;
  border-color: #666;
}

/* --- 옅은 회색 버튼 스타일 (전문가 섹션 등) --- */
.btn-more.btn-light-gray {
  background: #F8F9FA; 
  border-color: #DDDDDD;
}

.btn-more.btn-light-gray:hover {
  background: #EEEEEE;
  border-color: #CCCCCC;
}

/* --- 빨간색 버튼 스타일 (후기 섹션 등) --- */
.btn-more.btn-red {
  background: #B70000; 
  color: #FFFFFF;
  border: none; 
}

.btn-more.btn-red:hover {
  background: #990000;
}

/* --- 공통 하단 상담신청(CTA) 배너 --- */
.common-cta-wrap {
  width: 100%;
  background: #B70000;
  margin-top: 0;
}

.common-cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 90px 160px; /* PC 기본 패딩 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.common-cta-text {
  color: #FFFFFF;
  font-family: 'Pretendard', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 38px;
  word-break: keep-all;
}

.common-cta-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 57px;
  border: 2px solid #FFFFFF;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Pretendard', sans-serif;
  font-size: 24px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.common-cta-btn:hover {
  background: #FFFFFF;
  color: #B70000;
}

/* =========================================
   2. Header (상단 메뉴바)
========================================= */
.header { position: fixed; top: 0; left: 0; width: 100%; background: #FFFFFF; z-index: 1000; border-bottom: 1px solid #EAEAEA; font-family: 'Pretendard', sans-serif; }
.header-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 68px; position: relative; z-index: 10; background: #FFFFFF; }
.logo a { display: block; width: 139px; height: 34px; aspect-ratio: 139 / 34; }
.logo img { width: 100%; height: 100%; object-fit: contain; }

/* =========================================
   Header 현재 페이지 활성화 (Active) 상태 표시
========================================= */
/* 👇 PC 화면(993px 이상)에서만 작동하도록 감싸줍니다 (모바일 화살표 충돌 방지!) */
@media screen and (min-width: 993px) {  
  /* 1. PC버전: 'on' 클래스가 붙은 메뉴는 글씨를 빨간색으로 고정 */
  .gnb-item.on .gnb-link { 
    color: #B70000; 
  }
  /* 2. PC버전: 'on' 클래스가 붙은 메뉴 하단에 빨간 밑줄 고정 */
  .gnb-item.on .gnb-link::after { 
    content: ''; 
    position: absolute; 
    bottom: 0;     
    /*
    left: 0; 
    width: 100%; 
    */
    left: 50%; /* 왼쪽에서 50% 지점으로 이동 */
    transform: translateX(-50%); /* 정확히 정중앙에 오도록 보정 */
    width: 60px; /* 👇 100% 대신 고정 사이즈(60px~70px)나 비율(50%)로 줄여주세요! */
    height: 3px; 
    background: #B70000;
    /* 기존 화살표 속성(border, transform 등)을 덮어쓰지 않도록 
       PC 환경에서만 이 블럭이 실행됩니다. */
  }
}
/* 3. 서브메뉴(변호사/법률사무원) 중 현재 위치한 곳 굵게+빨갛게 표시 (이건 공통 적용) */
.sub-menu a.current {
  color: #B70000;
  font-weight: 700;
}

@media screen and (min-width: 993px) {
  .btn-menu, .mobile-consult-btn { display: none; } 
  .gnb { height: 100%; margin-right: 80px; }
  .gnb-list { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; 
    /*gap: 70px; */ /* gap 속성이 있다면 지워주세요. width를 고정했기 때문에 알아서 간격이 맞습니다. */
    display: flex;
    justify-content: center; /* 메뉴 전체를 가운데로 예쁘게 모아줍니다 */  
  }
  .gnb-item { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; 
  /* 👇 핵심: 모든 메뉴의 가로 사이즈를 넉넉하고 동일하게 고정 (하위메뉴 텍스트 고려) */
  width: 140px; 
  text-align: center; /* 텍스트를 정중앙에 배치 */
  }
  .gnb-link { color: #313131; text-align: center; font-size: 17px; font-weight: 600; line-height: normal; text-decoration: none; position: relative; padding: 24px 0; 
    display: block;
    width: 100%;
    /* 기존에 있던 높이(height)나 색상(color) 속성은 그대로 두시면 됩니다 */
  }
  .gnb-item:hover .gnb-link { color: #B70000; }
  .gnb-item:hover .gnb-link::after {
     content: ''; position: absolute; bottom: 0; 
     /*left: 0; width: 100%; */
     left: 50%; 
     transform: translateX(-50%);
     width: 60px; /* on 상태와 똑같은 길이로 맞춰주세요 */
     height: 3px; background: #B70000; 
  }

 
  /* --- 하위 메뉴 영역 (PC) --- */
  .sub-menu { 
    position: absolute; 
    top: 68px; /* 헤더 끄트머리에서 시작 */
    left: 0; /* 1차 메뉴 왼쪽 끝에 정확히 맞춤 */
    width: 100%; /* 부모인 1차 메뉴(140px)와 똑같은 가로 사이즈 */
    transform: none; /* ❗핵심: 기존에 메뉴를 엇나가게 밀어버리던 속성 제거❗ */
    text-align: center; 
    display: none; 
    list-style: none; 
    padding: 25px 0 30px; 
    margin: 0; 
    z-index: 11; 
  }

  .sub-menu li { margin-bottom: 16px; }
  .sub-menu li:last-child { margin-bottom: 0; }
  .sub-menu a { color: #313131; text-align: center; font-family: Pretendard; font-size: 17px; font-weight: 600; line-height: normal; text-decoration: none; transition: color 0.2s; }
  .sub-menu a:hover, .sub-menu a.current { color: #B70000; font-weight: 700; }
  .header-bg { position: absolute; top: 68px; left: 0; width: 100%; height: 0; background: #FFFFFF; border-bottom: 1px solid #EAEAEA; box-shadow: 0 10px 15px rgba(0, 0, 0, 0.03); transition: height 0.3s ease; z-index: 5; overflow: hidden; }
  .header.is-hover .sub-menu { display: block; }
  .header.is-hover .header-bg { height: 196px; } 
}

@media screen and (max-width: 992px) {
  .header-bg { display: none; } 
  .header-container { height: 54px; }
  .btn-menu { display: flex; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: none; border: none; cursor: pointer; z-index: 101; }
  .btn-menu span { display: block; width: 100%; height: 2px; background: #222; transition: 0.3s ease; }
  .header.is-open .btn-menu span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .header.is-open .btn-menu span:nth-child(2) { opacity: 0; }
  .header.is-open .btn-menu span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .gnb { position: fixed; top: 0; right: -100%; width: 100%; max-width: 200px; height: 80vh; background: #FFFFFF; z-index: 100; box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; padding-top: 54px; }
  .header.is-open .gnb { right: 0; }
  .gnb-list { padding: 10px 30px; overflow-y: auto; flex: 1; list-style: none; margin: 0; }
  .gnb-item { }
  .gnb-link { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; color: #313131; font-size: 17px; font-weight: 600; text-decoration: none; 
    color: #313131;
font-family: Pretendard;
font-size: 15px;
font-style: normal;
font-weight: 700;
line-height: normal;
  }
  .gnb-link::after { content: ''; display: block; width: 10px; height: 10px; border-right: 2px solid #999; border-bottom: 2px solid #999; transform: rotate(45deg); transition: transform 0.3s; }
  .sub-menu { display: none; padding: 0 0 20px 0; list-style: none; margin: 0; }
  .sub-menu li { margin-bottom: 15px; }
  .sub-menu a { color: #666; font-size: 15px; text-decoration: none; font-weight: 500; 

  color: #313131;
  font-family: Pretendard;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  }
  /* 👇 마우스 오버 및 터치 시 빨간색으로 강조 */
    .sub-menu a:hover,
    .sub-menu a:active {
        color: #B70000;
        font-weight: 700; /* 터치 시 글씨가 살짝 굵어지게 하면 클릭 피드백이 확실합니다! */
    }
  .gnb-item.is-active .gnb-link { color: #B70000; padding-bottom: 15px; }
  .gnb-item.is-active .gnb-link::after { transform: rotate(-135deg); border-color: #B70000; margin-top: 5px; }
  .gnb-item.is-active { border-bottom: none; }
  .gnb-item.is-active > .gnb-link::before { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 0.25px; background: #B70000; }
  .gnb-item.is-active > .gnb-link { position: relative; border-bottom: 1px solid #EAEAEA; margin-bottom: 12px; }
  .gnb-item.is-active .sub-menu { display: block; }
  .gnb-item.is-active .sub-menu a.current { color: #B70000; font-weight: 700; }
  .mobile-consult-btn { padding: 0;     height: 45px;}
  .mobile-consult-btn a { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; background: #B70000; color: #FFFFFF; text-decoration: none; 
  color: #FFF;
  text-align: center;
  font-family: Pretendard;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  }
}

/* =========================================
   3. Quick Menu (우측 퀵메뉴 및 팝업)
========================================= */
.quick-menu { position: fixed; right: 50px; top: 50%; transform: translateY(-50%); z-index: 900; width: 93px; font-family: 'Pretendard', sans-serif; margin-top: 20px; 
}
.quick-header { position: relative; width: 93px; height: 45px; background: #B70000; border-radius: 15px 15px 0 0; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 8px; box-sizing: border-box; }
.icon-headset { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 41px; height: 41px; border-radius: 50%; background: #B70000; display: flex; justify-content: center; align-items: center; box-shadow: 0 -2px 5px rgba(0,0,0,0.1); }
.icon-headset img { width: 21.53px; height: 19.879px; display: block; }
.quick-title { color: #FFF; text-align: center; font-size: 16px; font-weight: 800; line-height: normal; }
.quick-body { width: 93px; height: 162px; background: #FFF; border: 2px solid #B70000; border-top: none; border-radius: 0 0 15px 15px; box-sizing: border-box; display: flex; flex-direction: column; }
.btn-quick-phone, .btn-quick-online { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: transparent; border: none; cursor: pointer; text-decoration: none; transition: background 0.2s; }
.btn-quick-phone:hover, .btn-quick-online:hover { background: #F8F9FA; }
.btn-quick-online:hover { border-radius: 0 0 13px 13px; }
.icon-phone { width: 24px; height: 25px; }
.icon-online { width: 34.515px; height: 29.722px; }
.btn-quick-phone span, .btn-quick-online span { color: #313131; text-align: center; font-size: 15px; font-weight: 500; line-height: normal; }
.quick-divider { margin: 0 10px; border: none; border-top: 1px solid #EAEAEA; }
.phone-popup { position: absolute; right: 110px; top: 50px; width: 252px; height: 77px; border-radius: 15px; border: 2px solid #B70000; background: #B70000; box-sizing: border-box; display: flex; align-items: center; padding: 0 20px; gap: 15px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); opacity: 0; visibility: hidden; transform: translateX(20px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);}
.phone-popup.is-show { opacity: 1; visibility: visible; transform: translateX(0); }
.phone-popup::after { content: ''; position: absolute; right: -2px; bottom: -17px; width: 30px; height: 19px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='21' viewBox='0 0 32 21' fill='none'%3E%3Cpath d='M31.0001 20L1.00006 1L22.9615 0.999999L31.0001 20Z' fill='%23B70000' stroke='%23B70000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.btn-popup-close { position: absolute; top: 8px; right: 10px; background: none; border: none; color: #FFF; font-size: 20px; cursor: pointer; line-height: 1; }
.popup-icon { width: 44px; height: 44px; background: #FFF; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.popup-icon img { width: 49px; height: 49px; }
.popup-info { display: flex; flex-direction: column; gap: 2px; }
.popup-label { color: #FFF; font-size: 16px; font-weight: 600; line-height: normal; }
.popup-number { color: #FFF; font-weight: 800; line-height: normal; font-size: 21px; }

.m-only { display: none !important; }

@media screen and (max-width: 768px) {
  .quick-menu { right: 10px; transform: translateY(-50%) scale(0.85); transform-origin: right center; }
  .phone-popup { right: 0; top: auto; bottom: -90px; transform: translateY(-10px); }
  .phone-popup.is-show { transform: translateY(0); }
  .phone-popup::after { top: -12px; right: 35px; bottom: auto; width: 0; height: 0; background: none; transform: none; border-top: 0px solid transparent; border-bottom: 15px solid #B70000; border-left: 10px solid transparent; border-right: 10px solid transparent; }
  .pc-only { display: none !important; }
  .m-only { display: block !important; }
  
  /* 모바일 공통 더보기 버튼 */
  .btn-more {
    width: 180px;
    height: 35px;
    font-size: 13px;
  }

  /* 모바일 공통 검색창 */
  .search-wrap { margin-bottom: 30px; padding: 0 10px; }
  .search-box { height: 35px; }

  /* 모바일 공통 CTA 배너 */
  .common-cta-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 68px 38px 68px 24px; /* 위아래 68px, 우측 38px (좌측은 24px로 균형 맞춤) */
    text-align: left;
    gap: 10px;

    padding: 60px 38px; /* 위아래 68px, 우측 38px (좌측은 24px로 균형 맞춤) */
  }
  .common-cta-text { font-size: 22px; line-height: 1.4; width: auto; 
  color: #FFF;
font-family: Pretendard;
font-size: 17px;
font-style: normal;
font-weight: 800;
line-height: 1.4
}
  .common-cta-btn { 
    width: 83px; 
    height: 38px; 
    border: 1px solid #FFF;
    font-size: 17px; 
    font-weight: 500;
    line-height: 38px;
    padding: 0;
    max-width: none;

    color: #FFF;
text-align: center;
font-family: Pretendard;
font-size: 17px;
font-style: normal;
font-weight: 500;
line-height: 1.4;
  }
}


/* =========================================
   [추가] 모바일 전용 하단 고정 퀵메뉴
========================================= */

/* PC 환경(769px 이상)에서는 모바일 퀵메뉴 숨김 */
@media screen and (min-width: 769px) {
  .mobile-quick-menu { display: none; }
}

/* 모바일 환경(768px 이하) 설정 */
@media screen and (max-width: 768px) {
  
  /* 1. 헤더 컨테이너 좌측 여백 18px로 조정 (우측은 햄버거 메뉴를 위해 기존 여백 유지) */
  .header-container {
    padding-left: 18px; 
  }

  /* 2. 로고 상하 여백 정확히 15px, 14px 지정 */
  .logo {
    margin-top: 15px;
    margin-bottom: 14px;
    display: flex; /* 마진이 정확히 먹히도록 설정 */
  }

  /* 3. 모바일 전용 로고 사이즈 (103x25) */
  .logo a {
    width: 103px;
    height: 25px;
    aspect-ratio: 103 / 25;
  }

  /* 1. 이미지 위에 그라데이션 깔기 (이 부분은 그대로 두시면 됩니다) */
    .swiper.key_visual .image.MOB {
        position: relative;
    }
    .swiper.key_visual .image.MOB::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 85%);
        pointer-events: none; /* 터치 방해 금지 */
    }

    /* 👇 2. 여기가 문제였습니다! 이렇게 수정해 주세요! */
    .swiper.key_visual .visual-text {
        /* position: relative;  <--- ❌ 이 줄을 반드시 지워주세요! 기존 레이아웃을 망가뜨립니다. */
        z-index: 10 !important; /* ✅ 기존 위치(absolute)는 그대로 둔 채, 층수만 그라데이션 위로 확 끌어올립니다. */
    }




  /* 1. 기존 PC 퀵메뉴는 완전히 숨김 처리 */
  .pc-quick-menu { display: none !important; }
  
  /* 2. 모바일 퀵메뉴 컨테이너 설정 */
  /* 1. 퀵메뉴 컨테이너: 스와이퍼 위로 끌어올리기 */
    .mobile-quick-menu {
        position: relative;
        width: 100%;
        min-height: 52px; /* 고정 전환 시 레이아웃 점프 방지 */
        z-index: 100;
        margin-top: -20px; /* 초기 위치는 기존처럼 스와이퍼를 살짝 침범 */
    }

    .mobile-quick-menu.is-sticky {
        z-index: 90;
    }

    .mobile-quick-menu.is-sticky .m-bottom-bar {
        position: fixed;
        top: 54px;
        left: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        z-index: 90;
    }

    .mobile-quick-menu.is-sticky .m-phone-popup {
        position: fixed;
        top: 114px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        z-index: 91;
    }

    .mobile-quick-menu.is-sticky .m-phone-popup.is-show {
        transform: translateX(-50%) translateY(0);
    }

    .mobile-quick-menu.is-sticky .m-phone-popup::after {
        top: -10px;
        bottom: auto;
        left: 40px;
        border-top: 0;
        border-bottom: 10px solid #B70000;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
    }

    /* 2. 하단 바: 윗부분만 둥글게, 아래는 일자로 */
    .m-bottom-bar {
        display: flex;
        width: 100%;
        max-width: 768px;
        height: 52px;
        margin: 0 auto;
        background: #FFFFFF;
        /*border: 1px solid #B70000;*/
        border-bottom: none; /* 아랫부분은 둥근 모서리가 없으므로 하단 선을 빼주면 더 깔끔합니다 */
        border-radius: 10px 10px 0 0; /* 👇 윗부분 좌우만 10px 둥글게, 아래는 0 (일자) */
        box-sizing: border-box;
        overflow: hidden;
    }

  /* 왼쪽 무료상담 버튼 */
  .m-btn-free {
    flex: 1.2;
    background: #B70000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
  }

  /* 가운데 & 오른쪽 버튼 공통 */
  .m-btn-tel, .m-btn-online {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    color: #313131;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
  }

  /* 가운데 선 (디바이더) */
  .m-divider {
    width: 1px;
    height: 24px;
    background: #EAEAEA;
    align-self: center;
  }

  /* 4. 모바일 팝업창 (기본 숨김) */
  .m-phone-popup {
    position: absolute;
    bottom: 60px; /* 바텀 바 위로 띄움 */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 172px;
    height: 53px;
    background: #B70000;
    border: 2px solid #B70000;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 0 10px 0 15px;
    box-sizing: border-box;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* 팝업 활성화 클래스 */
  .m-phone-popup.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  /* 팝업 꼬리표 (말풍선 효과) */
  .m-phone-popup::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 40px; /* 무료상담 버튼 쪽을 향하도록 조절 */
    border-top: 10px solid #B70000;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
  }

  .m-popup-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
  }

  .m-popup-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .m-popup-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .m-popup-label {
    color: #FFFFFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .m-popup-number {
    color: #FFFFFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none; /* a 태그 기본 밑줄 제거 */
  }
}

/* =========================================
   4. Policy Modal (개인정보 모달)
========================================= */
.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.policy-modal.is-open { display: block; }

.policy-modal__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.policy-modal__dialog {
  position: relative;
  width: min(920px, calc(100% - 40px));
  max-height: calc(100vh - 80px);
  margin: 40px auto;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.policy-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid #EAEAEA;
}

.policy-modal__title {
  color: #111111;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.policy-modal__close-top {
  width: 36px;
  height: 36px;
  color: #444444;
  font-size: 34px;
  line-height: 1;
}

.policy-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

.policy-modal__body .policy-article { margin-bottom: 26px; }
.policy-modal__body .policy-article:last-child { margin-bottom: 0; }
.policy-modal__body .article-title {
  color: #313131;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.policy-modal__body .article-text {
  color: #555555;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  word-break: keep-all;
}

.policy-modal__body .article-text .indent {
  display: inline-block;
  padding-left: 15px;
}

.policy-modal__footer {
  display: flex;
  justify-content: center;
  padding: 18px 28px 24px;
  border-top: 1px solid #EAEAEA;
}

.policy-modal__close-bottom {
  width: 180px;
  height: 48px;
  border-radius: 24px;
  background: #313131;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 500;
}

.policy-modal__close-bottom:hover { background: #B70000; }

@media screen and (max-width: 768px) {
  .policy-modal__dialog {
    width: calc(100% - 24px);
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    border-radius: 10px;
  }

  .policy-modal__header { padding: 16px 18px; }
  .policy-modal__title { font-size: 21px; }
  .policy-modal__close-top { width: 28px; height: 28px; font-size: 28px; }
  .policy-modal__body { padding: 16px 18px; }
  .policy-modal__body .policy-article { margin-bottom: 20px; }
  .policy-modal__body .article-title { font-size: 17px; margin-bottom: 8px; }
  .policy-modal__body .article-text { font-size: 14px; line-height: 1.6; }
  .policy-modal__footer { padding: 14px 18px 16px; }
  .policy-modal__close-bottom { width: 130px; height: 38px; font-size: 15px; }
}

/* 상담신청 완료 모달 스타일은 complete-modal-mobile.css / complete-modal-pc.css로 분리 */
/* =========================================
   5. Footer (하단 영역)
========================================= */
.footer { background: #333333; padding: 60px 0 80px; font-family: 'Pretendard', sans-serif; }

/* 👇 1031px에서 헤더와 동일한 1240px로 가로 사이즈 통일 */
.footer-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.footer-links { display: flex; gap: 24px; margin-bottom: 10px; }
.link-terms { color: #939393; font-size: 17px; font-weight: 400; line-height: 38px; text-decoration: none; }
.link-privacy { color: #939393; font-size: 17px; font-weight: 600; line-height: 38px; text-decoration: none; }

/* 늘어난 가로 사이즈(1240px)에 맞춰 구분선도 길어지도록 100% 유지 */
.footer-divider { width: 100%; height: 0.5px; background: #666666; border: none; margin: 10px 0 30px; }

.company-name { display: block; color: #FFFFFF; font-size: 17px; font-weight: 700; line-height: 38px; margin-bottom: 4px; }

/* 👇 텍스트 영역도 특정 수치에 갇히지 않고 1240px 안에서 자연스럽게 뻗어나가도록 max-width 100%로 수정 */
.company-details { max-width: 100%; color: #939393; font-size: 17px; font-weight: 400; line-height: 20px; margin-bottom: 30px; }
.company-details p { margin: 0 0 8px 0; word-break: keep-all; }
.company-details .bar { display: inline-block; margin: 0 12px; color: #666; font-size: 14px; vertical-align: middle; }

.copyright { color: #939393; font-size: 17px; font-weight: 400; line-height: 20px; margin: 0; }

@media screen and (max-width: 768px) {
  .footer { padding: 55px 0 67px; }
  .link-terms, .link-privacy, .company-name, .company-details, .copyright { font-size: 14px; line-height: 1.6; }
  .footer-links { margin-bottom: 5px; }
  .footer-divider { margin: 15px 0 20px; }
  .company-details .bar { display: none; }
  .company-details p { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }

    /* 1. 두 개의 p태그 사이 간격을 확 줄여줍니다 */
    .company-details p {
        margin-bottom: 0; /* 이 숫자를 조절해서 p태그 사이의 간격을 맞추세요! (기본값은 보통 16px 정도입니다) */
        line-height: 1.4; /* 엔터(<br>) 쳐진 글자 위아래 간격이 너무 넓다면 이 수치도 1.4나 1.3으로 살짝 줄여보세요 */
    }
    /* 2. 마지막 p태그 밑에는 불필요한 여백이 없도록 깔끔하게 0으로 처리! */
    .company-details p:last-child {
        margin-bottom: 0;
    }
  
}

