#header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: calc(32rem - 48px); /* 수정됨: 좌측 메뉴가 얇아진 만큼 전체 넓이 축소 */
  height: 150vh;

  background: var(--white-color);

  white-space: nowrap;
}

#header .hd_wrap {
  display: flex;
  height: 100%;
  border-right: 1px solid var(--line-color);
}

#header .hd_wrap .left {
  flex: 0 0 8px; /* 수정됨: 56px -> 8px로 축소 */
  width: 8px; /* 수정됨: 넓이 절대 고정 */
  min-width: 8px;
  max-width: 8px;
  order: -1;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 0; /* 수정됨: 상단 여백 제거 */
  background: #5c808a /*var(--primary-color)*/;
}

#header .hd_wrap .left .icon {
  width: 1.4rem;
  height: 1.4rem;
  stroke: var(--white-color);
  stroke-width: 2;
}

#header .hd_wrap .right {
  flex: 1 1 0;

  display: flex;
  flex-direction: column;
  padding: 0 2.4rem;
}

#header .hd_wrap h1 {
  margin: 8rem 0 8rem 0;
}

#header .hd_wrap h1 a {
  display: block;
}
#header .hd_wrap h1 img {
  width: 100%;
}

#header .gnb > ul > li {
  position: relative;
}

#header .gnb > ul > li > a {
  display: block;
  border-bottom: 1px solid var(--line-color);
  line-height: 4.8rem;

  font-size: 1.6rem;
  font-weight: 500;

  white-space: nowrap;
}

#header .gnb > ul > li > ul {
  position: absolute;
  top: -4px;
  left: 100%;
  background: var(--white-color);
  border: 2px solid var(--primary-color);

  display: none;
  min-width: 24rem;
}

#header .gnb > ul > li > ul::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -6px;
  width: 20px;
  height: 20px;
  background: var(--white-color);
  border: 2px solid var(--primary-color);
  transform: rotate(45deg);
}

#header .gnb > ul > li > ul > li {
  position: relative;
  padding: 0 1.6rem;
  background: var(--white-color);
}

#header .gnb > ul > li > ul > li a {
  display: block;
  line-height: 4rem;
  padding: 0 2.4rem;
  white-space: nowrap;
  font-size: 1.4rem;
}

#header .gnb > ul > li > ul > li:not(:last-child) a {
  border-bottom: 1px solid var(--line-color);
}

#header .gnb > ul > li:hover > ul {
  display: block;
}

#header .adm {
  position: relative;
  display: flex;
  gap: 2.4rem;

  margin-top: 4rem;

  color: var(--body-color);
}

#header .adm svg {
  vertical-align: -2px;
}

#header .adm .icon {
  width: 1.4rem;
  height: 1.4rem;
  stroke: var(--body-color);
  stroke-width: 2;
  vertical-align: -0.2rem;
}

/* ========================================= */
/* 전화번호 및 건설협회 링크 디자인 수정 부분 */
/* ========================================= */
#header .util_area {
  margin-top: calc(4rem + 70px); /* 기존 위치에서 정확히 30px 아래로 내림 */
  padding-bottom: 4rem; 
}

#header .util_area strong {
  display: block;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: none; /* 밑줄 제거 */
  margin-bottom: 1.2rem;
}

#header .util_area .call {
  position: relative;
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.8rem; /* 전화번호 아래 여백 추가 */
}

.util_area .asso_links {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--line-color);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.util_area .asso_links li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: #444;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

.util_area .asso_links li a::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-top: 2px solid #adb5bd;
  border-right: 2px solid #adb5bd;
  transform: rotate(45deg);
  transition: border-color 0.2s ease-in-out;
}

