/* ============================================================
   template03 — 지도사 홈 기본 스타일 (2026-11-05)
   · 자바스크립트 라이브러리를 쓰지 않습니다 (CSS + 아주 짧은 스크립트만)
   · 색은 아래 :root 변수만 바꾸면 회사 색으로 바뀝니다
   · 움직임 규칙: templates/template03/animation.md
   ============================================================ */

:root {
  --t3-ink: #0f2744;        /* 제목 */
  --t3-body: #475569;       /* 본문 */
  --t3-line: #e2e8f0;       /* 구분선 */
  --t3-bg: #ffffff;         /* 기본 배경 */
  --t3-bg-alt: #f7f9fc;     /* 번갈아 쓰는 배경 */
  --t3-main: #1a3a5c;       /* 회사 대표 색 */
  --t3-main-dark: #15304d;
  --t3-accent: #c8a24a;     /* 강조 (번호·지정 마크) */
  --t3-radius: 14px;
  --t3-ease: cubic-bezier(.22,.61,.36,1);
  --t3-head: 88px;          /* 머리글 높이 — 첫 화면에서 사진 위에 겹칠 때 쓴다 */
}

/* ── 공통 ── */
/* 왼쪽 선을 머리글(로고)·다른 화면과 같게 맞춘다 — 사이트 .wrap 과 같은 폭을 쓴다 */
.t3-wrap { width: min(1200px, calc(100% - 64px)); margin: 0 auto; }
.t3-kicker { margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .18em; color: var(--t3-accent); }
.t3-title { margin: 0 0 .7rem; font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; line-height: 1.3; color: var(--t3-ink); }
.t3-lead { margin: 0; font-size: 1rem; line-height: 1.9; color: var(--t3-body); }
.t3-section { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--t3-bg); }
.t3-section-alt { background: var(--t3-bg-alt); }

/* ── 머리글 (1단 메뉴 · 첫 화면에서는 사진 위에 겹친다) ──
   · 첫 화면: 어두운 띠로 사진 위에 얹힌다 (글자·로고는 흰색)
   · 스크롤하거나 메뉴를 열면 흰 띠로 바뀐다 (홈 스크립트가 is-solid 를 붙인다)
   · 안쪽 화면: 지금까지처럼 흰 머리글 그대로 (page-home 이 없으므로) */
.nav-phone { display: none; }   /* 휴대폰에서만 보이는 전화 단추 */

