#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;

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

  height: 11.2rem;
  overflow: hidden;

  transition: 0.4s;
}

#header.on {
  background: var(--white-color);
  border-bottom: 1px solid var(--line-color);
}
#header:hover {
  height: 40rem;
  background: var(--white-color);
  border-bottom: 1px solid var(--line-color);
}

#header h1 {
  font-size: 3.2rem;
  font-weight: 800;
  white-space: nowrap;
  user-select: none;
}

#header h1 a {
  display: block;
  width: 210px;
  height: 11.2rem;

  background: url(../images/logo_w.png) no-repeat left center;
}

#header.on h1 a {
  background: url(../images/logo.png) no-repeat left center;
}
#header:hover h1 a {
  background: url(../images/logo.png) no-repeat left center;
}

#header .hd_wrap {
  display: flex;
  align-items: flex-start;
  height: 11.2rem;

  transition: height 0.4s;
}

#header.on .sitemap svg {
  filter: invert();
}
#header:hover .sitemap svg {
  filter: invert();
}

#header .adm {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2.4rem;

  height: 11.2rem;

  margin-left: 7.2rem;
  align-self: flex-start;

  color: var(--white-color);
}
#header.on .adm {
  color: var(--body-color);
}
#header:hover .adm {
  color: var(--body-color);
}

#header .adm a {
  white-space: nowrap;
}

#header .adm svg {
  vertical-align: -2px;
  margin-right: 8px;
}
#header.on .adm svg {
  filter: invert();
}
#header:hover .adm svg {
  filter: invert();
}

#header .gnb_container {
  display: flex;
  align-items: flex-start;

  margin-left: auto;
}

#header .gnb {
  display: flex;
  align-items: center;
  margin-left: auto;
}

#header .gnb > ul {
  display: flex;
  height: 12rem;
  overflow: hidden;
}
#header:hover .gnb > ul {
  height: 40rem;
}

#header .gnb > ul > li {
  position: relative;
  border-left: 1px solid rgba(0, 0, 0, 0);
}
#header .gnb > ul > li:last-child {
  border-right: 1px solid rgba(0, 0, 0, 0);
}
#header:hover .gnb > ul > li {
  position: relative;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}
#header:hover .gnb > ul > li:last-child {
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

#header .gnb > ul > li:hover {
  background: rgba(0, 0, 0, 0.01);
}

#header .gnb > ul > li > a {
  position: relative;
  display: block;
  text-align: center;
  font-size: 2rem;
  line-height: 11.2rem;
  padding: 0 2.4rem;
  color: var(--white-color);

  white-space: nowrap;
}

#header .gnb > ul > li > a::after {
  content: "";
  position: absolute;
  top: 9.6rem;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, 0);

  width: 0;
  height: 1px;

  background: var(--primary-color);

  transition: 0.3s;
}

#header .gnb > ul > li:hover > a::after {
  width: calc(100% - 6.4rem);
}

#header.on .gnb > ul > li > a {
  color: var(--body-color);
}

#header:hover .gnb > ul > li > a {
  color: var(--body-color);
}

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

#header .gnb > ul > li ul li a {
  display: block;
  padding: 0 3.2rem;
  line-height: 3.2rem;
  white-space: nowrap;
  text-align: center;
  font-size: 1.6rem;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  #header .gnb > ul > li ul li a {
    padding: 0 2.4rem;
  }
}

#header.on .gnb > ul > li > a {
  color: var(--body-color);
}

.mbtn {
  display: none;
}

@media (max-width: 1024px) {
  .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: #ffffff;
  }

  .mbtn.scrolled::before  {
    background: #000;
  }

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

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

    height: 2px;
    background: #ffffff;
  }

  .mbtn.scrolled::after  {
    background: #000;
  }

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

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

    height: 2px;
    background: #fff;
  }

  .mbtn.scrolled span::before {
  background: #000;
}

