/* ============================================================
   screen-ui.css — JISAN ENG 서브페이지 공통 UI
   ------------------------------------------------------------
   규칙:
   - 1rem = 10px (html font-size 62.5%)
   - 컨테이너 1200px, 좌우 패딩 없음
   - 폰트 4단계: 메인타이틀 3.6rem / 서브타이틀 2.4rem / 본문 1.8rem / 부가 1.5rem
   - 국문/영문 Noto Sans KR
   - PC → 모바일(480px) 반응형
   - 포인트 컬러(주황): #f0641e (원본 실측)
   ============================================================ */

/* ---------- reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; }   /* 1rem = 10px */
body {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.8rem;
  line-height: 1.6;
  color: #444;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; vertical-align: top; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

/* ---------- 공통 변수 ---------- */
:root {
  --point: #f0641e;          /* 지산 주황 */
  --tit: #333;
  --txt: #444;
  --txt-sub: #666;
  --line: #e0e0e0;
}

/* ---------- 공통 레이아웃 ---------- */
.sub-page { overflow: hidden; }
.sub-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}
.sub-section { padding: 8rem 0 12rem; }

/* ---------- 공통 타이틀 ---------- */
.sub-title-wrap { text-align: center; margin-bottom: 6rem; }
.sub-title {
  font-size: 3.6rem;
  font-weight: 500;
  color: var(--tit);
  letter-spacing: -0.02em;
}
.sub-title-chevron { display: inline-block; margin-top: 1.4rem; line-height: 0; }
.sub-title-chevron svg { display: block; }

/* ---------- 공통 포인트/강조 ---------- */
.point-orange { color: var(--point); font-weight: 500; }

/* ============================================================
   CEO인사말 (pages/menu_01/ceo.php)
   ============================================================ */
.ceo-visual { margin: 0 auto; }
.ceo-visual img { width: 100%; }

.ceo-content {
  display: flex;
  align-items: flex-start;
  margin-top: 8rem;
}
.ceo-quote {
  flex: 0 0 37%;
  padding: 2rem 4rem 0 4rem;
  border-right: 1px solid var(--line);
}
.ceo-quote-text {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.8;
  color: #222;
}
.ceo-quote-text .quote-mark {
  font-size: 3.6rem;
  color: #b5b5b5;
  font-weight: 700;
  line-height: 1;
  vertical-align: -0.4rem;
}
.ceo-quote-text .point-orange { font-weight: 500; }
.ceo-sign {
  margin-top: 5rem;
  text-align: right;
  font-size: 1.5rem;
  color: var(--txt-sub);
}
.ceo-sign img {
  width: 8.8rem;
  margin-left: 1.2rem;
  vertical-align: middle;
}
.ceo-message {
  flex: 1 1 auto;
  padding: 2rem 0 0 6rem;
}
.ceo-message p {
  font-size: 1.8rem;
  line-height: 1.7;
  color: var(--txt);
}
.ceo-message p + p { margin-top: 3rem; }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1240px) {
  .sub-inner { padding: 0 3rem; }   /* 화면이 컨테이너보다 좁을 때만 안전 여백 */
}
@media (max-width: 1024px) {
  .sub-section { padding: 6rem 0 9rem; }
  .ceo-content { flex-direction: column; margin-top: 5rem; }
  .ceo-quote {
    flex: none;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 4rem;
  }
  .ceo-message { padding: 4rem 0 0; }
  .ceo-message p br { display: none; }
}
@media (max-width: 768px) {
  .sub-title { font-size: 3rem; }
  .ceo-quote-text { font-size: 2.2rem; }
}
@media (max-width: 480px) {
  html { font-size: 56.25%; }   /* 1rem = 9px */
  .sub-inner { padding: 0 2rem; }
  .sub-section { padding: 5rem 0 7rem; }
  .sub-title-wrap { margin-bottom: 4rem; }
}

