#contentWrap #content #contentsArea {
  font-size: 0.73vw; /* 14px/1920 */
  margin: 2.86vw 0 7.81vw 0; /* 55px 0 150px 0 */
}

.img-gallery-row {
  display: flex;
  width: 100%;
  height: 700px;
  gap: 0.3%;
  justify-content: space-between;
}

.img-gallery-box {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  min-width: 0;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
  transition: flex-basis 0.4s cubic-bezier(0.5,1,0.89,1), z-index 0.4s;
  /* !! display: flex; align-items: stretch; 제거 */
}

.img-gallery-box img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  z-index: 1;
  display: block;
  /* margin: 0; padding: 0; 필요 없음 */
}

/* 오버레이도 박스와 정확히 겹치게 */
.img-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  border-radius: 24px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.35s, transform 0.35s;
}

.overlay-content {
  padding: 0 0 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color:#fff;
}

.overlay-title {
  font-size: 2.0rem;
  font-weight: bold;
  margin-bottom: 36px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.30);
  text-align: left;
}

.overlay-title2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 92px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.30);
  text-align: left;
}
.overlay-btn {
  display: inline-block;
  background: transparent;      /* 배경 투명 */
  color: #fff;                  /* 글씨 흰색 */
  border: 2px solid #fff;       /* 흰색 테두리 */
  border-radius: 32px;
  padding: 10px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: none;             /* 그림자 없앰 (선택) */
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.15s;
  cursor: pointer;
  pointer-events: auto;
  text-align: left;
}
.overlay-btn:hover {
  background: #fff;             /* 호버 시 흰색 배경 */
  color: #222;                  /* 호버 시 글씨 어둡게 */
  border: 2px solid #fff;
  transform: scale(1.05);
}

/* 확대/축소/오버레이 효과는 동일 */
.img-gallery-box:not(:hover) {
  flex-basis: 14%;
  z-index: 1;
}
.img-gallery-box:hover {
  flex-basis: 54% !important;
  z-index: 10 !important;
}
.img-gallery-box:not(:hover) img {
  transform: scale(1.00);
}
.img-gallery-box:hover img {
  transform: scale(1.05);
}
.img-gallery-box .img-gallery-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.img-gallery-box:not(:hover) .img-gallery-overlay {
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}
.img-gallery-row:not(:hover) .img-gallery-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-visual-block {
  margin: 140px auto 0 auto;
  max-width: 1200px;
  text-align: center;
  clear: both;
  position: relative;
  z-index: 2;
  padding-bottom: 36px;
}

.random-image-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4vw;
  margin-bottom: 34px;
  position: relative;
  height: 390px; /* 이미지 높이에 맞춤 */
}

.random-img {
  width: 390px;
  height: 390px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 6px 28px rgba(30,30,30,0.14), 0 2px 10px rgba(0,0,0,0.06);
  background: #f7f7f7;
  transition: transform 0.3s, box-shadow 0.3s;
}

.random-img.img1 { transform: rotate(-7deg) translateY(12px) scale(1.04);}
.random-img.img2 { transform: rotate(6deg) translateY(-14px) scale(1.13);}
.random-img.img3 { transform: rotate(-2deg) translateY(4px) scale(0.98);}

.random-img:hover {
  z-index: 2;
  transform: scale(1.13) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,0.21), 0 3px 16px rgba(0,0,0,0.09);
}

.custom-slogan {
  padding-left: 12vw;
  margin-top: 10vw;
  font-size: 2.7rem;
  font-weight: 700;
  color: #34374b;
  line-height: 1.5;
  letter-spacing: -1px;
}

.custom-slogan h2 {
  margin: 0;
  font-size: 1.3em;
  font-weight: 800;
  color: #34374b;
}


.rolling-bg-text {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -56px;  /* 이미지 블럭과 겹치도록 */
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  height: 120px;
  display: flex;
  align-items: flex-end;
}

.rolling-track {
  width: 200vw;  /* 충분히 길게 */
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: rollingText 18s linear infinite;
}

