@charset "UTF-8";
/* ==========================================================================
   sub.css — 서브페이지 공통 골격

   [여기 두는 것] 서브페이지 **여러 곳에서 함께 쓰는 것**만 둔다.
     · body.sub                     서브 본문 기준
     · .sub_vis (+ .vis_*)          서브 비주얼 — 배경 · 경로 · 제목 · 하위 메뉴
     · .sub_content · .title_wrap   본문 래퍼 · 섹션 제목
     · .region_list (+ .region_*)   지역 카드 목록 — 조직도 · 지역새일센터가 함께 쓴다

   [여기 두지 않는 것]
     1) 한 페이지에서만 쓰는 것 → css/web/sub/about/<페이지>.css
          about.css        센터소개 지원내용
          history.css      연혁
          organization.css 조직도 · 지역 지도와 거르개
          center.css       지역새일센터
          map.css          찾아오시는길
        각 페이지가 $PAGE_CSS 로 자기 파일을 지정한다(inc/doctype.php).

     2) 메인부터 사이트 전체가 쓰는 것 → 손대지 않는다
          색 · 간격 · 글자 토큰(--main-color · --spacing-* · --font-size-*)
          표 · 탭 · 검색 · 페이징 · 버튼 · 폼   → css/web/common.css
          헤더 · 푸터 · 지도 위젯 · TOP 버튼    → css/web/layout.css
        같은 값을 여기 다시 적지 말 것 — 토큰과 컴포넌트를 그대로 쓴다.

   [기준] 이 파일은 카이누리 기준(1600px 초과 18px)을 그대로 따른다.
          메인만 main.css 에서 16px 로 되돌린다.
   ========================================================================== */

/* ===== 공통 · 서브페이지 기본 구성 ===== */
body.sub {
  padding-top: 80px;
}

/* ===== 공통 · 서브 비주얼 ===== */
.sub_vis {
  position: relative;
  height: 450px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ===== 서브 비주얼 · 배경 이미지 ===== */
.sub_vis .vis_bg {
  position: absolute;
  inset: 0;
  background-color: #3a4a4f;
}
.sub_vis .vis_bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sub_vis .vis_bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  mix-blend-mode: multiply;
}