.util_area .asso_links li a:hover {
  background: #ffffff;
  color: var(--point-color, #e63946);
  border-color: var(--point-color, #e63946);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.util_area .asso_links li a:hover::after {
  border-color: var(--point-color, #e63946);
}
/* ========================================= */

#content {
  margin: 0 0 0 calc(32rem - 48px); /* 수정됨: 좌측 메뉴가 얇아진 만큼 본문 밀림 방지 */
}

@media (max-width: 1440px) {
  #header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 12rem;
    background: var(--white-color);
    border-bottom: 1px solid var(--line-color);
  }

  #header .hd_wrap {
    border-right: none;
    height: auto;
  }

  #header .hd_wrap .left {
    display: none;
  }

  #header .hd_wrap .right {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 2.4rem 0 2.4rem;
    height: 12rem;
  }

  #header .hd_wrap h1 {
    flex: 0 0 auto;
    margin: 0 0 0 0;

    display: flex;
    align-items: center;
    padding: 0 1.6rem;
  }

  #header .gnb {
    display: flex;
    gap: 6.4rem;
  }
  #header .gnb > ul {
    display: flex;
    gap: 4rem;
  }

  #header .gnb > ul > li {
    position: relative;
  }

  #header .gnb > ul > li > a {
    border-bottom: none;
    line-height: 12rem;
  }

  #header .gnb > ul > li > ul {
    top: 11.2rem;
    left: 50%;
    transform: translate(-50%, 0);
  }

  #header .gnb > ul > li > ul::before {
    top: -5px;
    left: 50%;
    transform: translate(-50%, 0) rotate(45deg);
  }

  #header .gnb > ul > li > ul > li {
    position: relative;
    padding: 0 1.6rem;
    background: var(--white-color);
  }

  #header .gnb > ul > li > ul > li a {
    display: block;
    line-height: 4rem;
    padding: 0 2.4rem;
    white-space: nowrap;
    font-size: 1.4rem;
  }

  #header .gnb > ul > li > ul > li:not(:last-child) a {
    border-bottom: 1px solid var(--line-color);
  }

  #header .gnb > ul > li:hover .depth2 {
    display: block;
  }

  #header .adm {
    display: flex;
    align-items: center;
    margin-top: 0;
  }

  #header .util_area {
    margin: auto 0;
  }

  #header .util_area strong {
    display: none;
  }

  #header .util_area .call::before {
    display: none;
  }

  #content {
    margin: 0 0 0 0;
  }
}
@media (max-width: 1202px) {
  #header .util_area {
    display: none;
  }
}

@media (max-width: 768px) {
  #header {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 12rem;
  }

  #header h1.on {
    position: fixed;
    left: 1.6rem;
    top: 4rem;
    z-index: 1000;

    max-width: 24rem;
  }

  #header .hd_wrap {
    border-right: none;
    height: auto;
    height: 12rem;
  }

  #header .hd_wrap .left {
    display: none;
  }

  #header .hd_wrap {
    border-right: none;
  }

  #header .hd_wrap .gnb {
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 999;
    background: var(--white-color) url(../images/bar_01.png) no-repeat left
      top/100% 2px;
    width: 100%;
    height: 100vh;
  }

  #header .hd_wrap .gnb.on {
    left: 0;
  }

  #header .hd_wrap .right {
    padding: 0 0 0 0;
    height: 12rem;
  }

  #header .gnb {
    position: fixed;
    top: 0;
    left: -100vw;
    z-index: 999;

    width: 100vw;
    height: 150vh;

    padding: 12rem 1.6rem 0 1.6rem;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 6.4rem;
  }

  #header .gnb.on {
    left: 0;
  }

  #header .gnb > ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--line-color);

    max-height: 32rem;
    overflow-y: auto;
  }

  #header .gnb > ul > li {
    position: relative;
  }

  #header .gnb > ul > li > a {
    display: block;
    padding: 0 2.4rem;
    line-height: 4.8rem;
    white-space: nowrap;

    text-align: left;
    border-bottom: 1px solid var(--line-color);
  }

  #header .gnb > ul > li > ul {
    position: static;
    transform: translate(0, 0);
    background: var(--background-color);
    border: none;

    padding-top: 0;
    padding-bottom: 0;
    height: auto;
    border-radius: 0;
  }

  #header .gnb > ul > li > ul::before {
    display: none;
  }

  #header .gnb > ul > li > ul > li {
    position: relative;
    padding: 0 1.6rem;
    background: var(--background-color);
  }

  #header .gnb > ul > li > ul > li:not(:last-child) a {
    border-bottom: 1px solid var(--line-color);
  }

  #header .gnb > ul > li:hover ul {
    display: none;
  }

  #header .gnb > ul > li:focus-within ul {
    transform: translate(0, 0);

    opacity: 1;
    visibility: visible;

    display: none;
  }

  #header .adm {
    position: relative;
    display: flex;
    gap: 2.4rem;
    margin-left: 0;

    order: -1;

    height: 6.4rem;
    align-items: center;
    width: 100%;
    padding: 0 1.6rem;
    font-size: 1.6rem;

    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  #header .util_area {
    display: none;
  }

