﻿@charset "utf-8";
/* 섹션별 CSS
   - 섹션마다 한 블록: 섹션 → 아이템 → 모바일(@media) → 데스크톱 한 화면 맞춤(@media) 순서
   - 섹션에서 변수를 정하면 아래 아이템은 모두 상속받아 씀
       --bg 배경 · --fg 글자색 · --gray 보조글자(p, small) · --accent 포인트(제목·태그·링크)
   - 공통 틀(.head .g .row .tags .btn)과 등장 애니메이션은 common.css */

section,
footer {
  background: var(--bg, #fff);
  color: var(--fg, var(--ink))
}


/* ───────── 히어로 #top ───────── */
#top {
  --fg: #fff;
  --bg: url(../assets/hero-lines.svg) center/cover no-repeat, var(--glow);
  /* 발급기·원 가로 중심 = 세 번째 바로가기(ePostBox) 버튼 가운데 — 화면 폭이 달라도 따라감
     오른쪽 끝에서 거리 = 좌우 여백 + 버튼 폭의 절반 (버튼 폭 = (전체 - 여백×2 - 간격 2rem×2) ÷ 3) */
  --pad: max(20px, (100% - var(--w)) / 2);
  --kiosk-x: calc(var(--pad) + (100% - 2 * var(--pad) - 4rem) / 6);
  --kiosk-y: 60%;                                          /* 발급기·원형 라인 세로 중심 (헤더 아래 공간 기준) */
  --kiosk-w: 340px;                                        /* 발급기 폭 */
  --ring-w: 820px;                                          /* 원형 라인 크기 */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 120px 0;
  overflow: hidden;

  h1 {
    font-size: clamp(64px, 13vw, 180px);
    font-weight: 800;
    line-height: .9;
    text-align: center;
    color: #6ee2ff3d
  }

  .intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px
  }

  .intro h2 {
    position: absolute;
    left: 35%;
    top: 30%;
    width: 700px;
    transform: translate(-50%, 0);
    font-weight: 800;
    color: #ccd4f8;

    span {
      color: var(--fg)
    }
  }

  /* 발급기 — 위치·크기는 #top 의 변수로, 뒤의 원형 라인이 같은 값으로 중심을 맞춤 */
  .kioskimg {
    position: absolute;
    right: calc(var(--kiosk-x) - var(--kiosk-w) / 2);
    top: var(--kiosk-y);
    width: var(--kiosk-w);
    transform: translate(0, -50%)
  }

  /* 발급기 중심의 원형 라인 애니메이션 (assets/hero-ring.svg 안에서 그려짐·회전·빛 이동) */
  .intro::before {
    content: "";
    position: absolute;
    right: calc(var(--kiosk-x) - var(--ring-w) / 2);
    top: var(--kiosk-y);
    width: var(--ring-w);
    aspect-ratio: 1;
    translate: 0 -50%;
    background: url(../assets/hero-ring.svg) center/contain no-repeat;
    pointer-events: none
  }

  /* 관련 사이트 바로가기 — 첫 화면 하단 흰 버튼 */
  .sites {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    width: 100%
  }

  .sites a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 24px;
    margin-bottom: 12rem;
    border-radius: 10rem;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 30px #0004
  }

  .sites img {
    height: 50px
  }

  .sites span {
    font-size: 80%;
    font-weight: 700
  }

  @media (max-width:760px) {
    .intro h2,
    .kioskimg {
      position: static;
      width: auto;
      transform: none
    }

    .kioskimg {
      width: 180px;
      margin-inline: auto
    }

    .intro::before {
      display: none
    }

    .sites {
      flex-direction: column;
      gap: 12px;
      padding-block: 32px
    }

    .sites a {
      margin-bottom: 0
    }
  }
}


