/* 기존 크기·위치·애니메이션을 유지하고 고객 사진만 교체한다. */
#main_banner_wrap .main_img_box p {
    background-image: url("../images/knsamc/21e826e3436b8.jpg");
}
#main_banner_wrap:has(.tit2.active) .main_img_box p {
    background-image: url("../images/knsamc/35803066302cf.jpg");
}
#main_banner_wrap:has(.tit3.active) .main_img_box p {
    background-image: url("../images/knsamc/42445d5c8c774.jpg");
}
#sub_main_banner {
    background-image: url("../images/knsamc/10aeb8aa0d85b.jpg");
}
#sh_container_wrapper:has(#p33, #p34, #p35, #p36, #p37) #sub_main_banner {
    background-image: url("../images/knsamc/21e826e3436b8.jpg");
}
#sh_container_wrapper:has(#sh_map_v) #sub_main_banner {
    background-image: url("../images/knsamc/9b2869a4a6514.jpg");
}

/* 회사개요 등록증은 원본 비율을 유지한다. */
#p34 .ks-certificates { margin-top: 60px; }
#p34 .ks-certificate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#p34 .ks-certificate-grid figure { margin: 0; padding: 20px; border: 1px solid #e1e1e1; background: #fff; text-align: center; }
#p34 .ks-certificate-grid a { display: block; }
#p34 .ks-certificate-grid img { display: block; width: 100%; height: 350px; object-fit: contain; }
#p34 .ks-certificate-grid figcaption { margin-top: 20px; font-size: 16px; }
#p34 .ks-certificate-grid strong { display: block; color: #222; font-family: notokr-bold; }
#p34 .ks-certificate-grid figcaption span { display: block; margin-top: 5px; }

/* 조직도의 중앙 축과 분기선을 기존 이미지의 형태에 맞춘다. */
#p37 .ks-org-chart { max-width: 1070px; margin: 0 auto; padding: 20px 0; text-align: center; color: #222; }
#p37 .ks-org-company { position: relative; width: 320px; max-width: 90%; margin: 0 auto 32px; padding: 16px 20px; border: 2px solid #333; border-radius: 50px; background: #fff; font-size: 20px; font-family: notokr-bold; }
#p37 .ks-org-company::after { content: ""; position: absolute; top: 100%; left: 50%; height: 34px; border-left: 1px solid #ccc; }
#p37 .ks-org-chief { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; width: 168px; height: 168px; margin: 0 auto; border: 2px solid #ddd; border-radius: 50%; background: linear-gradient(125deg, #2cb7d3, #7dc34c); color: #fff; font-size: 22px; }
#p37 .ks-org-chief strong { font-family: notokr-bold; }
#p37 .ks-org-chief span { font-size: 20px; }
#p37 .ks-org-branch { position: relative; height: 115px; }
#p37 .ks-org-branch::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid #ccc; }
#p37 .ks-org-branch::after { content: ""; position: absolute; top: 40px; left: 50%; width: 17%; border-top: 1px solid #ccc; }
#p37 .ks-org-supervisor { position: absolute; z-index: 1; top: 5px; right: 2%; display: flex; align-items: center; justify-content: center; width: 31%; min-height: 70px; padding: 10px; border: 2px solid #333; border-radius: 50px; background: #78c253; color: #fff; font-size: 19px; font-family: notokr-bold; }
#p37 .ks-org-teams { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10%; margin: 0 10%; padding: 40px 0 0; list-style: none; }
#p37 .ks-org-teams::before { content: ""; position: absolute; top: 0; left: 22.5%; right: 22.5%; border-top: 1px solid #ccc; }
#p37 .ks-org-teams > li { position: relative; min-width: 0; }
#p37 .ks-org-teams > li::before { content: ""; position: absolute; bottom: 100%; left: 50%; height: 40px; border-left: 1px solid #ccc; }
#p37 .ks-org-team { display: flex; align-items: center; justify-content: center; min-height: 70px; padding: 12px; border: 2px solid #ddd; border-radius: 50px; background: linear-gradient(120deg, #9ebdff, #c2ecf6); font-size: 19px; }
#p37 .ks-org-phone { display: inline-block; margin-top: 12px; color: #555; font-size: 16px; }

/* 지도와 정책 안내는 해당 본문에만 적용한다. */
#sh_map_v #ks-map-frame { display: block; max-width: 100%; border: 1px solid #e1e1e1; }
#sh_map_v .ks-map-info { margin: 30px 50px 0; padding: 20px 0; border-top: 1px solid #e1e1e1; font-size: 15px; line-height: 1.8; }
#sh_map_v .ks-map-info > div { display: flex; gap: 20px; padding: 5px 0; }
#sh_map_v .ks-map-info dt { flex: 0 0 80px; color: #222; font-family: notokr-bold; }
#sh_map_v .ks-map-info dd { margin: 0; }
#sh_bo_v .ks-policy-notice { padding: 45px 30px; border: 1px solid #e1e1e1; border-top: 2px solid var(--primary); background: #fff; text-align: center; }

/* 메인 히어로 문구: 레퍼런스의 -77px 겹침 때문에 첫 줄이 슬라이더 영역에 잘려서 이미지 아래로 내린다. */
#main_banner_wrap .bx-wrapper { margin-top: 0; }
#main_banner_wrap .move_txt01 { font-size: 45px; }
#main_banner_wrap .move_txt02 { margin: 16px 0 0; }
#main_banner_wrap .bx-pager { top: 14px; }

/* 서브페이지 헤더: 로고·메뉴가 배너 사진에 걸리지 않게 흰 헤더 띠를 두고 배너를 그 아래로 내린다. */
body:has(#sub_main_banner) #top_nav { top: 22px !important; }
#sh_wrapper.sub #top_nav > li > a, .sub #top_nav > li > a { color: #222; }
#sh_wrapper.sub #top_nav > li > a:hover, .sub #top_nav > li > a:hover { color: var(--primary); }
#sub_main_banner { margin-top: 138px; height: 337px; background-position: center; }
#sh_content_tit { padding-top: 110px; }
/* 메인 메뉴도 로고 세로 중심에 맞춘다. */
#top_nav { top: 22px !important; }
