@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;600&display=swap');

/* =========================
   RESET / BASE
========================= */
* { margin: 0; padding: 0; box-sizing: border-box;
 }

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

a { color: inherit; }

/* =========================
   HERO INTRO
========================= */
.intro {
  position: fixed;
  inset: 0;
  background: url("mainimg.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 1.2s ease;
  overflow: hidden;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 150, 255, 0.2), transparent 40%),
    linear-gradient(15deg, rgba(78, 78, 78, 0.4), rgba(0, 0, 0, 0.88));
  pointer-events: none;
}

.hero-header {
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.hero-logo-main {
  font-size: 1.1rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  font-weight: 300;
}
.hero-logo-sub {
  margin-top: 4px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
}
.hero-nav a {
  text-decoration: none;
  color: #ffffff;
  opacity: 0.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: opacity 0.25s ease;
}
.hero-nav a:hover { opacity: 1; }

.hero-menu-btn {
  width: 28px;
  height: 22px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hero-menu-btn span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
}

.intro-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  max-width: 900px;
  margin-top: 30px;
  color: wheat;
}
.intro-text .click-hint {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* 클릭 후 인트로 제거(최종 적용 버전만 유지) */
body.clicked .intro {
  opacity: 0;
  pointer-events: none;
  display: none;
}

/* =========================
   SIDE NAV (LEFT)
========================= */
.hover-trigger {
  position: fixed;
  left: 0;
  top: 0;
  width: 40px;
  height: 100vh;
  z-index: 15;
}

.side-nav {
  position: fixed;
  left: -180px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 20;
  transition: left 0.75s ease;
  align-items: flex-start;
}

.hover-trigger:hover + .side-nav,
.side-nav:hover,
.menu-hint:hover ~ .side-nav {
  left: 30px;
}

.side-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 2px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  text-align: left;
  margin-left: 20px;
}
.side-nav a:hover { opacity: 1; }

.SeoPageHide{
  pointer-events: none;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* MENU HINT (중복 정의 제거 후, 최종 버전만 유지) */
.menu-hint {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  padding-left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

.menu-hint span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  letter-spacing: 3px;
  color: #ffffffcc;
  border-left: 2px solid rgba(255,255,255,0.25);
  padding-left: 6px;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.25);
}

.menu-hint:hover {
  opacity: 0.9;
  transform: translateY(-50%) scale(1.05);
}

.menu-hint:hover ~ .hover-trigger {
  width: 60px;
}

/* =========================
   MAIN / SECTION BASE
========================= */
.section {
  background: #0b0b0b;
  padding: 120px 20px;
  text-align: center;
}

/* 과거 정렬값(현재 레이아웃에서는 .section-text 쪽에서 덮어쓰기 됨) */
.section h2 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 20px;
  text-align: center;
  max-width: 640px;
  margin-left: 600px;
}

.desc {
  font-size: 1.2rem;
  opacity: 0.7;
  max-width: 640px;
  margin-left: 300px;
  margin-bottom: 40px;
  text-align: right;
}

.list {
  list-style-position: inside;
  max-width: 640px;
  margin-left: auto;
  display: inline-block;
}
.list li {
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: 10px;
  opacity: 0.9;
  margin-left: 50px;
}

/* 사이드 메뉴 여백(기존 유지) */
main, .content { padding-left: 220px; }
@media (max-width: 768px) {
  main, .content, body { padding-left: 0; }
}

/* =========================
   REVEAL ANIMATION
========================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SECTION LAYOUT (2COL)
========================= */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-2col {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.section-2col.reverse { flex-direction: row-reverse; }

.section-text { flex: 1.2; }
.section-media { flex: 1; }

.section-media-box {
  width: 100%;
  min-height: 260px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

.section-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* 이 레이아웃에서는 왼쪽 정렬로 덮어씀 */
.section-text h2 {
  text-align: left;
  margin-left: 0;
  max-width: none;
}
.section-text .desc {
  text-align: left;
  margin-left: 0;
  max-width: none;
}

/* =========================
   WORK SECTION (1)
========================= */
#work .section-inner { align-items: center; }

#work .section-text h2 {
  font-family: 'Playfair Display', 'Didot', 'Times New Roman', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #d9d9d9 40%, #ffffff 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 24px rgba(255, 255, 255, 0.08);
}

#work .section-text .desc {
  font-size: 1.02rem;
  line-height: 1.9;
  opacity: 0.8;
  max-width: 560px;
}

.work-tag {
  
  margin-top: 32px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 30px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-right: 200px;
}

#work .section-media-box {
  min-height: 260px;
  border-radius: 20px;
  border: 1px solid rgba(163, 194, 255, 0.65);
  background: radial-gradient(circle at center, rgba(32, 150, 255, 0.2), rgba(0, 0, 0, 0.95));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(56, 189, 248, 0.35);
}
#work .section-media-box img { border-radius: 20px; }

