/* 브라우저 기본 여백 제거 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scrollbar-gutter: stable;
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  color: #000;
  background-color: #fff;
  overflow-x: hidden;
  /* 좌우 스크롤 방지 */
  overflow-y: scroll;
  /* 스크롤바를 항상 표시해서, 내용 길이에 따라 생겼다 사라졌다 하며
     vw 단위 요소들의 너비가 흔들리는 것을 원천 차단 */
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden; 
  position: relative;
}

.section_promise {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
  background: linear-gradient(to bottom, #fff 30%, #161616 30%);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .section_promise {
    background: linear-gradient(to bottom, #fff 20%, #161616 20%);
  }
}

.main_text {
  color: #000;
  text-align: center;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.171875;
  /* 117.188% */
}

.sub_text {
  color: #000;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.171875;
}

.promise_picture_container {
  display: flex;
  flex-wrap: wrap;
  /* 여러 줄로 이미지 배치 */
  justify-content: center;
  /* 중앙 정렬 */
  gap: 20px;
}

.promise_picture_container img {
  width: clamp(120px, 18vw, 318px);
  /* ✅ 반응형 너비 */
  height: auto;
  /* 비율 유지 */
  object-fit: contain;
}

.promise_container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2열로 설정 */
  gap: 20px;
  padding: 20px;
  width: 100%;
  /* 브라우저 폭에 맞게 */
  margin: 0 auto;
}