#header .util_area.on {
    position: relative; /* 화면 강제 고정 해제 (자연스럽게 밀려남) */
    left: 0;
    right: 0;
    bottom: auto; /* 바닥 고정 해제 */
    margin-top: 4rem; /* 위쪽 메뉴와의 간격 */
    padding-bottom: 4rem; /* 맨 아래 바닥과의 간격 */
    z-index: 999;
    display: block;
    width: 100%;
  }
  #header .util_area strong {
    display: block;
  }
}

@media (max-width: 500px) {
}

.mbtn {
  display: none;
}

@media (max-width: 768px) {
  .mbtn {
    display: flex;
    align-items: center;

    position: fixed;
    top: 4rem;
    right: 1.6rem;
    z-index: 999;

    width: 32px;
    height: 32px;

    background: var(--lightgray-color);
    border: 1px solid var(--line-color);
    border-radius: 4px;
    /* background: rgba(255, 255, 255, 0.25); */
    font-size: 0;
  }

  .mbtn::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 4px;
    right: 4px;

    height: 2px;
    background: var(--body-color);
  }

  .mbtn.on::before {
    display: none;
  }

  .mbtn::after {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 4px;
    right: 4px;

    height: 2px;
    background: var(--body-color);
  }

  .mbtn.on::after {
    display: none;
  }

  .mbtn span::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 4px;
    right: 4px;

    height: 2px;
    background: var(--body-color);
  }

  .mbtn.on span::before {
    transform: rotate(45deg);
  }

  .mbtn span::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 4px;
    right: 4px;

    height: 2px;
    background: var(--body-color);
  }

  .mbtn.on span::after {
    transform: rotate(-45deg);
  }
}

.sub_title {
  position: relative;

  background-color: var(--primary-color);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  /* border-left: 4px solid var(--point-color); */
  /* border-top: 4px solid var(--point-color); */

  text-transform: uppercase;

  color: var(--white-color);
  /* border-radius: 4rem 0 0 0; */
  overflow: hidden;

  min-height: 20rem;
}

.sub_title::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  background: rgba(0, 0, 0, 0.2) url(../images/pt-bg01.png);
}

.sub_title .title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: calc(100% - 3.2rem);
  margin: 0 0;
  margin-bottom: 0;

  text-align: right;
}

.sub_title .title h2 {
  font-size: 6.4rem;
  font-weight: 800;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}
.sub_title .title h2::after {
  content: "";
  display: block;
  margin: 1.6rem 0 1.6rem auto;
  width: 8rem;
  height: 1px;

  background: var(--point-color);
}
.sub_title .title p {
  margin-top: 1.6rem;
  font-size: 1.6rem;
  font-weight: 300;
  /* opacity: 0.75; */
}
@media (max-width: 768px) {
  .sub_title .title h2 {
    font-size: 4.8rem;
    font-weight: 800;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
  }
}

.sub_nav {
  position: relative;
  margin-bottom: 8rem;

  background: var(--white-color);
  border-bottom: 1px solid var(--line-color);

  line-height: 6.4rem;
}

.sub_nav .inner {
  display: flex;
  justify-content: space-between;
}

.sub_nav .lnb ul {
  display: flex;
  justify-content: flex-end;
  gap: 0;
}