body.page-home .site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(6,16,28,.62) 0%, rgba(6,16,28,.26) 62%, rgba(6,16,28,0) 100%);
  border-bottom: 0;
}
body.page-home .brand-name { color: #fff; }
body.page-home .brand-sub { color: rgba(255,255,255,.75); }
body.page-home .main-nav > a { color: #fff; }
body.page-home .main-nav > a:hover { color: #e8d9a8; }
body.page-home .nav-cta { background: var(--t3-accent); color: #fff !important; }
body.page-home .nav-toggle { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); color: #fff; }
body.page-home .nav-toggle-bar,
body.page-home .nav-toggle-bar::before,
body.page-home .nav-toggle-bar::after { background: #fff; }

body.page-home .site-header.is-solid {
  background: var(--t3-bg);
  border-bottom: 1px solid var(--t3-line);
}
body.page-home .site-header.is-solid .brand-name { color: var(--t3-ink); }
body.page-home .site-header.is-solid .brand-sub { color: var(--t3-body); }
body.page-home .site-header.is-solid .main-nav > a { color: var(--t3-ink); }
body.page-home .site-header.is-solid .main-nav > a:hover { color: var(--t3-main); }
body.page-home .site-header.is-solid .nav-toggle { background: var(--t3-bg-alt); border-color: var(--t3-line); color: var(--t3-ink); }
body.page-home .site-header.is-solid .nav-toggle-bar,
body.page-home .site-header.is-solid .nav-toggle-bar::before,
body.page-home .site-header.is-solid .nav-toggle-bar::after { background: var(--t3-ink); }

/* ── 단추 ── */
.t3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.6rem; border-radius: 10px; font-size: .95rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--t3-ease), background .2s var(--t3-ease);
}
.t3-btn-main { background: var(--t3-main); color: #fff; }
.t3-btn-main:hover { background: var(--t3-main-dark); transform: translateY(-2px); }
.t3-btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.6); }
.t3-btn-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.t3-btn-line { background: #fff; color: var(--t3-main); border: 1px solid var(--t3-line); }
.t3-btn-line:hover { transform: translateY(-2px); }

/* ── 1. 히어로 (슬라이딩 아님 · 페이드 + 아주 느린 확대) ── */
.t3-hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh; overflow: hidden; background: #0b1a2b;
}
.t3-hero-bgs { position: absolute; inset: 0; }
.t3-hero-bg {
  position: absolute; inset: 0;
  background-image: var(--bg);                    /* 사진은 HTML 의 --bg 로 (휴대폰은 --bg-m) */
  background-position: 50% 50%; background-size: cover;
  opacity: 0; transform: scale(1);
  transition: opacity 1s var(--t3-ease), transform 3.2s linear;
}
.t3-hero-bg.is-on { opacity: 1; transform: scale(1.05); }
.t3-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,16,28,.5) 0%, rgba(6,16,28,.26) 45%, rgba(6,16,28,.04) 100%);
}
.t3-hero-mark {
  position: absolute; top: calc(var(--t3-head) + 14px); right: 20px; z-index: 3; margin: 0;
  display: flex; align-items: center; gap: .5rem; color: #fff; font-size: .78rem;
}
.t3-hero-mark img { width: 34px; height: auto; }
.t3-hero-inner { position: relative; z-index: 4; width: 100%; padding-bottom: clamp(3rem, 8vw, 5rem); color: #fff; }
.t3-hero-inner .t3-kicker { color: #e8d9a8; }
.t3-hero-inner h1 { margin: 0 0 .9rem; font-size: clamp(1.7rem, 5vw, 3rem); font-weight: 800; line-height: 1.28; }
/* 제목·설명·바로가기를 감싸는 네모 박스 — 화면 맨 왼쪽에 붙이고, 사진 위에서 글자가 잘 보이게 조금 어둡게 */
.t3-hero-box {
  display: inline-block; min-width: min(38rem, 100%); max-width: 46rem;
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.6rem);
  background: rgba(4, 12, 22, .58);
  border-radius: 2px;
}
/* 영문 문구도 박스 안 글자와 같은 선에 서게 한다 */
.t3-hero-inner .t3-kicker { margin-left: clamp(1.4rem, 3vw, 2.6rem); }
.t3-hero-box > :last-child { margin-bottom: 0; }
/* 글(제목·설명·바로가기)은 사진과 같은 박자로 부드럽게 바뀐다 */
.t3-hero-slide { transition: opacity .35s var(--t3-ease); }
.t3-hero-slide.is-fading { opacity: 0; }
/* 제목 아래 설명 글 — 뱃지가 아니라 보통 글자로 보이게 */
.t3-hero-desc {
  margin: 0 0 1.6rem; max-width: 34rem;
  color: rgba(255, 255, 255, .92); font-size: .98rem; line-height: 1.85;
}
/* 「바로가기」 — 오른쪽 맞춤 · 글자는 한 단계 작게 */
.t3-hero-more {
  display: flex; width: fit-content; margin-left: auto; align-items: center; gap: .4rem;
  padding-bottom: .2rem; border-bottom: 1px solid rgba(255, 255, 255, .55);
  color: #fff; font-size: .9rem; font-weight: 700; text-decoration: none;
}
.t3-hero-more:hover { color: #e8d9a8; border-bottom-color: #e8d9a8; }
.t3-hero-lead { max-width: 46rem; margin: 0 0 1.6rem; font-size: clamp(.95rem, 1.5vw, 1.1rem); line-height: 1.9; color: rgba(255,255,255,.92); }
.t3-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.t3-hero-down { position: absolute; right: 20px; bottom: 22px; z-index: 4; color: rgba(255,255,255,.85); font-size: .85rem; text-decoration: none; }
.t3-hero-down span { display: inline-block; animation: t3-bob 1.8s var(--t3-ease) infinite; }
@keyframes t3-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ── 2. 핵심 3카드 ── */
.t3-core-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.t3-core-card {
  display: block; padding: 1.6rem 1.4rem; color: inherit; text-decoration: none;
  background: #fff; border: 1px solid var(--t3-line); border-radius: var(--t3-radius);
  transition: transform .2s var(--t3-ease), box-shadow .2s var(--t3-ease);
}
.t3-core-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,39,68,.10); }
.t3-core-no { display: block; margin-bottom: .5rem; font-size: .8rem; font-weight: 800; letter-spacing: .14em; color: var(--t3-accent); }
.t3-core-card h2 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--t3-ink); }
.t3-core-card p { margin: 0 0 .9rem; font-size: .92rem; line-height: 1.8; color: var(--t3-body); }
.t3-core-more { font-size: .85rem; font-weight: 700; color: var(--t3-main); }

/* ── 3. 회사소개 ── */
.t3-about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.t3-about-photo { margin: 0; overflow: hidden; border-radius: var(--t3-radius); }
.t3-about-photo img { display: block; width: 100%; height: auto; }
.t3-about .t3-btn { margin-top: 1.2rem; }

