/* ==========================================================================
   페이지별 스타일 — 화백소개 / 업무분야
   선택자는 .p-<페이지> 로 스코프를 잡는다(원본의 .about_1 등에 대응).
   ========================================================================== */

/* ===================================================== 인사말 (about_1) === */
.p-about-greeting .sub-banner {
  background: url(../img/about_1_sub_banner_bg.jpg) no-repeat center / cover;
}

.p-about-greeting .sec-1 { position: relative; margin-bottom: 200px; }

.p-about-greeting .sec-1 .text-box {
  display: flex;
  justify-content: space-between;
  margin-bottom: 65px;
}

.p-about-greeting .sec-1 .text-box h3 { font-size: var(--fs-h4); font-weight: 700; }
.p-about-greeting .sec-1 .text-box h3 b { color: var(--brand); }

.p-about-greeting .sec-1 .text-box article {
  width: 100%;
  max-width: 660px;
  font-size: var(--fs-lg);
  color: var(--ink-600);
}

.p-about-greeting .sec-1 .img-box { height: 400px; }

.p-about-greeting .sec-1 .img-box img {
  position: absolute;
  width: -webkit-fill-available;
  height: 400px;
  object-fit: cover;
}

.p-about-greeting .sec-2 { padding-bottom: 280px; }

.p-about-greeting .sec-2 .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-about-greeting .sec-2 .title { position: absolute; left: 0; top: 0; }
.p-about-greeting .sec-2 .title h3 { margin-bottom: 20px; font-size: var(--fs-h4); font-weight: 700; }
.p-about-greeting .sec-2 .title article { font-size: var(--fs-md); font-weight: 500; color: var(--ink-600); }

.p-about-greeting .sec-2 li { position: relative; }
.p-about-greeting .sec-2 li .img-box { width: 100%; max-width: 600px; }
.p-about-greeting .sec-2 li .img-box img { width: 100%; }

.p-about-greeting .sec-2 li .text-box {
  position: absolute;
  right: -40px;
  bottom: -70px;
  max-width: 545px;
  padding: 44px;
  background: var(--white);
  box-shadow: var(--shadow-panel);
}

.p-about-greeting .sec-2 li .text-box h3 { margin-bottom: 20px; font-size: var(--fs-h6); font-weight: 800; }
.p-about-greeting .sec-2 li .text-box article { font-size: var(--fs-base); color: var(--ink-650); line-height: 1.6; }
.p-about-greeting .sec-2 li:nth-child(2) { margin-top: 200px; }

/* ======================================================= 연혁 (about_2) === */
.p-about-history .sub-banner {
  background: url(../img/about_2_sub_banner_bg.jpg) no-repeat center / cover;
}

.p-about-history .sec-1 { padding: 0 0 200px; }
.p-about-history .sec-1 .container { display: flex; justify-content: space-between; }
.p-about-history .sec-1 .title h3 { font-size: var(--fs-h4); font-weight: 700; }
.p-about-history .sec-1 .title h3 b { color: var(--brand); }

.history { max-width: 840px; }

.history > ul > li {
  position: relative;
  display: flex;
  gap: 30px;
  padding-left: 70px;
  padding-bottom: 84px;
}

.history > ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  z-index: 1;
  display: block;
  width: 9px;
  height: 9px;
  border: 4px solid #ADADAD;
  border-radius: 100%;
  background: var(--white);
  transition: all var(--dur-s);
}

/* 세로 타임라인 — 화면에 들어온 연도까지 선이 자란다 */
.history > ul > li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  display: block;
  width: 1px;
  height: 1%;
  background: #E8E8E8;
  transition: all 1s;
}

