:root {
  --navy-950: #071d34;
  --navy-900: #0b2d4f;
  --navy-800: #123f68;
  --navy-700: #1c527d;
  --teal-600: #159c91;
  --teal-500: #27b4a4;
  --teal-200: #bce7e1;
  --teal-100: #e4f5f2;
  --blue-100: #eaf3f8;
  --ink: #102a43;
  --muted: #5f7182;
  --line: #dce6ed;
  --surface: #f5f8fa;
  --white: #ffffff;
  --content: 1280px;
  --header-height: 56px;
  --shadow-soft: 0 18px 45px rgba(14, 45, 76, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 6px;
}

.skip-link:focus { top: 12px; }

.content-width,
.header-inner,
.hero-inner {
  width: min(calc(100% - 64px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 230, 237, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.wordmark {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: 32px;
  display: block;
  object-fit: contain;
}

.brand-tagline {
  padding-left: 15px;
  color: #718392;
  border-left: 1px solid var(--line);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  padding-block: 17px;
  color: #324a5f;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 10px;
  height: 2px;
  background: var(--teal-500);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after { right: 0; }

.site-nav .nav-contact {
  padding: 8px 17px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 999px;
}

.site-nav .nav-contact::after { display: none; }
.site-nav .nav-contact:hover,
.site-nav .nav-contact:focus-visible { background: var(--navy-800); }

.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 38%, rgba(74, 165, 176, 0.09), transparent 29%),
    linear-gradient(135deg, #ffffff 0%, #f8fbfd 55%, #eef5f8 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -70% 48%;
  height: 460px;
  border: 1px solid rgba(31, 116, 133, 0.10);
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-inner {
  min-height: 274px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, 0.75fr);
  align-items: center;
  gap: 28px;
  padding-block: 22px 18px;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--teal-600);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.35rem, 3.2vw, 3.45rem);
  line-height: 1.17;
  letter-spacing: -0.055em;
}

.hero-summary {
  margin: 16px 0 0;
  color: #4e6476;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.75;
}

.hero-visual {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(100%, 276px);
  margin: -8px 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(8, 48, 82, 0.14));
}

.section-block { padding-block: 14px; }

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.section-heading .section-kicker { margin: 0; }

.section-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-heading.compact {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.services { background: var(--surface); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  position: relative;
  height: 118px;
  padding: 18px;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:has(.service-icon) {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: auto 3.2em;
  align-content: center;
  column-gap: 13px;
}

.service-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: filter 180ms ease, opacity 180ms ease;
}

.service-card:has(.service-icon) h3,
.service-card:has(.service-icon) p {
  grid-column: 2;
}

.service-card:hover,
.service-card:focus-visible,
.service-card.is-active {
  color: var(--white);
  background: var(--navy-900);
  transform: none;
  border-color: var(--navy-900);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.service-card h3 {
  position: relative;
  margin: 0;
  color: var(--navy-900);
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
  transition: color 180ms ease;
}

.service-card p {
  position: relative;
  max-height: 3.2em;
  margin: 9px 0 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  transition: opacity 180ms ease, color 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.service-card:hover h3,
.service-card:focus-visible h3,
.service-card.is-active h3 { color: var(--white); }

.service-card:hover .service-icon,
.service-card:focus-visible .service-icon,
.service-card.is-active .service-icon {
  filter: brightness(0) invert(1);
}

.service-card:hover p,
.service-card:focus-visible p,
.service-card.is-active p {
  max-height: 3.2em;
  margin-top: 9px;
  opacity: 1;
  visibility: visible;
  color: #d7e5ef;
  transform: none;
}

.detail-section {
  min-height: 174px;
  padding-block: 18px;
  border-top: 1px solid #edf2f5;
  background: var(--white);
}

.detail-view {
  animation: detail-in 220ms ease both;
}

.detail-view[hidden] { display: none; }

.detail-view > h2,
.track-record > h2 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-size: clamp(1.28rem, 1.8vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.detail-view > p:last-child {
  max-width: 850px;
  margin: 0;
  color: #526a7c;
  font-size: 0.92rem;
  line-height: 1.7;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.note-preview {
  padding: 14px 16px;
  background: #f6f9fb;
  border: 1px solid #e5edf2;
  border-radius: 8px;
}

.note-preview > span {
  color: var(--teal-600);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.note-preview h3 {
  margin: 5px 0 4px;
  color: var(--navy-900);
  font-size: 0.92rem;
  letter-spacing: -0.025em;
}

.note-preview p {
  margin: 0;
  color: #607486;
  font-size: 0.76rem;
  line-height: 1.55;
}

@keyframes detail-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 22px;
  align-items: stretch;
}

.track-record {
  padding: 1px 2px;
}

.record-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-list li {
  position: relative;
  padding: 7px 10px 7px 24px;
  color: #415a6e;
  background: #f6f9fb;
  border: 1px solid #e7eef2;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 650;
}

.record-list li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--teal-500);
  border-radius: 50%;
  transform: translateY(-50%);
}

.representative {
  padding: 15px 18px;
  background: #f1f6f8;
  border-left: 3px solid var(--teal-500);
  border-radius: 4px 10px 10px 4px;
}

.representative-label {
  margin-bottom: 6px;
  color: var(--teal-600);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.representative h2 {
  margin: 0 0 7px;
  color: var(--navy-900);
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.representative p {
  margin: 0 0 7px;
  color: #5a7081;
  font-size: 0.75rem;
  line-height: 1.5;
}

.award {
  color: var(--navy-700);
  font-size: 0.72rem;
  font-weight: 750;
}

.site-footer {
  color: #91a6b7;
  background: var(--navy-950);
}

.footer-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.footer-address {
  font-style: normal;
  font-size: 0.72rem;
  text-align: center;
}

.footer-note {
  justify-self: end;
  color: #6f879a;
  font-size: 0.6rem;
  line-height: 1.4;
  text-align: right;
}

@media (max-height: 820px) and (min-width: 1000px) {
  :root { --header-height: 52px; }
  .site-nav a { padding-block: 15px; }
  .site-nav a::after { bottom: 8px; }
  .brand-logo { height: 29px; }
  .hero-inner { min-height: 244px; padding-block: 18px 14px; }
  .hero h1 { font-size: clamp(2.25rem, 3vw, 3.1rem); }
  .hero-summary { margin-top: 12px; }
  .hero-visual { width: min(100%, 244px); }
  .section-block { padding-block: 10px; }
  .service-card { height: 112px; padding-block: 15px; }
  .detail-section { min-height: 150px; padding-block: 14px; }
}

@media (max-width: 980px) {
  :root { --header-height: 58px; }
  .content-width,
  .header-inner,
  .hero-inner { width: min(calc(100% - 36px), var(--content)); }

  .menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    color: var(--navy-900);
    background: transparent;
    border: 0;
    border-radius: 8px;
  }

  .menu-toggle span:not(.sr-only) {
    width: 22px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 2px;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(7, 29, 52, 0.16);
  }

  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; }
  .site-nav a::after { display: none; }
  .site-nav .nav-contact { margin-top: 4px; text-align: center; }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr 0.75fr;
    gap: 10px;
  }

  .hero h1 { font-size: clamp(2rem, 5.2vw, 2.9rem); }
  .hero-visual { width: min(100%, 280px); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .content-width,
  .header-inner,
  .hero-inner { width: min(calc(100% - 32px), var(--content)); }
  .brand-logo { height: 31px; }
  .brand-tagline { display: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 42px 28px;
  }
  .eyebrow { font-size: 0.64rem; letter-spacing: 0.11em; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-summary { margin-block: 16px 21px; font-size: 0.95rem; }
  .desktop-only { display: none; }
  .hero-visual { width: min(88vw, 330px); margin: -4px auto -10px; }
  .section-block { padding-block: 26px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { height: auto; min-height: 110px; }
  .service-card p {
    max-height: 3.2em;
    margin-top: 9px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .detail-section { min-height: 210px; padding-block: 24px; }
  .notes-grid { grid-template-columns: 1fr; }
  .record-list { grid-template-columns: 1fr; }
  .representative { padding: 18px; }
  .footer-row {
    min-height: 62px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    padding-block: 8px;
  }
  .footer-row > span { display: none; }
  .footer-note { justify-self: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 제품환경규제 상세 */
.service-intro {
  max-width: 960px;
  margin: 0 0 18px;
  color: #526a7c;
  font-size: 0.92rem;
  line-height: 1.7;
}

.regulation-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.regulation-process li {
  position: relative;
  min-height: 116px;
  padding: 16px;
  background: #f6f9fb;
  border: 1px solid #e2ebf0;
  border-radius: 8px;
}

.process-number {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-600);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.regulation-process strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-900);
  font-size: 0.95rem;
}

.regulation-process p {
  margin: 0;
  color: #607486;
  font-size: 0.78rem;
  line-height: 1.55;
}

.regulation-subtitle {
  margin: 22px 0 10px;
  color: var(--navy-950);
  font-size: 1.05rem;
}

.regulation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.regulation-item {
  padding: 14px 16px;
  border-left: 3px solid var(--teal-500);
  background: #f8fafb;
}

.regulation-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.regulation-item p {
  margin: 0;
  color: #607486;
  font-size: 0.8rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .regulation-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .regulation-process,
  .regulation-grid {
    grid-template-columns: 1fr;
  }

  .regulation-process li {
    min-height: auto;
  }
}
/* 회사소개 불릿 본문 */
.detail-list {
  margin: 0 0 14px;
  padding-left: 1.35rem;
}

.detail-list li {
  margin: 2px 0;
  color: #526a7c;
  font-size: 0.88rem;
  line-height: 1.65;
}

/* 홈페이지 전체를 1280px 프레임 안에 배치 */
body {
  background: #eef2f5;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

main {
  background: var(--white);
}

.detail-list li > strong {
  display: inline-block;
  width: 160px;
  margin-right: 12px;
  vertical-align: top;
}

/* Thinking Notes 이미지 팝업 */
.note-modal[hidden] { display: none; }
.note-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.note-modal-backdrop { position: absolute; inset: 0; background: rgba(8,20,33,.72); }
.note-modal-body {
  position: relative; z-index: 1; background: #fff; border-radius: 10px;
  max-width: 900px; width: 100%; max-height: 90vh; overflow: auto;
  padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.note-modal-image { display: block; width: 100%; height: auto; border-radius: 6px; }
.note-modal-title { margin: 18px 0 6px; font-size: 18px; }
.note-modal-description { margin: 0; color: #4E626A; font-size: 14px; line-height: 1.6; }
.note-modal-close {
  position: absolute; top: 10px; right: 12px; border: 0; background: none;
  cursor: pointer; font-size: 28px; line-height: 1; color: #16262E;
}
body.note-modal-open { overflow: hidden; }

/* 기존 style.css 맨 아래에 추가: 데스크톱 카드 제목 정렬 */
@media (min-width: 681px) {
  .service-card:has(.service-icon) {
    grid-template-rows: auto;
    align-items: center;
  }

  .service-card:has(.service-icon) .service-icon,
  .service-card:has(.service-icon) h3 {
    grid-row: 1;
    align-self: center;
  }

  .service-card:has(.service-icon) p {
    display: none;
    grid-row: 2;
  }

  .service-card:has(.service-icon):is(:hover, :focus-visible, .is-active) {
    grid-template-rows: auto 3.2em;
  }

  .service-card:has(.service-icon):is(:hover, :focus-visible, .is-active) .service-icon {
    grid-row: 1 / span 2;
  }

  .service-card:has(.service-icon):is(:hover, :focus-visible, .is-active) p {
    display: block;
  }
}

/* 수행 경험 — 현재/과거 섹션 소제목 */
.record-subtitle {
  margin: 16px 0 8px;
  color: var(--navy-900);
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.record-subtitle:first-of-type { margin-top: 10px; }
.track-record .record-list + .record-subtitle { margin-top: 18px; }

.service-card:first-child p {
  font-size: calc(0.82rem - 1pt);
}

/* 모든 카드 반전 시 제목을 연한 노란색으로 강조 */
.service-card:hover h3,
.service-card:focus-visible h3,
.service-card.is-active h3 {
  color: #FFF2B3;
}

/* 본문 아래 100px 여백을 두고 하단 바 배치 */
main {
  flex: none;
  padding-bottom: 100px;
}

.site-footer {
  margin-top: 0;
}


/* 모바일: HERO 이미지 영역을 없애고 본문 높이에 맞춤 */
@media (max-width: 680px) {
  .hero-visual {
    display: none;
  }

  .hero-inner {
    min-height: 0;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    padding-block: 32px 28px;
  }

  .hero-summary {
    margin-bottom: 0;
  }
}