/* ── 4. 자격·지정 ── */
.t3-cert-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.t3-cert-list li { padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--t3-line); border-left: 4px solid var(--t3-accent); border-radius: 10px; }
.t3-cert-list strong { display: block; font-size: .98rem; color: var(--t3-ink); }
.t3-cert-list span { display: block; margin-top: .3rem; font-size: .85rem; line-height: 1.7; color: var(--t3-body); }

/* ── 5. 사업분야 ── */
.t3-area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.t3-area-card { padding: 1.4rem; background: #fff; border: 1px solid var(--t3-line); border-radius: var(--t3-radius); }
.t3-area-no { font-size: .78rem; font-weight: 800; letter-spacing: .14em; color: var(--t3-accent); }
.t3-area-card h3 { margin: .4rem 0 .5rem; font-size: 1.05rem; color: var(--t3-ink); }
.t3-area-card p { margin: 0 0 .8rem; font-size: .9rem; line-height: 1.8; color: var(--t3-body); }
.t3-area-items { margin: 0; padding: 0; list-style: none; }
.t3-area-items a { display: block; padding: .35rem 0; font-size: .88rem; color: var(--t3-main); text-decoration: none; }
.t3-area-items a:hover { text-decoration: underline; }

/* ── 6. 왜 우리인가 ── */
.t3-strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; }
.t3-strength { padding: 1.3rem; background: #fff; border: 1px solid var(--t3-line); border-radius: var(--t3-radius); }
.t3-strength-no { font-size: .78rem; font-weight: 800; letter-spacing: .14em; color: var(--t3-accent); }
.t3-strength h3 { margin: .4rem 0 .5rem; font-size: 1rem; color: var(--t3-ink); }
.t3-strength p { margin: 0; font-size: .88rem; line-height: 1.8; color: var(--t3-body); }

/* ── 7. 소식 ── */
.t3-news { margin: 1.4rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--t3-line); }
.t3-news li { border-bottom: 1px solid var(--t3-line); }
.t3-news a { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem .2rem; font-size: .95rem; color: var(--t3-ink); text-decoration: none; }
.t3-news time { flex: none; font-size: .85rem; color: #94a3b8; }

/* ── 8. 실적 ── */
.t3-work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 1.4rem; }
.t3-work-grid img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* ── 등장 효과 (한 번만 · 움직임 싫으면 정지) ── */
.t3-rise { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--t3-ease), transform .5s var(--t3-ease); }
.t3-rise.is-in { opacity: 1; transform: none; }

/* ── 휴대폰 (640px 이하) ── */
@media (max-width: 640px) {
  :root { --t3-head: 68px; }
  .t3-wrap { width: calc(100% - 40px); }
  .t3-core-grid, .t3-area-grid, .t3-cert-list, .t3-strength-grid { grid-template-columns: 1fr; }
  .t3-about { grid-template-columns: 1fr; }
  .t3-about-photo { order: -1; }
  .t3-hero-actions { flex-direction: column; align-items: stretch; }
  .t3-btn { width: 100%; }
  .t3-hero-mark { top: calc(var(--t3-head) + 8px); right: 12px; font-size: .72rem; }
  .t3-hero-bg { background-image: var(--bg-m, var(--bg)); }   /* 휴대폰은 세로 사진으로 (좌우 잘림 방지) */
  .t3-hero-down { display: none; }
  .t3-work-grid { grid-template-columns: repeat(2, 1fr); }

  /* 휴대폰 머리글: 로고 + 전화 + ☰ 세 개만 (layout.md) */
  .brand-text { display: none; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 9px 11px; }
  .t3-hero::after { background: linear-gradient(180deg, rgba(6,16,28,.5) 0%, rgba(6,16,28,.28) 55%, rgba(6,16,28,.55) 100%); }
  .t3-hero-box { display: block; max-width: none; }
  .nav-phone {
    display: inline-flex; align-items: center; gap: 4px;
    margin-left: auto; margin-right: 6px;
    padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 700;
    background: var(--t3-accent); color: #fff; text-decoration: none;
  }
  body.page-home .nav-phone { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.5); }
  body.page-home .site-header.is-solid .nav-phone { background: var(--t3-accent); border-color: transparent; }
}

/* ── 움직임을 싫어하는 사람 설정 ── */
@media (prefers-reduced-motion: reduce) {
  .t3-hero-bg, .t3-hero-bg.is-on { transition: none; transform: none; }
  .t3-hero-slide { transition: none; }
  .t3-hero-down span { animation: none; }
  .t3-rise { opacity: 1; transform: none; transition: none; }
  .t3-btn:hover, .t3-core-card:hover { transform: none; }
}