/* ───────── 회사소개 #about ───────── */
#about {
  /* 첫 화면 배경을 그대로 이어받음 — 경계 위쪽은 첫 화면 아래 색(#0b0b0c + 왼쪽 아래 파란 빛)과 같고, 아래로 갈수록 짙은 남색 */
  --fg: #fff;
  --gray: #a2a8b4;
  --bg: radial-gradient(50% 60% at 15% -10%, #1f5fe099, transparent 70%), radial-gradient(60% 60% at 85% 110%, #1f5fe033, transparent 70%), linear-gradient(#0b0b0c, #0a1226);
  margin-top: -1px;                                        /* 첫 화면과 사이 1px 틈(흰 줄) 방지 */
  text-align: center;

  p {
    font-size: 1.4rem
  }

  .g {
    margin-top: 64px;
    text-align: left
  }

  .tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;                           /* 글 시작 높이를 모든 카드 동일하게 */
    gap: clamp(28px, 5vh, 56px);
    aspect-ratio: 1;                                       /* 정사각형 카드 */
    padding: 32px 28px;
    border-radius: var(--r);
    /* 파란 유리 — 반투명 그라데이션 + 뒤 배경 흐림 + 위쪽 빛 반사 */
    background: linear-gradient(145deg, #5b9bff4d 0, #1f5fe02e 45%, #0f3a8a1f 100%);
    border: 1px solid #ffffff2e;
    box-shadow: inset 0 1px 0 #ffffff40, 0 20px 40px #0005;
    backdrop-filter: blur(14px)
  }

  .tile small {
    color: #cfe0ff
  }

  /* 카드 아이콘 — 배경 없이 크게 */
  .tile img {
    width: 56px
  }

  /* 모바일 — 정사각형 대신 내용 높이 (한 줄 1장이라 너무 길어짐) */
  @media (max-width:760px) {
    .tile {
      aspect-ratio: auto;
      gap: 24px;
      padding: 28px 24px
    }

    .tile img {
      width: 44px
    }
  }

}


