@charset "utf-8";
/**
 * 메인(index) 첫 화면 LCP·FCP용 — 헤더·히어로·변호사 슬라이더 1차 페인트.
 * pretendard.css / common.css / style.css는 비동기 로드; 본 파일과 중복 규칙은
 * 전체 CSS 로드 후 덮어씀(시각 동일). 히어로·헤더 마크업 변경 시 style.css와 함께 점검.
 */

/* --- Pretendard: 첫 화면에 쓰이는 굵기만 (전체 pretendard.css는 지연 로드) --- */
@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/fonts-archive/Pretendard/Pretendard-Regular.woff2")
    format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/fonts-archive/Pretendard/Pretendard-SemiBold.woff2")
    format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/fonts-archive/Pretendard/Pretendard-Bold.woff2")
    format("woff2");
}

/* --- common.css: 변수 + 최소 리셋(전체 common 로드 전 레이아웃 붕괴 방지) --- */
:root {
  --pretendard: "Pretendard", serif;
  --jrwhite: #fff;
  --jrsoftwhite: #fcfcfd;
  --jrblack: #050505;
  --green50: #eff8f5;
  --green100: #cde9e0;
  --green200: #b5ded1;
  --green300: #93cfbb;
  --green400: #7ec6ae;
  --green500: #5eb89a;
  --green600: #56a78c;
  --green700: #43836d;
  --green800: #346555;
  --green900: #274d41;
  --gray100: #ebebeb;
  --gray200: #c1c1c1;
  --gray300: #d2d2d2;
  --gray600: #aeaeae;
  --gray800: #424245;
}
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 62.5%;
  font-family: "Pretendard", "Malgun Gothic", "맑은 고딕", sans-serif;
}
body {
  line-height: 1.5;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
a {
  cursor: pointer;
  text-decoration: none;
}
a,
a:hover {
  text-decoration: none;
}
img {
  border: none;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}
ul,
li {
  list-style: none outside none;
  margin: 0;
  padding: 0;
}
button {
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
}
section,
header,
nav,
main,
footer {
  display: block;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* --- style.css: 메인 히어로 경로만 --- */
main {
  background: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
}

.lawyer-slider-container {
  width: 100%;
  position: relative;
  z-index: 2;
}
.visual .swiper {
  padding-top: 3rem;
}
.swiper {
  width: 100%;
  height: 100%;
}
.swiper-slide {
  width: 100%;
  height: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: all 0.4s ease;
  border-radius: 1rem;
}
.swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.4s ease;
  object-fit: cover;
}
.swiper-slide-active {
  z-index: 10;
}

.lawyer-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  height: auto;
  padding: 1rem;
  padding-left: 60px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  color: #fff;
  opacity: 1;
  transition: 0.3s;
  border-radius: 0 0 1rem 1rem;
  background: linear-gradient(180deg, rgba(39, 77, 65, 0) 0%, #1c201f 80%);
}
.swiper-slide-active .lawyer-info {
  opacity: 1;
}

.lawyer-slider-container .lawyer-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.1rem;
  padding: 1rem 1rem 1rem 10px;
  box-sizing: border-box;
  text-align: left;
}
.lawyer-slider-container .lawyer-info p,
.lawyer-slider-container .lawyer-info h3 {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
}
.lawyer-slider-container .lawyer-info p {
  font-size: clamp(0.8rem, 0.5rem + 0.5vw, 1.5rem);
  padding: 20;
  color: var(--gray200);
}
.lawyer-slider-container .lawyer-info h3 {
  color: var(--gray100);
  font-size: clamp(1rem, 1rem + 0.5vw, 2rem);
}
.lawyer-slider-container .lawyer-info h3 + p {
  font-size: clamp(0.8rem, 0.5rem + 0.5vw, 1.5rem);
  color: #aeaeae;
}