/* ============================================================
   공통 표 (기업개요 등) — 규칙 13: 반응형에서 가로 스크롤
   ============================================================ */
.blind {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.sub-table-wrap { overflow-x: auto; }
.sub-table {
  width: 100%;
  min-width: 76rem;
  border-collapse: collapse;
  border-top: 2px solid var(--point);
  font-size: 1.8rem;
}
.sub-table th,
.sub-table td {
  padding: 2rem 3rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.sub-table th {
  width: 16%;
  font-weight: 700;
  color: var(--tit);
  border-right: 1px solid var(--line);
}
.sub-table td { color: var(--txt); border-right: 1px solid var(--line); }
.sub-table td:last-child { border-right: 0; }

/* ============================================================
   CI소개 (pages/menu_01/ci.php)
   ============================================================ */
.ci-content {
  display: flex;
  align-items: flex-start;
  gap: 6rem;
}
.ci-logo { flex: 0 0 51%; }
.ci-logo img { width: 100%; }
.ci-info { flex: 1 1 auto; padding-top: 1rem; }
.ci-desc {
  font-size: 1.8rem;
  line-height: 1.7;
  color: var(--txt);
  margin-bottom: 4rem;
}
.ci-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4rem 3rem;
  max-width: 46rem;
}
.ci-colors li { display: flex; align-items: flex-start; }
.ci-color-chip {
  display: block;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  margin-right: 1.6rem;
  flex: 0 0 auto;
}
.ci-cmyk div { display: flex; font-size: 1.5rem; line-height: 1.55; }
.ci-cmyk dt { width: 2.4rem; font-weight: 700; color: var(--tit); }
.ci-cmyk dd { color: var(--txt-sub); }

/* ============================================================
   기업연혁 (pages/menu_01/history.php) — 타임라인 카드 그리드
   ============================================================ */
.history-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.history-cell {
  position: relative;
  min-height: 23rem;
  padding: 4rem 3.4rem;
}
.history-cell--orange { background: var(--point); color: #fff; }
.history-cell--gray   { background: #f0f0f0; color: var(--tit); }
.history-cell--photo  { padding: 0; }
.history-cell--photo img { width: 100%; height: 100%; object-fit: cover; }
.history-cell--wide { grid-column: span 2; }
.history-cell-title {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.3;
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.history-cell--gray .history-cell-title { border-bottom-color: #cfcfcf; color: var(--tit); }
.history-cell-date { font-size: 1.8rem; font-weight: 700; }
.history-cell--gray .history-cell-date { color: var(--point); }
.history-cell-desc { font-size: 1.5rem; margin-top: 0.6rem; opacity: 0.95; }
.history-cell--gray .history-cell-desc { color: var(--txt-sub); }
/* 다음 셀로 이어지는 화살표 */
.history-cell--arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.2rem;
  transform: translateY(-50%);
  border-top: 1.2rem solid transparent;
  border-bottom: 1.2rem solid transparent;
  border-left-width: 1.2rem;
  border-left-style: solid;
  z-index: 1;
}
.history-cell--orange.history-cell--arrow::after { border-left-color: var(--point); }
.history-cell--gray.history-cell--arrow::after   { border-left-color: #f0f0f0; }

/* ============================================================
   인증 & 특허 (pages/menu_01/cert.php)
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6rem 4rem;
}
.cert-item figure { margin: 0; text-align: center; }
.cert-item img {
  width: 100%;
  border: 1px solid var(--line);
}
.cert-item figcaption {
  margin-top: 1.6rem;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--txt);
}

/* ---------- 반응형 (페이지 추가분) ---------- */
@media (max-width: 1024px) {
  .ci-content { flex-direction: column; gap: 4rem; }
  .ci-logo { flex: none; width: 100%; }
  .history-grid { grid-template-columns: repeat(2, 1fr); }
  .history-cell--wide { grid-column: span 2; }
  .history-cell--arrow::after { display: none; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); gap: 4rem 3rem; }
}
@media (max-width: 768px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-table th, .sub-table td { padding: 1.6rem 2rem; }
}
@media (max-width: 480px) {
  .history-grid { grid-template-columns: 1fr; }
  .history-cell--wide { grid-column: auto; }
  .history-cell { min-height: 0; }
  .ci-colors { gap: 3rem 4rem; }
}

/* ============================================================
   사업영역 (pages/business.php)
   ============================================================ */
.business-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7rem 8rem;
}
.business-media img { width: 100%; display: block; }
.business-foot {
  display: flex;
  align-items: flex-start;
  gap: 2.4rem;
  margin-top: -0.2rem;   /* 라벨이 사진 하단에 살짝 걸치는 원본 구도 */
}
.business-label {
  flex: 0 0 34%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.4rem;
  padding: 1rem 1.2rem;
  background: var(--point);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}
.business-desc { padding-top: 0.6rem; }
.business-desc li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--txt);
}
.business-desc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #999;
}

