/* =========================================================
   AID청담 | COMPANY 전용 CSS (정리·수정본)
========================================================= */

/* ---------- 변수 ---------- */
:root {
  --aid-green: #1b3b34;
  --beige: #f4e8ce;
  --ink: #111;
  --muted: #6f7674;
  --line: #e7ebe9;
  --surface: #fff;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

/* ---------- 리셋/공통 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body.sub-company {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  font-family: 'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-snap-type: y proximity;
}
body.sub-company .site-footer {
  margin-top: auto;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--aid-green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
label:focus-visible {
  outline: 3px solid rgba(27, 59, 52, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 섹션 타이틀 ---------- */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--aid-green);
  margin-bottom: 40px;
}

/* ---------- HERO ---------- */
.company-hero {
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../images/backimg/aid123.png') center/cover no-repeat;
}
.company-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}
.company-hero .container {
  position: relative;
  z-index: 1;
}
.company-hero .hero-title {
  margin: 0;
  color: #fff;
  font-weight: 900;
  font-size: clamp(36px, 4vw, 56px);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.company-hero .hero-subtitle {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  font-size: clamp(16px, 2.2vw, 20px);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
@media (max-width: 1200px) {
  .company-hero {
    min-height: 380px;
  }
}
@media (max-width: 992px) {
  .company-hero {
    min-height: 340px;
  }
}

/* ---------- 탭 ---------- */
.company-tabs {
  margin: -60px auto 120px;
  position: relative;
  z-index: 10;
  width: 100%;
}
.company-tabs input[type='radio'] {
  position: absolute;
  left: -9999px;
}
.tab-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 64px;
  padding: 0 18px;
}
.tab {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #dfe7e4;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.25s, transform 0.25s, font-size 0.25s;
}
.tab:hover {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.22rem;
  transform: scale(1.05);
}
#tab1:checked ~ .tab-list label[for='tab1'],
#tab2:checked ~ .tab-list label[for='tab2'],
#tab3:checked ~ .tab-list label[for='tab3'],
#tab4:checked ~ .tab-list label[for='tab4'],
#tab5:checked ~ .tab-list label[for='tab5'] {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.22rem;
}
.tab::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--aid-green);
  transition: width 0.28s, height 0.25s;
}
.tab:hover::after {
  width: 100%;
  height: 4px;
}
#tab1:checked ~ .tab-list label[for='tab1']::after,
#tab2:checked ~ .tab-list label[for='tab2']::after,
#tab3:checked ~ .tab-list label[for='tab3']::after,
#tab4:checked ~ .tab-list label[for='tab4']::after,
#tab5:checked ~ .tab-list label[for='tab5']::after {
  width: 100%;
  height: 4px;
}
.tab-panels {
  border: none;
  background: transparent;
  padding: 0;
  margin-top: 0;
}
.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(6px);
}
#tab1:checked ~ .tab-panels #panel1,
#tab2:checked ~ .tab-panels #panel2,
#tab3:checked ~ .tab-panels #panel3,
#tab4:checked ~ .tab-panels #panel4,
#tab5:checked ~ .tab-panels #panel5 {
  display: block;
  animation: panelFadeUp 0.34s ease forwards;
}
@keyframes panelFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- CEO 인사말 (#panel1) ---------- */
#panel1 .section-title {
  margin-top: 120px;
}
#panel1 .section-title + .ceo-wire {
  margin-top: 30px;
}
.ceo-wire {
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.ceo-frame {
  aspect-ratio: 3/4;
  border-radius: 16px;
  background: #e9efed;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ceo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ceo-heading {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 22px;
  color: #111;
  letter-spacing: -0.01em;
}
.ceo-heading .brand {
  color: var(--aid-green);
  font-weight: 800;
}
.ceo-heading .name {
  font-weight: 800;
  font-size: clamp(2.4rem, 3.6vw, 3rem);
  color: var(--aid-green);
  margin-left: 8px;
  display: inline-block;
}
.ceo-copy p {
  margin: 0.9rem 0 1.2rem;
  color: #46514e;
  line-height: 1.8;
  font-size: 1.02rem;
}
.bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.bullets .item {
  background: #f7faf9;
  border: 1px solid #e4ece9;
  border-radius: 14px;
  padding: 28px 22px;
  transition: 0.3s;
}
.bullets .item:hover {
  background: #fff;
  border-color: var(--aid-green);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
}
.bullets .item i {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--aid-green);
}
.bullets .item h4 {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--aid-green);
  font-size: 1.15rem;
}
.bullets .item p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.55;
}
.signature {
  margin-top: 36px;
  line-height: 1.7;
}
.signature em {
  display: block;
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 400;
  color: #333;
  text-align: center;
  margin: 70px 0;
  line-height: 1.6;
}
.signature .sign-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 1.05rem;
  color: #222;
}
.signature strong {
  font-weight: 700;
  color: var(--aid-green);
  font-size: 1.15rem;
}
.signature .sign-img {
  height: 52px;
}