.sub_nav .lnb ul a {
  display: block;
  background: var(--white-color);

  white-space: nowrap;

  padding: 0 4rem;
}

.sub_nav .lnb ul li ~ li {
  border-left: 1px solid var(--line-color);
}

.sub_nav .lnb ul li.on a {
  border-top: 4px solid var(--point-color);
  margin-top: -4px;
}

.sub_nav .navigation {
  padding-left: 1.6rem;
  font-size: 1.4rem;
  white-space: nowrap;
}

.sub_nav .navigation .icon {
  width: 1.2rem;
  height: 1.2rem;
  stroke: var(--body-color);
  stroke-width: 2;
  vertical-align: -0.1rem;
  margin: 0 0.4rem;
}

.sub_nav .lnb > a {
  display: none;
}

@media (max-width: 1640px) {
  .sub_nav .navigation {
    display: none;
  }

  .sub_nav .inner {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .sub_nav {
    position: relative;
    margin-top: -4rem;
    margin-bottom: 8rem;

    background: var(--white-color);
    border: 1px solid var(--line-color);

    border-top: 4px solid var(--primary-color);
    border-bottom: 1px solid var(--line-color);

    line-height: 6.4rem;
  }
  .sub_nav .inner {
    display: block;
    margin: 0 0;
  }

  .sub_nav .lnb ul {
    display: none;
  }

  .sub_nav .lnb > a {
    position: relative;
    display: block;
    padding: 0 1.6rem;
  }

  .sub_nav .lnb > a::after {
    content: "";
    position: absolute;
    top: 50%;

    transform: translate(0, -50%);
    right: 1.6rem;
    width: 24px;
    height: 24px;

    background: url(../lib/icon/chevron-down.svg) no-repeat center center/22px;
    opacity: 0.5;
  }

  .sub_nav .lnb > a.on::after {
    background: url(../lib/icon/chevron-up.svg) no-repeat center center/22px;
  }

  .sub_nav .lnb ul li ~ li {
    border-left: 0px solid var(--line-color);
  }
  .sub_nav .lnb ul li {
    border-top: 1px solid var(--line-color);
  }

  .sub_nav .lnb ul a {
    display: block;
    /* background: var(--white-color); */
    background: var(--background-color);
    white-space: nowrap;

    padding: 0 0;
    padding: 0 1.6rem;
  }

  .sub_nav .lnb ul li.on a {
    border-top: 0px solid var(--point-color);
    margin-top: 0px;
  }
}

.sub_content {
  margin-top: 8rem;
  margin-bottom: 12rem;
}

.sub_content .page_title {
  margin-bottom: 2.4rem;
}

.sub_content .page_title h3 {
  position: relative;
  padding: 1.6rem 0;
  /* border-bottom: 1px solid var(--line-color); */
  white-space: nowrap;

  text-align: center;
}

.sub_content .page_title h3::after {
  content: "";
  display: block;
  margin: 2.4rem auto;
  width: 12rem;
  height: 1px;

  background: var(--point-color);
}

.sub_content .page_title h3 strong {
  font-size: 4rem;
  font-weight: 700;
}

@media (max-width: 1440px) {
}

.sub_content .content p {
  font-size: 1.7rem;
  line-height: 2.4rem;
  opacity: 0.9;
}

.sub_content .content .sub_title_desc {
  line-height: 1.5;
  margin-bottom: 8rem;

  text-align: center;
}

#footer {
  padding: 4rem 0 5.6rem 0;
  background: var(--footerbg-color);
  /* color: var(--lightgray-color); */
  border-top: 1px solid var(--line-color);

  font-size: 1.5rem;
  line-height: 2.4rem;

  margin-left: calc(32rem - 48px);
}

@media (max-width: 1440px) {
  #footer {
    margin-left: 0;
  }
}

#footer .f_logo {
  max-width: 24rem;
  margin-bottom: 4rem;
}

#footer .lnk {
  padding: 5.6rem 0;
}

#footer .lnk > ul {
  display: flex;
  gap: 8rem;
}