/* WORK: 3장 갤러리 */
.section-gallery-heading {
  max-width: 1100px;
  margin: 52px auto 8px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}
.section-gallery {
  max-width: 1100px;
  margin: 8px auto 0;
  display: flex;
  gap: 28px;
}
.gallery-item {
  flex: 1;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) { .section-gallery { gap: 20px; } }
@media (max-width: 700px) { .section-gallery { flex-direction: column; } }

/* =========================
   ABOUT SECTION (2)
========================= */
#about .section-inner { align-items: center; }
#about .section-media { display: flex; justify-content: center; }

/* About 이미지 스위칭 카드 */
.about-switch {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.95));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8);
  height: 400px;
}

.about-switch .about-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-img-1 { opacity: 1; transform: scale(1); }
.about-img-2 { opacity: 0; transform: scale(1.05); }

.about-switch.show-second .about-img-1 { opacity: 0; transform: scale(1.05); }
.about-switch.show-second .about-img-2 { opacity: 1; transform: scale(1); }

/* 핵심차별점 */
.jj-diff {
  background: radial-gradient(circle at top left, #141414, #0b0b0b 60%);
  padding: 140px 20px;
}
.jj-diff-text h3 {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 48px;
}
.jj-diff-text ul { list-style: none; padding: 0; margin: 0; }
.jj-diff-text li { position: relative; padding-left: 26px; margin-bottom: 28px; }
.jj-diff-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: #8ab4f8;
  font-weight: 600;
}
.jj-diff-text strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}
.jj-diff-text span {
  display: block;
  font-size: 15px;
  line-height: 1.7;
  color: #b9b9b9;
}

/* =========================
   CURATION/SERVICE SECTION (3)
========================= */
#curation .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* 서비스(텍스트 + 우측 카드) */
.jj-service {
  position: relative;
  padding: 120px 24px;
  background: radial-gradient(circle at 15% 10%, #1b1b1b 0%, #0b0b0b 55%, #070707 100%);
  overflow: hidden;
}
.jj-service::before {
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  opacity:.22;
  pointer-events:none;
}
.jj-service-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}

.jj-service-text h3 {
  font-family: 'Pretendard','Noto Sans KR',sans-serif;
  font-size: 48px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 34px 0;
}

.svc { margin-bottom: 28px; }
.svc h4 {
  font-family: 'Pretendard','Noto Sans KR',sans-serif;
  font-size: 18px;
  font-weight: 650;
  color: #d7d7d7;
  margin: 0 0 8px 0;
}
.svc p {
  margin: 0;
  max-width: 640px;
  font-family: 'Pretendard','Noto Sans KR',sans-serif;
  font-size: 15.5px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,.62);
}

.jj-service-media { display: flex; justify-content: center; }

.media-card {
  width: min(500px, 100%);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 26px 80px rgba(0,0,0,.62),
    0 0 0 1px rgba(255,255,255,.06) inset;
  padding: 10px;
  margin-top: 150px;
}
.media-card img {
  width: 100%;
  
  height: 400px;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.service-main-card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #050816;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8);
}
.service-main-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-bottom {
  margin-top: 40px;
  display: flex;
  gap: 24px;
}
.service-sub-card {
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.40);
  background: #050816;
  min-height: 220px;
}
.service-sub-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   CONTACT SECTION (4)
========================= */
#contact .contact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

#contact h2 {
  text-align: center;
  margin: 0 auto 16px;
}

#contact .contact-text {
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.90rem;
  opacity: 0.85;
}

#contact .contact-email {
  margin-top: 100px;
  font-size: 0.85rem;
  opacity: 0.8;
  text-align: right;
}

