@charset "utf-8";
/* ============================================================
   ORG3 — 생산 및 조직(organization.php) 본문 전용
   ------------------------------------------------------------
   조직도를 이미지가 아니라 그리드 + CSS 선으로 그린다.
   글자를 그대로 검색·복사할 수 있고, 칸 폭이 화면에 따라 늘어난다.

   짜임새 (992px 이상)
     .org3-grid   1차 조직 5칸을 같은 폭(1fr)으로 나눈 그리드.
                  대표이사는 2번째 칸(= 생산기술 위)에 올려 세로선이 항상 맞는다.
     .org3-cell   한 칸. 위쪽에 가로선 반토막 둘 + 칸으로 내려오는 세로선을 그린다.
                  --first 는 왼쪽 반, --last 는 오른쪽 반을 지워 양 끝을 끝낸다.
     .org3-sub    칸 안의 아래 단계 (생산기술의 3개 팀 / 품질의 측정검사 …).
                  --3 은 3칸, --1 은 1칸짜리 그리드.

   991px 이하는 가로로 늘어놓을 수 없으므로 세로 목록으로 바뀐다 (파일 아래 반응형).
   ------------------------------------------------------------
   색·간격은 아래 변수로 조절한다.
   ============================================================ */
.org3 {
  --org3-accent: var(--arch-blue);
  --org3-line:   #c6d3e2;
  --org3-edge:   var(--arch-line);
  --org3-tint:   rgba(20, 106, 181, .06);
  --org3-shadow: 0 8px 24px rgba(10, 31, 56, .06);
  /* 1차 부서(생산기술 · 영업부 · 품질 · 연구소) — 네 칸이 함께 쓰는 색
     글자가 흰색이라 배경은 어두운 톤이어야 읽힌다 (대표이사보다 한 단계 밝게 둬 위계를 남겼다) */
  --org3-dept-bg: #3f8ed0;
  --org3-dept-fg: #fff;
  /* 생산기술 아래 팀(생산1팀 · 생산2팀 · 래핑) — 세 칸이 함께 쓰는 색
     ▼ 배경을 어둡게 바꿀 때는 글자색(-fg)도 함께 흰색으로 바꾼다 */
  --org3-team-bg: #eaf2fa;
  --org3-team-fg: var(--arch-ink);
  /* 지원팀 묶음 안 칸(경영지원 · 생산지원)의 인원수 배지 색 — 따로 바꿀 수 있게 분리 */
  --org3-subnum-fg: var(--org3-accent);
  --org3-subnum-bg: var(--org3-tint);
  --org3-h:      62px;    /* 칸 높이 */
  --org3-boxw:   11rem;   /* 박스 최대 가로폭 — 모든 박스가 같은 폭을 갖는다
                             (칸이 넓어도 이 폭까지만 커지고 가운데에 놓인다) */
  --org3-drop:   46px;    /* 윗단과의 세로 간격(= 세로선 길이). 절반씩 나눠
                             위 절반은 부모에서 내려오는 선, 아래 절반은 칸으로 내려가는 선이 쓴다 */
  --org3-gutter: 8px;     /* 칸 좌우 안쪽 여백 */
}

/* 머리글 */
.org3__head {
  margin: 0 0 14px;
  font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; color: var(--arch-ink);
}
.org3__lead { font-size: 1.02rem; line-height: 1.8; word-break: keep-all; }
.org3__note { margin: 32px 0 0; font-size: .9rem; color: var(--arch-gray); }

/* 칸(박스) — 사이트의 다른 카드와 같은 규칙.
   폭이 그리드 칸을 꽉 채우므로 화면이 넓어지면 같이 넓어진다. */