#footer .lnk > ul > li > a {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.6rem;
}

#footer .lnk > ul ul a {
  display: block;
  line-height: 1.5;
}

#footer .customer_list {
  display: flex;
  gap: 1.6rem;

  margin-bottom: 1.6rem;
}

@media (max-width: 768px) {
  #footer .lnk {
    display: none;
  }

  #footer .customer_list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
}

#footer .info {
  display: flex;
  gap: 2.4rem;
}

#footer .info li {
  position: relative;
  /* text-align: center; */
  white-space: nowrap;
}

#footer .info li ~ li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;

  transform: translate(0, -50%);

  width: 1px;
  height: 0.5em;

  background: #ccc;
}

@media (max-width: 768px) {
  #footer .info {
    flex-direction: column;
    gap: 0;
  }

  #footer .info li ~ li::before {
    display: none;
  }
}

#footer .ft_top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#footer #family_link {
  margin-top: 4rem;
}
#footer .ft_bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 5.6rem;
}

#family_link {
  white-space: nowrap;
  text-align: right;

  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

@media (max-width: 768px) {
  #footer .ft_top {
    flex-direction: column;
    border-bottom: none;
    align-items: flex-end;
  }
  #footer .ft_bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

#side_lnk {
  position: fixed;
  bottom: 12rem;
  right: 1.6rem;
  z-index: 100;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  opacity: 0;
  visibility: hidden;
}

#side_lnk.on {
  opacity: 1;
  visibility: visible;
}

#side_lnk .d_btn {
  position: relative;
  display: block;
  width: 6.4rem;
  height: 6.4rem;
  background: var(--primary-color);
  border-radius: 3.2em;
  box-shadow: 0 0 1.6rem rgba(0, 0, 0, 0.1);
  text-align: center;
}

#side_lnk .d_btn .icon {
  width: 3.2rem;
  height: 3.2rem;
  stroke: var(--white-color);
  stroke-width: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#side_lnk a {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 6.4rem;
  height: 6.4rem;
  margin-bottom: 1.6rem;
  background: var(--white-color);
  border-radius: 3.2em;
  box-shadow: 0 0 1.6rem rgba(0, 0, 0, 0.1);

  line-height: 6.4rem;
  color: var(--white-color);
  font-size: 1.2rem;

  overflow: hidden;
  transition: all 0.3s;
}

#side_lnk a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6.4rem;
  height: 6.4rem;
}

#side_lnk a.naver::after {
  background: url(../lib/images/sns_naver.png) no-repeat center center/3.2rem;
}

#side_lnk a.kakao::after {
  background: url(../lib/images/sns_kakao.png) no-repeat center center/3.2rem;
}

#side_lnk a.naver:hover::after {
  background: url(../lib/images/sns_naver_w.png) no-repeat center center/3.2rem;
}

#side_lnk a.kakao:hover::after {
  background: url(../lib/images/sns_kakao_w.png) no-repeat center center/3.2rem;
}

#side_lnk a:hover {
  width: 22rem;
}

#side_lnk .kakao:hover {
  background: #fee500;
  color: #3c1e1e;
}

#side_lnk .naver:hover {
  background: #03c75a;
  color: #ffffff;
}

#side_lnk a span {
  margin-left: 3.2rem;
  width: 0;

  font-size: 1.4rem;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  #side_lnk {
    bottom: 4rem;
  }
}

#side_lnk a:hover span {
  width: 16rem;
}

#sns_link {
  margin-bottom: 2.4rem;
  text-align: right;
}

#sns_link a {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 4rem;
  height: 4rem;

  border-radius: 50%;

  background: var(--primary-color);
  color: var(--white-color);

  font-size: 1.8rem;
}
#flnk {
  position: relative;
  height: 3.2rem;
  line-height: 3.2rem;
  padding: 0 4rem 0 2.4rem;
  border: 1px solid var(--line-color);
  background: var(--primary-color);
  color: var(--white-color);
  font-size: 1.4rem;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.f_lnk {
  position: relative;
}