.innerWrap {
  margin: 0 auto;
  width: 140rem;
  padding: 0 5rem;
}
.header {
  height: 7rem;
  transition: all 0.4s ease-in-out;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--jrblack);
  width: 100%;
}
.header .innerWrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header .logo {
  transition: all 0.4s ease-in-out;
  display: flex;
  letter-spacing: -0.1rem;
  font-size: 2.4rem;
  line-height: 7rem;
  color: var(--jrwhite);
  font-weight: 700;
}
.header .logo i {
  display: inline;
  margin-right: 0.5rem;
}
.header .gnb_menu {
  transition: all 0.4s ease-in-out;
  line-height: 7rem;
}
.header .gnb_menu ul {
  display: flex;
}
.header .gnb_menu ul a {
  font-size: 1.6rem;
  color: var(--jrsoftwhite);
  font-weight: 300;
  padding: 0 1.6rem;
  height: 100%;
  line-height: 7rem;
  display: block;
}

.header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0.65rem 0.5rem;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s;
}
.header__menu-btn:hover {
  opacity: 0.99;
}
.header__menu-btn-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.32rem;
  width: 1.7rem;
  height: 1.05rem;
  pointer-events: none;
}
.header__menu-btn-bar {
  display: block;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--jrwhite);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.header--nav-open .header__menu-btn-bar:nth-child(1) {
  transform: translateY(0.6rem) rotate(45deg);
}
.header--nav-open .header__menu-btn-bar:nth-child(2) {
  opacity: 0;
}
.header--nav-open .header__menu-btn-bar:nth-child(3) {
  transform: translateY(-0.6rem) rotate(-45deg);
}

.visual {
  margin-top: 7rem;
  background: url("../images/main_visual.jpg") 50% no-repeat;
  background-size: cover;
  width: 100%;
  background-attachment: scroll;
}
.visual .innerWrap {
  margin-top: 7rem;
}
.visual .swiper-slide {
  border: 1px solid #565656;
}
.vs_hero {
  display: flex;
  justify-content: space-between;
}
.vs_hero .thumb {
  position: relative;
  text-align: right;
}
.vs_hero .thumb > a {
  display: inline-block;
  position: relative;
  vertical-align: top;
  max-width: 100%;
}
.vs_hero .thumb img {
  width: min(420px, 100%);
  height: auto;
  display: block;
  aspect-ratio: 500 / 646;
}
.vs_hero .thumb .lawyer-info {
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
}
.vs_hero .thumb .lawyer-info p {
  color: var(--green500);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.1rem;
}
.vs_hero .thumb .lawyer-info h3 {
  color: var(--jrwhite);
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}
.vs_hero .thumb .lawyer-info .info {
  font-size: 1.6rem;
  color: #aeaeae;
  font-weight: 300;
}

.slogan_wrap {
  text-align: left;
  padding-top: 5rem;
}
.visual .title h1 {
  font-size: clamp(2.5rem, 1.635rem + 3.85vw, 4.5rem);
  line-height: 1.2;
  color: var(--jrwhite);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}
.visual .title h1 br.br-pc {
  display: none;
}
@media screen and (min-width: 951px) {
  .visual .title h1 br.br-pc {
    display: block;
  }
}
.visual .title .subtxt {
  font-size: clamp(1.6rem, 1.462rem + 0.62vw, 2rem);
  color: var(--gray300);
}
.visual .btn_group {
  display: flex;
  gap: 2rem;
  padding-top: clamp(1rem, 0.308rem + 3.08vw, 3rem);
}
.visual .btn_group .btnRsv {
  color: var(--green500);
  border: 1px solid var(--green500);
}
.visual .btn_group .btnCall {
  display: none !important;
  background-color: var(--green500);
  color: var(--jrwhite);
}
.visual .btn_group .btncs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 4.5rem;
  font-size: clamp(1.6rem, 1.531rem + 0.31vw, 1.8rem);
  border-radius: 100rem;
}
.visual .btn_group .btncs i {
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
}

.ico_consult {
  background: url("../images/icon_pencil.svg") no-repeat;
  background-size: contain;
}
.ico_call {
  background: url("../images/icon_phone.svg") no-repeat;
  background-size: contain;
}

.mobilelayout .brMo {
  display: block;
}
.mobilelayout .header {
  height: 5rem;
}
.mobilelayout .header .gnb_menu {
  line-height: 5rem;
}
.mobilelayout .header .logo {
  font-size: 1.8rem;
  line-height: 5rem;
}

