@charset "UTF-8";
/* =========================================================
   반응형 (responsive.css)
   Figma 에는 PC(1920) 시안만 존재 → 아래 해상도는 PC 시안 기준으로 대응
   - 1920 : 시안 원본 (--u = 1px)
   - 1440 : --u 비례 축소 (최소 글자 크기 보장)
   - 1024 : (max-width: 1279px) 카드형 그리드 / 라인업 가로 스크롤
   - 768  : (max-width: 1023px) 햄버거 메뉴 / 연출 영역 확대 크롭
   - 499  : (max-width: 767px)  모바일 1단
   ========================================================= */

/* =========================================================
   ~1279px  (1024 기준)
   ========================================================= */
@media (max-width: 1279px) {
  :root { --container: calc(100% - 80px); }

  /* TECH : 3단 그리드 */
  .tech { margin-top: 0; padding-top: 40px; padding-bottom: 120px; }
  .tech__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 56px;
  }
  .tech-card,
  .tech-card:nth-child(n) {
    width: auto;
    height: auto;
    margin: 0;
    padding: 24px 20px 36px;
    border-radius: 28px;
  }
  .tech-card__img,
  .tech-card__img--01,
  .tech-card__img--02,
  .tech-card__img--03 {
    position: relative;
    left: auto;
    top: auto;
    width: 72%;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }
  .tech-card__img--02 { width: 63%; aspect-ratio: 229 / 279; }
  .tech-card__title,
  .tech-card__desc { position: static; }
  .tech-card__title { margin-top: 16px; font-size: 22px; }
  .tech-card__desc { margin-top: 12px; font-size: 16px; }

  /* LINE UP : 슬라이더 (터치 기기는 좌우 스와이프) */
  .lineup__track { margin-top: 40px; }
  .lineup__list { gap: 32px; padding: 0 0 8px; }
  .product-card { --cw: 300px; margin-top: 48px; }
  .product-card__more { margin-top: 32px; }

  /* NEWS */
  .news { padding-top: 160px; padding-bottom: 140px; }
  .news__inner { grid-template-columns: 300px minmax(0, 1fr); }
  .news-item__link { min-height: 180px; padding: 32px; }
  .news-item:first-child .news-item__link { min-height: 178px; }

  .footer__inner { padding-top: 80px; padding-bottom: 48px; }
  .footer__info { margin-top: 64px; }
  .footer__copy { margin-top: 28px; }
}

/* =========================================================
   ~1023px  (768 기준)
   ========================================================= */