/* 1행 2열, 2행 2열의 요소에 대한 스타일 */
.badge_g {
  position: relative;
  background: linear-gradient(145deg, #1c1c1c, #0f0f0f);
  border: 1px solid rgba(255, 204, 51, 0.25);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* 이미지 크기 */
.rice {
  position: absolute;
  top: 0;
  width: clamp(80px, 10vw, 159.535px);
  /* 최소 80px, 최대 159px, 중간은 화면 크기 비례 */
  aspect-ratio: 227 / 253;
  /* 원본 이미지 비율 고정 (width만 반응형으로 조절, height는 비율에 맞춰 자동 계산) */
  height: auto;
  opacity: 0.6;
  z-index: 1;
}

/* 별 3개 상단 배치 */
.stars {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  z-index: 2;
}

/* 별 크기 */
.star {
  width: clamp(30px, 5vw, 37.538px);
  /* 최소 30px, 최대 37.538px */
  height: clamp(30px, 5vw, 37.538px);
  /* 최소 30px, 최대 37.538px */
}

.star:nth-of-type(2) {
  transform: translateY(-10px);
}

/* 텍스트 */
.text {
  z-index: 2;
}

.text .line1 {
  color: #FFF;
  text-align: center;
  font-size: clamp(16px, 4vw, 40px);
  /* 최소 16px, 최대 50.05px */
  font-weight: 400;
  line-height: 1.375;
  white-space: nowrap;
}

.text .line2 {
  color: #FFF;
  text-align: center;
  font-size: clamp(16px, 4vw, 40px);
  /* 최소 16px, 최대 50.05px */
  font-weight: 400;
  line-height: 1.375;
  white-space: nowrap;
}

.rice-left {
  left: 0;
}

.rice-right {
  right: 0;
}

.promise_strength_box {
  width: 100%;
}

.promise_strength {
  color: #FFF;
  text-align: center;
  font-size: clamp(16px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.92637;
}

/* 반응형: 모바일 (1열로 배치) */
@media (max-width:579px) {
  .promise_container {
    grid-template-columns: 1fr;
    /* 모바일에서는 1열로 배치 */
  }
}

/* 반응형: 모바일 (1열로 배치) */
@media (max-width: 768px) {


  .badge_g {
    padding: clamp(10px, 5vw, 30px);
    /* 모바일에서는 패딩을 유동적으로 설정 */
  }

  .star {
    width: clamp(25px, 6vw, 30px);
    /* 별 크기 조정 */
    height: clamp(25px, 6vw, 30px);
    /* 별 크기 조정 */
  }

  .text .line1,
  .text .line2 {
    font-size: clamp(14px, 6vw, 28px);
    /* 글자 크기 조정 */
  }
}

.case_box {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: center;
}

.case_box .case_img_wrapper {
  float: left;
  width: 100%;        /* 슬라이드당 전체 영역 */
  box-sizing: border-box;
  margin: 0;
  padding: 0;

}

.section_success_case {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFF;
  gap: 10px;
  padding: 40px 20px; 
}

.case_img_wrapper {
  width: 100%;
  /* max-width: 644px; */
  height: auto;
  aspect-ratio: 644 / 911;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


.success_case_title {
  color: #000;
  text-align: center;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.0625;
  /* 68px ÷ 64px = 1.0625 (106.25%) */
}

.core_value_text {
  color: #000;
  text-align: center;
  font-size: clamp(20px, 3.5vw, 36px);
  font-weight: 500;
  line-height: 1.88889;
  /* 68 ÷ 36 = 1.88889 */
}

.red_text {
  color: #BC090D;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.3077;
  /* 68 ÷ 52 ≒ 1.3077 */
}

.core_sub_value_text {
  color: #000;
  text-align: center;
  font-size: clamp(14px, 3.5vw, 24px);
  /* 최소 14px, 최대 24px */
  font-weight: 500;
  line-height: clamp(20px, 6vw, 39px);
  /* 최소 20px, 최대 39px */
}

.core_bold_value_text {
  color: #000;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 800;
  line-height: 1.625;
  /* 39 ÷ 24 = 1.625 */
}

.solution_text {
  color: #000;
  text-align: center;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.17188;
  /* 75 ÷ 64 = 1.17188 */
}

.solution_bold_text {
  color: #000;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.17188;
  /* 동일한 폰트 크기 기준이므로 비율도 동일 */
}

.solution_icon_box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  /* 아이콘 사이 간격 */
  align-items: stretch;
  margin-top: clamp(5px, 5vw, 40px);
  width: 100%;
  max-width: 1100px;
}


.solution_icon_item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: clamp(160px, 25vw, 280px);
  border-radius: 20px;
  background: #FFF;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}


.solution_icon_item svg {
  width: clamp(60px, 60%, 300px);
  height: auto;
}

.solution_icon_text {
  color: #000;
  text-align: center;
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.39286;
  /* 39 ÷ 28 ≒ 1.39286 (139.286%) */
  letter-spacing: -1.96px;
  margin-top: clamp(8px, 2vw, 20px);
}

@media (max-width: 768px) {
  .solution_icon_box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: initial;
    gap: 16px;
  }

  .solution_icon_item {
    width: 100%;
    max-width: none;
  }

  .solution_icon_text br {
    display: none;
    /* 좁은 폭에서는 강제 줄바꿈 없이 자연스럽게 흐르도록 */
  }

  .solution_icon_text {
    font-size: clamp(13px, 3.2vw, 15px);
    letter-spacing: -0.5px;
  }
}

.service_title {
  color: #000;
  text-align: center;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.17188;
  /* 75 ÷ 64 ≒ 1.17188 (117.188%) */
}


.service_bold_title {
  color: #000;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.17188;
  /* 75 ÷ 64 = 1.17188 */
}

.step_box {
  display: flex;
  flex-wrap: wrap;
  /* 아이템들이 화면 크기에 맞게 줄 바꿈됨 */
  gap: 10px;
  /* 각 아이템 간 간격 */
  padding: 10px;
  width: 100%;
  margin: 0 auto;
  /* 중앙 정렬 */
  counter-reset: stepnum;
}

.step_item {
  flex: 1 1 calc(33.33% - 20px);
  /* 기본적으로 3열 (전체 너비에서 간격을 뺀 비율로 3등분) */
  background: #fff;
  display: flex;
  flex-direction: column;
  /* 세로 방향으로 쌓기 */
  align-items: flex-start;
  /* 자식 요소 왼쪽 정렬 */
  gap: 10px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 20px 0px rgba(142, 142, 142, 0.25);
  position: relative;
  overflow: hidden;
  counter-increment: stepnum;
}

.step_item::after {
  content: counter(stepnum, decimal-leading-zero);
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 90px;
  font-weight: 900;
  color: rgba(188, 9, 13, 0.07);
  line-height: 1;
  pointer-events: none;
}

.step_icon_box {
  display: inline-flex;
  padding: 10px 24px;
  justify-content: center;
  align-items: center;
  border-radius: 500px;
  border: 1px solid #BC090D;
  background: rgba(188, 9, 13, 0.12);
}

.step_icon_text {
  margin: 0;
  color: #BC090D;
  text-align: center;
  font-size: clamp(14px, 3vw, 20px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

/* 모바일에서는 1열로 배치 */
@media (max-width: 768px) {
  .step_box {
    flex-direction: column;
    /* 모바일에서는 1열로 배치 */
  }

  .step_item {
    flex: 1 1 100%;
    /* 각 아이템을 100% 너비로 확장하여 1열로 배치 */
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .step_icon_box {
    flex-shrink: 0;
  }

  .step_item_main_text {
    flex: 1;
    min-width: 0;
    font-size: clamp(13px, 3.6vw, 16px);
    /* 모바일에서도 반응형 */
  }

  .step_item_main_text br {
    display: none;
    /* 좁은 폭에서는 강제 줄바꿈 없이 자연스럽게 흐르도록 */
  }

  .step_item_sub_text {
    flex: 1 1 100%;
  }

  .step_item_sub_text {
    font-size: clamp(12px, 5vw, 18px);
    /* 모바일에서도 반응형 */
  }

  .step_icon_text {
    font-size: clamp(12px, 5vw, 18px);
    /* 모바일에서도 반응형 */
  }

}

/* 태블릿에서는 2열로 배치 */
@media (max-width: 1024px) and (min-width: 769px) {
  .step_box {
    flex-direction: row;
    /* 2열로 배치 */
  }

  .step_item {
    flex: 1 1 calc(50% - 20px);
    /* 각 아이템을 50% 너비로 배치 */
  }
}

.service_red_title {
  color: #BC090D;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.17188;
  /* 75 ÷ 64 = 1.17188 */
}


.step_item_main_text {
  color: #000;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.34375;
  /* 43 ÷ 32 = 1.34375 */
  text-align: left;
}


.step_item_sub_text {
  color: #000;
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 400;
  line-height: 1.2;
  /* 24 ÷ 20 = 1.2 */
  text-align: left;
}

.vertical-line {
  width: 1px;
  height: clamp(80px, 20vw, 174px);
  /* 최소 80px, 최대 174px */
  background-color: #000;
  /* 원하는 선 색상 */
  margin: 0px;
  padding: 0px;
}

.phone-icon-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(64px, 10vw, 88px);
  height: clamp(64px, 10vw, 88px);
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #BC090D, #8a0709);
  box-shadow: 0 0 0 8px rgba(188, 9, 13, 0.1);
  animation: phone-pulse 2s infinite;
}

@keyframes phone-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(188, 9, 13, 0.25);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(188, 9, 13, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(188, 9, 13, 0);
  }
}

.phone-icon {
  width: clamp(28px, 4.5vw, 40px);
  height: clamp(28px, 4.5vw, 40px);
}

.section-consulting {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 수직(위아래) 가운데 정렬 */
  justify-content: center;
  /* 수평 가운데 정렬 (선택) */
  padding: 50px clamp(16px, 5vw, 40px) 30px;
  box-sizing: border-box;
  background: rgba(255, 204, 51, 0.08);
}

.section_service {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('../images/section_service_bg.svg') no-repeat;
  background-position: calc(100% + 20px) 160px;
  background-attachment: scroll;
  gap: 40px;
  padding: 40px 0;
}


.section-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFF;
  padding: 40px 20px;
}

.section-form {
  width: 100%;
  /* 전체 너비는 100% */
  margin: 0 auto;
  /* 중앙 정렬 */
  background: rgba(255, 204, 51, 0.08);
  padding: 40px 20px;
  /* 좌우 여백을 20px로 추가 */
  box-sizing: border-box;
  /* padding을 포함한 너비 계산 */
}

@media (max-width: 1199px) {
  .section-form {
    padding: 40px 20px;
  }
}

/* 데스크탑 이하 (≤ 1023px) */
@media (max-width: 1023px) {
  .section-form {
    padding: 35px 16px;
  }
}

/* 태블릿 이하 (≤ 767px) */
@media (max-width: 767px) {
  .section-form {
    padding: 10px 12px;
  }
}


.consulting-banner-text {
  color: #000;
  text-align: center;
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.5402;
  /* 55.447 ÷ 36 ≒ 1.5402 */
}

.contact-number {
  display: block;
  color: #000;
  text-align: center;
  text-decoration: none;
  font-family: "SB Aggro";
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 600;
  line-height: 1.0625;
  /* 136 ÷ 128 = 1.0625 */
  margin-bottom: 50px;
  transition: color 0.2s ease;
}

.contact-number:hover {
  color: #BC090D;
}

.consulting-benefit {
  color: #BC090D;
  text-align: center;
  font-size: clamp(25px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.17188;
  /* 75 ÷ 64 = 1.17188 */
}

.consulting-impact {
  color: #000;
  font-size: clamp(24px, 4.5vw, 45px);
  font-weight: 300;
  line-height: 1.5625;
  /* 75 ÷ 48 = 1.5625 */
  text-align: center;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  /* 100%로 설정하여 화면 크기에 맞게 확장 */
  margin: 0 auto;
  box-sizing: border-box;
  /* padding 포함하여 크기 계산 */
}

/* 태블릿 사이즈: 900px 이하 */
@media (max-width: 900px) {
  .form-container {
    gap: 12px;
  }
}

/* 모바일 사이즈: 600px 이하 */
@media (max-width: 768px) {
  .form-container {
    gap: 5px;
  }
}

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  /* 모바일에서 줄바꿈을 하도록 추가 */
}

.form-item #sec {
  flex: 1;
  text-align: center;
  /* 기본값 */
}

.form-item {
  display: flex;
  align-items: center;
  /* gap: 4px; */
  flex: 1;
}

/* 모바일일 때 세로 정렬 및 정렬 보정 */
@media (max-width: 767px) {
  .form-item {
    flex-direction: column;
    align-items: stretch;
    /* input과 label을 왼쪽 정렬 */
  }


}

label {
  color: #000;
  text-align: left;
  font-size: clamp(18px, 4vw, 36px);
  font-weight: 500;
  line-height: 2.08333;
  /* 75 ÷ 36 = 2.08333 */
  white-space: nowrap;
  width: clamp(40px, 20vw, 160px);
  /* 최소 40px까지 허용 */
  display: inline-block;
}

.second-label {
  color: #000;
  text-align: center;
  font-size: clamp(18px, 4vw, 36px);
  font-weight: 500;
  line-height: 2.08333;
  white-space: nowrap;
  width: clamp(40px, 20vw, 160px);
  display: inline-block;
}

@media (max-width: 868px) {
  .second-label {
    text-align: left;
  }
}


input[type="text"],
select {
  flex: 1;
  font-size: clamp(16px, 2.5vw, 20px);
  padding: clamp(10px, 2vw, 20px) clamp(8px, 3vw, 16px);
  /* 상하, 좌우 */
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #333333;
  background-color: #fff;
}

input::placeholder {
  color: #333333;
}

.radio-group {
  display: flex;
  gap: 24px;
  align-items: center;
}

.radio-group label {
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 600;
}

.radio-wrapper input[type="radio"] {
  display: none;
}

.radio-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.custom-radio {
  width: 36px;
  height: 36px;
}

.label-text {
  color: #000;
  text-align: center;
  font-size: clamp(14px, 3vw, 28px);
  font-weight: 700;
  line-height: 0.35714;
  /* 10 ÷ 28 = 0.35714 */
  white-space: nowrap;
  /* 줄바꿈 방지 */
}

.radio-circle {
  fill: white;
  stroke: rgba(0, 0, 0, 0.3);
  stroke-width: 1px;
  transition: all 0.2s ease;
}

/* 선택 시 dot 보이기 */
.radio-wrapper input[type="radio"]:checked+.custom-radio .radio-circle {
  fill: none;
  /* 안 채우기 */
  stroke: #BC090D;
  /* 테두리만 빨간색 */
  stroke-width: 10;
  /* 도넛 두께 */
}

.submit-btn {
  display: inline-flex;
  padding: clamp(12px, 3vw, 20px) clamp(24px, 5vw, 50px);
  justify-content: center;
  align-items: center;
  border-radius: 644.737px;
  background: #000;
  cursor: pointer;
  max-width: clamp(280px, 80vw, 550px);
  border: none;  
  outline: none;
  margin-top:5px;
}

.submit_text {
  color: #FFF;
  text-align: center;
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15527;
  /* 55.447 ÷ 48 ≒ 1.15527 */
  white-space: nowrap;
}

.section-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFF;
  padding: 40px 0;
}

