.group_list_wrap {
  display:flex; 
  flex-wrap:wrap; 
  padding:0; 
  margin:0; 
  list-style:none; 
  gap:20px;
}
.group_list_wrap li {
  flex:0 0 calc((100% - 40px) / 3); 
  margin:0; 
  padding:25px; 
  border:1px solid #ddd; 
  border-radius:10px; 
  overflow:hidden; 
  display:block; 
  box-sizing:border-box; 
  text-align:center;
}
.group_list_wrap li img {
  display:block;
  margin:0 auto;
}

@media( max-width:700px ){
	.group_list_wrap {
	  gap:15px;
	}
	.group_list_wrap li {
	  flex:0 0 calc((100% - 30px) / 3); 
	}
}
@media( max-width:650px ){
	.group_list_wrap li {
	  flex:0 0 calc((100% - 15px) / 2); 
	}
}


/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   Chart Container
   ============================================================ */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  font-size: 16px;
}

/* ============================================================
   공통 Node
   ============================================================ */
.node {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.45;
  word-break: keep-all;
  white-space: nowrap;
}

/* ============================================================
   Node Variants — Desktop
   타원 너비 통일: --pill-w 변수로 일괄 제어
   ============================================================ */
:root {
  --pill-w: 280px;
  --pill-py-lg: 20px;
  --pill-py-md: 20px;
}

.node-chairman {
  background-color: var(--point-color);
  color: #ffffff;
  width: var(--pill-w);
  padding: var(--pill-py-lg) 0;
  font-size: 22px;
  font-weight: 700;
}

.node-vice {
  background-color: #ffffff;
  color: #222222;
  border: 2.5px solid var(--point-color);
  width: var(--pill-w);
  padding: var(--pill-py-md) 0;
  font-size: 22px;
}

.node-side {
  background-color: #ffffff;
  color: #222222;
  border: 2px solid #ccc;
  width: var(--pill-w);
  padding: var(--pill-py-md) 0;
  font-size: 22px;
  flex-shrink: 0;
}

.node-participating {
  background-color: var(--point-color3);
  color: #ffffff;
  width: var(--pill-w);
  padding: var(--pill-py-lg) 0;
  font-size: 22px;
  font-weight: 700;
}

.node-member {
  background-color: #f7f7f7;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  padding: 18px 12px;
  font-size: 20px;
  font-weight: 500;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.5;
}

/* ============================================================
   연결선 공통
   ============================================================ */
.line-v {
  width: 1px;
  height: 44px;
  background-color: #d6d6d6;
  flex-shrink: 0;
}

/* ============================================================
   이사 / 감사 Row
   ============================================================ */
.row-side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1080px;       /* 이사/감사를 중앙 근처로 모음 */
}

.side-h {
  flex: 1;
  height: 1px;
  background-color: #d6d6d6;
  min-width: 12px;
}

.side-center-v {
  width: 1px;
  height: 100px;
  background-color: #d6d6d6;
  flex-shrink: 0;
}

/* ============================================================
   Centered Row
   ============================================================ */
.row-center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.row-center.gap-top {
  margin-top: 0px;
}

/* ============================================================
   Branch Connector (참여조직 → 멤버)
   ============================================================ */
.branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.branch-stem {
  width: 1px;
  height: 24px;
  background-color: #d6d6d6;
}

.branch-bar {
  height: 1px;
  width: 67%;
  background-color: #d6d6d6;
}

.branch-drops {
  display: flex;
  width: 67%;
  justify-content: space-between;
}

.branch-drop {
  width: 1px;
  height: 18px;
  background-color: #d6d6d6;
}

/* ============================================================
   Member Grid — Desktop: 3열
   ============================================================ */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

/* ============================================================
   Tablet — 768px 이하
   ============================================================ */
@media (max-width: 768px) {
  body {
    padding: 36px 16px 48px;
  }

  :root {
    --pill-w: 180px;
    --pill-py-lg: 12px;
    --pill-py-md: 10px;
  }

  /* 폰트 축소 */
  .node-chairman      { font-size: 1.125rem; }
  .node-vice          { font-size: 1rem; }
  .node-side          { font-size: 0.9375rem; }
  .node-participating { font-size: 1.0625rem; }
  .node-member        { font-size: 0.875rem; padding: 13px 10px; }

  /* 이사/감사 row 축소 */
  .row-side           { max-width: 460px; }

  /* 이사/감사 중앙 수직선 높이 조정 */
  .side-center-v      { height: 88px; }

  /* 멤버 그리드 2열로 변경 */
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* 분기바 너비 확장 */
  .branch-bar   { width: 52%; }
  .branch-drops { width: 52%; }
}

/* ============================================================
   Mobile — 480px 이하
   ============================================================ */
@media (max-width: 480px) {
  body {
    padding: 24px 12px 40px;
  }

  :root {
    --pill-w: 150px;
    --pill-py-lg: 11px;
    --pill-py-md: 9px;
  }

  /* 폰트 추가 축소 */
  .node-chairman      { font-size: 1rem; }
  .node-vice          { font-size: 0.9375rem; }
  .node-side          { font-size: 0.875rem; }
  .node-participating { font-size: 1rem; }
  .node-member        { font-size: 0.8125rem; padding: 12px 8px; border-radius: 8px; }

  /* 이사/감사 row */
  .row-side           { max-width: 360px; }
  .side-center-v      { height: 80px; }

  /* 멤버 그리드 1열로 변경 */
  .members-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* 분기바/드롭 — 1열이므로 가운데 1개만 남기기 */
  .branch-bar               { width: 0; }
  .branch-drops             { width: 0; }
  .branch-drop              { display: none; }
  .branch-drops .branch-drop:nth-child(2) { display: block; }

  .row-center.gap-top { margin-top: 0px; }
}

/* ============================================================
   Extra Small — 360px 이하
   ============================================================ */
@media (max-width: 360px) {
  :root {
    --pill-w: 130px;
    --pill-py-lg: 10px;
    --pill-py-md: 8px;
  }

  .node-chairman      { font-size: 0.9375rem; }
  .node-vice          { font-size: 0.875rem; }
  .node-side          { font-size: 0.8125rem; }
  .node-participating { font-size: 0.9375rem; }
  .row-side           { max-width: 300px; }
}