/* ---------- 사업분야 카드 (탭3 상단) ---------- */
#panel3 .section-title {
  margin-top: 120px;
}
#panel3 .section-title + .text-muted {
  margin: 18px 0 70px;
  font-size: 1.05rem;
  color: #7a8481;
}
#panel3 .services {
  margin-top: 24px;
}
#panel3 .services .services-grid {
  margin-top: 16px;
}
.services .services-grid {
  display: flex;
  flex-wrap: wrap;
}
.services .services-grid > [class*='col-'] {
  display: flex;
}
.services .intro-card-link {
  display: block;
  width: 100%;
}
.services .intro-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  transition: transform 0.35s, box-shadow 0.35s;
}
.services .intro-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}
.services .intro-media {
  position: relative;
  width: 100%;
  height: 500px;
  background: #e9efed;
  overflow: hidden;
}
.services .intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.services .intro-card:hover .intro-media img {
  transform: scale(1.06);
}
@media (max-width: 992px) {
  .services .intro-media {
    height: 260px;
  }
}
@media (max-width: 576px) {
  .services .intro-media {
    height: 220px;
  }
}
.services .overlay-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 80%);
  color: #fff;
}
.services .overlay-bottom-content small {
  display: block;
  opacity: 0.9;
}
.services .overlay-bottom-content h4 {
  margin: 0.25rem 0 0;
  font-weight: 800;
  font-size: 1.05rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ---------- 사업분야 상세(풀페이지 3섹션) ---------- */
#svc-dev-detail,
#svc-am-detail,
#svc-ret-detail {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 8vh, 120px) 0;
  scroll-snap-align: start;
  scroll-margin-top: 0;
  position: relative;
}
#svc-dev-detail {
  background: linear-gradient(180deg, #faf9f6 0%, #ffffff 100%);
}
#svc-am-detail {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
}
#svc-ret-detail {
  background: linear-gradient(180deg, #fafcfc 0%, #ffffff 100%);
}

/* 타이틀/서브 중앙 정렬 */
#svc-dev-detail .svc-title,
#svc-am-detail .svc-title,
#svc-ret-detail .svc-title {
  text-align: center;
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 40px);
  color: var(--aid-green);
  margin: 0 0 12px;
}
#svc-dev-detail .svc-sub,
#svc-am-detail .svc-sub,
#svc-ret-detail .svc-sub {
  text-align: center;
  color: #586563;
  font-size: clamp(15px, 1.4vw, 18px);
  margin: 0 auto 28px;
  max-width: 920px;
  line-height: 1.85;
}

/* 내부 컨테이너 폭 */
#svc-dev-detail .svc-rel,
#svc-am-detail .svc-bullets,
#svc-ret-detail .svc-bullets {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Develop 관계형 그리드 */
#svc-dev-detail .svc-rel-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
#svc-dev-detail .svc-rel-grid::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #dfe7e4;
  transform: translateY(-50%);
}

/* 카드 공통 */
#svc-dev-detail .svc-node,
#svc-am-detail .svc-card,
#svc-ret-detail .svc-card {
  background: #fff;
  border: 1px solid #e6eeeb;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
#svc-dev-detail .svc-node:hover,
#svc-am-detail .svc-card:hover,
#svc-ret-detail .svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
}

/* AM/RET 그리드 */
#svc-am-detail .svc-bullets,
#svc-ret-detail .svc-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}
#svc-am-detail .svc-card h5,
#svc-ret-detail .svc-card h5 {
  margin: 0 0 10px;
  font-weight: 800;
  color: #1b3b34;
  font-size: 1.06rem;
}
#svc-am-detail .svc-card ul,
#svc-ret-detail .svc-card ul {
  margin: 0;
  padding-left: 18px;
  color: #495250;
  line-height: 1.7;
}
#svc-am-detail .svc-card li,
#svc-ret-detail .svc-card li {
  margin: 0.22rem 0;
}