@media (max-width: 1023px) {
  :root { --header-h: 72px; }
  .header { height: 72px; }
  .header__inner { align-items: center; }
  .header__logo { margin: 0; }
  .logo-mark--header { width: 56px; }

  /* 햄버거 버튼 (Figma 미정의 → PC 메뉴 구성 그대로 모바일 패널로 제공) */
  .menu-toggle {
    position: relative;
    z-index: 3;
    display: block;
    width: 40px;
    height: 40px;
    margin-right: -8px;
  }
  .menu-toggle span {
    position: absolute;
    left: 8px;
    width: 24px;
    height: 2px;
    background: var(--c-white);
  }
  .menu-toggle span:nth-child(1) { top: 12px; }
  .menu-toggle span:nth-child(2) { top: 19px; }
  .menu-toggle span:nth-child(3) { top: 26px; }
  .is-menu-open .menu-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
  .is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .is-menu-open .menu-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
  .is-menu-open body { overflow: hidden; }

  .gnb {
    position: fixed;
    inset: 0;
    z-index: 2;
    margin: 0;
    padding: 120px 40px 40px;
    background: rgba(7, 15, 31, 0.96);
    overflow-y: auto;
    visibility: hidden;
    /* 닫힘 : 화면 오른쪽 밖 → 열림 : 오른쪽에서 왼쪽으로 밀려 들어옴 */
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.5s;
  }
  .is-menu-open .gnb {
    visibility: visible;
    transform: none;
    transition: transform 0.5s cubic-bezier(0, 0, 0.58, 1), visibility 0s;
  }
  .gnb__list { flex-direction: column; gap: 32px; }
  .gnb__link { font-size: 24px; line-height: 1.2; }
  .gnb__sub,
  .gnb__item.has-sub:hover .gnb__sub,
  .gnb__item.has-sub:focus-within .gnb__sub,
  .gnb__item.has-sub.is-open .gnb__sub {
    position: static;
    translate: none;
    width: auto;
    min-width: 0;
    height: auto;
    margin-top: 16px;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transition: none;
  }
  .gnb__bracket { display: none; }
  .gnb__sub-list,
  .gnb__item.has-sub:hover .gnb__sub-list,
  .gnb__item.has-sub:focus-within .gnb__sub-list,
  .gnb__item.has-sub.is-open .gnb__sub-list { padding: 0; text-align: left; opacity: 1; transition: none; }
  .gnb__sub-list li + li,
  .gnb__sub-list li + li:last-child { margin-top: 12px; }
  .gnb__sub-list a { font-size: 17px; color: rgba(255, 255, 255, 0.72); }

  /* 연출 영역(브랜드/슬로건) : 1100px 폭 기준으로 확대 후 좌우 크롭 */
  .stage { --su: calc(var(--vw) / 1100); }

  /* TECH */
  .tech { padding-top: 64px; padding-bottom: 96px; }
  .tech__circuit { left: calc(50% - 900px); top: -120px; width: 1300px; height: auto; aspect-ratio: 2166 / 1850; }
  .tech__glow { left: auto; right: -320px; top: 200px; width: 520px; height: auto; aspect-ratio: 644 / 723; }
  .tech__list { gap: 16px; }
  .tech-card,
  .tech-card:nth-child(n) { padding: 20px 14px 28px; border-radius: 24px; }
  .tech-card__title { font-size: 20px; }
  .tech-card__desc { font-size: 15px; }

  .lineup__desc { margin-top: 12px; }
  .product-card { --cw: 280px; }
  .product-card__title { font-size: 22px; }
  .product-card__desc { font-size: 15px; }

  /* NEWS : 1단 */
  .news { padding-top: 120px; padding-bottom: 120px; }
  .news__inner { grid-template-columns: minmax(0, 1fr); }
  .news__list { margin-top: 32px; }
  .news-item__title { font-size: 20px; }
  .news__bg::before { left: -10%; top: 200px; width: 120%; height: 600px; }

  .footer__slogan { font-size: clamp(32px, 7vw, 56px); }
  .footer__gradient { height: 70%; }
}

/* =========================================================
   ~767px  (499 기준 모바일)
   ========================================================= */