.f_lnk::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.8rem;
  width: 1.6rem;
  height: 1.6rem;

  background: url(../lib/icon/chevron-down.svg) no-repeat center center/1.6rem;
  filter: invert(100%);

  transform: translate(0, -50%);
}

.f_lnk #flnk option {
}
.btel {
  text-align: right;
  overflow: hidden;
}

.btel i {
  font-size: 4rem;
  font-weight: 600;
}

.btel i .icon {
  width: 3.2rem;
  height: 3.2rem;
  stroke: var(--white-color);
  stroke-width: 1;
}

.btel strong {
  display: block;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0.8rem 0 0.8rem 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .btel {
    text-align: left;
    overflow: hidden;
  }
}

#family_link .f_link {
  position: relative;
  display: block;
  width: 16rem;
  height: 4rem;
  padding: 0 2.4rem;
  text-align: left;
  font-size: 1.4rem;
  text-align: left;
  color: var(--line-color);
  text-transform: uppercase;
  background: var(--primary-color);

  border-radius: 2rem 2rem 2rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

#family_link .f_link.on {
  border-radius: 0 0 2rem 2rem;
  background: var(--body-color);
}

#family_link .f_link svg {
  position: absolute;
  right: 0.8rem;
  top: 1rem;
}

#family_link .f_link.on svg {
  transform: rotate(180deg);
}

#family_link ul {
  display: none;
  position: absolute;
  bottom: 4rem;
  width: 100%;

  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: -1px;
  z-index: 2;

  background: var(--body-color);

  border-radius: 2rem 2rem 0 0;
  overflow: hidden;
}

#family_link ul > li > a {
  display: block;
  padding: 0 2.4rem;
  font-size: 1.4rem;
  line-height: 3.9rem;
  color: var(--line-color);
}

#family_link ul > li ~ li > a {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#family_link ul > li > a:hover {
  background: var(--point-color);
}

/* 1. 마우스 호버 시 튀어나오는 기본 테마 기능 정지 */
#header .gnb > ul > li:hover > ul {
  display: none; 
}

/* 2. 서브메뉴가 대분류 바로 아래로 열리도록 구조 강제 변경 */
#header .gnb > ul > li > ul {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  border: none !important;
  border-top: 1px solid var(--line-color) !important;
  background: #ffffff !important; /* 서브메뉴 흰색 배경 */
  transform: none !important; /* 중앙 정렬 뒤틀림 방지 */
}

/* 3. 말풍선 꼬리 제거 */
#header .gnb > ul > li > ul::before {
  display: none !important; 
}

/* 4. 서브메뉴 항목들의 들여쓰기 및 글자 스타일 */
#header .gnb > ul > li > ul > li {
  background: transparent !important;
}

#header .gnb > ul > li > ul > li > a {
  padding-left: 4rem !important; 
  color: #555 !important;
}

/* 5. 서브메뉴 마우스 오버 & 현재 위치 활성화 시 회색 배경 적용 */
#header .gnb > ul > li > ul > li > a:hover,
#header .gnb > ul > li > ul > li > a.active-menu {
  background-color: #f5f5f5 !important; /* 연한 회색 */
  color: #e63946 !important; /* 포인트 색상 */
  font-weight: bold !important;
}

/* =======================================================
   1. 좌측 메인 메뉴 (GNB) 아코디언 설정
======================================================= */
@media (min-width: 1441px) {
  /* 💡 핵심: !important를 제거하여 제이쿼리와의 충돌(부르르 떨림) 해결 */
  #header .gnb > ul > li:hover > ul { 
    display: none; 
  }
  
  #header .gnb > ul > li > ul {
    position: relative !important;
    top: 0 !important; 
    left: 0 !important;
    width: 100% !important;
    border: none !important;
    border-top: 1px solid var(--line-color) !important;
    background: #ffffff !important;
    transform: none !important;
  }
  
  #header .gnb > ul > li > ul::before { 
    display: none !important; 
  }
  
  #header .gnb > ul > li > ul > li > a { 
    padding-left: 4rem !important; 
  }
}