.mbtn.scrolled span::after {
  background: #000;
}


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

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

    height: 2px;
    background: #fff;
  }


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

  #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;

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

    height: 11.2rem;
    overflow: vi;

    transition: 0.4s;
  }

  #header.on {
    background: var(--white-color);
    border-bottom: 1px solid var(--line-color);
  }
  #header:hover {
    height: 11.2rem;
    overflow: visible;
    background: var(--white-color);
    border-bottom: 1px solid var(--line-color);
  }
  #header .gnb_container {
    position: fixed;
    top: 0;
    left: -100vw;
    z-index: 999;

    width: 100vw;
    height: 200vh;
    background: var(--white-color);

    background: rgba(0, 0, 0, 0.75);

      opacity: 0;
  transform: translateX(40px); 
  transition: opacity 0.4s ease, transform 0.4s ease, left 0s 0.4s; 
  }

  #header .gnb_container.on {
    left: 0;
      opacity: 1;
  transform: translateX(0);

  transition: opacity 0.4s ease, transform 0.4s ease;
  }

  #header .gnb {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    /* gap: 4rem; */
    padding: 10rem 2.4rem 0 2.4rem;

    width: calc(100vw);
    height: 150vh;
    background: var(--white-color);
  }

  #header .gnb > ul {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #header .gnb > ul > li > a {
    line-height: 5.6rem;
    border-bottom: 1px solid var(--line-color);
    color: var(--body-color);
    font-weight: 500;
    font-size: 1.8rem;
    padding: 0 0 0 0.8rem;
    text-align: left;
  }

  #header.on .gnb > ul > li > a {
    line-height: 5.6rem;
    color: var(--body-color);
  }

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

  #header .gnb > ul {
    display: flex;
    height: 12rem;
    overflow: hidden;

    overflow: visible;
  }
  #header:hover .gnb > ul {
    height: auto;
    border-top: 1px solid var(--primary-color);
  }

  #header .gnb > ul > li {
    position: relative;
    border-left: none;
  }
  #header .gnb > ul > li:last-child {
    border-right: none;
  }
  #header:hover .gnb > ul > li {
    position: relative;
    border-left: none;
  }
  #header:hover .gnb > ul > li:last-child {
    border-right: none;
  }

  #header .gnb > ul > li:hover {
    background: none;
  }
  #header .gnb > ul > li:focus-within {
    background: none;
  }
  #header .gnb > ul > li ul {
    position: static;

    transform: translate(0, 0);
    background: var(--white-color);
    border: 0 solid var(--lightgray-color);

    opacity: 1;
    visibility: visible;

    transition: none;

    display: none;
  }

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

    background: var(--lightgray-color);

    text-align: left;
  }

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

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

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

    align-self: stretch;

    margin-left: 0;

    height: 7.2rem;

    color: var(--body-color);
    padding: 1.6rem 0;
    /* border-top: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color); */
  }

  #header.on .adm {
    color: var(--body-color);
  }

  #header .adm a {
    font-size: 13px;
  }

  #header .adm svg {
    vertical-align: -2px;
    margin-right: 8px;
    filter: invert();
  }
  #header.on .adm svg {
    filter: invert();
  }

}
.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); */

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

  min-height: 56rem;
}

.sub_title::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 40%, transparent);
  backdrop-filter: blur(16px);

  animation: blur 0.4s both;
}

@keyframes blur {
  0% {
    backdrop-filter: blur(16px);
  }
  100% {
    backdrop-filter: blur(0);
  }
}

.sub_title::after {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  z-index: 3;
  background: url(../images/pt-bg01.png);
}

.sub_title .title {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, calc(-50% + 4rem));

  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

.sub_title .title h2 {
  font-size: 6.4rem;
  font-weight: 800;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.sub_title .title h2::after {
  content: "";
  display: block;
  margin: 1.6rem auto 1.6rem auto;
  width: 4rem;
  height: 2px;
  background: var(--point-color);
}
.sub_title .title p {
  font-size: 1.8rem;
  font-weight: 300;
  opacity: 1;
}
@media (max-width: 768px) {
  #header h1 a {
  width: 165px;
}

  .sub_title .title {
    margin: 0 0;
    padding: 0 1.6rem;
  }

  .sub_title .title h2 {
    font-size: 4.8rem;
    font-weight: 800;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  }
}

.sub_nav {
  position: relative;
  z-index: 5;
  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 {
  font-size: 1.4rem;
}

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

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

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

    border-top: 4px solid var(--primary-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;

    font-size: 2.2rem;
  }

  .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_nav .navigation {
    display: none;
  }
}

.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;
}

.sub_content .page_title h3::after {
  content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 12rem;
    height: 1px;
    background: var(--primary-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: 5.6rem;
  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;
}

#footer .lnk {
  margin-bottom: 5.6rem;
  padding: 5.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#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;
  }

  .sub_content .page_title h3 strong {
  font-size: 3rem;
}
}

#footer .inner {
  display: flex;
  flex-direction: column;
  /* justify-content: center;
  align-items: center; */
  gap: 8px;
}

#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;
  }
}

#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 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;
}

#footer .ft_wrap {
  position: relative;
}

#family_link {
  position: absolute;
  top: 8rem;
  right: 0;

  white-space: nowrap;
}

@media (max-width: 768px) {
  #family_link {
    top: 0;
  }
}

#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);
}

/* 서브메뉴바 고정 스타일 */
.sub_nav {
    position: -webkit-sticky; /* 사파리 지원 */
    position: sticky;
    top: 11.2rem; /* ★ 메인 헤더의 높이에 맞춰 조절하세요 */
    z-index: 99; /* 본문 내용보다 위에 오도록 설정 */
    background-color: #ffffff; /* 스크롤 시 뒤쪽 내용이 비치지 않게 흰색 배경 지정 */
    border-bottom: 1px solid #eeeeee; /* 하단 구분선 (선택 사항) */
}

/* 스크롤 시 헤더와 서브메뉴의 겹침 방지 */
#header {
    z-index: 100; /* 서브메뉴(.sub_nav)보다 헤더가 더 위에 있도록 설정 */
}