.location-title {
  color: #000;
  text-align: center;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.17188;
  /* 75 ÷ 64 = 1.17188 */
}

.location-address {
  color: #000;
  text-align: center;
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.5402;
  padding:10px;
  /* 55.447 ÷ 36 = 1.5402 */
}

.map-image-box {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1391.95 / 710;
  overflow: hidden;
}

.map-image {
  width: 100%;
  height: 100%;
}

.footer {
  width: 100%;
  background-color: #161616;
  padding: 30px 0px 50px 0px;
  box-sizing: border-box;
  overflow: hidden;
  margin:40px 0px;
}

.footer-content {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer-text {
  text-align: center;
  color: white;
}

.footer-title {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.35714;
  /* 38 ÷ 28 = 1.35714 */
  margin-bottom: 20px;
}

.footer-info {
  font-size: clamp(14px, 2.5vw, 22px);
  font-weight: 400;
  line-height: 1.72727;
  /* 38 ÷ 22 = 1.72727 */
}

.footer-email-link {
  color: inherit;
  text-decoration: none;
}

.footer-email-link:hover {
  color: #BC090D;
}

.footer-logo {
  width: clamp(120px, 30vw, 280px);
  height: clamp(24px, 6vw, 56px);
}

.section {
  position: relative;
  width: 100%;
  /* height: 668px; */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}

.section.bg::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}

