/* ===== 색상 (여기만 바꾸면 전체 색이 바뀝니다) ===== */
:root {
  --primary: #1e3a8a;   /* 메인 색: 딥 블루 */
  --accent: #ff7a59;    /* 포인트 색: 코랄 */
  /* 이전 색 (되돌릴 때 위 두 줄에 넣기)
     차콜 + 오렌지: #222831 / #ff6b1a
     네이비 + 골드: #003e51 / #d4ac67 */
  --heading: var(--primary);  /* 제목 글자색 */
  /* 첫 화면 큰 문장 폰트: 영문은 Anton, 한글은 Black Han Sans(검은고딕) */
  --font-display: 'Anton', 'Black Han Sans', 'Pretendard Variable', sans-serif;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --text: #212121;
  --text-sub: #6b6b6b;
  --border: #eaeaea;
  --card: #ffffff;
  --placeholder: #e4e8ea;
}

[data-theme="dark"] {
  --primary: #2f4fb0;
  --heading: #f2f2f2;
  --bg: #121212;
  --bg-alt: #1c1c1e;
  --text: #f2f2f2;
  --text-sub: #a1a1aa;
  --border: #2e2e33;
  --card: #1f1f22;
  --placeholder: #2a2d30;
}

/* ===== 기본 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.02em;
  word-break: keep-all;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* 사진이 아직 없을 때 보이는 빈 칸 */
.ph {
  background: var(--placeholder);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub); font-size: 14px;
}
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; }
.ph video { display: block; }

/* ===== 헤더 ===== */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--heading); letter-spacing: -0.04em; }
.nav ul { list-style: none; }
.nav-list { display: flex; gap: 8px; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; padding: 26px 16px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: var(--text);
}
.nav-item > a:hover, .nav-item.active > a { color: var(--accent); }
/* 마우스를 올리면 펼쳐지는 세부 메뉴 */
.sub-menu {
  position: absolute; top: 100%; left: 50%; min-width: 170px;
  transform: translate(-50%, 6px);
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.sub-menu li + li { border-top: 1px solid var(--border); }
.sub-menu a { display: block; padding: 13px 20px; text-align: center; font-size: 15px; white-space: nowrap; }
.sub-menu a:hover { color: var(--accent); background: var(--bg-alt); }
.header-actions { display: flex; align-items: center; gap: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 메뉴로 이동했을 때 제목이 위쪽 메뉴에 가려지지 않게 */
[id] { scroll-margin-top: 90px; }
.theme-toggle, .menu-toggle {
  background: none; border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem;
}
.menu-toggle { display: none; }
/* 휴대폰 메뉴에만 보이는 '상담 신청' */
.nav-item.nav-cta { display: none; }

/* ===== 1. 첫 화면: 꽉 찬 사진 슬라이드 ===== */
.hero {
  position: relative; overflow: hidden;
  height: clamp(560px, calc(100svh - 76px), 880px);
  background: #0f1830; color: #fff;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); transition: transform 6s ease-out;
}
.hero-slide.active img { transform: scale(1); }
/* 사진 위 글자가 잘 읽히도록 왼쪽을 어둡게 */
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 18, 40, .82) 0%, rgba(10, 18, 40, .55) 45%, rgba(10, 18, 40, .12) 100%);
}
.hero-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-bottom: 60px;
}
/* 글자가 아래에서 살짝 올라오며 나타나요 */
.hero-content > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.hero-slide.active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.active .hero-content > :nth-child(2) { transition-delay: .1s; }
.hero-slide.active .hero-content > :nth-child(3) { transition-delay: .2s; }
.hero-slide.active .hero-content > :nth-child(4) { transition-delay: .3s; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 17px; margin-bottom: 20px; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-family: var(--font-display);
  font-weight: 400; line-height: 1.18; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--accent); white-space: nowrap; }