/* ───────── 수행 프로세스 #process — 흰 카드 + 단계별 색(--step): STEP 글자 · 아이콘 · 타이틀 같은 색 (아이콘 색은 assets/step-*.svg 안에도 같은 값) ───────── */
#process {
  --bg: var(--soft);                                       /* 연회색 바탕 + 흰 카드 */

  .g {
    --min: 160px;                                          /* 1100px 이상에서 5칸 한 줄 유지 */
    gap: 56px;                                             /* 카드 사이 간격 */
    counter-reset: step
  }

  .tall {
    --step: #4f86f0;
    --tint: color-mix(in srgb, var(--step) 14%, #fff);   /* 단계색을 연하게 섞은 바탕 */
    counter-increment: step;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px;
    padding: 32px 28px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    box-shadow: 0 12px 30px #1a1a1c0d;
    text-align: center
  }

  /* 단계별 색 — 파랑 · 민트 · 라벤더 · 살구 · 로즈 */
  .tall:nth-child(2) { --step: #2fbf9a }
  .tall:nth-child(3) { --step: #8b6cf0 }
  .tall:nth-child(4) { --step: #f59e4b }
  .tall:nth-child(5) { --step: #ef6b8e }

  .tall::before {
    content: "STEP " counter(step, decimal-leading-zero);
    padding: 4px 14px;
    border-radius: 99px;
    background: var(--tint);
    color: var(--step);
    font-size: 15px;
    font-weight: 700
  }

  /* 단계 아이콘 — STEP 배지와 타이틀 사이 정중앙(위아래 여백 auto), 단계색 연한 원 안에 */
  /* 단계 아이콘 — 모든 카드에서 같은 높이 (배지 아래 고정 간격) */
  .tall img {
    width: 48px;
    margin: 24px 0 14px
  }

  .tall b {
    font-size: 26px;
    color: var(--step)
  }

  .tall p {
    margin-top: 8px;
    color: #4b5160
  }

  /* 단계 사이 화살표 — 다섯 칸이 한 줄일 때만 */
  @media (min-width:1100px) {
    .tall+.tall::after {
      content: "→";
      position: absolute;
      left: -42px;
      top: 50%;
      translate: 0 -50%;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #8a8f98;                                 /* 무채색 회색 */
      color: #fff;
      font-size: 15px
    }
  }

  @media (min-width:761px) and (hover:hover) {
    .tall {
      min-height: min(320px, 38vh)                         /* 프로세스 카드 높이 */
    }
  }
}


/* ───────── 제품 #products — 다크, 카드마다 왼쪽 세로로 긴 발급기 사진 + 오른쪽 설명 ───────── */
#products {
  --bg: var(--dark);
  --fg: #fff;
  --gray: #ffffffa6;
  --accent: #8fb6ff;
  --photo-h: 440px;                                        /* 발급기 사진 높이 */

  .g {
    --min: 340px
  }

  /* 카드 전체 흰색 — 카드 안에서는 글자·포인트 색을 밝은 바탕용으로 다시 정해 상속 */
  article {
    --gray: #6b7280;
    --accent: #1f5fe0;
    display: flex;
    flex-wrap: wrap;                                       /* 태그 줄은 카드 맨 아래 한 줄로 */
    align-items: center;
    align-content: space-between;                          /* 태그 줄을 카드 맨 아래에 → 세 카드 버튼 높이 통일 */
    gap: 14px 20px;
    padding: 14px 20px 20px 14px;
    border-radius: var(--r);
    background: #fff;
    color: var(--ink)
  }

  /* 사진 높이는 폭에 맞춰 자동(원본 비율) → 위아래 빈 공간 없음, 최대 --photo-h */
  img {
    flex: 0 0 40%;
    width: 40%;
    height: auto;
    max-height: var(--photo-h);
    padding: 8px;
    border-radius: calc(var(--r) - 8px);
    background: #fff;
    object-fit: contain
  }

  article>div:not(.tags) {
    flex: 1;
    min-width: 0
  }

  h3 {
    font-size: clamp(20px, 1.7vw, 26px)
  }

  p {
    margin-top: 8px
  }

  /* 인증번호·용지 태그 — 사진·설명 아래, 구분선 위에 가운데 정렬 */
  .tags {
    flex: 1 0 100%;
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid var(--line)
  }

  .tags span {
    padding: 4px 12px;
    font-size: 14px
  }

  @media (max-width:760px) {
    --photo-h: 320px
  }

  @media (min-width:761px) and (hover:hover) {
    --photo-h: clamp(300px, 52vh, 520px)
  }
}


/* ───────── 차세대 키오스크 #vision — 4칸 가운데 정렬 ───────── */
#vision {
  /* 4칸 — 설명 고정높이(100px) 없이 내용만큼, 태그는 설명 바로 아래 */
  .row>* {
    text-align: center
  }

  .tags {
    margin-top: 20px
  }

  /* 타이틀 위 정사각형 일러스트 (assets/vision-*.svg) */
  img {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1;
    margin: 0 auto 20px;
    border-radius: var(--r)
  }

  @media (min-width:761px) and (hover:hover) {
    .row>* {
      padding-block: clamp(16px, 2vh, 40px)
    }

    img {
      max-width: min(240px, 24vh)
    }

    p {
      margin-top: 6px
    }
  }
}


/* ───────── 제작·공급 경험 #portfolio — 차세대 외함 크게 + 공급 모델 작은 박스 ───────── */
#portfolio {
  --bg: var(--soft);
  --stage-h: 520px;
  --pad: clamp(28px, 5vh, 48px);                           /* 외함 위아래 여백 */
  --img-w: calc((var(--stage-h) - 2 * var(--pad)) * .875); /* 외함 사진 폭 (원본 684:782) */

  /* 무대: 외함 이미지를 크게, 그 위에 모델 박스를 겹침 */
  .stage {
    position: relative;
    display: block
  }

  /* 회색 판 위에 외함 사진 — 위아래 여백, 사진 가장자리는 판 색으로 스며들게 */
  .main {
    display: flex;
    align-items: center;
    height: var(--stage-h);
    padding: var(--pad) 0 var(--pad) 5%;
    border-radius: var(--r);
    background: #5a5957
  }

  .main img {
    width: auto;
    height: 100%;
    --fade: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: var(--fade), linear-gradient(transparent, #000 6%, #000 94%, transparent);
    mask-composite: intersect
  }

  .main figcaption {
    position: absolute;
    left: 24px;
    bottom: 20px;
    color: #fff
  }

  figcaption,
  li {
    display: flex;
    align-items: center;
    gap: 8px
  }

  small {
    padding: 3px 10px;
    border: 1px solid var(--accent);
    border-radius: 99px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap
  }

  small.on {
    background: var(--accent);
    color: #fff
  }

  /* 공급 모델 — 오른쪽 가운데에 작은 흰 박스 나열 */
  /* 외함 오른쪽 남는 공간의 가운데 */
  .models {
    position: absolute;
    left: calc(5% + var(--img-w));
    right: 0;
    top: 50%;
    justify-content: center;
    transform: translateY(-50%);  /* translate 는 등장 애니메이션이 쓰므로 transform 사용 */
    display: flex;
    gap: 12px
  }

  li {
    flex-direction: column;
    gap: 6px;
    width: 170px;
    padding: 14px 12px 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 36px #0003
  }

  li img {
    width: 100%;
    height: 180px;
    object-fit: contain
  }

  li b {
    font-size: 15px
  }

  @media (max-width:760px) {
    --stage-h: 360px;

    .models {
      position: static;
      transform: none;
      gap: 8px;
      margin-top: 12px
    }

    /* 작은 모델 3장 한 줄 */
    li {
      flex: 1 1 0;
      width: auto;
      padding: 10px 6px 12px;
      border-radius: 14px
    }

    li img {
      height: 110px
    }

    li b {
      font-size: 12px
    }

    li small {
      padding: 2px 7px;
      font-size: 10px
    }
  }

  @media (min-width:761px) and (hover:hover) {
    --stage-h: min(50vh, 460px);

    li img {
      height: min(18vh, 160px)
    }
  }
}




/* ───────── 차세대 개발·설계 #design — 세부 2장 ───────── */
#design {
  .g {
    --min: 320px;
    gap: 96px;
    max-width: 880px;                                       /* 전체 폭을 줄여 사진을 작게 */
    margin-inline: auto
  }

  img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--r);
    background: var(--soft);
    object-fit: cover
  }

  figcaption {
    margin-top: 12px;
    font-weight: 600
  }

  @media (min-width:761px) and (hover:hover) {
    img {
      max-height: 34vh
    }
  }

  @media (max-width:760px) {
    .g {
      gap: 32px
    }
  }
}