.history > ul > li:last-child { padding-bottom: 0; }
.history > ul > li:last-child::after { display: none; }
.history > ul > li > p { font-size: var(--fs-h6); font-weight: 700; line-height: 1; color: #7B7B7B; }

.history > ul > li.is-on > p { color: #000; }
.history > ul > li.is-on::before { border-color: #000; }
.history > ul > li.is-on::after { height: 100%; background: #000; }

.history ol li {
  position: relative;
  display: flex;
  gap: 14px;
  margin-bottom: 34px;
  padding-left: 20px;
}

.history ol li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: #D0D0D0;
}

.history ol li:last-child { margin-bottom: 0; }

/* 연도 블록이 화면에 들어올 때 세부 항목이 30px 아래에서 떠오른다 */
.history > ul > li ol > li { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.history > ul > li.is-on ol > li { opacity: 1; transform: translateY(0); }
.history ol li p { font-size: var(--fs-base); font-weight: 700; color: var(--brand); }
.history ol li article { margin-top: -2px; font-size: var(--fs-base); color: #111; }

/* ================================================== 오시는 길 (about_5) === */
.p-about-location .sub-banner {
  background: url(../img/about_5_sub_banner_bg.jpg) no-repeat center / cover;
}

/* 지도 띠(박변 지시, 법률사무소 비컴 참고) — 왼쪽 네이버 지도, 오른쪽 주소·연락처.
   화면 끝까지 차는 띠라 .container 밖에 둔다. 색은 메인 「상담센터 안내」와 같은 크림(--paper)·금색. */
.p-about-location .loc-band { display: flex; min-height: clamp(460px, 32vw, 620px); margin-bottom: 160px; }

.p-about-location .loc-band__map {
  position: relative;
  flex: 1 1 50%;
  overflow: hidden;
  /* 캡처가 CSS 1600x1000 의 2배라 1:1 크기로 깔고 가운데를 보여 준다(사무소 좌표 = 이미지 정중앙) */
  background: #f1f0ec url(../img/location_map_naver.jpg) no-repeat center / 1600px 1000px;
}

.p-about-location .loc-band__maplink { position: absolute; inset: 0; z-index: 1; }

/* 핀 끝이 띠 정중앙(= 사무소 좌표)에 오도록 마커 전체를 위로 올린다 */
.p-about-location .loc-band__marker {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.p-about-location .loc-band__label {
  position: relative;
  padding: 9px 16px;
  border: 1.5px solid var(--ink-900);
  background: var(--white);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.p-about-location .loc-band__label::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: var(--ink-900);
  transform: translateX(-50%);
}

.p-about-location .loc-band__pin { width: 30px; height: 40px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.p-about-location .loc-band__pin path { fill: var(--brand); }
.p-about-location .loc-band__pin circle { fill: var(--white); }

.p-about-location .loc-band__chips { position: absolute; left: 20px; bottom: 20px; z-index: 3; display: flex; gap: 8px; }

.p-about-location .loc-band__chips a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  transition: border-color var(--dur);
}

.p-about-location .loc-band__chips a:hover { border-color: var(--brand); }
.p-about-location .loc-band__chips img { height: 18px; }

/* 지도 출처 — 가운데를 잘라 쓰느라 캡처 속 NAVER 로고가 안 보이므로 따로 적는다 */
.p-about-location .loc-band__credit {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 3;
  font-size: 11px;
  color: var(--ink-500);
  pointer-events: none;
}

.p-about-location .loc-band__info {
  display: flex;
  align-items: center;
  flex: 1 1 50%;
  padding: 60px clamp(40px, 8vw, 160px);
  background: var(--paper);
}

.p-about-location .loc-band__inner h3 {
  margin-bottom: 28px;
  font-size: clamp(24px, 1.8vw, 34px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-900);
}

.p-about-location .loc-band__inner ul { margin-bottom: 44px; }

.p-about-location .loc-band__inner li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: clamp(17px, 1.25vw, 22px);
  color: var(--ink-700);
}

.p-about-location .loc-band__inner li:last-child { margin-bottom: 0; }
.p-about-location .loc-band__inner li b { min-width: 1.4em; font-weight: 700; color: var(--brand); }

.p-about-location .loc-band__btns { display: flex; flex-wrap: wrap; gap: 12px; }

.p-about-location .loc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 58px;
  padding: 0 24px;
  border: 1.5px solid var(--ink-900);
  border-radius: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}

.p-about-location .loc-btn--line { color: var(--ink-900); }
.p-about-location .loc-btn--line:hover { background: var(--ink-900); color: var(--white); }
.p-about-location .loc-btn--fill { border-color: var(--cta-blue); background: var(--cta-blue); color: var(--white); }
.p-about-location .loc-btn--fill:hover { border-color: var(--cta-blue-hi); background: var(--cta-blue-hi); }

@media (max-width: 1024px) {
  .p-about-location .loc-band { flex-direction: column; min-height: 0; margin-bottom: 80px; }
  .p-about-location .loc-band__map { flex: none; height: 340px; }
  .p-about-location .loc-band__info { padding: 44px 20px; }
  .p-about-location .loc-band__inner { width: 100%; }
  .p-about-location .loc-band__inner h3 { margin-bottom: 20px; font-size: 22px; }
  .p-about-location .loc-band__inner ul { margin-bottom: 30px; }
  .p-about-location .loc-band__inner li { font-size: var(--fs-sm); }
  .p-about-location .loc-btn { flex: 1; min-width: 0; height: 50px; }
}

@media (max-width: 768px) {
  .p-about-location .loc-band__map { height: 300px; }
  .p-about-location .loc-band__label { padding: 7px 12px; font-size: var(--fs-xs); }
  .p-about-location .loc-band__chips { left: 12px; bottom: 12px; }
  .p-about-location .loc-band__chips a { padding: 6px 10px; font-size: 12px; }
}

.p-about-location .sec-2 { margin-bottom: 140px; }

.p-about-location .sec-2 .container > h3,
.p-about-location .sec-3 .container > h3 {
  margin-bottom: 60px;
  padding-bottom: 24px;
  border-bottom: 1px solid #DBDBDB;
  font-size: var(--fs-h6);
  font-weight: 700;
}

.p-about-location .item-box-1 {
  display: flex;
  gap: 25px;
  margin-bottom: 65px;
  padding-bottom: 44px;
  border-bottom: 1px solid #DBDBDB;
}

.p-about-location .item-box-1 > p { width: 267px; font-size: var(--fs-lg); font-weight: 600; }
.p-about-location .item-box-1 ul li { display: flex; align-items: center; margin-bottom: 20px; }
.p-about-location .item-box-1 ul li:last-child { margin-bottom: 0; }
.p-about-location .item-box-1 ul li img { height: 24px; margin-right: 12px; }

.p-about-location .item-box-1 ul li p {
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid #B5B5B5;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  color: #343434;
}

.p-about-location .item-box-1 ul li span { font-size: var(--fs-base); font-weight: 600; color: #343434; }
.p-about-location .item-box-1 ul li span b { margin-left: 6px; color: var(--brand); }

.p-about-location .item-box-2 > p { margin-bottom: 37px; font-size: var(--fs-lg); font-weight: 600; }
.p-about-location .item-box-2 > span { font-size: var(--fs-base); font-weight: 700; line-height: 1.6; }

.p-about-location .item-box-2 > article {
  margin-bottom: 34px;
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: #343434;
}

.p-about-location .item-box-2 > ul { display: flex; }

.p-about-location .item-box-2 > ul > li {
  width: 33.3%;
  margin-right: 24px;
  padding-right: 24px;
  border-right: 1px solid var(--line-input);
}

.p-about-location .item-box-2 > ul > li:last-child { margin-right: 0; padding-right: 0; border-right: 0; }

.p-about-location .item-box-2 > ul > li > p {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

/* 노선 색 — 원본과 동일 */
.p-about-location .item-box-2 > ul > li:nth-child(1) > p { background: #7182F5; }
.p-about-location .item-box-2 > ul > li:nth-child(2) > p { background: #5FB73D; }
.p-about-location .item-box-2 > ul > li:nth-child(3) > p { background: #F86E55; }

.p-about-location .item-box-2 > ul > li > ol li {
  display: inline-block;
  margin-right: 13px;
  margin-bottom: 10px;
  padding-right: 13px;
  border-right: 1px solid #B5B5B5;
  font-size: var(--fs-sm);
}

.p-about-location .item-box-2 > ul > li > ol:not(.en) li:nth-child(even),
.p-about-location .item-box-2 > ul > li > ol li:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

.p-about-location .item-box-2 > ul > li > ol li span { margin-right: 5px; }
.p-about-location .item-box-2 > ul > li > ol li span i { font-weight: 700; }
.p-about-location .item-box-2 > ul > li > ol li b { color: var(--brand); font-weight: 500; }

.p-about-location .sec-3 { margin-bottom: 250px; }
.p-about-location .sec-3 .item-box { display: flex; gap: 150px; }
.p-about-location .sec-3 .item-box p { font-size: var(--fs-lg); font-weight: 600; }
.p-about-location .sec-3 .item-box article { font-size: var(--fs-base); line-height: 1.6; }
.p-about-location .sec-3 .item-box article b { font-weight: 700; text-decoration: underline; }
.p-about-location .sec-3 .item-box i { font-weight: 700; color: var(--brand); }

/* =================================================== 상담센터 (about_10) === */
.p-about-consult .sub-banner {
  background: url(../img/about_10_sub_banner_bg.jpg) no-repeat center / cover;
}

/* 이 페이지 본문은 별도 카드 레이아웃으로 짜여 있다 */
.dongin-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 50px;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(26, 54, 93, .04);
}

/* 원본의 * 선택자는 reset 의 태그 선택자에 밀려 실제로는 본문 폰트가 그대로 쓰인다 */
.dongin-wrapper * { font-family: inherit; }

.dongin-wrapper header {
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 2px solid #0f2340;
  text-align: center;
}

.dongin-wrapper .logo-text {
  margin-bottom: 8px;
  font-size: 14pt;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8a99ad;
}

.dongin-wrapper h1 { margin: 0; font-size: 25pt; font-weight: 700; letter-spacing: -.5px; color: #0f2340; }

.dongin-wrapper .intro-box {
  margin-bottom: 45px;
  padding: 22px 26px;
  border-left: 4px solid #1a365d;
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
  font-size: 12.5pt;
  line-height: 1.7;
  color: #334155;
}

.dongin-wrapper h2 {
  margin: 50px 0 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 16.5pt;
  font-weight: 700;
  letter-spacing: -.3px;
  color: #0f2340;
}

.dongin-wrapper .process-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
  margin: 30px 0 45px;
}

.dongin-wrapper .process-step {
  flex: 1;
  min-width: 200px;
  padding: 24px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .01);
  text-align: center;
  transition: all var(--dur);
}

.dongin-wrapper .process-step:hover {
  transform: translateY(-3px);
  border-color: #1a365d;
  box-shadow: 0 6px 18px rgba(26, 54, 93, .06);
}

.dongin-wrapper .step-num {
  display: block;
  margin-bottom: 8px;
  font-size: 10pt;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2b6cb0;
}

.dongin-wrapper .step-title { font-size: 11.5pt; font-weight: 700; line-height: 1.4; color: #1e293b; }
.dongin-wrapper .info-block { margin-bottom: 30px; }
.dongin-wrapper .info-title { display: block; margin-bottom: 10px; font-size: 13pt; font-weight: 700; color: #1e293b; }

.dongin-wrapper .info-desc {
  margin-bottom: 15px;
  padding-left: 4px;
  font-size: 11.5pt;
  line-height: 1.7;
  color: #475569;
}

.dongin-wrapper .contact-box {
  margin-top: 15px;
  padding: 20px 25px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f1f5f9;
}

.dongin-wrapper .contact-item { margin-bottom: 8px; font-size: 11.5pt; color: #334155; }
.dongin-wrapper .contact-item:last-child { margin-bottom: 0; }

.dongin-wrapper .label {
  position: relative;
  display: inline-block;
  width: 100px;
  font-weight: 700;
  color: #0f2340;
}

.dongin-wrapper .service-table {
  width: 100%;
  margin: 10px 0 30px;
  border-collapse: separate;
  border-spacing: 15px;
}

.dongin-wrapper .service-table tr { display: flex; gap: 15px; margin-bottom: 15px; }
.dongin-wrapper .service-table tr:last-child { margin-bottom: 0; }

.dongin-wrapper .service-table td {
  display: block;
  flex: 1;
  width: 50%;
  padding: 25px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .01);
  font-size: 11.5pt;
  line-height: 1.6;
  color: #475569;
  vertical-align: top;
}

.dongin-wrapper .service-card-title { margin-bottom: 12px; font-size: 12.5pt; font-weight: 700; color: #1a365d; }

.dongin-wrapper .notice-box {
  margin-top: 25px;
  padding: 22px 25px;
  border: 1px solid #f3e5ce;
  border-radius: 8px;
  background: #fdfaf2;
  font-size: 11.5pt;
  line-height: 1.7;
  color: #6c462e;
}

.dongin-wrapper .v-process { margin-top: 25px; padding-left: 15px; }

.dongin-wrapper .v-step {
  position: relative;
  margin-bottom: 16px;
  padding-left: 30px;
  border-left: 2px solid #e2e8f0;
  font-size: 11.5pt;
  color: #475569;
}

.dongin-wrapper .v-step:last-child { margin-bottom: 0; border-left-color: transparent; }

.dongin-wrapper .v-step::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  transition: background-color var(--dur);
}

.dongin-wrapper .v-step:hover::before { background: #1a365d; }
.dongin-wrapper .v-num { margin-right: 6px; font-weight: 700; color: #1e293b; }
.dongin-wrapper strong { font-weight: 700 !important; color: inherit; }

/* ================================================ 업무분야별 (division_1) === */
.p-division-list .sub-banner {
  background: url(../img/division_1_sub_banner_bg.jpg) no-repeat center / cover;
}

.p-division-list .sec-1 { margin-bottom: 170px; }
.p-division-list .sec-1 > .container > h3 { margin-bottom: 32px; font-size: var(--fs-h4); font-weight: 700; }

.p-division-list .acc { display: flex; flex-wrap: wrap; row-gap: 24px; column-gap: 34px; }
.p-division-list .acc__row { width: calc(50% - 17px); }

.p-division-list .acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 140px;
  padding: 24px 34px;
  border: 1px solid #DBDBDB;
  cursor: pointer;
  transition: all var(--dur);
}

.p-division-list .acc__head p { font-size: var(--fs-lg); font-weight: 700; }

.p-division-list .acc__head .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #DBDBDB;
  border-radius: 100%;
  background: url(../img/division_1_plus.svg) no-repeat center / 24px;
  box-shadow: var(--shadow-panel);
  transition: all var(--dur);
}

.p-division-list .acc__row:hover .acc__head { border-color: var(--brand); }
.p-division-list .acc__row:hover .acc__head .btn { background-image: url(../img/division_1_minus.svg); }

.p-division-list .acc__body {
  display: none;
  margin-top: 5px;
  padding: 34px 40px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  box-shadow: 0 0 21px 0 rgba(230, 230, 230, .5);
}

.p-division-list .acc__body .info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #DBDBDB;
}

.p-division-list .acc__body .info article { font-size: var(--fs-base); color: var(--brand); }
.p-division-list .acc__body ul { display: flex; flex-wrap: wrap; gap: 24px; }
.p-division-list .acc__body ul li { width: calc(50% - 12px); }

.p-division-list .acc__body ul li a {
  display: block;
  width: 100%;
  padding: 15px 10px;
  border-bottom: 1px solid #CECECE;
  background: url(../img/chevron_right_g.svg) no-repeat center right 10px / 24px;
  font-size: var(--fs-md);
  font-weight: 500;
  transition: all var(--dur);
}

.p-division-list .acc__body ul li a:hover {
  border-color: var(--brand);
  background-image: url(../img/chevron_right_b.svg);
  font-weight: 700;
  color: var(--brand);
}

/* 열린 카드는 분야별 배경 사진으로 바뀐다 */
.p-division-list .acc__row.is-open .acc__head p { color: var(--white); }
.p-division-list .acc__row.is-open .acc__head .btn {
  background: url(../img/division_1_minus.svg) var(--white) no-repeat center / 24px;
}
.p-division-list .acc__row:nth-child(1).is-open .acc__head { background: url(../img/division_1_sc_1_title_bg_1.jpg) no-repeat center / cover; }
.p-division-list .acc__row:nth-child(2).is-open .acc__head { background: url(../img/division_1_sc_1_title_bg_2.jpg) no-repeat center / cover; }
.p-division-list .acc__row:nth-child(3).is-open .acc__head { background: url(../img/division_1_sc_1_title_bg_3.jpg) no-repeat center / cover; }
.p-division-list .acc__row:nth-child(4).is-open .acc__head { background: url(../img/division_1_sc_1_title_bg_4.jpg) no-repeat center / cover; }
.p-division-list .acc__row:nth-child(5).is-open .acc__head { background: url(../img/division_1_sc_1_title_bg_5.jpg) no-repeat center / cover; }
.p-division-list .acc__row:nth-child(6).is-open .acc__head { background: url(../img/division_1_sc_1_title_bg_6.jpg) no-repeat center / cover; }
.p-division-list .acc__row:nth-child(7).is-open .acc__head { background: url(../img/division_1_sc_1_title_bg_7.jpg) no-repeat center / cover; }
.p-division-list .acc__row:nth-child(8).is-open .acc__head { background: url(../img/division_1_sc_1_title_bg_8.jpg) no-repeat center / cover; }
.p-division-list .acc__row:nth-child(9).is-open .acc__head { background: url(../img/division_1_sc_1_title_bg_9.jpg) no-repeat center / cover; }
.p-division-list .acc__row:nth-child(10).is-open .acc__head { background: url(../img/division_1_sc_1_title_bg_10.jpg) no-repeat center / cover; }

/* ============================ 업무분야·전담팀 상세 (division_1_1 / 2_1) === */
.p-division-detail, .p-team-detail { margin-bottom: 170px; }

.p-division-detail .sub-banner {
  background: url(../img/division_1_1_sub_banner_bg.jpg) no-repeat center / cover;
}
.p-team-detail .sub-banner,
.p-team-list .sub-banner {
  background: url(../img/division_2_sub_banner_bg.jpg) no-repeat center / cover;
}

.p-division-detail .sec-1 .title,
.p-team-detail .sec-1 .title { margin-bottom: 100px; text-align: center; }

.p-division-detail .sec-1 .title h3,
.p-team-detail .sec-1 .title h3 { margin-bottom: 20px; font-size: 44px; font-weight: 700; }

.p-division-detail .sec-1 .title ul,
.p-team-detail .sec-1 .title ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.p-division-detail .sec-1 .title ul li a,
.p-team-detail .sec-1 .title ul li a {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 100px;
  background: var(--tint);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--brand);
}

.p-division-detail .sec-1 .container,
.p-team-detail .sec-1 .container { display: flex; justify-content: space-between; gap: 74px; }

.p-division-detail .sec-1 .left { max-width: 960px; }
.p-team-detail .sec-1 .left { width: 100%; max-width: 960px; }
.p-division-detail .sec-1 .right,
.p-team-detail .sec-1 .right { flex: 1; }

.p-division-detail .left .item-box,
.p-team-detail .left .item-box { margin-bottom: 80px; }

.p-division-detail .left .item-box > h3,
.p-team-detail .left .item-box > h3 {
  margin-bottom: 24px;
  padding: 10px;
  border-bottom: 1px solid #DBDBDB;
  font-size: 32px;
  font-weight: 700;
}

.p-division-detail .left .item-1 article,
.p-team-detail .left .item-1 article { font-size: var(--fs-md); line-height: 1.5; color: #434343; }
.p-team-detail .left .item-1 .img-box { margin-bottom: 44px; }
.p-team-detail .left .item-1 .img-box img { width: 100%; }

.p-division-detail .left .item-2 > p,
.p-team-detail .left .item-2 > p {
  position: relative;
  margin-bottom: 15px;
  padding-left: 15px;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--brand);
}

.p-division-detail .left .item-2 > p::before,
.p-team-detail .left .item-2 > p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 100%;
  background: var(--brand);
  transform: translateY(-50%);
}

.p-division-detail .left .item-2 ul,
.p-team-detail .left .item-2 ul {
  display: flex;
  flex-wrap: wrap;
  row-gap: 34px;
  column-gap: 24px;
  margin-bottom: 50px;
}

.p-division-detail .left .item-2 ul:last-child,
.p-team-detail .left .item-2 ul:last-child { margin-bottom: 0; }

.p-division-detail .left .item-2 ul li,
.p-team-detail .left .item-2 ul li { width: calc(33.3% - 16px); }

.p-division-detail .left .item-2 .img-box,
.p-team-detail .left .item-2 .img-box { margin-bottom: 20px; }
.p-division-detail .left .item-2 .img-box img,
.p-team-detail .left .item-2 .img-box img { width: 100%; }

.p-division-detail .left .item-2 .text-box > span,
.p-team-detail .left .item-2 .text-box > span {
  display: block;
  margin-bottom: 10px;
  font-size: var(--fs-md);
  color: #778392;
}

.p-division-detail .left .item-2 .text-box > p,
.p-team-detail .left .item-2 .text-box > p {
  margin-bottom: 14px;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #3C3C3C;
}

.p-division-detail .left .item-2 .text-box b,
.p-team-detail .left .item-2 .text-box b {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.p-division-detail .left .item-2 .text-box b:last-child,
.p-team-detail .left .item-2 .text-box b:last-child { margin-bottom: 0; }

.p-division-detail .left .item-2 .text-box b i,
.p-team-detail .left .item-2 .text-box b i {
  display: block;
  width: 45px;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--brand);
}

.p-division-detail .left .item-2 .text-box b span,
.p-team-detail .left .item-2 .text-box b span { font-size: var(--fs-base); font-weight: 500; }

.p-division-detail .left .item-3 ul,
.p-team-detail .left .item-3 ul { display: flex; flex-direction: column; gap: 14px; }
.p-division-detail .left .item-3 ul li { font-size: var(--fs-lg); color: var(--brand); list-style: inside; }
.p-team-detail .left .item-3 ul li { margin-left: 20px; font-size: var(--fs-lg); color: var(--brand); list-style: initial; }

.p-division-detail .left .item-4 ul,
.p-team-detail .left .item-4 ul { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.p-division-detail .left .item-4 ul li,
.p-team-detail .left .item-4 ul li { width: calc(33.3% - 16px); }
.p-division-detail .left .item-4 .img-box,
.p-team-detail .left .item-4 .img-box { margin-bottom: 20px; }
.p-division-detail .left .item-4 .img-box img,
.p-team-detail .left .item-4 .img-box img { width: 100%; }
.p-division-detail .left .item-4 ul li p,
.p-team-detail .left .item-4 ul li p { margin-bottom: 14px; font-size: var(--fs-lg); font-weight: 700; }
.p-division-detail .left .item-4 ul li article,
.p-team-detail .left .item-4 ul li article { font-size: var(--fs-base); font-weight: 500; line-height: 1.5; color: #707070; }

.p-division-detail .left .item-5 ul li,
.p-team-detail .left .item-5 ul li { margin-bottom: 14px; }
.p-division-detail .left .item-5 ul li:last-child,
.p-team-detail .left .item-5 ul li:last-child { margin-bottom: 0; }
.p-division-detail .left .item-5 ul li a,
.p-team-detail .left .item-5 ul li a { display: flex; align-items: center; gap: 10px; }

.p-division-detail .left .item-5 ul li a p,
.p-team-detail .left .item-5 ul li a p {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-team-detail .left .item-6 ul { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.p-team-detail .left .item-6 ul li { width: calc(33.3% - 16px); }
.p-team-detail .left .item-6 .img-box img { width: 100%; }

.p-team-detail .left .item-6 .text-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line-soft);
}

.p-team-detail .left .item-6 .text-box .text { width: calc(100% - 44px); }

.p-team-detail .left .item-6 .text-box .text p {
  margin-bottom: 6px;
  font-size: var(--fs-md);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-team-detail .left .item-6 .text-box .text span { font-size: var(--fs-2xs); color: var(--ink-500); }

.p-team-detail .left .item-6 .text-box button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-faint);
  border-radius: 100%;
  box-shadow: var(--shadow-panel);
}

.p-team-detail .left .item-6 .text-box button img { height: 18px; }

/* ==================================================== 전담팀 (division_2) === */
.p-team-list { margin-bottom: 170px; }
.p-team-list .sec-1 .title { margin-bottom: 44px; text-align: center; }
.p-team-list .sec-1 .title h3 { font-size: var(--fs-h4); font-weight: 700; }
.p-team-list .item-box ul { display: flex; flex-wrap: wrap; gap: 34px; }
.p-team-list .item-box ul li { width: calc(33.3% - 23px); }
.p-team-list .item-box .img-box img { width: 100%; }

.p-team-list .item-box .text-box {
  padding: 34px;
  border: 1px solid #D0D0D0;
  transition: all var(--dur);
}

.p-team-list .item-box ul li:hover .text-box { border-color: var(--brand); }

.p-team-list .item-box .text-box span {
  display: block;
  margin-bottom: 16px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand);
}

.p-team-list .item-box .text-box p {
  font-size: var(--fs-lg);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-team-list .item-box .text-box article {
  display: block;
  margin-bottom: 24px;
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-team-list .item-box .text-box .btn-box { display: flex; justify-content: flex-end; }

.p-team-list .item-box .text-box .btn-box p {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-faint);
  border-radius: 100%;
  box-shadow: var(--shadow-panel);
}

/* ================================================ 상담센터 (about_10) ===
 * 이 페이지 본문은 원본에서 인라인 <style> 로 조판돼 있었는데 클론 단계에서 그 블록이
 * 유실돼 클래스만 남고 스타일이 전혀 없었다(맨 텍스트로 흘러내림). 여기서 다시 세운다.
 * 클래스명은 원본 마크업 그대로 두고 CSS만 새로 쓴다. */

.p-about-consult .hwabaek-wrapper {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto 160px;
  padding-inline: var(--shell-pad);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--ink);
}

.p-about-consult .hwabaek-wrapper header {
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
  text-align: center;
}
.p-about-consult .logo-text {
  margin-bottom: 10px;
  font-size: var(--fs-sm);
  letter-spacing: .18em;
  color: var(--brand);
}
.p-about-consult .hwabaek-wrapper h1 {
  font-size: var(--fs-h5);
  font-weight: 700;
  line-height: 1.3;
}

.p-about-consult .hwabaek-wrapper h2 {
  margin: 80px 0 28px;
  padding-left: 14px;
  border-left: 3px solid var(--brand);
  font-size: var(--fs-h6);
  font-weight: 700;
  line-height: 1.3;
}

/* ---- 상담 절차 4단계 ---- */
.p-about-consult .process-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.p-about-consult .process-step {
  padding: 34px 20px;
  border: 1px solid var(--line);
  text-align: center;
}
.p-about-consult .step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-disp);
  font-size: var(--fs-md);
  color: var(--brand);
}
.p-about-consult .step-title { font-size: var(--fs-base); font-weight: 600; line-height: 1.5; }

/* ---- 상세 안내 블록 ---- */
.p-about-consult .info-block { margin-bottom: 40px; }
.p-about-consult .info-title {
  display: block;
  margin-bottom: 12px;
  font-size: var(--fs-lg);
  font-weight: 700;
}
.p-about-consult .info-desc { color: var(--ink-700); }
.p-about-consult .info-desc strong { font-weight: 700; color: var(--ink); }

/* ---- 연락처 박스 ---- */
.p-about-consult .contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  margin-top: 24px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.p-about-consult .contact-item { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.p-about-consult .contact-item .label {
  min-width: 72px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-600);
}
.p-about-consult .tel-num { font-size: var(--fs-lg); font-weight: 700; color: var(--brand); }

/* ---- 1차 상담 후 서비스 표 ---- */
.p-about-consult .service-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.p-about-consult .service-table td {
  width: 50%;
  padding: 28px 30px;
  border: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-700);
}
.p-about-consult .service-card-title {
  margin-bottom: 10px;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
}

/* ---- 안내 박스 ---- */
.p-about-consult .notice-box {
  margin-top: 34px;
  padding: 26px 30px;
  border: 1px solid var(--brand-line);
  background: var(--tint-pale);
  color: var(--ink-700);
}
.p-about-consult .notice-box strong { font-weight: 700; color: var(--ink); }

/* ---- 서비스 충실화 처리 절차 ---- */
.p-about-consult .v-process { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.p-about-consult .v-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  color: var(--ink-700);
}
.p-about-consult .v-num { font-weight: 700; color: var(--brand); }

@media (max-width: 1024px) {
  .p-about-consult .hwabaek-wrapper { margin-bottom: 100px; }
  .p-about-consult .hwabaek-wrapper h2 { margin: 56px 0 22px; }
  .p-about-consult .process-container { grid-template-columns: repeat(2, 1fr); }
  .p-about-consult .service-table,
  .p-about-consult .service-table tbody,
  .p-about-consult .service-table tr,
  .p-about-consult .service-table td { display: block; width: 100%; }
  .p-about-consult .service-table td + td { border-top: 0; }
}
@media (max-width: 767px) {
  .p-about-consult .process-container { grid-template-columns: 1fr; }
  .p-about-consult .contact-box { flex-direction: column; gap: 12px; padding: 20px; }
}

/* 업무분야 상세 4종은 같은 page-class(division-detail)를 써서 배너가 전부 같아진다.
 * body 의 page-<slug> 클래스로 분야별 배너를 나눈다.
 * (division_2·recruit_2 폐지로 비게 된 배너 이미지를 재활용) */
body.page-division_1_1 .p-division-detail .sub-banner {   /* 민사 */
  background-image: url(../img/division_1_sub_banner_bg.jpg);
}
body.page-division_1_4 .p-division-detail .sub-banner {   /* 가사 */
  background-image: url(../img/recruit_2_sub_banner_bg.jpg);
}
body.page-division_1_3 .p-division-detail .sub-banner {   /* 행정 */
  background-image: url(../img/division_2_sub_banner_bg.jpg);
}
/* 형사(page-division_1_2)는 기본값(division_1_1_sub_banner_bg.jpg)을 그대로 쓴다 */
