@charset "utf-8";
/* ═══════════════════════════════════════════
   Q-E.css — Q-E.php(품질/환경/안전) 전용 스타일
   공통 영역(reset/root/body/sub-nav/page-title/breadcrumb)은
   style.css + page-common.css 에 있으므로 여기서는 재정의하지 않습니다.
═══════════════════════════════════════════ */

/* ⚙ 이 페이지만 breadcrumb 여백이 공통값(page-common.css)과 달라서 오버라이드 */
.breadcrumb { padding-bottom: 70px; }
.breadcrumb-bar::after { margin-bottom: 60px; }

/* ═══════════════════════════════════════════
   🎯 QES MANAGEMENT SECTIONS
   (品質 / 環境 / 職安衛)
═══════════════════════════════════════════ */

/* ── 섹션 공통 래퍼 ── */
.qes-section {
  max-width: 1400px;
  margin: 0 auto 56px;
  padding: 0 40px;
}

.qes-section-inner {
  border-radius: 14px;
  border: 1.5px solid #e4e9e0;
  overflow: hidden;
  background: #fff;
}

/* ── 헤딩 영역 (아이콘 + 타이틀) ── */
.qes-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 32px 36px 24px;
  border-bottom: 1.5px solid #eef2eb;
}

.qes-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qes-icon svg {
  width: 32px;
  height: 32px;
}

/* 품질 – 초록 */
.qes-icon--quality {
  background: rgb(64 181 138 / 12%);
  color: var(--green);
}
/* 환경 – 연두 */
.qes-section--env .qes-icon--env {
  background: rgba(100,170,80,0.12);
  color: #5aaa3a;
}
/* 직안위 – 황토/갈색 */
.qes-section--safety .qes-icon--safety {
  background: rgba(180,120,40,0.12);
  color: #a07020;
}

.qes-label {
  font-size: 20px;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.06em;
}

.qes-title {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* ── 태그 그리드 영역 ── */
.qes-tag-grid {
  padding: 14px 36px 18px;
  background: #eff9f2;
  border-bottom: 1.5px solid #e8f0e2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size:18px;
  color: #333;
}

/* 환경·직안위 섹션은 살짝 다른 배경톤 */
.qes-section--env .qes-tag-grid {
  background: #f2f8ee;
  border-bottom-color: #e4eed8;
}
.qes-section--safety .qes-tag-grid {
  background: #fdfbf2;
  border-bottom-color: #e8e4d4;
}

.qes-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.qes-tag-head {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
  min-width: 130px;
}

.qes-tag {
  display: inline-block;
  font-size: 12px;
  color: #286a2a;
  background: rgba(70,160,156,0.12);
  border: 1px rgba(64,151,127,0.25);
  border-radius: 20px;
  padding: 6px 14px 4px;
  white-space: nowrap;
}

.qes-section--env .qes-tag {
  color: #286a2a;
  background: rgba(80,160,70,0.12);
  border-color: rgba(80,160,70,0.25);
}

.qes-section--safety .qes-tag {
  color: #7a5010;
  background: rgba(180,120,40,0.1);
  border-color: rgba(180,120,40,0.22);
}

/* ── 본문 텍스트 영역 ── */
.qes-body {
  padding: 24px 36px 30px;
}

.qes-body p {
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 12px;
}

.qes-body p:last-child {
  margin-bottom: 0;
}


/* ── QES 2컬럼 레이아웃 (왼쪽: 태그+텍스트 / 오른쪽: 인포그래픽) ── */
.qes-two-col {
  display: flex;
  align-items: stretch;
}

.qes-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.qes-right {
  flex: 0 0 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px 24px 10px;
  border-left: 1.5px solid #eef2eb;
}

.qes-section--env .qes-right {
  border-left-color: #e5f0e3;
}

.qes-infographic {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.10));
}

/* ── 2컬럼 안에서 태그그리드·본문 테두리 제거 및 패딩 조정 ── */
.qes-two-col .qes-tag-grid {
  border-bottom: 1.5px solid #eef2eb;
}
.qes-section--env .qes-two-col .qes-tag-grid {
  border-bottom-color: #e5f0e3;
}