@media screen and (max-width: 1400px) and (min-width: 951px) {
  .brmd {
    display: block;
  }
  .slogan_wrap {
    width: 70%;
  }
}
@media screen and (max-width: 1049px) and (min-width: 901px) {
  .visual .title h1 {
    font-size: 4rem;
    display: block;
  }
  .vs_hero .thumb .lawyer-info p {
    font-size: max(10px, 1.8rem);
  }
}
@media screen and (max-width: 1500px) {
  .innerWrap {
    width: 100%;
    padding: 0 5rem;
  }
}
@media screen and (max-width: 950px) {
  .brmd {
    display: block;
  }
  .innerWrap {
    width: 100%;
    padding: 0 1rem;
  }
  .visual .btn_group .btnCall {
    display: flex !important;
  }
  .visual {
    margin-top: 5rem;
  }
  .header .innerWrap {
    flex-wrap: wrap;
    align-items: center;
  }
  .header .logo {
    flex: 1;
    min-width: 0;
  }
  .header__menu-btn {
    display: inline-flex;
    margin-left: auto;
  }
  .header .gnb_menu {
    display: none;
    width: 100%;
    flex-basis: 100%;
    align-self: stretch;
    order: 3;
    line-height: normal;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .header.header--nav-open {
    overflow: visible;
  }
  .header.header--nav-open .gnb_menu {
    display: block !important;
    position: fixed;
    left: 0;
    right: 0;
    top: 7rem;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 99;
    background: rgba(29, 29, 31, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem max(1rem, env(safe-area-inset-left, 0px)) 1rem
      max(1rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.35);
  }
  .header.header--nav-open .gnb_menu ul {
    flex-direction: column;
    align-items: stretch;
  }
  .header.header--nav-open .gnb_menu ul a {
    line-height: 1.35;
    padding: 1.2rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .header.header--nav-open .gnb_menu ul li:last-child a {
    border-bottom: none;
  }
  body.header-nav-open {
    overflow-x: visible;
    overflow-y: hidden;
  }
  body.header-nav-open main {
    overflow-x: visible;
  }
  .mobilelayout .header.header--nav-open .gnb_menu {
    top: 5rem;
  }
  .visual .btn_group .btncs i {
    height: 1.8rem;
    width: 1.8rem;
  }
  .visual .innerWrap {
    margin-top: 5rem;
  }
  .vs_hero {
    flex-direction: column;
  }
  .vs_hero .thumb {
    text-align: center;
  }
  .vs_hero .thumb img {
    width: min(420px, 100%);
    height: auto;
  }
  .slogan_wrap {
    text-align: center;
  }
  .visual .btn_group {
    justify-content: center;
  }
  .vs_hero .thumb .lawyer-info {
    width: 100%;
    left: 0;
    right: 0;
    transform: none;
    text-align: left;
  }
  .vs_hero .thumb .lawyer-info h3 + p {
    font-size: 1.6rem;
  }
  .vs_hero .thumb .lawyer-info h3 {
    font-size: 2rem;
  }
  .vs_hero .thumb .lawyer-info p {
    font-size: max(12px, 1.6rem);
  }
  .vs_hero .thumb .lawyer-info .info {
    font-size: max(12px, 1.6rem);
  }
  .visual .btn_group .btncs {
    padding: 0.8rem 3rem;
  }
}

@media screen and (max-width: 767px) {
  .lawyer-slider-container .lawyer-info {
    gap: 0.2rem;
    padding: 0.9rem 0.75rem 0.9rem 15px;
  }
  .lawyer-slider-container .lawyer-info p,
  .lawyer-slider-container .lawyer-info h3 {
    line-height: 1.4;
    letter-spacing: -0.02em;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-indent: 0;
  }
  .lawyer-slider-container .lawyer-info p {
    font-size: 1.2rem;
  }
  .lawyer-slider-container .lawyer-info h3 {
    font-size: 1.35rem;
    line-height: 1.4;
  }
  .lawyer-slider-container .lawyer-info h3 + p {
    font-size: clamp(0.6rem, 0.6rem + 0.6vw, 1.5rem);
    color: #aeaeae;
    line-height: 1.4;
  }
}