/* ===== 서브 비주얼 · 경로 및 페이지 제목 ===== */
/* vis_head: 비주얼 안의 경로 표시와 큰 페이지 제목을 담는 영역 */
.sub_vis .vis_head {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sub_vis .vis_head .wFix {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 0 1.5rem;
}

/* vis_path: 홈 > 상위 메뉴 > 현재 페이지로 이어지는 경로 표시 */
.sub_vis .vis_path {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 200px;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 100%;
}
.sub_vis .vis_path a,
.sub_vis .vis_path span {
  font-size: 16px;
  letter-spacing: -0.32px;
  white-space: nowrap;
}

.sub_vis .vis_path a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  transition: color 0.15s ease;
}
.sub_vis .vis_path a:hover {
  color: var(--white);
}
.sub_vis .vis_path span {
  color: var(--white);
  font-weight: 500;
}
.sub_vis .vis_path_home {
  display: inline-flex;
  align-items: center;
}
.sub_vis .vis_path_home .material-symbols-outlined {
  font-size: 24px;
  color: var(--white);
}
.sub_vis .vis_path_arw {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.sub_vis .vis_tit {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -1.08px;
  line-height: 1.2;
  color: var(--white);
}

/* ===== 서브 비주얼 · 하위 메뉴 ===== */
.sub_vis .vis_tabs {
  position: relative;
  flex: 0 0 auto;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sub_vis .vis_tabs .wFix {
  display: flex;
  align-items: stretch;
  height: 100%;
  padding: 0 0 0 1.5rem;

  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sub_vis .vis_tabs .wFix::-webkit-scrollbar {
  display: none;
}

/* sub.js가 추가하는 상태: is_draggable은 가로 이동 가능, is_dragging은 드래그 중 */
.sub_vis .vis_tabs .wFix.is_draggable {
  cursor: grab;
}
.sub_vis .vis_tabs .wFix.is_dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}

.sub_vis .vis_tabs a {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.sub_vis .vis_tabs a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* is_active: 현재 페이지에 해당하는 비주얼 하위 메뉴 */
.sub_vis .vis_tabs a.is_active,
.sub_vis .vis_tabs a.is_active:hover {
  background: linear-gradient(119.27deg, #00d5ff 0%, #b5e629 96.15%);
  border-right-color: transparent;
  font-weight: 700;
}

/* ===== 공통 · 본문 및 섹션 제목 ===== */
.sub_content {
  background-color: var(--bg-color);
}

/* title_wrap: 제목·태그·설명 묶음. tit_wrap은 기존 공통 제목 마크업에 쓰는 별도 클래스 */
.title_wrap {
  margin-bottom: var(--tit-gap);
}
.title_wrap .tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--main-color);
}
.title_wrap > p {
  margin-top: 1.25rem;
}
.title_wrap.ty_center {
  text-align: center;
}

body.sub .tit_wrap {
  margin-bottom: 2.5rem;
}

/* ===== 지역별 취업상담사 · 지역별 연락처 카드 ===== */
.region_list {
  width: 100%;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
/* region_column: 여러 지역을 담는 한 열 / region_group: 지역명과 연락처를 담는 카드 */
.region_column {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}
.region_group {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 4vw, 65px);
  padding: 1.5rem;
}
/* is_hide: 지역 필터에서 선택되지 않은 카드를 숨기는 상태 */
.region_group.is_hide {
  display: none;
}
.region_name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
/* region_items: 카드 내부 연락처 목록 / region_item: 기관명·전화번호 한 행 */
.region_items {
  min-width: 0;
  display: grid;
  gap: 15px;
}
.region_item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 15px;
  align-items: center;
  min-width: 0;
  font-size: 1.25rem;
  line-height: 1.4;
}
.region_item + .region_item {
  padding-top: 15px;
  background: url("../../images/sub/common/region-divider.svg") left top / 100%
    1px no-repeat;
}
.region_org {
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 연락처의 공통 모양과 인터랙션은 layout.css에서 관리한다. */

/* 새일참견: 조직도와 동일한 콘텐츠 상단 구분선 */
.interference_body {
  border-top: 1px solid #e2e2e2;
  padding-top: 3.5rem;
}

/* 정보·홍보 제목 및 검색 */
.information_heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 2.5rem;
}
body.sub .information_heading .tit_wrap {
  margin-bottom: 0;
  min-width: 0;
}
/* information_search: 정보·홍보 검색창. search_st4/search_wrap은 common.css의 공통 검색 스타일 */
.information_search.search_st4 {
  flex: 0 0 400px;
  width: 400px;
  height: 60px;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 20px;
  gap: 0.5rem;
  border: 3px solid #005fa7;
  border-radius: 10px;
  box-shadow: none;
}
/* select: 제목·내용 검색조건 / input[type="search"]: 검색어 입력 */
.information_search.search_wrap select {
  flex: 0 0 87px;
  width: 87px;
  min-width: 87px;
  max-width: 87px;
  height: 28px;
  padding: 0 12px 0 0;
  appearance: auto;
  background: none;
  color: #555;
  font-size: 18px;
  font-weight: 300;
}
.information_search.search_wrap input[type="search"] {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: none;
  height: 28px;
  margin: 0;
  padding: 0 8px 0 20px;
  border: 0;
  border-radius: 0;
  /* box-shadow: inset 1px 0 rgba(0, 95, 167, 0.5); */
  background: transparent;
  color: #555;
  font-size: 18px;
  font-weight: 300;
}
.information_search input::placeholder {
  color: #c1d0d5;
  opacity: 1;
}
.information_search button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #005fa7;
  cursor: pointer;
}
.information_search button .material-symbols-outlined {
  font-size: 34px;
}
.information_search :focus-visible {
  outline: 2px solid #005fa7;
  outline-offset: 2px;
}
/* is_pointer_focus: 마우스·터치로 입력칸을 선택한 상태. 키보드 포커스 표시는 유지 */
.information_search.search_wrap.is_pointer_focus select:focus,
.information_search.search_wrap.is_pointer_focus input[type="search"]:focus {
  outline: none;
}

/* 검색 필터로 제외된 갤러리 카드와 게시글: 기존 display 규칙보다 hidden을 우선 적용 */
.page_information .gallery_information .gallery_card[hidden],
.page_information .board_information .board_list > li[hidden] {
  display: none;
}
.information_search_empty {
  padding: 3.5rem 0;
  text-align: center;
  color: #666;
}
.information_search_empty[hidden] {
  display: none;
}

/* 정보·홍보 및 사업신청 공통 페이징 */
.page_business_list .business_paging_form {
  margin: 0;
  padding: 0;
  border: 0;
}
.page_information .paging_wrap.information_paging,
.page_business_list .paging_wrap.business_paging {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
}
.page_information .information_paging.paging_st3 li,
.page_business_list .business_paging.paging_st3 li {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
}
.page_information .information_paging.paging_st3 li a,
.page_information .information_paging.paging_st3 li button,
.page_business_list .business_paging.paging_st3 li button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #555;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.page_information .information_paging.paging_st3 li.active a,
.page_information .information_paging.paging_st3 li.active button,
.page_business_list .business_paging.paging_st3 li.active button {
  background: #aee2e2;
  color: #fff;
}
.page_information .information_paging a:focus-visible,
.page_information .information_paging button:focus-visible,
.page_business_list .business_paging button:focus-visible {
  outline: 2px solid #005fa7;
  outline-offset: 2px;
}