/* 마우스 오버 및 현재 위치 활성화 색상 */
#header .gnb > ul > li > ul > li > a:hover,
#header .gnb > ul > li > ul > li > a.active-menu {
  background-color: #f5f5f5 !important;
  color: var(--point-color, #e63946) !important;
  font-weight: bold !important;
}

/* =======================================================
   우측 본문 서브메뉴 (LNB) 제이쿼리 버그 강제 방어 (PC 전용)
======================================================= */
@media (min-width: 769px) {
  .sub_nav .lnb ul {
    display: flex !important; 
    flex-direction: row !important;
    justify-content: flex-end !important;
    
    /* 💥 F12에서 발견하신 버그를 원천 차단하는 방어 코드 추가! */
    height: auto !important; 
    overflow: visible !important;
    opacity: 1 !important;
  }
}
/* 모바일(768px 이하)에서는 위 코드가 무시되고 테마 원래의 드롭다운 디자인이 적용됩니다. */

/* =======================================================
   3. 모바일 메인 메뉴(GNB) 높이 제한 해제 및 스크롤 개선
======================================================= */
@media (max-width: 768px) {
  /* 32rem으로 꽉 막혀있던 내부 박스 높이 제한 해제 및 내부 스크롤바(슬라이딩바) 제거 */
  #header .gnb > ul {
    max-height: none !important; 
    overflow-y: visible !important; 
  }
  
  /* 메뉴 전체를 감싸는 바깥 배경이 화면에 딱 맞게 스크롤되도록 최적화 */
  #header .gnb {
    height: 100vh !important; /* 기존 150vh의 과도한 길이를 화면에 딱 맞춤 */
    overflow-y: auto !important; /* 메뉴가 길어지면 전체 영역이 자연스럽게 스크롤됨 */
    padding-bottom: 100px !important; /* 제일 아래 메뉴가 바닥에 너무 붙지 않도록 여백 추가 */
  }
}

/* =======================================================
   4. PC 버전 좌측 메뉴 회색 경계선 잘림 완벽 해결 및 스크롤 최적화
======================================================= */
@media (min-width: 1441px) {
  /* 바깥쪽 고정 껍데기(#header)에 선을 부여하여 무조건 화면 아래까지 이어지게 함 */
  #header {
    height: 100vh !important; 
    border-right: 1px solid var(--line-color) !important; /* 💡 선 위치 이동 */
    overflow-y: auto !important; 
    width: calc(32rem - 48px) !important; /* 추가됨: 우측 팽창 완전 차단 */
  }
  
  #header .hd_wrap .left {
    flex: 0 0 8px !important; /* 추가됨: 좌측 8px 절대 고정 */
    width: 8px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    padding: 0 !important;
  }

  /* 기존에 선을 가지고 있던 안쪽 껍데기(.hd_wrap)의 선은 지우고 높이를 유연하게 변경 */
  #header .hd_wrap {
    border-right: none !important; /* 💡 중복 방지 */
    height: max-content !important; 
    min-height: 100vh !important; 
  }
  
  /* 좌측 메뉴 스크롤바 숨김 (마우스 휠은 정상 작동) */
  #header::-webkit-scrollbar {
    display: none; 
  }
}

/* =======================================================
   5. 가로폭 팽창 방지 및 로고 크기 고정 (완결판)
======================================================= */
/* 로고 이미지가 부모 박스 넓이에 따라 100%로 늘어나는 현상 차단 및 예쁜 크기로 고정 */
#header .hd_wrap .right h1 img {
  width: 180px !important; /* 💡 이 숫자를 살짝씩 조절해서 예전의 딱 보기 좋았던 크기로 고정하세요! (예: 180px, 220px 등) */
  max-width: 100% !important; /* 화면이 아주 작아질 때만 유연하게 줄어들도록 방어 */
  height: auto !important;
}

/* 서브메뉴 오픈 시 가로폭이 강제로 팽창하여 밑줄이 늘어나는 현상 방지 */
#header .gnb > ul > li > ul {
  box-sizing: border-box !important;
  width: 100% !important; 
}