@media (max-width: 767px) {
  :root { --container: calc(100% - 32px); }

  .header { height: 64px; }
  .logo-mark--header { width: 48px; }
  .gnb { padding: 104px 24px 32px; }

  .section-title { font-size: 28px; }

  /* HERO */
  .hero { height: 100vh; height: 100svh; min-height: 560px; max-height: 820px; }
  .hero__content { top: 38%; width: calc(100% - 32px); white-space: normal; }
  .hero__sub { font-size: 15px; }
  .hero__title { margin-top: 12px; font-size: clamp(30px, 8.4vw, 40px); line-height: 1.25; text-wrap: balance; }
  .btn-contact { width: 150px; height: 52px; margin-top: 36px; font-size: 15px; }
  .scroll-down { bottom: 24px; transform: translateX(-50%) scale(0.8); transform-origin: bottom center; }

  /* 연출 영역 */
  .brand__msg { width: calc(var(--vw) - 32px); white-space: normal; }

  /* TECH : 1단 */
  .tech { padding-top: 48px; padding-bottom: 80px; }
  .tech__list { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
  .tech-card,
  .tech-card:nth-child(n) {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-content: center;
    padding: 20px;
    text-align: left;
  }
  .tech-card__img,
  .tech-card__img--01,
  .tech-card__img--02,
  .tech-card__img--03 { grid-row: 1 / span 2; width: 120px; margin: 0; }
  .tech-card__img--02 { width: 99px; justify-self: center; }
  .tech-card__title { margin-top: 0; align-self: end; font-size: 19px; }
  .tech-card__desc { margin-top: 8px; align-self: start; font-size: 14px; }
  /* 1단일 때도 PC 와 같은 줄바꿈 유지 (요청 : 방열 구조…, / 고온… · 레이저…, / PLC…)
     폭이 좁아 한 줄에 안 들어가면 단어 단위로 고르게 나눔 (한 글자만 남는 줄 방지) */
  .tech-card__desc { word-break: keep-all; text-wrap: balance; }

  /* LINE UP */
  .lineup__desc { font-size: 17px; }               /* 요청 */
  .lineup__track { margin-top: 24px; }
  .lineup__list { gap: 16px; }
  .product-card { --cw: 240px; margin-top: 40px; }
  .product-card__title { font-size: 19px; }
  .product-card__desc { margin-top: 8px; font-size: 14px; }
  .product-card__more { margin-top: 24px; font-size: 15px; }

  /* NEWS */
  .news { padding-top: 96px; padding-bottom: 96px; }
  .news__title { font-size: 32px; }
  .news-item__link { min-height: 0; padding: 24px 0 24px; }
  .news-item:first-child .news-item__link { min-height: 0; }
  .news-item__title { font-size: 18px; max-width: none; }
  .news-item__date { padding-top: 20px; font-size: 14px; }

  /* FOOTER */
  .footer__inner { padding: 64px 16px 32px; }
  .footer__slogan { font-size: 40px; }
  /* 로고 왼쪽 + 정보 왼쪽 정렬 유지 (PC 와 같은 배치 · 요청) */
  .footer__info { gap: 16px; margin-top: 48px; }
  .footer__address { font-size: 13px; }
  .footer__copy { font-size: 12px; }
}

/* ~440px (요청) : 푸터 로고 · 정보 세로 배치 */
@media (max-width: 440px) {
  .footer__info { flex-direction: column; width: 100%; }
  .logo-mark--footer { width: calc(96px * 0.85); }   /* 기존 96px → 15% 작게 (81.6px) */
}

/* =========================================================
   서브페이지 (sub.css 대응)
   ========================================================= */
@media (max-width: 1279px) {
  .feature-grid { gap: 16px; }
  .product-row { gap: 40px; }
}

@media (max-width: 1023px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 24px; align-items: center; }
  .feature-card__img { grid-row: 1 / span 3; width: 140px; margin: 0; }
  .product-row { grid-template-columns: minmax(0, 1fr); }
  .product-row:nth-child(even) .product-row__media { order: 0; }
  .process-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  /* 서브 비주얼 템플릿 (js/templates.js 의 mobilePos 로 메뉴별 위치 변경) */
  .sub-visual { height: 560px; }
  .info-table__row { grid-template-columns: 96px minmax(0, 1fr); }
  .info-table dt, .info-table dd { padding: 18px 0; }
  .timeline__events li { grid-template-columns: 44px minmax(0, 1fr); }
  .feature-card { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; }
  .feature-card__img { width: 96px; }
  .board-item__link { grid-template-columns: minmax(0, 1fr); }
  .board-item__side { flex-direction: row; align-items: center; }
  .btn { min-width: 0; flex: 1 1 auto; }
  .btn-row .btn { flex: 1 1 140px; }
  textarea.form-control { height: 200px; }
}

/* 서브 비주얼 이미지 위치 : 768px 이하 (메뉴별 값은 js/templates.js 의 mobilePos) */
@media (max-width: 768px) {
  .sub-visual::before { background-position: var(--visual-pos-m, 63% 46%); }
}

/* =========================================================
   기업개요 (about.css 대응)
   ========================================================= */