.rolling-track span {
  font-size: 127px;
  font-weight: 800;
  color: rgba(44,44,44,0.10); /* 반투명 진회색 */
  letter-spacing: 0.08em;
  font-family: 'Noto Sans KR', 'NanumSquareRound', Arial, sans-serif;
  user-select: none;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

/* 롤링 애니메이션 */
@keyframes rollingText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#recruit-section {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.recruit-message {
  position: fixed;
  left: 0; top: 50%;
  width: 100vw;
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: #222;
  z-index: 100;
  pointer-events: none;
  transform: translateY(-50%);
  opacity: 0;
  line-height: 1.5;
  letter-spacing: -0.03em;
  transition: opacity 0.8s cubic-bezier(.7,.2,.3,1);
  background: none;
  margin: 0;
}
.recruit-message.show {
  opacity: 1;
}
.recruit-message.hide {
  opacity: 0;
}

.recruit-fullimg-wrap {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 0;
  margin-top:40vw;
  padding-bottom: 160vw; /* 기존 32vw → 160vw, 세로 공간 대폭 증가 */
  opacity: 0;
  transition: opacity 1s cubic-bezier(.7,.2,.3,1);
  z-index: 1;
  margin-bottom: 40px;
  overflow: hidden;
}
.recruit-fullimg-wrap.visible {
  opacity: 1;
}

.fullimg {
  position: absolute;
  left: 0; top: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}
.fullimg-gradient {
  position: absolute;
  left: 0; top: 0;
  width: 100vw;
  height: 19vw; /* 그라데이션 높이도 확 늘려주세요 */
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0.0) 100%);
}

.custom-hero-placeholder {
  width: 100vw;
  min-height: 1px;
}
.custom-hero-text {
  position: relative;
  margin: 20vw 0 0 0;
  height: 70vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  z-index: 11;
  transition: box-shadow 0.3s;
}
.custom-hero-text.fixed {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  width: 100vw;
  transform: translateY(-50%);
  z-index: 11;
  margin: 0;
}

.rolling-text-group {
  height: 8em;
  overflow: hidden;
  position: relative;
  width: 100vw;
  max-width: 100vw;
}
.rolling-text {
  font-size: 5rem;
  font-weight: 700;
  color: #212338;
  line-height: 1.5;
  will-change: transform, opacity;
  transition: transform 0.72s cubic-bezier(.82,.02,.31,.91), opacity 0.65s;
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(1.4em) rotateX(110deg);
  pointer-events: none;
}
.rolling-text.rolling-show {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
  z-index: 2;
  pointer-events: auto;
}
.sub-desc {
  margin-top: 18px;
  font-size: 1.7rem;
  color: #787d8a;
  line-height: 1.65;
  opacity: 0.82;
}


/* 800px 이하 반응형 */
@media (max-width: 800px) {
  .custom-visual-block {
    margin-top: 36px;
    padding-bottom: 12px;
    max-width: 96vw;
  }
  .random-image-grid {
    height: 180px;
    gap: 3vw;
  }
  .random-img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
  }
  .custom-slogan {
    font-size: 1.05rem;
  }
  .rolling-bg-text {
    height: 54px;
    margin-top: -20px;
  }
  .rolling-track span {
    font-size: 32px;
  }
  .recruit-message {
    font-size: 1.12rem;
  }
  .recruit-fullimg-wrap {
    padding-bottom: 64vw; /* 모바일 세로비 */
    height: auto;
  }
  .fullimg, .fullimg-gradient {
    width: 100
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .img-gallery-row { height: 200px; gap: 2%; }
  .overlay-title { font-size: 1.1rem; }
  .overlay-title2 { font-size: 1.1rem; display:none;}
  .overlay-content { padding:2px; }
  .overlay-btn { font-size: 0.95rem; padding: 7px 16px; }
  
}


/* ========== 공통 보정 ========== */
:root{
  --gap-sm: 12px;
  --gap-md: 24px;
  --radius-lg: 24px;
}

img{max-width:100%; height:auto;}

/* 폰트 크기 과대 방지 */
.rolling-text{ font-size: clamp(1.6rem, 6vw, 5rem); }
.sub-desc{ font-size: clamp(1rem, 2.7vw, 1.7rem); }
.custom-slogan{ font-size: clamp(1.1rem, 2.7vw, 2.7rem); }
.partner-logos-title{ font-size: clamp(1.4rem, 3.3vw, 3.3rem); }

/* 파트너 로고: 고정 250px 제거 → 비율 기반 + 최대높이 */
.partner-logo img{
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 120px; /* 데스크톱 기본 높이 완만화 */
  object-fit: contain;
}

/* ========== 갤러리(데스크톱 유지) ========== */
/* (기존 규칙 유지하되 모바일에서 재정의함) */