/* ══════════════════════════
   RESPONSIVE  ≤ 1024px 
══════════════════════════ */
@media (max-width: 1024px){
  .sub-nav { top: 76px; }
  .sub-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 16px; 
    scrollbar-width: none;
  }
  .sub-nav-inner::-webkit-scrollbar { display: none; }
  .sub-nav-inner a { padding: 0 20px; font-size: 14px; }
  .sub-nav-inner a::before { display: none; } 

  /* 🎯 핵심 수정: 태블릿(iPad)에서 2컬럼을 1컬럼으로 변경 */
  .qes-two-col {
    flex-direction: column; /* 가로 배열을 세로 배열로 변경 */
  }
  .qes-right {
    flex: none; /* 플렉스 초기화 */
    width: 100%;
    border-left: none;
    border-top: 1.5px solid #eef2eb; /* 상단 구분선 추가 */
    padding: 30px;
    justify-content: center;
  }
  .qes-section--env .qes-right {
    border-top-color: #e5f0e3;
  }
  .qes-infographic {
    max-width: 200px; /* 인포그래픽 크기 살짝 조정 */
  }

  .breadcrumb-bar::after {
    margin: 0 auto 30px;
  }

  /* Footer */
  footer { padding: 36px 24px 20px !important; width: 100% !important; }
  .footer-inner { width: 100% !important; padding: 0 28px; }
  .footer-top { flex-direction: column; gap: 20px; }
}

/* ══════════════════════════════
    RESPONSIVE Mobile (≤ 768px)
══════════════════════════════ */
@media (max-width: 768px) {
  .sub-nav { top: 52px; }
  .sub-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 8px;
    scrollbar-width: none;
  }
  .sub-nav-inner::-webkit-scrollbar { display: none; }
  .sub-nav-inner a { padding: 0 18px; font-size: 14px; }

  .page-title-block { padding: 60px 0 0; }
  .page-title-block h1 { font-size: 20px; }
  .title h4 { font-size: 60px; }
  /* 3. 모바일 브레드크럼 구조 개선 */
  .breadcrumb {
    display: block; /* 플렉스를 풀고 블록 스타일로 변경 */
    text-align: center;
    font-size: 14px;
    padding-bottom: 60px; /* 공백이 너무 넓으면 모바일에서 답답하므로 축소 */
    line-height: 1.8;
    word-wrap: break-word; /* 화면을 벗어나면 자연스럽게 다음 줄로 넘어가도록 설정 */
  }

  .breadcrumb a, 
  .breadcrumb span {
    display: inline; /* 자연스러운 한 줄/두 줄 흐름 유지 */
  }

  /* 🎯 모바일 푸터 레이아웃 완벽 일치 */
  footer { padding: 28px 16px 16px !important; }
  .footer-top { flex-direction: column; gap: 16px; }
  .footer-info { font-size: 16px; color: var(--text); line-height: 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-inner { padding: 0 14px; }
  .footer-family { margin-top: 20px; }

  .qes-two-col {
    flex-direction: column;
  }
  .qes-right {
    flex: none;
    border-left: none;
    border-top: 1.5px solid #eef2eb;
    padding: 20px 24px;
    justify-content: center;
  }
  .qes-section--env .qes-right {
    border-top-color: #e5f0e3;
  }
  .qes-infographic {
    max-width: 160px;
  }

  .qes-section {
    padding: 0 16px;
    margin-bottom: 36px;
  }

  .qes-heading {
    padding: 22px 20px 18px;
    gap: 14px;
  }

  .qes-label {
    font-size: 15px;       /* 모바일 크기에 맞게 폰트 사이즈 조정 (필요시) */
    line-height: 1.2;      /* 행간을 좁혀서 줄간격 축소 */
	padding-bottom: 6px;
  }

  .qes-title {
    font-size: 22px;
    line-height: 1.2;      /* 타이틀의 줄간격도 함께 잡아주면 더 정돈됩니다 */
  }	
	
  .qes-icon {
    width: 44px;
    height: 44px;
  }

  .qes-icon svg {
    width: 26px;
    height: 26px;
  }

  .qes-title {
    font-size: 22px;
  }

  .qes-tag-grid {
    padding: 14px 20px;
  }

  .qes-tag-head {
    min-width: 100%;
    margin-bottom: 2px;
  }

  .qes-body {
    padding: 18px 20px 22px;
  }

  .qes-body p {
    font-size: 14px;
  }
}


/* ═══════════════════════════════════════════
     SMALL MOBILE (≤ 390px)  
═══════════════════════════════════════════ */
@media (max-width: 390px) {
  .footer-links { gap: 10px; }
  .footer-links a { font-size: 11px; }
}