#attorneys::before {
  background: url("../images/attorneys_bg.jpg")no-repeat center / cover;
}

/******* Attorneys info *******/
#attorneys {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 하단 정렬 */
  padding: clamp(30px, 6vw, 60px) 0;
  box-sizing: border-box;
}

.attorneys_box {
  display: flex;
  flex-wrap: wrap;
  /* 줄바꿈 허용 (모바일 대응) */
  justify-content: space-between;
  /* 좌우 균등 여백 포함 정렬 */
  padding: 0 5%;

  gap: 20px;
  box-sizing: border-box;

}

@media (max-width: 768px) {
  .attorneys_box {
    flex-direction: column;
    align-items: center;
    padding: 0px;

    /* 중앙 정렬 */
  }
}

.attorney_item {
  flex: 1 1 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* text-align: center; */
  width: 100%;
  z-index: 1000;
}

@media (max-width: 768px) {
  .attorney_item {
    flex-direction: column;
    align-items: center;
    /* 중앙 정렬 */
    text-align: center;
  }
}

.attorneys_img_box {
  height: clamp(300px, 50vw, 900px);
  aspect-ratio: 13 / 30;
  margin: 0 auto;
  transform: translateY(clamp(0px, 15vw, 250px));
}

.attorneys_img_box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 또는 cover - 이미지 성격에 따라 선택 */
  display: block;
  background-color: transparent !important;
  transform: scale(1.02);
  /* 반응형 크기 계산 시 생기는 서브픽셀 경계선(seam) 방지 */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.attorneys_name {
  color: var(--white, #FFF);
  font-size: clamp(24px, 4.5vw, 45.215px);
  font-weight: 700;
  line-height: 1.2;
  /* 54.257 ÷ 45.215 ≒ 1.2 */
  letter-spacing: -3.165px;
}

.attorneys_history {
  color: #FFF;
  font-size: clamp(14px, 3vw, 19.315px);
  font-weight: 500;
  line-height: 1.7;
  /* 32.835 ÷ 19.315 ≒ 1.7 */
  letter-spacing: -1.352px;
}

.attorneys_position {
  color: var(--white, #FFF);
  font-size: clamp(16px, 3.5vw, 26.375px);
  font-weight: 400;
  line-height: 1.37143;
  /* 36.172 ÷ 26.375 ≒ 1.37143 */
  letter-spacing: -1.846px;
  opacity: 0.8;
}

.attorneys_info {
  color: #FFF;
  font-size: clamp(20px, 4vw, 34.75px);
  font-weight: 700;
  line-height: 1.4;
  /* 48.65 ÷ 34.75 ≒ 1.4 */
  letter-spacing: -2.433px;
  margin: 20px 0;
}

.bar_vertical {
  width: 497.36px;
  height: 0.754px;
  opacity: 0.3;
  background: var(--white, #FFF);
  margin: 15px 0;
}

.section_hero {
  position: relative;
  min-width: 100%;
  flex-direction: column;
  margin: 0 auto;
  background:
    linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.8)),
    url('../images/hero-bg.webp') no-repeat center center / cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(5px, 5vw, 20px) clamp(16px, 4vw, 40px);
  box-sizing: border-box;
}

.scroll_hint {
  position: fixed;
  left: 50%;
  bottom: 75px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  opacity: 1;
  cursor: pointer;
  z-index: 9998;
  animation: scroll_hint_bounce 1.6s ease-in-out infinite;
  transition: opacity 0.3s ease, filter 0.15s ease;
}

.scroll_hint:hover {
  filter: brightness(1.2);
}

.scroll_hint svg {
  width: 20px;
  height: 20px;
}

.scroll_hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes scroll_hint_bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll_hint {
    animation: none;
  }
}