/* ========== 모바일 오버라이드 ========== */
@media (max-width: 900px){
  /* 파트너 그리드 2열, 로고 여백 축소 */
  .partner-logos-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .partner-logo img{
    max-height: 90px;
    padding: 6px 10px;
  }
}

@media (max-width: 768px){
  /* 히어로: fixed 제거, 단순 상단 배치 + 페이드 연출 유지 */
  .custom-hero-text{
    position: relative;
    margin: 16vw 0 6vw 0;
    height: auto;
    padding: 12vw 4vw 6vw;
  }
  .custom-hero-text.fixed{ position: relative; transform:none; top:auto; }
  .custom-hero-placeholder{ height:auto !important; }

  .rolling-text-group{
    height: auto; 
    min-height: 3.6em; /* 문구 1줄 보장 */
  }
  .rolling-text{
    position: relative;
    transform:none; opacity:1; 
    /* 모바일은 전환 최소화 */
  }

  .sub-desc{
    margin-top: 10px;
    opacity: 0.9;
  }

  /* 랜덤 이미지 영역: 고정 390px 제거 → 유동 비율 */
  .custom-visual-block{
    margin-top: 24px; padding-bottom: 12px; max-width: 96vw;
  }
  .random-image-grid{
    height: auto; gap: 3vw; align-items: stretch;
  }
  .random-img{
    width: 30vw; max-width: 180px; aspect-ratio: 1/1;
    height: auto; border-radius: 12px;
    transform: none !important; /* 회전/확대 최소화 */
  }

  /* 롤링 배경 텍스트 축소 */
  .rolling-bg-text{ height: 54px; margin-top: -8px; }
  .rolling-track span{ font-size: 32px; }

  /* 리크루트: 고정 메시지 제거, 전체 이미지는 가벼운 페이드 */
  .recruit-message{
    position: relative; top:auto; left:auto; transform:none;
    width: 100%; padding: 0 4vw; opacity:1;
    font-size: clamp(1rem, 3.2vw, 1.2rem);
  }
  .recruit-fullimg-wrap{
    margin-top: 8vw;
    padding-bottom: 62vw; /* 16:10~16:9 사이 비율 */
    opacity: 1; /* 스크롤 등장 대신 항상 표시 */
  }
  .fullimg, .fullimg-gradient{ width: 100%; }

  /* 갤러리: 행 높이 고정 제거, hover 의존 제거 */
  .img-gallery-row{
    height: auto;
    gap: var(--gap-sm);
  }
  .img-gallery-box{
    flex: 1 1 auto;
    min-width: 0;
    /* 터치에서 '확장' 대신 카드 1:1 비율로 나란히 */
    aspect-ratio: 4 / 3;
    height: auto;
  }
  .img-gallery-box img{
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
  }

  /* hover 효과 무효화 → 오버레이는 기본 표시 */
  .img-gallery-box,
  .img-gallery-box:hover{
    flex-basis: auto !important;
    z-index: 1 !important;
  }
  .img-gallery-box .img-gallery-overlay{
    opacity: 1; transform: none; pointer-events: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0.05));
  }
  .overlay-content{ padding: 10px 12px; }
  .overlay-title{ font-size: clamp(1rem, 3.6vw, 1.2rem); margin-bottom: 6px; }
  .overlay-title2{ 
    display:block; 
    font-size: clamp(0.95rem, 3.4vw, 1.15rem); 
    margin-bottom: 10px; 
  }
  .overlay-btn{ 
    font-size: clamp(0.85rem, 3.2vw, 0.95rem); 
    padding: 6px 12px; border-width:1.5px; 
  }
}

/* 더 작은 화면(폰 소형)에서 갤러리를 1열로 */
@media (max-width: 420px){
  .img-gallery-row{ flex-direction: column; }
  .img-gallery-box{ width: 100%; }
  .partner-logos-grid{ grid-template-columns: 1fr 1fr; }
  .partner-logo img{ max-height: 80px; }
}

/* 누락/오타 보정 (반드시 넣어주세요) */
@media (max-width: 800px){
  .fullimg, .fullimg-gradient{ width: 100%; }
}


/* =========================
   모바일(≤768px) 세로 1열 오버라이드
   ========================= */