.contact-buttons {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.contact-btn-kakao { background: #fee500; color: #000; }
.contact-btn-telegram { background: #2aabee; color: #fff; }

.contact-btn-kakao,
.contact-btn-telegram { opacity: 0; }

.contact-btn-kakao { transform: translateX(-40px); }
.contact-btn-telegram { transform: translateX(40px); }

#contact.visible .contact-btn-kakao,
#contact.visible .contact-btn-telegram {
  opacity: 1;
  transform: translateX(0);
}
#contact.visible .contact-btn-telegram { transition-delay: 0.15s; }

.contact-btn:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .contact-buttons { gap: 12px; }
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: (#0f172a);
  color: #e5e7eb;
  padding: 40px 20px 20px 60px;
  font-size: 10px;
}
.site-footer a { color: #e5e7eb; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.footer-company { flex: 1 1 260px; }
.footer-logo-text {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-company p {
  margin: 2px 0;
  line-height: 1.4;
  color: #cbd5f5;
}

.footer-links { flex: 0 0 160px; }
.footer-links h4 {
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 10px;
}
.footer-links a {
  display: block;
  font-size: 8px;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 16px;
  text-align: center;
  font-size: 7px;
  color: #9ca3af;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
  .jj-service-inner { grid-template-columns: 1fr; gap: 44px; }
  .jj-service-text h3 { font-size: 40px; }
  .jj-service-media { justify-content: flex-start; }
}

@media (max-width: 900px) {
  #curation .service-top { flex-direction: column; }
  .service-main-card { max-width: 100%; }
  .service-bottom { flex-direction: column; }
}

@media (max-width: 768px) {
  .hero-header { left: 20px; right: 20px; }
  .section { padding: 100px 24px; }
  .side-nav { display: none; }
  .menu-hint { display: none; }

  .section-2col,
  .section-2col.reverse { flex-direction: column; }

  .section-inner { max-width: 100%; }

  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-links { flex: 1 1 100%; }
}


/* =========================================================
   RESPONSIVE (3-tier)
   - PC: default (no media query)
   - TABLET: <= 1200px
   - MOBILE: <= 480px (iPhone 16 Pro Max 430px보다 조금 큰 기준)
========================================================= */

/* -------------------------
   TABLET (<= 1200px)
------------------------- */
@media (max-width: 1200px) {

  /* 공통 섹션 패딩 축소 */
  .section {
    padding: 100px 32px;
  }

  /* 2컬럼 → 세로 스택 */
  .section-2col,
  .section-2col.reverse {
    flex-direction: column;
    gap: 48px;
  }

  /* WORK 타이틀 크기 완화 */
  #work .section-text h2 {
    font-size: clamp(36px, 6vw, 56px);
  }

  /* 설명 텍스트 폭 */
  .section-text .desc {
    max-width: 100%;
  }

  /* 서비스 영역(그리드 → 1열) */
  .jj-service-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .jj-service-media {
    justify-content: center;
  }

  /* 서비스 하단 카드 → 세로 */
  .service-bottom {
    flex-direction: column;
  }
}


/* -------------------------
   MOBILE (<= 480px)
------------------------- */
@media (max-width: 480px) {

  /* 전체 패딩 축소 */
  .section {
    padding: 80px 20px;
  }

  /* 사이드 메뉴 완전 제거 */
  .side-nav,
  .menu-hint,
  .hover-trigger {
    display: none !important;
  }

  /* HERO 여백 */
  .hero-header {
    left: 16px;
    right: 16px;
  }

  /* HERO 네비 링크 숨김 (햄버거만 유지) */
  .hero-nav a {
    display: none;
  }

  /* WORK */
  #work .section-text h2 {
    font-size: 34px;
    letter-spacing: 0.04em;
  }

  #work .section-text .desc {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .work-tag {
    font-size: 16px;
    margin-right: 0;
  }

  /* WORK 갤러리: 3장 세로 */
  .section-gallery {
    flex-direction: column;
    gap: 20px;
  }

  /* ABOUT 이미지 카드 크기 */
  .about-switch {
    height: 280px;
  }

  /* 차별점 타이틀 */
  .jj-diff-text h3 {
    font-size: 28px;
  }

  .jj-diff-text li {
    margin-bottom: 20px;
  }

  /* SERVICE */
  .jj-service-text h3 {
    font-size: 32px;
  }

  .svc h4 {
    font-size: 16px;
  }

  .svc p {
    font-size: 14px;
  }

  /* CONTACT */
  #contact h2 {
    font-size: 32px;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .contact-btn {
    width: 100%;
  }

  /* 이메일 중앙 정렬 (모바일 UX) */
  .contact-email {
    text-align: center;
    margin-top: 48px;
  }

/* 모바일에서 메일 잘림 현상 제거 */
@media (max-width: 480px) {
  #contact .contact-email{
    text-align: center !important;
    margin-top: 48px !important;
  }
}

  /* FOOTER */
  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }

  .site-footer {
    padding: 32px 20px;
  }
}
/* =========================
   MOBILE FOOTER POLISH (<= 480px)
   - footer 정렬/간격/좌측 쏠림 개선
========================= */
@media (max-width: 480px) {

  /* footer 전체: 중앙 정렬 + 여백 정리 */
  .site-footer {
    padding: 28px 18px 18px !important; /* 좌측 밀림 제거 */
    text-align: center;
  }

  /* footer 안쪽 컨테이너: 간격 균일화 */
  .footer-inner {
    align-items: center;
    gap: 18px;
  }

  /* 회사 정보 블록: 중앙 정렬 */
  .footer-company {
    width: 100%;
    text-align: center;
  }
  .footer-company p {
    text-align: center;
  }

  /* 링크 블록: 가운데 정렬 + 클릭하기 좋게 */
  .footer-links {
    width: 100%;
    text-align: center;
  }
  .footer-links h4 {
    margin-bottom: 8px;
  }
  .footer-links a {
    display: inline-block;
    margin: 6px 10px;  /* 세로로만 늘어지는 느낌 방지 */
    font-size: 12px;   /* 모바일에서 너무 작지 않게 */
    opacity: 0.9;
  }

  /* footer bottom: 위 여백만 깔끔하게 */
  .footer-bottom {
    margin-top: 16px;
    padding-top: 12px;
    font-size: 11px;
    opacity: 0.75;
  }
}