.hero-sub { margin-top: 24px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255, 255, 255, .85); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--primary); }
/* 아래쪽: 점 버튼 + 멈춤 + 고객사 한 줄 */
.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 36px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.hero-controls { display: flex; align-items: center; gap: 14px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .45); transition: width .3s, background .3s;
}
.hero-dots button[aria-current] { width: 32px; background: var(--accent); }
.hero-pause {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .5); background: none; color: #fff; font-size: 10px;
}
.hero-clients { font-size: 14px; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.hero-clients strong { color: #fff; font-weight: 700; }
/* 누끼 배너 (data.js 의 HERO_STYLE = 'cutout'): 파스텔 배경 + 오른쪽에 제품 */
.hero-cutout { background: #f6eedf; color: #16213e; }
.hero-cutout .hero-slide { background: var(--slide-bg); }
.hero-cutout .hero-slide::after { display: none; }
/* 제품 뒤의 큰 흰 원 */
.hero-cutout .hero-slide::before {
  content: ''; position: absolute; z-index: 0;
  width: min(58vw, 760px); aspect-ratio: 1; border-radius: 50%;
  right: max(2vw, calc(50% - 640px)); top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .55) 55%, rgba(255, 255, 255, 0) 72%);
}
.hero-product {
  position: absolute; z-index: 1; top: 0; bottom: 0;
  right: max(3vw, calc(50% - 620px)); width: min(48vw, 620px);
  display: flex; align-items: center; justify-content: center;
}
/* 옆으로 긴 제품 사진 (data.js 의 wide: true) */
.hero-product.wide { right: max(2vw, calc(50% - 660px)); width: min(52vw, 720px); }
.hero-cutout .hero-slide .hero-product img {
  position: static; width: 100%; height: auto; max-height: 72%; object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(22, 33, 62, .18));
  opacity: 0; transform: translateY(30px) scale(.96);
  transition: opacity .9s ease .15s, transform 1.2s cubic-bezier(.2, .8, .2, 1) .15s;
}
.hero-cutout .hero-slide.active .hero-product img { opacity: 1; transform: none; }
.hero-cutout .hero-content { z-index: 2; }
.hero-cutout .hero-content > * { max-width: min(44%, 500px); }
.hero-cutout .hero-title { font-size: clamp(2.2rem, 4.2vw, 3.8rem); color: #16213e; }
.hero-cutout .hero-sub { color: #4b5368; }
.hero-cutout .btn-outline-light { border-color: rgba(22, 33, 62, .35); color: #16213e; }
.hero-cutout .btn-outline-light:hover { background: #16213e; border-color: #16213e; color: #fff; }
.hero-cutout .hero-dots button { background: rgba(22, 33, 62, .22); }
.hero-cutout .hero-dots button[aria-current] { background: var(--accent); }
.hero-cutout .hero-pause { border-color: rgba(22, 33, 62, .35); color: #16213e; }
.hero-cutout .hero-clients { color: #4b5368; text-shadow: none; }
.hero-cutout .hero-clients strong { color: #16213e; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide img, .hero-content > * { transition: none; }
  .hero-slide img { transform: none; }
  .hero-cutout .hero-slide .hero-product img { transition: none; transform: none; }
}

/* ===== 2. 숫자로 보는 회사 ===== */
.stats-band { padding: 80px 0; background: var(--primary); color: #fff; }
[data-theme="dark"] .stats-band { background: #1a1d22; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats li { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; border-left: 2px solid var(--accent); }
.stats strong { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats li > span { color: rgba(255, 255, 255, .75); font-size: 15px; }

/* 고객사: 흘러가는 로고 카드 (토이미라클 PARTNER 방식) */
.partner-head .section-en { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 400; letter-spacing: 0.02em; line-height: 1; margin-bottom: 18px; }
.partner-flow { display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.partner-track, .partner-set ul { list-style: none; display: flex; }
.partner-track { width: max-content; animation: partner-flow 60s linear infinite; }
.partner-row.reverse .partner-track { animation-direction: reverse; }
.partner-row:nth-child(2) .partner-track { animation-duration: 70s; }
.partner-row:nth-child(4) .partner-track { animation-duration: 66s; }
.partner-flow:hover .partner-track { animation-play-state: paused; }
.partner-set ul { gap: 16px; padding-right: 16px; }
.partner-card {
  width: 190px; height: 104px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 12px 16px; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  transition: border-color .2s, transform .2s;
}
.partner-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.partner-card strong { font-size: 17px; font-weight: 800; color: var(--heading); letter-spacing: -0.04em; line-height: 1.3; }
.partner-card span { font-size: 12px; color: var(--text-sub); }
.partner-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes partner-flow { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .partner-flow { -webkit-mask-image: none; mask-image: none; }
  .partner-track { animation: none; width: auto; }
  .partner-set ul { flex-wrap: wrap; justify-content: center; padding: 0; }
  .partner-set { width: 100%; }
  .partner-set[aria-hidden] { display: none; }
}
@media (max-width: 600px) {
  .partner-card { width: 150px; height: 88px; }
  .partner-card strong { font-size: 15px; }
  .partner-flow, .partner-set ul { gap: 10px; }
  .partner-set ul { padding-right: 10px; }
}

/* ===== 3. 강점 (사진 한 장에 장점 하나씩) ===== */
.why { padding: 110px 0 50px; }
.why .section-title { margin-bottom: 20px; }
.why-item {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center;
  padding: 60px 0;
}
.why-item:nth-child(even) .why-photo { order: 2; }
.why-photo { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; }
.why-no { color: var(--accent); font-weight: 700; font-size: 15px; }
.why-text h3 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.04em; margin: 12px 0 16px; }
.why-text p { color: var(--text-sub); font-size: 17px; }

/* ===== 하위 페이지 제목 + 세부 메뉴 탭 ===== */
/* 하위 페이지 위쪽: 종이 질감의 베이지 배경 + 큰 영어 제목 (왼쪽 정렬) */
.page-hero {
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding: 100px 0 90px; background: var(--paper), #ebe6dd;
}
[data-theme="dark"] .page-hero { background: var(--paper), #24221f; }
.page-en { font-size: clamp(2.4rem, 5.5vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: var(--text); }
.page-hero h1 { margin-top: 18px; font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; letter-spacing: -0.03em; }
.page-hero p:last-child { margin-top: 8px; color: var(--text); opacity: .75; font-size: 16px; max-width: 40em; }
/* 회색 탭 바: 지금 보고 있는 부분은 주황색 */
.sub-tabs { display: flex; justify-content: center; background: #a19d96; padding: 0 max(20px, calc(50% - 600px)); }
[data-theme="dark"] .sub-tabs { background: #3a3835; }
.sub-tabs a {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 22px 10px; color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .2s;
}
.sub-tabs a svg { width: 18px; height: 18px; flex: none; }
.sub-tabs a:hover, .sub-tabs a.active { background: var(--accent); }

/* ===== 공통 섹션 ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-en { text-align: center; color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: 0.16em; margin-bottom: 10px; }
.section-en.left, .section-dark .section-en { text-align: left; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--accent); color: #fff; }

/* 상담 신청 안내 띠 */
.cta-band { padding: 80px 0; background: var(--accent); color: #fff; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cta-inner h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.cta-inner p { font-size: 17px; opacity: .9; max-width: 36em; }
.cta-inner .btn { margin-top: 10px; }

/* 두 갈래 안내 (OEM / ODM) — 두 번째 카드는 진한 색으로 */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 44px 40px; border-radius: 24px;
  border: 1px solid var(--border); background: var(--card);
}
.path-card:nth-child(2) { background: var(--primary); border-color: transparent; color: #fff; }
.path-q { font-weight: 700; color: var(--accent); }
.path-tag { font-family: 'Anton', var(--font-display); font-size: 44px; line-height: 1.1; color: var(--heading); }
.path-card:nth-child(2) .path-tag { color: #fff; }
.path-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.04em; }
.path-desc { color: var(--text-sub); font-size: 16px; }
.path-card:nth-child(2) .path-desc { color: rgba(255, 255, 255, .8); }
.path-flow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.path-flow li {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--bg-alt); font-size: 14px; font-weight: 600;
}
.path-flow b {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px;
}
.path-card:nth-child(2) .path-flow li { background: rgba(255, 255, 255, .14); }
.paths-note { margin-top: 28px; text-align: center; color: var(--text-sub); }
.paths-note strong { color: var(--text); }

/* 자주 묻는 질문 (누르면 펼쳐짐) */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0; font-size: 18px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { color: var(--accent); margin-right: 10px; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--accent);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 48px 24px 34px; color: var(--text-sub); font-size: 16px; }

/* ABOUT: 회사 소개 */
.about-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.about-heading { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.05em; color: var(--heading); text-wrap: balance; }
.about-body { display: flex; flex-direction: column; gap: 18px; font-size: 17px; color: var(--text-sub); max-width: 38em; }

/* ABOUT: 연혁 */
.timeline { list-style: none; max-width: 820px; margin: 50px auto 0; }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 1px solid var(--border); }
.timeline-year { font-family: 'Anton', var(--font-display); font-size: 40px; line-height: 1; color: var(--accent); }
.timeline h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.timeline p { color: var(--text-sub); }

/* BUSINESS: OEM · ODM */
.biz-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.biz-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.05em; color: var(--heading); }
.biz-cards { display: grid; gap: 16px; }
.biz-card { padding: 28px 30px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.biz-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--accent); }
.biz-card h3 { font-size: 20px; font-weight: 700; margin: 6px 0 6px; }
.biz-card p { color: var(--text-sub); }

/* PRODUCTS: 분류별 소개 */
.product-section { padding: 100px 0; }
.product-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; }
.product-no { font-family: 'Anton', var(--font-display); font-size: 22px; color: var(--accent); }
.product-en { margin-top: 6px; font-size: 14px; font-weight: 800; letter-spacing: 0.14em; color: var(--text-sub); }
.product-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; color: var(--heading); margin: 4px 0 14px; }
.product-desc { font-size: 17px; color: var(--text-sub); }
.product-items-label { margin-top: 28px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); }
.product-items { list-style: none; margin: 8px 0 30px; }
.product-items li { padding: 9px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.product-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-photos figure { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; }
.product-photos figcaption {
  position: absolute; left: 10px; bottom: 10px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 600;
}

/* CONTACT: 연락처 */
.contact-heading { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.05em; color: var(--heading); margin-bottom: 16px; }
.contact-info { list-style: none; margin-top: 32px; border-top: 1px solid var(--border); }
.contact-info li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-info span { width: 52px; flex: none; color: var(--text-sub); font-size: 14px; padding-top: 2px; }
.section-title { font-size: 36px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.35; text-align: center; color: var(--heading); }
.section-desc { text-align: center; color: var(--text-sub); font-size: 16px; margin: 10px 0 50px; }

/* ===== 4. 제작 사례 (큼직한 사진) ===== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filters button {
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.filters button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1024px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.work-more-wrap { text-align: center; margin-top: 48px; }
.work-more-wrap .btn[hidden] { display: none; }
.work-card .work-photo {
  aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  transition: transform .4s;
}
.work-card:hover .work-photo { transform: scale(1.02); }
.work-info { margin-top: 18px; }
.work-client { color: var(--accent); font-weight: 700; font-size: 14px; }
.work-info h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 6px; }
.work-meta { color: var(--text-sub); font-size: 15px; }

/* ===== 5. 진행 과정 ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 22px;
}
.step-no { color: var(--accent); font-weight: 800; font-size: 15px; }
.steps h3 { font-size: 19px; font-weight: 700; margin: 10px 0 8px; }
.steps p { color: var(--text-sub); font-size: 15px; }

/* ===== 제작 방법 페이지: 토이미라클처럼 가운데에 큰 영어 제목 ===== */
[data-page="business"] .section-en { font-size: clamp(1.9rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); margin-bottom: 12px; }
[data-page="business"] .section-title { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 500; color: var(--text); }
[data-page="business"] .section-desc { color: var(--text); opacity: .75; font-size: 16.5px; line-height: 1.8; margin: 30px 0 56px; }
[data-page="business"] .section-dark .section-en, [data-page="business"] .quality-band .section-en { color: #fff; }

/* 과정 사진 3장 */
.dev-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dev-photos .ph { aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; }
.dev-photos img { transition: transform .6s ease; }
.dev-photos figure:hover img { transform: scale(1.05); }
.dev-photos figcaption { margin-top: 14px; text-align: center; font-weight: 600; font-size: 16px; }

/* 기획·개발 / 생산·관리 아이콘 카드 */
.capabilities { display: grid; gap: 110px; margin-top: 130px; }
.cap-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap-list li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 24px 36px; border-radius: 20px; background: var(--card); border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.cap-list li:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -24px rgba(15, 24, 48, .35); }
.cap-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--bg-alt); color: var(--accent); }
.cap-group:nth-child(odd) .cap-icon { color: var(--primary); }
[data-theme="dark"] .cap-group:nth-child(odd) .cap-icon { color: #8fa8ff; }
.cap-icon svg { width: 32px; height: 32px; }
.cap-list h4 { font-size: 18px; font-weight: 700; margin: 22px 0 8px; }
.cap-list p { color: var(--text-sub); font-size: 14.5px; line-height: 1.65; }

/* 제작 방법 하위 페이지들 */
.page-sub { font-weight: 500; opacity: .6; }
.make-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.make-card { display: block; padding-bottom: 6px; color: inherit; }
.make-card .ph { aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.make-card img { transition: transform .6s ease; }
.make-card:hover img { transform: scale(1.06); }
.make-card span { color: var(--accent); font-weight: 800; font-size: 11.5px; letter-spacing: 0.14em; }
.make-card h3 { font-size: 19px; font-weight: 700; margin: 4px 0 6px; }
.make-card:hover h3 { color: var(--accent); }
.make-card p { color: var(--text-sub); font-size: 14px; line-height: 1.6; }
.ip-visual { max-width: 900px; margin: 0 auto; padding: 40px 0 10px; }
.ip-visual img { width: 100%; height: auto; filter: drop-shadow(0 30px 30px rgba(22, 33, 62, .18)); }
.wide-visual { aspect-ratio: 16 / 9; max-width: 1000px; margin: 0 auto; border-radius: 24px; overflow: hidden; }
/* 품질 페이지: 영상 + 사진 두 칸 */
.media-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.media-pair .ph { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; }
.media-pair figcaption { margin-top: 16px; color: var(--text-sub); font-size: 15px; line-height: 1.6; }
.media-pair figcaption strong { display: block; margin-bottom: 4px; color: var(--heading); font-size: 18px; }
/* 회사 소개: 공장 전경 영상 */
.factory-video { aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; margin-top: 50px; background: #0e1a3a; }
.stats-light li > span { color: var(--text-sub); }
.stats-light strong { color: var(--heading); }

/* ===== 제작 방법: 다루는 소재 (사진 모자이크, 첫 칸이 가장 큼) ===== */
.materials { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; gap: 16px; }
.material-card { position: relative; margin: 0; border-radius: 22px; overflow: hidden; }
.material-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.material-card:nth-child(n + 4) { grid-column: span 2; }
.material-card img { position: absolute; inset: 0; transition: transform .7s ease; }
.material-card:hover img { transform: scale(1.06); }
.material-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 18, 40, .78) 0%, rgba(10, 18, 40, .15) 50%, transparent 70%); }
.material-card figcaption { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 1; color: #fff; }
.material-card figcaption span { color: #ffb39f; font-weight: 800; font-size: 12px; letter-spacing: 0.16em; }
.material-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 4px; }
.material-card:nth-child(1) h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.material-card p { color: rgba(255, 255, 255, .85); font-size: 15px; }

/* ===== 제작 방법: 품질·납기 관리 (화면 가득 사진 위에) ===== */
.quality-band {
  position: relative; padding: 150px 0; color: #fff;
  background: #0f1830 url('../images/web/biz-blanketsleeve.jpg') center / cover no-repeat;
}
.quality-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 40, .92) 0%, rgba(10, 18, 40, .72) 55%, rgba(10, 18, 40, .5) 100%); }
.quality { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.quality-text .section-en, .quality-text .section-title { text-align: left; color: #fff; }
.quality-text > p:not(.section-en) { color: rgba(255, 255, 255, .8); font-size: 17px; margin: 20px 0 36px; }
.quality-list { list-style: none; display: grid; gap: 14px; }
.quality-list li {
  display: flex; gap: 20px; align-items: flex-start; padding: 24px 26px; border-radius: 18px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.quality-list .step-no { font-size: 24px; line-height: 1.2; min-width: 1.6em; }
.quality-list h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.quality-list p { color: rgba(255, 255, 255, .75); font-size: 15px; }

/* ===== 6. 회사 소개 (말투가 있는 소개) ===== */
.section-dark { background: var(--primary); color: #fff; }
[data-theme="dark"] .section-dark { background: #1a1d22; }
.about-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.05em; }
.about-lead { margin-top: 28px; color: rgba(255, 255, 255, .8); font-size: 17px; line-height: 1.8; }
.about-year { display: block; color: var(--accent); font-weight: 800; font-size: 28px; margin-bottom: 6px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 70px; }
.principles + .principles { margin-top: 48px; }
.principles > div { border-top: 2px solid var(--accent); padding-top: 24px; }
.principles h3 { font-size: 20px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.principles p { color: rgba(255, 255, 255, .7); font-size: 15px; }

/* ===== 7. 상담 신청 ===== */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contact-text .section-title { text-align: left; margin-bottom: 16px; }
.contact-text p { color: var(--text-sub); font-size: 17px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-family: inherit; font-size: 15px;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-form button { align-self: flex-start; margin-top: 8px; }
.form-status { padding: 14px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--accent); color: var(--text); font-size: 15px; }
.form-status[hidden] { display: none; }

/* ===== 푸터 ===== */
.footer { padding: 50px 0; background: var(--primary); color: rgba(255,255,255,.7); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; letter-spacing: 0.04em; }
.footer-links a:hover { color: #fff; }
.footer .logo { display: inline-block; margin-bottom: 16px; color: #fff; }
.footer .copyright { margin-top: 16px; }
[data-theme="dark"] .footer { background: #1a1d22; }

/* ===== 태블릿 ===== */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .nav-item > a { padding: 26px 10px; }
  .cap-list { grid-template-columns: repeat(2, 1fr); }
  .materials { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .make-list { grid-template-columns: repeat(3, 1fr); }
  .quality { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== 모바일 ===== */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  /* 휴대폰 메뉴: 큰 메뉴 아래에 세부 메뉴를 펼친 채로 보여줘요 */
  .nav {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    max-height: calc(100vh - 76px); overflow-y: auto;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 6px 20px 16px; }
  .nav-item + .nav-item { border-top: 1px solid var(--border); }
  .nav-item > a { padding: 14px 0; }
  .nav-item.nav-cta { display: block; }
  .nav-item.nav-cta > a { color: var(--accent); }
  .sub-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    display: flex; flex-wrap: wrap; gap: 4px 6px;
    border: 0; box-shadow: none; background: none; padding: 0 0 12px;
  }
  .sub-menu li + li { border-top: 0; }
  .sub-menu a { padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); font-size: 14px; }
  .nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu { transform: none; }

  .page-hero { padding: 64px 0 52px; }
  .sub-tabs { justify-content: flex-start; overflow-x: auto; padding: 0; scrollbar-width: none; }
  .sub-tabs a { flex: none; padding: 16px 18px; font-size: 14px; }
  .paths { grid-template-columns: 1fr; gap: 16px; }
  .path-card { padding: 32px 26px; }
  .faq summary { font-size: 16px; padding-right: 40px; }
  .faq details p { padding: 0 8px 22px 30px; }
  .stats-band { padding: 60px 0; }
  .why { padding: 80px 0 30px; }
  .about-intro, .biz-layout, .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; }
  .product-section { padding: 70px 0; }
  .cta-band { padding: 60px 0; }
  .hero { height: clamp(560px, calc(100svh - 76px), 720px); }
  .hero-slide::after { background: linear-gradient(0deg, rgba(10, 18, 40, .88) 0%, rgba(10, 18, 40, .6) 55%, rgba(10, 18, 40, .3) 100%); }
  .hero-content { justify-content: flex-end; padding-bottom: 130px; }
  .hero-actions { margin-top: 28px; }
  .hero-bottom { bottom: 24px; flex-direction: column; align-items: flex-start; gap: 12px; }
  /* 누끼 배너: 휴대폰에서는 제품을 위쪽, 글자를 아래쪽에 */
  .hero-cutout .hero-slide::before { width: 110vw; right: -5vw; top: 26%; }
  .hero-product, .hero-product.wide { top: 12px; bottom: auto; height: 33%; left: 16px; right: 16px; width: auto; }
  .hero-cutout .hero-slide .hero-product img { max-height: 100%; width: auto; max-width: 100%; }
  .hero-cutout .hero-content > * { max-width: none; }
  .hero-cutout .hero-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-cutout .hero-sub { margin-top: 14px; font-size: 1rem; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .dev-photos { grid-template-columns: 1fr; gap: 20px; }
  .media-pair { grid-template-columns: 1fr; }
  .capabilities { margin-top: 80px; gap: 80px; }
  .cap-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cap-list li { padding: 24px 12px 22px; }
  .cap-icon { width: 54px; height: 54px; }
  .cap-icon svg { width: 26px; height: 26px; }
  .cap-list h4 { font-size: 15.5px; margin: 14px 0 6px; }
  .cap-list p { font-size: 13px; }
  [data-page="business"] .section-desc { margin: 20px 0 40px; font-size: 15px; }
  .materials { grid-auto-rows: 170px; gap: 10px; }
  .make-list { grid-template-columns: 1fr 1fr; gap: 14px; }
  .make-card h3 { font-size: 16px; }
  .make-card p { font-size: 13px; }
  .material-card { border-radius: 16px; }
  .material-card figcaption { left: 14px; right: 14px; bottom: 14px; }
  .material-card h3 { font-size: 17px; }
  .material-card p { display: none; }
  .material-card:nth-child(1) p { display: block; font-size: 14px; }
  .quality-band { padding: 90px 0; }
  .quality-list li { padding: 20px; gap: 14px; }
  .why-item { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .why-item:nth-child(even) .why-photo { order: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 32px; margin-top: 50px; }
  .contact { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .section-title { font-size: 28px; }
}