/* 반응형(상세) */
@media (max-width: 992px) {
  #svc-dev-detail .svc-rel-grid {
    grid-template-columns: 1fr 1fr;
  }
  #svc-dev-detail .svc-rel-grid::before {
    top: auto;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
  }
  #svc-am-detail .svc-bullets,
  #svc-ret-detail .svc-bullets {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  #svc-dev-detail .svc-rel-grid {
    grid-template-columns: 1fr;
  }
  #svc-dev-detail .svc-rel-grid::before {
    display: none;
  }
  #svc-am-detail .svc-bullets,
  #svc-ret-detail .svc-bullets {
    grid-template-columns: 1fr;
  }
}

/* 불필요한 녹색 점 제거 유지 */
#svc-dev-detail .svc-node::before,
#svc-dev-detail .svc-node::after {
  display: none !important;
}

/* ---------- COMPANY > 회사소개 탭 전용 ---------- */
.company-intro .co-lead {
  color: #495250;
  font-size: 1.05rem;
}
.company-intro .co-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 50px;
}
.company-intro .co-card {
  background: linear-gradient(145deg, #1b3b34 0%, #2c4a43 50%, #1b3b34 100%);
  border: none;
  border-radius: 16px;
  padding: 32px 26px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 20px rgba(27, 59, 52, 0.35);
  transition: transform 0.35s, box-shadow 0.35s;
}
.company-intro .co-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), 0 0 28px rgba(27, 59, 52, 0.5);
}
.company-intro .co-card i {
  color: var(--beige);
}
.company-intro .co-card p {
  line-height: 1.9;
  margin-bottom: 0.8em;
}
.company-intro .co-card h4 {
  margin-bottom: 16px;
  line-height: 1.6;
}
.company-intro .co-card h4,
.company-intro .co-card p,
.company-intro .co-card strong {
  color: #fff;
}

/* 핵심가치 */
.company-intro .co-values {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.company-intro .co-value {
  text-align: center;
  background: #fff;
  border: 1px solid #e6eeeb;
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.company-intro .co-value:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
}
.company-intro .co-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #eff6f3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--aid-green);
}
.company-intro .co-value h5 {
  font-weight: 800;
  margin: 0 0 8px;
  color: #1b3b34;
}
.company-intro .nowrap {
  white-space: nowrap;
}