@media (max-width: 768px){

  /* 1) 갤러리: 세로 1열 + 가로 꽉 채움 */
  .img-gallery-row{
    display: block;       /* flex → block로 바꿔 간단히 1열 */
    height: auto;
    gap: 0;
  }
  .img-gallery-box{
    position: relative;
    width: 100%;
    margin-bottom: 12px;   /* 카드 간격 */
    flex: none !important; /* 기존 flex-basis 확장/축소 무효화 */
    z-index: 1 !important;
    border-radius: 16px;
    overflow: hidden;
  }
  /* 이미지가 가로 100%, 세로 비율 자동 */
  .img-gallery-box img{
    position: static;      /* absolute → static: 자연 높이 */
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;      /* 바깥 박스가 이미 둥근 모서리 */
    transform: none !important;
  }
  /* 오버레이는 카드 전체 덮도록 유지 */
  .img-gallery-box .img-gallery-overlay{
    position: absolute;
    inset: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0.05));
  }
  .overlay-content{ padding: 12px; }
  .overlay-title{ font-size: 1.06rem; margin-bottom: 6px; }
  .overlay-title2{ font-size: 1rem; margin-bottom: 10px; display:block; }
  .overlay-btn{ font-size: 0.95rem; padding: 6px 14px; border-width: 1.5px; }

  /* 2) 계열사/협력사 로고: 세로 1열 */
  .partner-logos-grid{
    display: flex;              /* grid → flex */
    flex-direction: column;     /* 세로 정렬 */
    gap: 12px;
    align-items: center;        /* 가운데 정렬 */
  }
  .partner-logo{
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .partner-logo img{
    width: 92%;           /* 화면 가장자리와 여백 */
    max-width: 420px;     /* 너무 커지지 않게 상한선 */
    height: auto;         /* 세로 자동 */
    aspect-ratio: auto;   /* 기존 비율 강제 해제 */
    padding: 8px 10px;
    max-height: none;     /* 데스크톱용 최대 높이 제한 해제 */
  }

  /* 타이틀 여백 축소 */
  .partner-logos-title{
    margin-bottom: 28px;
  }
}


/* =========================
   모바일 레이아웃 오버라이드
   ========================= */
@media (max-width: 768px){

  /* [A안] 로고: "가운데 정렬(기본)" */
  .partner-logos-grid.partners--center {
    display: flex;               /* grid → flex */
    flex-direction: column;      /* 세로 1열 */
    align-items: center;         /* 가운데 정렬 */
    gap: 12px;
  }
  .partner-logos-grid.partners--center .partner-logo{
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .partner-logos-grid.partners--center .partner-logo img{
    width: auto;
    max-width: 68vw;             /* 화면 대비 적당한 폭 */
    height: auto;
    padding: 8px 10px;
    max-height: none;
  }

  /* [B안] 로고: "가로 100% 꽉 채움" */
  .partner-logos-grid.partners--full {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;        /* 좌우 가득 */
  }
  .partner-logos-grid.partners--full .partner-logo{
    width: 100%;
  }
  .partner-logos-grid.partners--full .partner-logo img{
    width: 100%;
    max-width: none;
    height: auto;
    padding: 8px 10px;
    max-height: none;
  }

  /* 히어로: 좌/우 치우침 제거(패딩 최소화 + 중앙 정렬 보장) */
  .custom-hero-text{
    padding: 0;                  /* 좌우 패딩 제거 */
    margin: 16vw auto 6vw auto;  /* 가운데 배치 */
    width: 100vw;                /* 화면 가득 */
    text-align: center;
  }
  .rolling-text-group{
    width: 100%;
    max-width: 92vw;             /* 양 끝 여백 살짝만 */
    margin: 0 auto;
  }

  /* 히어로 라인 애니메이션(짧고 선명하게) */
  .rolling-text{
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
    position: relative;          /* 모바일에선 절대 포지션 제거 효과 */
  }
  .rolling-text.line-show{
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 768px){
  /* 부모의 10px 패딩을 상쇄시켜 히어로만 풀블리드 */
  .custom-hero-placeholder,
  .custom-hero-text{
    position: relative;
    width: calc(100% + 20px);
    left: -10px;          /* 왼쪽 패딩만큼 당김 */
    right: -10px;         /* 시맨틱을 맞추려면 left만 써도 됨 */
    margin-left: 0;
    margin-right: 0;
    padding: 20px !important;
  }

  .rolling-text-group{
    max-width: 92vw;      /* 텍스트는 살짝 안전 여백 */
    margin: 0 auto;
  }

  .rolling-text{ line-height: 1.6; letter-spacing: -0.02em; }
  .sub-desc{ line-height: 1.8; }
}