/* ───────── 연혁 #history ───────── */
#history {
  --bg: var(--soft);

  li {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--line)
  }

  li b {
    flex: 0 0 3em;
    font-size: 130%;
    font-weight: 800;
    color: var(--accent)
  }

  @media (max-width:760px) {
    li {
      flex-direction: column;
      gap: 6px;
      height: auto
    }
  }

  /* 모든 줄 높이 동일 — 가장 긴 줄에 맞춤 */
  @media (min-width:761px) {
    ol {
      display: grid;
      grid-auto-rows: 1fr
    }
  }

  @media (min-width:761px) and (hover:hover) {
    li {
      padding-block: clamp(14px, 2.2vh, 28px)
    }
  }
}


/* ───────── 고객센터 #contact ───────── */
#contact {
  .row {
    align-items: center
  }

  img {
    width: 500px;
    max-width: 100%;
    height: auto;
    border-radius: var(--r);
    background: #eef2f8;
    object-fit: contain
  }

  dl {
    display: flex;
    flex-wrap: wrap;
    row-gap: 20px
  }

  dt {
    flex: 0 0 110px;
    font-weight: 700;
    color: var(--accent)
  }

  dd {
    flex: 1 1 calc(100% - 110px)
  }

  @media (max-width:760px) {
    img {
      height: auto
    }
  }

  @media (min-width:761px) and (hover:hover) {
    .row>* {
      padding-block: clamp(24px, 4vh, 72px)
    }

    img {
      max-height: 46vh
    }
  }
}


/* ───────── 푸터 — 파랑·검정 그라데이션 + 초대형 워드마크 ───────── */
footer {
  --fg: #fff;
  --gray: #ffffffb3;
  --bg: radial-gradient(80% 90% at 80% 100%, #1f5fe0 0, #0f3a8a 35%, #040a16 75%);
  padding-block: 120px 48px;
  overflow: hidden;

  h2 {
    font-size: clamp(32px, 4vw, 52px)
  }

  p {
    margin: 16px 0 32px
  }

  .info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-top: 96px;
    padding-top: 32px;
    border-top: 1px solid #ffffff26;
    color: var(--gray)
  }

  .info strong {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 800;
    line-height: 1;
    color: var(--fg)
  }

  @media (min-width:761px) and (hover:hover) {
    .info {
      margin-top: auto
    }
  }
}