/* 숫자로 보는 AID청담 */
.company-intro .co-metrics {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.company-intro .co-metric {
  background: radial-gradient(120% 120% at 100% 0%, #f3f8f6 0%, #ffffff 60%);
  border: 1px solid #e6eeeb;
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}
.company-intro .co-metric .num {
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 38px);
  color: #0f231f;
  letter-spacing: -0.02em;
}
.company-intro .co-metric .unit {
  font-size: 0.6em;
  margin-left: 2px;
  color: #2b4a43;
}
.company-intro .co-metric .cap {
  margin-top: 6px;
  color: #61716e;
  font-size: 0.95rem;
}

/* 왜 AID청담인가 */
.company-intro .co-why {
  margin-top: 46px;
}
.company-intro .co-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.company-intro .co-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #e6eeeb;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}
.company-intro .co-checks i {
  color: #1b3b34;
  margin-top: 2px;
}

/* 파트너 로고 */
.company-intro .co-logos {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: center;
}
.company-intro .co-logo {
  filter: grayscale(100%);
  opacity: 0.9;
  transition: opacity 0.2s, filter 0.2s;
}
.company-intro .co-logo:hover {
  filter: none;
  opacity: 1;
}
.company-intro .co-logo img {
  width: 100%;
  max-height: 56px;
  object-fit: contain;
}

/* 콜아웃 */
.company-intro .co-cta {
  margin-top: 54px;
}
.company-intro .co-cta .co-cta-inner {
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  background: linear-gradient(135deg, rgba(27, 59, 52, 0.08) 0%, rgba(27, 59, 52, 0.02) 100%);
  border: 1px solid #e6eeeb;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* 반응형(인트로) */
@media (max-width: 992px) {
  .company-intro .co-story {
    grid-template-columns: 1fr;
  }
  .company-intro .co-values {
    grid-template-columns: 1fr 1fr;
  }
  .company-intro .co-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .company-intro .co-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 576px) {
  .company-intro .co-values {
    grid-template-columns: 1fr;
  }
  .company-intro .co-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 회사소개 섹션 여백 / 공통 카드 여백 */
.company-intro section {
  margin-top: 70px;
}
.company-intro .co-lead {
  margin-bottom: 80px;
  line-height: 1.8;
}
.company-intro .co-card,
.company-intro .co-value,
.company-intro .co-checks li,
.company-intro .co-cta .co-cta-inner {
  margin: 28px 0;
}
.company-intro .co-cards,
.company-intro .co-values {
  margin: 50px 0;
  gap: 36px;
}
.company-intro .co-checks {
  margin: 60px 0;
}
.company-intro .co-cta {
  margin-top: 100px;
  margin-bottom: 60px;
}
.company-intro .co-cta .co-cta-inner {
  padding: 48px 36px;
}

/* ===== 서비스 아이콘 스트립 ===== */
.co-services {
  margin: auto;
  width: 100%;
  max-width: 100%;
}
.co-service .container {
  max-width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.co-services-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  gap: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.co-service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 12px 30px;
  border-radius: 12px;
  isolation: isolate;
  z-index: 0;
  transition: transform 0.25s;
}
.co-service::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: #f9fbfa;
  opacity: 0;
  transition: opacity 0.25s, box-shadow 0.25s;
  z-index: 1;
}
.co-service:hover::before {
  opacity: 1;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}
.co-service img {
  width: clamp(72px, 9vw, 112px);
  height: auto;
  filter: grayscale(40%);
  opacity: 0.92;
  transition: filter 0.25s, opacity 0.25s, transform 0.25s;
  position: relative;
  z-index: 2;
}
.co-service:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}
.co-service-label {
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 700;
  color: #273b36;
  letter-spacing: -0.02em;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.co-service:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18%;
  right: 0;
  height: 64%;
  width: 1px;
  background: linear-gradient(180deg, transparent, #e8eeeb 35%, #e8eeeb 65%, transparent);
  z-index: 3;
}
@media (max-width: 1200px) {
  .co-services-list {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 992px) {
  .co-services-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 576px) {
  .co-services {
    margin: 56px auto;
  }
  .co-services-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .co-service {
    padding: 24px 8px 26px;
  }
  .co-service-label {
    font-size: clamp(15px, 4.4vw, 18px);
  }
  .co-service:not(:last-child)::after {
    height: 70%;
  }
}

/* ========== COMPANY INTRO 헤더 전용 ========== */
.company-intro .co-intro-head {
  margin: 64px 0 48px;
  text-align: center;
}
.company-intro .co-intro-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  color: var(--aid-green);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 14px;
  animation: coFadeUp 0.6s ease both;
}
.company-intro .co-intro-title span {
  color: var(--beige);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.company-intro .co-intro-sub {
  font-size: clamp(15px, 1.4vw, 19px);
  color: #5d6966;
  line-height: 1.9;
  margin: 0;
  animation: coFadeUp 0.6s ease 0.08s both;
}
.company-intro .co-intro-head {
  margin: 56px 0 40px;
}
.company-intro .co-intro-sub {
  margin-bottom: 52px;
}
.company-intro .co-intro-head::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, #d9e7e2 0%, #b7cdc6 100%);
  opacity: 0.85;
}
@keyframes coFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 인트로 타이틀(넉넉 여백) ===== */
.company-intro-head {
  text-align: center;
  padding: 200px 0;
}
.company-intro-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  color: #0f231f;
  opacity: 0;
  transform: translateY(12px);
  animation: coTitleIn 700ms ease-out 80ms forwards;
}
.company-intro-title span {
  color: var(--aid-green);
}
.company-intro-sub {
  margin: 50px auto 0;
  max-width: 980px;
  font-weight: 300;
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.9;
  color: #474e4c;
  opacity: 0;
  transform: translateY(12px);
  animation: coSubtitleIn 700ms ease-out 220ms forwards;
}
.company-intro-sub span {
  font-weight: 800;
  color: var(--aid-green);
}
@keyframes coTitleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes coSubtitleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 576px) {
  .company-intro-head {
    padding: 56px 0 48px;
  }
}

/* ---------- 패널2 기본 타이틀 ---------- */
#panel2 .section-title {
  margin-top: 120px;
}
#panel2 .section-title + .text-muted {
  margin: 18px 0 70px;
  font-size: 1.05rem;
  color: #7a8481;
}