.org3-box {
  position: relative; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-width: 0; min-height: var(--org3-h); padding: 12px 14px;
  border: 1px solid #bdc8da; border-radius: 12px;
  background: #fff; /*box-shadow: var(--org3-shadow);*/
  font-weight: 600; letter-spacing: -.03em; line-height: 1.3;
  text-align: center; word-break: keep-all;
  transition: border-color .25s var(--ease);
}
.org3-box--top {
  border-color: #0b487c; background: #0b487c; color: #fff;
  font-weight: 700;
}
.org3-box--top:hover { border-color: var(--org3-accent); }
.org3-box--leaf { font-weight: 500; }
/* 1차 부서 네 칸 — 배경·글자색을 함께 묶는다 (위 변수 두 개로 바꾼다) */
.org3-box--dept {
  background: var(--org3-accent); border-color: var(--org3-accent);
  color: var(--org3-dept-fg);
}
.org3-box--dept:hover { border-color: var(--org3-dept-bg); }
/* 생산기술 아래 팀 세 칸 */
.org3-box--team {
  background: #e8edf3; border-color: #e1e6ec;
  color: #2b3949;
}
/* 인원수 배지도 어두운 배경 위에서 읽히게 */
.org3-box--dept .org3-node__num { color: var(--org3-dept-fg); background: rgb(52 140 217); }
.org3-node__num {
  font-style: normal; font-size: .6rem; font-weight: 700; color: var(--org3-accent);
  padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.7);
}
.org3-box--top .org3-node__num { color: #fff; background: rgba(255, 255, 255, .22); }
/* 지원팀 묶음 안 칸(경영지원 · 생산지원)의 배지 — 위 두 변수로 색을 바꾼다 */
.org3-box--sub .org3-node__num { color: #fff; background:#68a0c8;}

/* 지원팀 묶음 — 두 칸을 담는 바깥 카드 */
.org3-group {
  padding: 14px 14px 10px;
  border: 1px dashed var(--org3-accent); border-radius: 16px;
  /*background: var(--org3-tint);*/
}
.org3-group__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.org3-group__name {
  margin: 10px 0 0; text-align: center;
  font-weight: 700; color: #10426d;
}

/* ============================================================
   992px 이상 — 가로 조직도
   ============================================================ */
@media (min-width: 992px) {
  /* ── 한 줄을 [왼쪽 | 가운데 | 오른쪽] 세 칸으로 ──────────────
     좌·우에 같은 폭(minmax(0,1fr))을 주면 가운데 칸이 정확히 한가운데 선다.
     minmax(0,…) 이라야 내용이 많은 오른쪽이 열을 밀어내지 않는다.
     가운데는 auto — 생산기술 아래 3개 팀이 필요한 만큼만 차지한다.
     좌는 오른쪽 끝(justify-self:end), 우는 왼쪽 끝(start)에 붙여 가운데와 맞닿게 한다
     → 칸들이 그리는 가로선 반토막이 하나로 이어진다. */
  .org3-grid {
    display: grid; align-items: start;
  }
  .org3-cell { position: relative; min-width: 0; padding: 0 var(--org3-gutter); }
  /* 박스는 칸을 꽉 채우지 않고 --org3-boxw 까지만 커진 뒤 가운데에 선다.
     → 대표이사 · 생산기술처럼 칸이 넓은 자리도 다른 박스와 같은 폭이 되고,
       로타리 · CNC/MCT 같은 하위 박스도 위 박스와 폭이 똑같아진다. */
  .org3-box { max-width: var(--org3-boxw); margin-left: auto; margin-right: auto; }
  /* 자식이 하나뿐인 단은 칸 여백을 없애 위 박스와 좌우가 정확히 맞는다 */
  .org3-sub--1 > .org3-cell { padding-left: 0; padding-right: 0; }

  /* 윗단과 아랫단 사이 간격(--org3-drop)을 반으로 나눠
     위쪽 절반은 부모에서 내려오는 세로선, 아래쪽 절반은 가로선에서 칸으로 내려가는 세로선이 쓴다. */

  /* 대표이사 — 가운데 열 1행 */
  .org3-cell--top { grid-column: 2; grid-row: 1; }
  /* 칸 바로 아래(top:100%)에서 시작해 가로선까지 내려간다.
     아래 칸들이 padding-top 으로 간격을 만들고, 그 절반 지점이 가로선이다. */
  .org3-cell--top::after {
    content: ""; position: absolute; left: 50%; top: 100%;
    height: calc(var(--org3-drop) / 2); border-left: 1px solid var(--org3-line);
  }

  /* 1차 조직 — 2행 */
  .org3-cell--l { grid-column: 1; grid-row: 2; justify-self: end; }
  .org3-cell--c { grid-column: 2; grid-row: 2; }
  .org3-cell--r {
    grid-column: 3; grid-row: 2; justify-self: start;
    display: grid; grid-auto-flow: column; align-items: start;
  }
  .org3-cell--l,
  .org3-cell--c,
  .org3-cell--r { padding-top: var(--org3-drop); }

  /* 칸 위 : 가로선 왼쪽 반 · 오른쪽 반 + 칸으로 내려오는 세로선 */
  .org3-cell--l::before, .org3-cell--l::after,
  .org3-cell--c::before, .org3-cell--c::after,
  .org3-cell--r > .org3-cell::before, .org3-cell--r > .org3-cell::after,
  .org3-sub > .org3-cell::before, .org3-sub > .org3-cell::after {
    content: ""; position: absolute; width: 50%;
    top: calc(var(--org3-drop) / 2); height: calc(var(--org3-drop) / 2);
    border-top: 1px solid var(--org3-line);
  }
  .org3-cell--l::before,
  .org3-cell--c::before,
  .org3-cell--r > .org3-cell::before,
  .org3-sub > .org3-cell::before { right: 50%; }
  .org3-cell--l::after,
  .org3-cell--c::after,
  .org3-cell--r > .org3-cell::after,
  .org3-sub > .org3-cell::after { left: 50%; border-left: 1px solid var(--org3-line); }

  /* 오른쪽 묶음 안 칸들은 가로선이 묶음 기준으로 한 단계 위에 있다 */
  .org3-cell--r > .org3-cell { padding-top: 0; }
  .org3-cell--r > .org3-cell::before,
  .org3-cell--r > .org3-cell::after { top: calc(var(--org3-drop) / -2); }

  /* 양 끝 — 바깥쪽 반토막은 지운다.
     ※ 위 규칙들이 '.org3-sub > .org3-cell::before' 처럼 클래스 2개라, 여기도 같은 굵기로 적어야
       이긴다. 한 클래스(.org3-cell--first)로만 적으면 밀려서 선이 남는다. */
  .org3-cell--l::before,
  .org3-cell--r > .org3-cell--first::before,
  .org3-sub > .org3-cell--first::before { border-top: 0; }
  .org3-cell--r > .org3-cell--last::after,
  .org3-sub > .org3-cell--last::after { border-top: 0; }
  /* 자식이 하나뿐인 칸(측정검사 · 로타리 · CNC/MCT)은 가로선 없이 세로선만 */
  .org3-sub--1 > .org3-cell::before { display: none; }

  /* 아래 단계 — 칸 안에서 다시 그리드 */
  .org3-sub { position: relative; display: grid; margin-top: var(--org3-drop); }
  .org3-sub--3 { grid-template-columns: repeat(3, 1fr); }
  /* 자식이 하나뿐인 단 — 가로선 없이 세로선 하나라 간격을 짧게 둔다
     (변수를 여기서 덮으면 margin-top 과 선 길이가 함께 줄어든다) */
  .org3-sub--1 { grid-template-columns: 1fr; --org3-drop: 16px; }   /* ▼ 이 숫자만큼만 내려온다 */
  .org3-sub > .org3-cell::before,
  .org3-sub > .org3-cell::after { top: calc(var(--org3-drop) / -2); }
  /* 윗 칸에서 가로선까지 내려오는 세로선 */
  .org3-sub::before {
    content: ""; position: absolute; left: 50%; top: calc(var(--org3-drop) * -1);
    height: calc(var(--org3-drop) / 2); border-left: 1px solid var(--org3-line);
  }
}

/* 992~1199 : 폭이 빠듯한 구간. 글자·여백을 한 단계 줄여 한 줄에 들어가게 한다
   (992px 에서 .container 안쪽은 약 930px 뿐이다) */
@media (min-width: 992px) and (max-width: 1199px) {
  .org3 { --org3-gutter: 4px; --org3-h: 56px; --org3-drop: 38px; --org3-boxw: 9rem; }
  .org3-box { padding: 10px 8px;  gap: 5px; }
  .org3-node__num { font-size: .74rem; padding: 2px 5px; }
  .org3-group { padding: 10px 10px 8px; border-radius: 12px; }
  .org3-group__row { gap: 6px; }
  .org3-group__name { font-size: .82rem; margin-top: 8px; }
}

/* ============================================================
   991px 이하 — 세로 조직도
   왼쪽 세로줄 하나에 칸들이 ㄴ 로 매달린다.
   칸마다 ::before(ㄴ) + ::after(아래로 잇는 세로선)를 그리고,
   맨 마지막 칸에서만 ::after 를 지워 줄이 깔끔하게 끝난다.
   ============================================================ */
@media (max-width: 991px) {
  .org3 { --org3-gap: 14px; --org3-elbow: 31px; --org3-indent: 26px; }

  .org3-grid { display: block; }
  .org3-cell { position: relative; padding: 0; margin-top: var(--org3-gap); }
  .org3-cell--top { margin-top: 0; }
  .org3-box { justify-content: flex-start; text-align: left; padding: 14px 18px; }
  .org3-box--top { justify-content: center; text-align: center; }

  /* 1차 조직은 모두 **같은 급** 이다 —
       지원팀(.org3-cell--l) · 생산기술(.org3-cell--c) · 영업부·품질·연구소(.org3-cell--r 안 3칸)
     오른쪽 묶음(--r)은 가로 배치에서 좌우 균형을 맞추려고 한 겹 더 감싼 것이라,
     세로 배치에서는 그 겹을 없는 것처럼 펴서 같은 들여쓰기·같은 선을 받게 한다. */
  .org3-cell--l,
  .org3-cell--c,
  .org3-cell--r { margin-left: calc(22px + var(--org3-indent)); }
  .org3-cell--r { display: block; margin-top: var(--org3-gap); }
  .org3-cell--r > .org3-cell { margin-left: 0; }

  .org3-cell--l::before,
  .org3-cell--c::before,
  .org3-cell--r > .org3-cell::before,
  .org3-sub > .org3-cell::before {
    content: ""; position: absolute;
    left: calc(var(--org3-indent) * -1); top: calc(var(--org3-gap) * -1);
    width: var(--org3-indent); height: calc(var(--org3-gap) + var(--org3-elbow));
    border-left: 1px solid var(--org3-line);
    border-bottom: 1px solid var(--org3-line);
  }
  .org3-cell--l::after,
  .org3-cell--c::after,
  .org3-cell--r > .org3-cell::after,
  .org3-sub > .org3-cell::after {
    content: ""; position: absolute;
    left: calc(var(--org3-indent) * -1); top: var(--org3-elbow);
    bottom: calc(var(--org3-gap) * -1);
    border-left: 1px solid var(--org3-line);
  }
  .org3-cell--last::after { display: none; }

  /* 아래 단계(생산기술의 팀들 · 품질의 측정검사)는 한 단계 더 오른쪽으로 들여쓴다.
     박스와 ㄴ 선이 함께 밀려 들어가 위계가 또렷해진다.
     ▼ --org3-substep : 들여쓰는 양 (키우면 더 오른쪽으로) */
  .org3 { --org3-substep: 20px; }
  .org3-sub {
    display: block;
    margin-left: calc(var(--org3-indent) + var(--org3-substep));
  }
  .org3-sub > .org3-cell { margin-top: var(--org3-gap); }

  .org3-group__row { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .org3__head { font-size: 1.4rem; }
  .org3__lead { font-size: .96rem; line-height: 1.7; }
  .org3 { --org3-elbow: 26px; --org3-indent: 20px; }
  .org3-cell--l,
  .org3-cell--c,
  .org3-cell--r { margin-left: calc(14px + var(--org3-indent)); }
}


/* 조직도 바깥 틀 — 가로 스크롤을 만들지 않는다 (칸이 1fr 이라 폭에 맞춰 줄어든다) */
.org3-chart { padding-bottom: 8px; }
/* 지원팀 묶음 안의 두 칸 — 바깥 칸과 같은 박스 규칙을 그대로 쓴다 */
.org3-box--sub { }

/* ============================================================
   핵심 인력 (조직도 아래 띠)
   ------------------------------------------------------------
   어두운 바탕 위에 [아이콘 | 제목 + 설명] 한 줄씩. 한 줄이 한 사람(또는 한 조직)이다.
   줄 사이는 옅은 선으로만 나눈다 (상자를 쓰지 않아 목록처럼 읽힌다).
   ▼ 바탕색 --org3-crew-bg / 아이콘·강조 색 --org3-crew-point
   ============================================================ */
.org3-crew {
  --org3-crew-point: #4fc3e8;
  margin-top: 80px;
  border-radius: 16px;
  background: var(--org3-crew-bg);
}
.org3-crew__inner {  }
.org3-crew__head {
  padding-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; 
}

/* 목록 = .row — 한 줄에 2칸 (칸 나눔은 마크업의 col-md-6, 767px 이하 1칸).
   .row 의 좌우 음수 마진은 그대로 둬야 거터가 살아난다 → margin-bottom 만 지운다. */
.org3-crew__list { list-style: none; margin-bottom: 0; padding: 0; }
.org3-crew__col { display: flex; }                 /* 두 칸 높이를 맞춘다 */
.org3-crew__col .org3-crew__item { width: 100%; }  /* 칸을 꽉 채운다 */

/* 한 칸 = 한 사람 — 테두리 상자 */
.org3-crew__item {
  display: flex; align-items: flex-start; gap: 30px;
  margin: 7px 0; padding: 2rem 2.5rem;
  border: 1px solid rgba(0, 0, 0, .07);
}

/* 아이콘 — 선 느낌을 살려 테두리 원 안에 둔다 */
.org3-crew__icon {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  /*width: 64px; height: 64px;
  border: 1px solid rgba(79, 195, 232, .45); border-radius: 14px;*/
  color: #588ab4; font-size: 1.7rem;
}
.org3-crew__body { display: block; }
.org3-crew__tit {
  display: block; margin-bottom: 8px;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3;
  word-break: keep-all;
}
.org3-crew__tit b {
  font-weight: 700;
}
/* 이름 등 강조 — 마크업의 <strong> */
.org3-crew__tit strong { font-weight: 800;  }
.org3-crew__desc {
  display: block;
  font-size: .97rem; line-height: 1.4; 
  word-break: keep-all;
}

/* 핵심 인력 — 반응형 */
@media (max-width: 1199px) {
}
@media (max-width: 991px) {
  .org3-crew { margin-top: 60px; }
  .org3-crew__item { gap: 20px; padding: 1.7rem 1.8rem; }
  .org3-crew__icon { width: 56px; height: 56px; }
}
@media (max-width: 767px) {
  .org3-crew { margin-top: 44px; border-radius: 12px; }
  .org3-crew__head {font-size: 1.35rem;}
  .org3-crew__item { gap: 16px; padding: 1.5rem 1.4rem; }
  .org3-crew__icon { width: 48px; height: 48px; border-radius: 12px;  }
}
@media (max-width: 500px) {
  .org3-crew__desc {
    font-size: .95rem;

  }
}