@media (max-width: 1023px) {
  /* 과제 카드 : 컨테이너 폭 3등분 */
  .issue-group { padding: 56px 0; }
  .issue-group:first-of-type { padding-top: 96px; }
  .issue-group--3 { padding-bottom: 0; }
  .issue-group__dots { gap: 8px; }
  .issue-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: var(--container);
    margin-top: 12px;
    border-radius: 40px;
  }
  .issue-card::before { left: 33.333%; }
  .issue-card::after { left: 66.667%; }
  .issue-card__item,
  .issue-group--3 .issue-card__item { padding: 28px 8px 30px; }
  .issue-card__icon { height: 92px; }
  .issue-card__label,
  .issue-group--3 .issue-card__label { margin-top: 12px; line-height: 1.3; }
  .about-issue__arrow { width: 80px; margin-top: 80px; }

  /* 무인 로봇 자동화 : Figma 모바일 시안 (Frame 8, 766:651 / 500 기준, 수정본)
     캡슐 261×540 · 원 232 · 원 아래 73 에 가로 점선(점 14) · 점선 아래 39 에 항목 제목 24 / 설명 16
     가치 항목은 가운데 1개씩 슬라이드 (js/pages/about.js) */
  .about-core {
    --cs: 232.43px;
    height: auto;
    margin-top: 64px;
    padding: 19px 0 99px;
  }
  .about-core__pill { width: 261.39px; background: var(--c-card); }
  .about-core__title { font-size: 24px; line-height: 55px; }
  .about-core__values {
    grid-template-columns: 100%;
    column-gap: 0;
    width: var(--vw);
    margin: 66px 0 0 calc(50% - var(--vw) / 2);
    padding: 7px 0 0;                               /* 점(14px) 윗부분이 잘리지 않게 */
    overflow: hidden;
  }
  .about-core__values::before { top: 7px; left: 0; width: 100%; }
  .core-value,
  .core-value--sm {
    grid-area: 1 / 1;
    padding: 39px 16px 0;
    translate: 100% 0;                              /* 대기 : 화면 오른쪽 밖 */
  }
  .core-value::before { width: 14px; }
  .core-value.is-current { translate: 0 0; transition: translate 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
  .core-value.is-leaving { translate: -100% 0; transition: translate 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
  .core-value__desc,
  .core-value--sm .core-value__desc { margin-top: 11px; }
  .about__connector { margin-top: 40px; }

  /* 회사 소개 : 물결 배경을 내용 높이에 맞춤 */
  .about-intro { margin-top: 8px; padding: 48px 20px 200px; }
  .about-intro__bg { height: calc(100% + 240px); }   /* 영상·그라데이션은 about.css 의 Figma 비율 그대로 */
  .about-intro__title { margin-top: 48px; }
  .about-intro__desc { margin-top: 20px; }
}

@media (max-width: 767px) {

  .about { --iu: 0.56px; }
  .issue-group { padding: 48px 0; }
  .issue-group:first-of-type { padding-top: 150px; }
  .issue-group__title { line-height: 36px; }
  .issue-card { border-radius: 28px; }
  .issue-card__item,
  .issue-group--3 .issue-card__item { padding: 20px 4px 22px; }
  .issue-card__icon { height: 72px; }
  .about-issue__arrow { width: 64px; margin-top: 56px; }

  .about-core { margin-top: 48px; }
  .about__connector { margin-top: 32px; }

  .about-intro { padding: 40px 16px 160px; }
  .about-intro__logo { width: 72px; }
  .about-intro__title { margin-top: 36px; }           /* 글자 크기 : 아래 "~1024px" 블록 */
}

/* ~1024px : 기업개요 연결선 길이 2/3 (370 → 247px) · 회사 소개 문구 크게 (요청) */
@media (max-width: 1024px) {
  .about-intro__title { font-size: 40px; line-height: 48px; }
  .about-intro__desc { font-size: 22px; line-height: 33px; }
}
@media (max-width: 767px) {
  .about-intro__title { font-size: 34px; line-height: 42px; }
  .about-intro__desc { font-size: 19px; line-height: 29px; }
}

/* =========================================================
   ~500px : 모바일 전용 줄바꿈 (<br class="br-m">)
   ========================================================= */
/* =========================================================
   ~768px : 히어로 · 브랜드 메시지 글자 크기 (요청)
   ========================================================= */
@media (max-width: 768px) {
  .br-t { display: inline; }

  .hero__sub { font-size: 22px; }
  .hero__title { font-size: 48px; }

  .brand__msg { font-size: 28px; line-height: 1.45; }
  /* 화면이 좁아 가장 긴 줄(36px 일 때 약 478px · 28px 일 때 약 372px · 하이라이트 여백 포함)이 넘치면 폭에 맞춰 줄임
     → 500px 이하에서 4줄 그대로 보이도록 (약 426px 이하에서 줄어듦 · 375px ≈ 24px) · 메시지1 도 같은 크기 */
  .brand__msg { font-size: min(28px, calc((var(--vw) - 32px) * 0.071)); }
  /* 하이라이트 : 글자 높이에 맞춘 막대 + 상하 여백 */
  .highlight { padding: 4px 10px; line-height: 1.25; }
  .highlight::before { top: 0; bottom: 0; height: auto; margin-top: 0; }

  /* 슬로건 (요청) : 문장 32px · 화면이 좁으면 한 줄 유지되도록 폭에 맞춰 줄임 (중심 위치는 시안과 동일)
     브래킷 : 크기 1.3배 · 선 굵기 1.5배 (main.css 의 --bk · --bl) */
  .slogan__text {
    top: calc(540.5 * var(--su));
    transform: translate(-50%, -50%);
    font-size: min(32px, calc((var(--vw) - 32px) * 0.082));   /* 32px 일 때 문장 폭 약 373px → 약 422px 이하에서 줄어듦 */
    line-height: 1.3;
  }
  .slogan__bracket { --bk: 1.3; --bl: 1.5; }
}

@media (max-width: 500px) {
  .br-m { display: inline; }

  /* LINE UP : 활성 카드를 화면 정중앙에 (요청)
     - 슬라이더를 화면 전체 폭으로 넓히고, 목록 맨 앞의 이전 카드 1장(main.js)만큼 왼쪽으로 당김
     - 767px 이하 값의 1.3배 (요청) : 카드 폭 240→312 · 간격 16→21 · 위 여백 40→52
     - 글자 (요청) : 제목 20 · 설명 16 · more view 16 */
  .lineup__track { margin-left: calc((var(--vw) - 100%) / -2); }
  .lineup__list {
    gap: 21px;
    padding-left: 0;
    margin-left: calc((var(--vw) - 312px) / 2 - 312px - 21px);
  }
  .product-card { --cw: 312px; margin-top: 52px; }
  .product-card.is-active { margin-top: 52px; }        /* 요청 : 활성 카드도 비활성 카드와 같은 높이 (위로 올라오지 않음) */
  .product-card__title { font-size: 20px; }             /* 요청 */
  .product-card__desc { margin-top: 10.4px; font-size: 16px; }   /* 요청 */
  .product-card__more { margin-top: 31.2px; font-size: 16px; }   /* 요청 */
  .news-item__cate { font-weight: 500; font-size: 14px; line-height: 10px; }   /* 요청 */
}

/* ~499px : 푸터 슬로건 36px (요청) */
@media (max-width: 499px) {
  .footer__slogan { font-size: 36px; }
}

/* ~499px : 메인 TECH 카드 (요청) - 글자 크기 · 아이콘 크기 · 위치 조정
   - 아이콘 칸 : 화면 폭에 비례 (72~85px) → 좁은 화면에서도 제목 1줄 · 설명 2~3줄
   - 아이콘 이미지의 어두운 여백을 잘라내고(확대) 보이는 아이콘이 칸 가운데 오도록 이동
     (--s 확대 · --dx/--dy 이동 : 각 이미지의 실제 아이콘 위치 측정값) */
@media (max-width: 499px) {
  .tech-card,
  .tech-card:nth-child(n) {
    --ic: clamp(72px, 24vw, 85px);
    grid-template-columns: var(--ic) minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px 18px 18px 14px;
  }
  .tech-card__img,
  .tech-card__img--01,
  .tech-card__img--02,
  .tech-card__img--03 {
    align-self: center;
    justify-self: stretch;
    width: var(--ic);
    height: var(--ic);
    aspect-ratio: auto;
  }
  .tech-card__img img,
  .tech-card__img--02 img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: cover;
    transform: translate(var(--dx, 0), var(--dy, 0)) scale(var(--s, 1));
  }
  .tech-card__img--01 img { --s: 1.15; --dx: -4%;    --dy: 1.2%; }
  .tech-card__img--02 img { --s: 1.2;  --dx: -11.4%; --dy: 4.2%; }
  .tech-card__img--03 img { --s: 1.05; --dx: -3.2%;  --dy: -2.1%; }

  .tech-card__title { font-size: 20px; line-height: 1.35; letter-spacing: -0.02em; }   /* 요청 */
  .tech-card__desc { margin-top: 6px; font-size: 15px; line-height: 1.2; }   /* 요청 */
  .br-m499 { display: inline; }                   /* LINE UP 설명 줄바꿈 (요청) : …진화한 / 다양한… */
}

/* ~499px : 기업개요 이슈 카드 라벨 15px (요청) */
@media (max-width: 499px) {
  .issue-card__label,
  .issue-group--3 .issue-card__label { font-size: 15px; }
}