/* ====== 서비스 섹션(상세) 공통 레이아웃 ====== */
.svc-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
  padding: 24px 12px;
}
.svc-illus {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e9efed;
  aspect-ratio: 4/3;
}
.svc-illus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-illus .tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
}

/* 핵심 배지 */
.svc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}
.svc-badge {
  border: 1px solid #e6eeeb;
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

/* 지표 */
.svc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.svc-metric {
  background: radial-gradient(120% 120% at 100% 0%, #f3f8f6 0%, #ffffff 60%);
  border: 1px solid #e6eeeb;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.svc-metric .num {
  font-weight: 900;
  font-size: clamp(20px, 3.5vw, 30px);
  color: #0f231f;
}
.svc-metric .cap {
  margin-top: 4px;
  color: #61716e;
  font-size: 0.95rem;
}

/* 단계 */
.svc-steps {
  margin: 28px auto 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.svc-step {
  background: #fff;
  border: 1px solid #e6eeeb;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.svc-step .idx {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--aid-green);
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}

/* 보조 카드 */
.svc-mini {
  margin: 28px auto 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.svc-mini .card {
  background: #fff;
  border: 1px solid #e6eeeb;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}
.svc-mini .card h6 {
  margin: 0 0 8px;
  font-weight: 800;
  color: #1b3b34;
}

/* 갤러리 */
.svc-gallery {
  margin: 22px auto 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.svc-thumb {
  border-radius: 14px;
  overflow: hidden;
  background: #e9efed;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow);
}
.svc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CTA */
.svc-cta {
  margin: 28px auto 0;
  max-width: 980px;
  text-align: center;
  border: 1px solid #e6eeeb;
  border-radius: 18px;
  padding: 24px 22px;
  background: linear-gradient(135deg, rgba(27, 59, 52, 0.08) 0%, rgba(27, 59, 52, 0.02) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* 반응형(상세) */
@media (max-width: 992px) {
  .svc-head {
    grid-template-columns: 1fr;
  }
  .svc-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .svc-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .svc-mini {
    grid-template-columns: 1fr;
  }
  .svc-gallery {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .svc-gallery {
    grid-template-columns: 1fr;
  }
}

/* ===== 상세 섹션 표시/히어로 표시 제어 ===== */
/* 기본적으로 상세 섹션은 숨김 */
.svc-section {
  display: none;
}
/* 탭3가 켜졌을 때 panel3 안의 상세 섹션만 보임 */
#tab3:checked ~ .tab-panels #panel3 .svc-section {
  display: block;
}

/* 히어로는 세 섹션 모두 기본 표시 (이미지 없을 땐 회색 배경 유지) */
.svc-hero-img {
  display: block;
  width: 100%;
  height: clamp(320px, 56vh, 600px);
  overflow: hidden;
  border-radius: 0;
  margin: 28px 0;
  position: relative;
  background: #e9efed;
}
.svc-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.35) 100%);
  opacity: 0.35;
}
@media (max-width: 576px) {
  .svc-hero-img {
    height: clamp(240px, 42vh, 420px);
    margin: 20px 0;
  }
}

/* 카드 그리드 아래 여백 크게 */
.services .services-grid {
  margin-bottom: clamp(48px, 6vw, 200px);
}

/* panel3: 타이틀/카드 영역 분리 */
#panel3 .services-head {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 8px 12px 0;
}
#panel3 .services-head .section-title {
  margin-bottom: 8px;
}
#panel3 .services-head .text-muted {
  margin: 0;
}
/* 카드 박스 여백 */
#panel3 .services-cards {
  padding: 32px 0 80px;
}
#panel3 .services-cards .services-grid {
  justify-content: center;
}

/* ==== 상세 섹션 공통 스타일 ==== */
.svc-section {
  width: 100vw; /* 뷰포트 전체 */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw; /* 컨테이너 여백 제거 */
  margin-right: -50vw;
  padding: clamp(64px, 8vh, 120px) 0;
  background: #fff;
}

/* 섹션 타이틀/서브 → 중앙 정렬 */
.svc-section .svc-title {
  text-align: center;
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 40px);
  color: var(--aid-green);
  margin: 0 0 12px;
}
.svc-section .svc-sub {
  text-align: center;
  color: #586563;
  font-size: clamp(15px, 1.4vw, 18px);
  margin: 0 auto 28px;
  max-width: 920px;
  line-height: 1.85;
}