/* ===== 반응형 통합: 1400 → 1100 → 1024 → 900 → 768 → 500 → 480px =====
   기본 스타일 뒤에 배치합니다. 같은 너비의 수정은 해당 블록 안에서 관리합니다.
   900px 조건은 기존처럼 screen 제한 없이 유지하여 인쇄 적용 범위도 보존합니다. */

@media screen and (max-width: 1400px) {
  /* 지역 연락처 카드의 열 너비·글자·여백 */
  .region_group {
    gap: 24px;
    padding: 24px;
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .region_name {
    font-size: 25px;
  }
  .region_item {
    font-size: 18px;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 12px;
  }
}

@media screen and (max-width: 1100px) {
  /* 지역 카드 목록을 한 열로 전환 */
  .region_list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 1024px) {
  /* 고정 헤더 높이에 맞춘 본문 시작점과 서브 비주얼 크기 */
  body.sub {
    padding-top: 72px;
  }
  .sub_vis {
    height: 360px;
  }
  .sub_vis .vis_tit {
    font-size: 40px;
    letter-spacing: -0.8px;
  }
  .sub_vis .vis_tabs {
    height: 64px;
  }
  .sub_vis .vis_tabs a {
    padding: 0 1.5rem;
  }
  body.sub .tit_wrap {
    margin-bottom: 1.5rem;
  }

  .org_sec + .org_sec {
    margin-top: 3.5rem;
  }
  .region_list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  /* 정보·홍보 제목 아래로 검색창 이동 */
  .information_heading {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1.5rem;
  }
  .information_search.search_st4 {
    flex: none;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  /* 비주얼·경로·지역 목록 및 검색창 모바일 스타일 */
  body.sub {
    padding-top: 60px;
  }
  .sub_vis {
    height: 300px;
  }
  .sub_vis .vis_head .wFix {
    gap: 0.6rem;
    align-items: center;
  }
  .sub_vis .vis_tit {
    font-size: 32px;
    letter-spacing: -0.64px;
  }
  .sub_vis .vis_path {
    height: 36px;
    padding: 0 14px;
  }
  .sub_vis .vis_path a,
  .sub_vis .vis_path span {
    font-size: 14px;
  }
  .sub_vis .vis_path_home .material-symbols-outlined {
    font-size: 20px;
  }
  .sub_vis .vis_path_arw {
    font-size: 18px;
  }
  .sub_vis .vis_tabs {
    height: 60px;
  }
  .sub_vis .vis_tabs .wFix {
    padding: 0;
  }
  .sub_vis .vis_tabs a {
    padding: 0 1.125rem;
  }

  .work_list {
    grid-template-columns: 1fr;
  }
  .region_list {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }
  .region_pick {
    gap: 1.5rem;
  }

  .information_search.search_wrap input[type="search"],
  .information_search.search_wrap select {
    font-size: 1rem;
  }
}

@media screen and (max-width: 500px) {
  .information_search.search_st4 {
    padding: 0 0 0 15px;
  }
  /* 검색조건 선택 상자: 제목·내용 텍스트와 화살표 사이 간격 축소 */
  .information_search.search_wrap select {
    flex: 0 0 54px;
    width: 54px;
    /* 공통 입력 요소의 min-width !important 규칙으로 너비가 늘어나는 것을 방지 */
    min-width: 0 !important;
    max-width: 54px;
    padding: 0;
  }

  /* 비주얼 하위 메뉴 2줄 배치. 메뉴가 5개 이상이면 3열로 구성 */
  .sub_vis {
    height: auto;
    min-height: 306px;
  }
  .sub_vis .vis_head {
    min-height: 214px;
    padding: 1.5rem 0;
  }
  .sub_vis .vis_tabs {
    height: auto;
  }
  .sub_vis .vis_tabs .wFix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(46px, auto);
    height: auto;
    padding: 0;
    overflow: visible;
  }
  .sub_vis .vis_tabs .wFix:has(> a:nth-child(5)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sub_vis .vis_tabs .wFix.is_draggable,
  .sub_vis .vis_tabs .wFix.is_dragging {
    cursor: auto;
  }
  .sub_vis .vis_tabs a {
    min-width: 0;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.12rem;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .region_group {
    padding: 1rem;
    gap: 16px;
    grid-template-columns: 1fr;
  }
  .region_name {
    font-size: 1.35rem;
  }
  .region_item {
    font-size: 16px;
    grid-template-columns: minmax(0, 1fr) 114px;
    gap: 10px;
  }
  .region_column,
  .region_list {
    gap: 14px;
  }
}

@media screen and (max-width: 480px) {
  /* 비주얼 높이와 탭 여백은 500px 설정을 유지하고 제목만 축소 */
  .sub_vis .vis_tit {
    font-size: 28px;
  }
}