/* $$$$$$$$$$$$$$$$$$$모바일 전용$$$$$$$$$$$$$$$$$$$*/
/* MOBILE: 인트로 제거 (<= 480px) */
@media (max-width: 480px) {
  .intro { display: none !important; }
  body { padding-top: 0 !important; }
}


@media (max-width: 480px) {

  /* -----------------------------
     1) FOOTER: 중간에 뜬 빈 공간 제거
  ----------------------------- */

  /* footer가 100vh/고정 높이로 벌어지는 경우 차단 */
  .site-footer {
    height: auto !important;
    min-height: auto !important;
  }

  /* footer-inner가 세로로 벌어지지 않도록 */
  .footer-inner {
    align-content: start !important;     /* grid일 때 세로 중앙/분산 방지 */
    justify-content: start !important;   /* flex일 때 space-between 방지 */
    grid-auto-rows: auto !important;     /* grid row 자동 높이 */
    row-gap: 14px !important;
  }

  /* 내부 요소에 걸린 큰 margin 제거(빈 공간 주범인 경우가 많음) */
  .footer-company { margin: 0 !important; }
  .footer-links   { margin: 0 !important; }

  .footer-links h4 {
    margin: 10px 0 6px !important;
  }

  /* -----------------------------
     2) CONTACT: 이메일 잘림(줄바꿈) 해결
  ----------------------------- */

  /* 이메일/주소 텍스트가 길어도 화면 밖으로 안 나가게 */
  #contact .contact-email,
  .contact-email {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    text-align: center !important;

    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  /* 이메일이 a 태그면 더 확실히 */
  #contact .contact-email a,
  .contact-email a {
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {

  /* CONTACT 이메일 모바일 제거 */
  #contact .contact-email,
  .contact-email {
    display: none !important;
  }

}


@media (max-width: 480px) {

  /* 모바일에서는 기존 상단 메인 이미지(1장) 숨김 */
  #work .section-2col .section-media {
    display: none !important;
  }

  /* 갤러리를 2x2 grid로 */
  #work .section-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* 4장 균일한 카드 형태 */
  #work .gallery-item {
    aspect-ratio: 1 / 1;      /* 정사각(원하면 4/3으로 변경 가능) */
    border-radius: 14px;
    overflow: hidden;
  }

  #work .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 480px) {

  /* GOOGLE SEO 캡슐 모바일 확장 */
  .work-tag {
    padding: 18px 22px;          /* 세로 패딩 증가 */
    min-height: 96px;            /* 길쭉한 느낌 핵심 */
    border-radius: 48px;         /* 너무 동그랗지 않게 */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .work-tag p {
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-align: center;
  }
}

@media (max-width: 480px) {

  /* =========================
     SECTION GAP HARD CUT
     모바일 섹션 간 여백 대폭 축소

     컨펌 2번
  ========================= */

  /* 공통 섹션 패딩 압축 */
  .section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* ABOUT 차별점 섹션 */
  .jj-diff {
    padding-top: 64px !important;
    padding-bottom: 48px !important;
  }

  /* SERVICE 섹션 */
  .jj-service {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* 서비스 카드 위쪽 과한 마진 제거 */
  .media-card {
    margin-top: 32px !important;
  }

  /* 혹시 남아있는 마지막 여백 차단 */
  .jj-diff + .section,
  .jj-diff + section {
    margin-top: 0 !important;
  }
}

/* ================== GALLERY CARD OVERLAY ================== */

.gallery-card {
  position: relative;
  cursor: pointer;
}

/* 어두운 그라데이션 오버레이 */
.gallery-overlay {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0)
  );

  opacity: 1; /* 🔥 항상 노출 */
  transition: background 0.35s ease;
}

/* Hover 시 오버레이 표시 */
.gallery-card:hover .gallery-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0)
  );
}

/* 작은 상단 텍스트 */
.gallery-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}

/* 메인 타이틀 */
.gallery-title {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

/* 이미지 살짝 확대 효과 */
.gallery-card img {
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}