/* ============================================================
   수행실적 (pages/portfolio.php) / 공지사항 (pages/notice.php)
   ============================================================ */
.portfolio-table th,
.board-table th { text-align: center; background: #f6f6f6; }
.portfolio-table td,
.board-table td { text-align: center; }
.portfolio-table .col-num  { width: 10%; }
.portfolio-table .col-subject { width: 70%; }
.portfolio-table td.col-subject { text-align: left; padding-left: 3rem; }
.portfolio-table .col-client { width: 20%; }
.board-table .col-num  { width: 10%; }
.board-table .col-date { width: 15%; }
.board-table .col-hit  { width: 10%; }
.board-table td.col-subject { text-align: left; }
.board-empty { padding: 8rem 0 !important; text-align: center !important; color: var(--txt-sub); }

/* ============================================================
   위치안내 (pages/location.php)
   ============================================================ */
.location-item + .location-item { margin-top: 7rem; }
.location-map img { width: 100%; }
.location-map iframe { display: block; width: 100%; height: 42rem; border: 0; }
.location-addr {
  display: flex;
  align-items: center;
  margin-top: 1.8rem;
  font-size: 1.8rem;
  color: var(--txt);
}
.location-label {
  flex: 0 0 auto;
  margin-right: 1.8rem;
  padding: 0.8rem 1.8rem;
  background: var(--point);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 500;
}

/* ---------- 반응형 (사업영역/위치안내 추가분) ---------- */
@media (max-width: 1024px) {
  .business-list { gap: 5rem 4rem; }
}
@media (max-width: 768px) {
  .business-list { grid-template-columns: 1fr; }
  .location-addr { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ============================================================
   R&D 사업 (pages/rnd.php)
   ============================================================ */
.rnd-item { border: 1px solid var(--line); }
.rnd-head {
  position: relative;
  padding: 1.4rem 2rem;
  background: var(--point);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 500;
  text-align: center;
}
.rnd-head::after {
  content: "";
  position: absolute;
  left: 11%;
  bottom: -1rem;
  border-left: 1rem solid transparent;
  border-right: 1rem solid transparent;
  border-top: 1rem solid var(--point);
}
.rnd-body { display: flex; align-items: stretch; }
.rnd-media {
  flex: 0 0 24%;
  padding: 3rem 2rem;
  border-right: 1px solid var(--line);
  text-align: center;
}
.rnd-media img { max-width: 100%; }
.rnd-media figcaption { margin-top: 2rem; font-size: 1.5rem; color: var(--txt); text-align: left; }
.rnd-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  margin-right: 0.8rem;
  background: #1a1a1a;
  color: #fff;
  font-size: 1.5rem;
}
.rnd-meta { flex: 1 1 auto; }
.rnd-row { display: flex; }
.rnd-row:nth-child(odd) { background: #fff2ea; }
.rnd-row + .rnd-row { border-top: 1px solid #f3ddcf; }
.rnd-row dt {
  position: relative;
  flex: 0 0 17rem;
  padding: 2.4rem 1rem 2.4rem 3.4rem;
  color: var(--point);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
}
.rnd-row dt::before {
  content: "\203A";   /* › */
  position: absolute;
  left: 1.8rem;
  top: 2.2rem;
  font-weight: 700;
}
.rnd-row dd { flex: 1 1 auto; padding: 2.4rem 2.4rem 2.4rem 0; }
.rnd-row dd p { font-size: 1.5rem; line-height: 1.7; color: var(--txt); }
.rnd-row dd ul li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--txt);
}
.rnd-row dd ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #999;
}

@media (max-width: 1024px) {
  .rnd-body { flex-direction: column; }
  .rnd-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .rnd-row { flex-direction: column; }
  .rnd-row dt { flex: none; padding-bottom: 0; }
  .rnd-row dd { padding: 1rem 2rem 2rem 3.4rem; }
  .rnd-row dd p br, .rnd-row dd ul li br { display: none; }
}

/* ============================================================
   공지사항 보기/페이징 (pages/notice.php)
   ============================================================ */
.board-table .col-name { width: 12%; }
.board-table td.col-subject a { color: var(--txt); }
.board-table td.col-subject a:hover { color: var(--point); }

.board-view { border-top: 2px solid var(--point); }
.board-view-head {
  padding: 2.4rem 2rem;
  border-bottom: 1px solid var(--line);
}
.board-view-title { font-size: 2.4rem; font-weight: 500; color: var(--tit); }
.board-view-meta { margin-top: 1rem; font-size: 1.5rem; color: var(--txt-sub); }
.board-view-meta span + span { margin-left: 1.4rem; padding-left: 1.4rem; border-left: 1px solid var(--line); }
.board-view-content {
  padding: 4rem 2rem 6rem;
  border-bottom: 1px solid var(--line);
}
.board-view-content p { font-size: 1.8rem; line-height: 1.8; color: var(--txt); }
.board-view-foot { margin-top: 2.4rem; text-align: right; }
.board-btn {
  display: inline-block;
  padding: 1rem 3.2rem;
  background: var(--point);
  color: #fff;
  font-size: 1.5rem;
}
.board-btn:hover { opacity: 0.9; }

.board-paging {
  display: flex;
  justify-content: center;
  margin-top: 3.4rem;
}
.board-paging span,
.board-paging a {
  display: block;
  min-width: 3.2rem;
  height: 3.2rem;
  line-height: 3rem;
  margin: 0 0.3rem;
  text-align: center;
  font-size: 1.5rem;
  color: var(--txt-sub);
  border: 1px solid transparent;
}
.board-paging .on { color: var(--point); font-weight: 700; border-color: var(--point); }

/* ============================================================
   메인 (index.php)
   ============================================================ */
.main-visual { position: relative; width: 100%; }
.main-slider { position: relative; height: 60rem; overflow: hidden; }
.main-slider li {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
}
.main-slider li.on { opacity: 1; }
.main-slider img { width: 100%; height: 100%; object-fit: cover; }

.main-business-en { color: #111; font-weight: 700; letter-spacing: 0.06em; }
.main-business-sub { margin-top: 1rem; font-size: 1.8rem; color: var(--txt-sub); }
.main-biz-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
  text-align: center;
}
.main-biz-photo { display: flex; justify-content: center; }
.main-biz-photo img {
  width: 20rem;
  height: 20rem;
  object-fit: cover;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  transition: transform .3s;
}
.main-biz-list a:hover .main-biz-photo img { transform: scale(1.05); }
.main-biz-list h3 { margin-top: 2.4rem; font-size: 2.4rem; font-weight: 700; color: var(--tit); line-height: 1.3; }
.main-biz-desc { margin-top: 1.4rem; font-size: 1.5rem; line-height: 1.7; color: var(--txt-sub); }

@media (max-width: 1024px) {
  .main-slider { height: 42rem; }
  .main-biz-list { grid-template-columns: repeat(2, 1fr); gap: 4rem 2rem; }
}
@media (max-width: 480px) {
  .main-slider { height: 30rem; }
  .main-biz-list { grid-template-columns: 1fr; }
  .main-biz-desc br { display: none; }
}

/* ---------- 메인: 슬라이드 캡션/내비, 퀵링크, 조감도 (index 보강) ---------- */
.main-slide-caption {
  position: absolute;
  left: 15%;
  top: 50%;
  transform: translateY(-55%);
  color: #fff;
  text-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.45);
}
.main-slide-en { font-size: 3.6rem; font-weight: 300; letter-spacing: 0.02em; }
.main-slide-tit { margin: 0.2rem 0 2.4rem; font-size: 3.6rem; font-weight: 700; letter-spacing: 0.04em; }
.main-slide-desc { font-size: 1.8rem; font-weight: 400; }
.main-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 3.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 1rem;
  text-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.35);
}
.main-slider-nav:hover { color: #fff; }
.main-slider-nav.prev { left: 2.4rem; }
.main-slider-nav.next { right: 2.4rem; }
.main-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  z-index: 2;
}
.main-slider-dots li {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.main-slider-dots li.on { background: #555; }

/* 퀵메뉴 바 (슬라이더 아래) */
.main-icon-bar { border-bottom: 1px solid var(--line); }
.main-icon-bar ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}
.main-icon-bar li + li { border-left: 1px solid var(--line); }
.main-icon-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 2.6rem 1rem;
}
.main-icon-bar a:hover .main-icon-label { color: var(--point); }
.main-icon-label { font-size: 1.8rem; color: var(--tit); }

