#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; }
  
}