/* 섹션 히어로 이미지 → 좌우 꽉 차기 */
.svc-section .svc-hero-img {
  width: 100vw; /* 뷰포트 전체 */
  height: clamp(340px, 58vh, 640px);
  margin: 28px 0;
  border-radius: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}
.svc-section .svc-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-section .svc-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35));
  opacity: 0.35;
}

/* 반응형 높이 조정 */
@media (max-width: 576px) {
  .svc-section .svc-hero-img {
    height: clamp(240px, 46vh, 480px);
    margin: 20px 0;
  }
}

/* 1) 가로 스크롤/미세 틈 방지 */
html,
body {
  overflow-x: clip;
}

/* 2) 상세 섹션(배경) 풀블리드 공통 — 스크롤바 폭 보정 포함 */
.svc-section {
  width: 100vw;
  margin-inline: calc(50% - 50vw); /* 좌우 꽉 차게, 스크롤바 폭 보정 */
  padding: clamp(64px, 8vh, 120px) 0;
  position: relative; /* 기존 left/right 해제용 */
  left: auto;
  right: auto;
}

/* 3) 히어로 이미지도 동일 방식으로 풀블리드 */
#svc-dev-detail .svc-hero-img,
#svc-am-detail .svc-hero-img,
#svc-ret-detail .svc-hero-img {
  display: block !important;
  width: 100vw;
  height: clamp(320px, 56vh, 600px);
  margin: 28px 0;
  margin-inline: calc(50% - 50vw); /* ← 이 줄이 오른쪽 여백 해결의 핵심 */
  border-radius: 0;
  position: relative;
  left: auto;
  right: auto;
}
#svc-dev-detail .svc-hero-img img,
#svc-am-detail .svc-hero-img img,
#svc-ret-detail .svc-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 4) 디벨롭 섹션: 타이틀 중앙 정렬 + 본문 폭 제한 유지 */
#svc-dev-detail .svc-head,
#svc-am-detail .svc-head,
#svc-ret-detail .svc-head {
  grid-template-columns: 1fr; /* 한 열로 쌓기 */
  max-width: 980px; /* 텍스트 가독 폭 */
  margin: 0 auto;
  text-align: center;
}

/* 5) 우측 작은 비주얼이 필요 없으면 숨김(원하시면 유지해도 됨) */
#svc-dev-detail .svc-illus,
#svc-am-detail .svc-illus,
#svc-ret-detail .svc-illus {
  display: none;
}

/* 6) 모바일 높이 보정 */
@media (max-width: 576px) {
  #svc-dev-detail .svc-hero-img,
  #svc-am-detail .svc-hero-img,
  #svc-ret-detail .svc-hero-img {
    height: clamp(240px, 42vh, 420px);
    margin: 20px 0;
  }
}

/* === 오시는 길(panel4) 여백 보정 === */
#panel4 {
  padding-top: 150px; /* 위쪽 간격 */
  padding-bottom: 150px; /* 아래 간격(선택) */
}

#panel4 h4,
#panel4 .section-title {
  margin-top: 0; /* 제목 자체는 위여백 제거 */
  margin-bottom: 24px; /* 제목 ↔ 지도 사이 */
}

/* 지도 위 간격 */
#kakaoMapCompany {
  margin-top: 72px;
}

/* === 오시는 길 텍스트 컬러 (딥그린) === */
#panel4 p,
#panel4 h6 {
  color: var(--aid-green); /* #1b3b34 */
  font-weight: 600; /* 조금 더 진하게 */
}

#panel4 .section-title {
  color: var(--aid-green);
}

/* ========== Company 전용: 고정 헤더 & 겹침 방지 ========== */
.sub-company .navbar.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030; /* 부트스트랩 상단 레이어 */
  background: #fff; /* 투명이면 본문이 비쳐서 겹쳐 보임 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* 본문 시작점을 헤더 높이만큼 내려주기 (JS가 --nav-h를 세팅) */
.sub-company main {
  padding-top: var(--nav-h, 80px);
}

/* 앵커 이동 시 헤더에 가리지 않도록 */
.sub-company section[id] {
  scroll-margin-top: calc(var(--nav-h, 80px) + 16px);
}

/* (선택) 스크롤 후 느낌 살짝 강화 */
.sub-company .navbar.fixed-top.is-scrolled {
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* 모바일에서 기본 패딩 값 조금 낮추고 싶으면 */
@media (max-width: 991.98px) {
  .sub-company main {
    padding-top: var(--nav-h, 64px);
  }
}