.main-quick {
  position: relative;
  background: url("/resources/images/main/main_13.jpg") center / cover no-repeat;
}
.main-quick::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 82, 130, 0.72);
}
.main-quick-list { position: relative; z-index: 1; }
.main-quick-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}
.main-quick-list li + li { border-left: 1px solid rgba(255, 255, 255, 0.15); }
.main-quick-list a {
  display: block;
  padding: 5rem 3rem;
  text-align: center;
  color: #fff;
  transition: background .2s;
}
.main-quick-list a:hover { background: rgba(255, 255, 255, 0.08); }
.main-quick-icon { display: inline-block; margin-bottom: 1.8rem; }
.main-quick-list h3 { font-size: 2.4rem; font-weight: 500; }
.main-quick-list p { margin-top: 1rem; font-size: 1.5rem; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }

.main-gallery-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  text-align: center;
}
.main-gallery-list li { border: 1px solid #ddd; }
.main-gallery-photo { overflow: hidden; }
.main-gallery-photo img {
  width: 100%;
  height: 26rem;
  object-fit: cover;
  transition: transform .3s;
}
.main-gallery-list li:hover .main-gallery-photo img { transform: scale(1.05); }
.main-gallery-list h3 { margin-top: 1.6rem; font-size: 1.8rem; font-weight: 700; color: var(--tit); }
.main-gallery-desc { margin: 0.2rem 0 1.6rem; font-size: 1.5rem; color: #7f9db9; }

@media (max-width: 768px) {
  .main-slide-tit { font-size: 3rem; }
  .main-slide-en { font-size: 1.8rem; }
  .main-slider-nav { display: none; }
  .main-icon-bar ul { grid-template-columns: repeat(2, 1fr); }
  .main-quick-list { grid-template-columns: 1fr; }
  .main-quick-list li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,0.15); }
  .main-gallery-list { grid-template-columns: 1fr; }
}

.board-view-content img { max-width:100%; height:auto; }
.board-view-empty { text-align:center; color:#777; font-size:1.6rem; padding:4rem 0; }