.hero_h1,
.slogan_main,
.hero_stat_box,
.lawyer_certification,
.hero_feature_box {
  opacity: 0;
  animation: hero_rise_up 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero_h1 { animation-delay: 0.05s; }
.slogan_main { animation-delay: 0.15s; }
.hero_stat_box { animation-delay: 0.25s; }
.lawyer_certification { animation-delay: 0.35s; }
.hero_feature_box { animation-delay: 0.45s; }

@keyframes hero_rise_up {
  from {
    opacity: 0;
    transform: translateY(64px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero_h1,
  .slogan_main,
  .hero_stat_box,
  .lawyer_certification,
  .hero_feature_box {
    opacity: 1;
    animation: none;
  }
}

.hero_inner {
  position: relative;
  /* ✅ 이 안에서 .person 위치 제어 */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: clamp(24px, 5vw, 56px);
  z-index: 10;
}

.person {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: clamp(320px, 46vw, 640px);
  width: auto;
  max-width: 92%;
  object-fit: cover;
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 65% 62% at center 32%, black 60%, transparent 95%);
  mask-image: radial-gradient(ellipse 65% 62% at center 32%, black 60%, transparent 95%);
}

@media (max-width: 768px) {
  .person {
    height: clamp(220px, 58vw, 420px);
    opacity: 0.8;
  }
}

 .logo {
  align-self: flex-start;
}

 .logo img{
   width: clamp(150px, 20vw, 275px);
  height: auto;
  aspect-ratio: 279 / 55;
  align-self: flex-start;
}

.hero_box {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 10;
}

.hero_main_text {
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 400;
  color: #fff;
  font-family: 'Black Han Sans', 'Jua', sans-serif;
  position: relative;
  z-index: 10;
}

.slogan_main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  margin-top: clamp(140px, 26vw, 320px);
  font-family: 'Black Han Sans', 'Jua', sans-serif;
}

.text_wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slogan_text {
  font-family: 'Black Han Sans', 'Jua', sans-serif;
  font-size: clamp(36px, 8vw, 80px);
  font-weight: 400;
  color: #fff;
  line-height: clamp(40px, 7vw, 90px);
  text-align: right;
  z-index: 9999;
  margin: 0;
}

.brand_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand_highlight {
  position: relative;
  display: inline-block;
  font-size: clamp(64px, 12vw, 200px);
  font-weight: 100;
  font-style: italic;
  z-index: 9999;
  justify-content: center;
  align-items: center;

background: linear-gradient(145deg,
  #ffffff 0%,      /* 흰색 광택 강조 */
  #fff9cc 20%,     /* 거의 흰색에 가까운 밝은 노랑 */
  #ffeb99 40%,     /* 연한 노란빛 */
  #ffd966 60%,     /* 부드러운 골드 */
  #ffcc33 80%,     /* 선명한 골드 */
  #f0ad00 100%     /* 골드 끝 음영 */
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;

text-shadow:
  1px 1px 0 #d4aa00, /* 어두운 골드 테두리 */
  0 0 4px rgba(255, 214, 102, 0.4), /* 부드러운 광택 */
  0 0 6px rgba(255, 204, 51, 0.3);  /* 약간의 여운 */

}

.shine {
  position: absolute;
  top: 20%;
  left: 45%;
  width: 40px;
  height: 40px;
  background: radial-gradient(rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      transparent 70%);
  opacity: 0.8;
  border-radius: 50%;
  filter: blur(1.5px);
  pointer-events: none;
  animation: sparkle 1.5s infinite ease-in-out;
  z-index: 2;
}

.lawyer_certification {
  position: relative;
  z-index: 9999999;
  width: 100%;
  text-align: right;
  margin-top: 1rem;
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 400;
  color: #ffffff;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  z-index: 9999;
  height: 55px;
  font-size: clamp(11.5px, 3.2vw, 16px);
  font-weight: 400;
  font-family: 'Pretendard', sans-serif;
  background-color: #2f4e9e;
}

.bottom-btn {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
  transition: filter 0.2s ease;
  background-color: #2f4e9e;
  white-space: nowrap;
  padding: 0 2px;
  box-sizing: border-box;
}

/* 블로그 */
.bottom-btn.blog {
  background: #000;
  color: #fff;
}

/* 전화상담 */
.bottom-btn.phone {
  background: #6a0718;
}

/* 카톡상담 */
.bottom-btn.kakao {
  background: #dec708;
  color: #191919;
}

/* 무료상담신청: 기본색(파랑) 유지 */
.bottom-btn.apply {
  background: #2f4e9e;
}

.bottom-btn:hover {
  filter: brightness(1.1);
}


.swiper-container {
  width: 100%;  /* 부모 요소에 맞게 100% 설정 */
  max-width: 100%; /* 부모 요소를 넘지 않도록 제한 */
  margin: 0 auto; /* 가운데 정렬 */
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  display: flex;
  justify-content: center;  /* 이미지를 가로 중앙에 배치 */
  align-items: center;      /* 이미지를 세로 중앙에 배치 */
  height: 100%;              /* 슬라이드 높이를 100%로 설정 */
}

.swiper-slide img {
  width: 100%;  /* 이미지가 부모 요소에 맞게 100%로 설정 */
  height: auto; /* 이미지 비율 유지 */
  object-fit: cover; /* 비율 유지하며 영역에 맞춰 자르기 */
}