/* 서브메뉴 글자가 길 경우 가로로 밀어내지 않고 자연스럽게 줄바꿈되도록 처리 */
#header .gnb > ul > li > ul > li > a {
  white-space: normal !important; 
  word-break: keep-all !important;
}

/* =======================================================
   모바일 대응: 화면이 768px 이하로 좁아지면 로고 크기 축소
======================================================= */
@media (max-width: 768px) {
  #header .hd_wrap .right h1 img {
    width: 140px !important; /* 💡 모바일 전용 가로폭 150px 지정 */
  }
}

/* 모바일 메뉴가 열렸을 때 (h1에 on이 붙었을 때) 로고 크기와 위치 조절 */
@media (max-width: 768px) {
  #header .hd_wrap .right h1.on img {
    width: 120px !important; /* 💡 메뉴 창 안에서의 로고 크기 (원하는 대로 조절) */
    max-width: 100% !important;
    height: auto !important;
    
    /* 💡 메뉴 창 안에서의 여백 위치 (상, 우, 하, 좌) */
    margin-top: -10px !important;
  /*  margin-bottom: 50px !important;  */
    margin-left: 0px !important; 
  }
}


/* =======================================================
   3뎁스 (관급공사 / 사급공사) 드롭다운 디자인 추가
======================================================= */
/* 1. 3뎁스 기본 숨김 및 백그라운드 디자인 */
#header .gnb > ul > li > ul > li > ul {
    display: none;
    background: #fbfbfb !important;
    border-top: 1px dashed var(--line-color) !important;
}

/* 2. 3뎁스 글씨 들여쓰기 및 폰트 축소 */
#header .gnb > ul > li > ul > li > ul > li > a {
    padding-left: 5.6rem !important; /* 상위 메뉴보다 안쪽으로 밀어넣음 */
    font-size: 1.35rem !important;
    color: #666 !important;
    line-height: 3.6rem !important;
    border-bottom: 1px dotted #eaeaea !important;
}

/* 3. 마우스 오버 & 활성화 시 효과 */
#header .gnb > ul > li > ul > li > ul > li > a:hover,
#header .gnb > ul > li > ul > li > ul > li > a.active-menu {
    color: var(--point-color, #e63946) !important;
    background: #f1f1f1 !important;
    font-weight: 600 !important;
}

/* 4. 3뎁스를 가진 2뎁스 항목 우측에 십자(+) 기호 아이콘 추가 */
#header .gnb > ul > li > ul > li.has-depth3 > a {
    position: relative;
}
#header .gnb > ul > li > ul > li.has-depth3 > a::after {
    content: '+';
    position: absolute;
    right: 2.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 300;
    color: #999;
    transition: all 0.3s;
}

/* 서랍이 열렸을 때(-) 기호로 변경 */
#header .gnb > ul > li > ul > li.has-depth3 > a.open::after {
    content: '-';
    color: var(--point-color, #e63946);
}

/* =======================================================
   6. 모바일 메뉴 하단 전화번호 겹침 완벽 해결 (JS 연동)
======================================================= */
@media (max-width: 768px) {
  /* 메뉴 안으로 들어온 전화번호 영역을 바닥에 자연스럽게 배치 */
  #header .util_area,
  #header .util_area.on {
    position: relative !important; 
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin-top: auto !important; /* 메뉴가 짧을 때도 제일 밑으로 밀어냄 */
    padding-top: 4rem !important; /* 메뉴 마지막 글자와 부딪히지 않게 여백 */
    padding-bottom: 8rem !important; /* 화면 끝까지 내렸을 때 바닥 여백 */
    background: transparent !important;
    display: block !important;
  }
}

/* ==========================================
   🚀 PC 모드 3뎁스(서브목록) 실종 방지용 CSS
========================================== */
/*@media (min-width: 1441px) {
    #header .gnb > ul > li > ul > li > ul {
        display: block !important; /* PC에서는 3뎁스가 항상 쫙 펼쳐져 보이도록 강제합니다 */
/*    }
} */