/* ===== 유니크리에이트 홈페이지 스타일 ===== */
/* 명함첩과 동일한 Pretendard (무료, 오픈소스) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --red: #f46569;          /* 브랜드 빨강 (rgb 244,101,105) */
  --red-dark: #e04e54;
  --green: #b5d24a;        /* Creativity 강조 그린 */
  --ink: #414141;          /* 본문 진회색 */
  --gray: #777;
  --line: #ececec;
  --bg-soft: #f7f8f9;
  --max: 1120px;
  --header-h: 72px;
  --font-head: 'Pretendard', sans-serif;  /* 명함첩과 동일 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  word-break: keep-all; /* 한글 단어 중간 줄바꿈 방지 */
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo img { height: 38px; width: auto; display: block; }
.gnb { display: flex; gap: 32px; align-items: center; }
.gnb a {
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: #555;
  transition: color 0.15s;
}
.gnb a:hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

/* ===== 히어로 ===== */
.hero { text-align: center; padding: 72px 24px 48px; }
.hero h1 {
  font-size: 70px; font-weight: 800; color: var(--red);
  letter-spacing: -0.01em; line-height: 1.05;
}
.hero .tagline { font-size: 30px; color: var(--ink); margin-top: 16px; font-weight: 400; }
.hero .bulb { width: 300px; margin: 44px auto 0; }

/* ===== Creativity 배너 ===== */
.creativity-band {
  background: var(--red); color: #fff; text-align: center; font-family: var(--font-head);
  padding: 60px 24px; font-size: 46px; font-weight: 300; letter-spacing: -0.01em;
}
.creativity-band .accent { color: var(--green); }

/* ===== 공통 섹션 ===== */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--red); margin-bottom: 12px;
}
.section-head h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-head); }
.section-head h2.sec-en {
  font-size: 44px; font-weight: 300; letter-spacing: 0.04em; color: #333;
  font-family: 'Pretendard', sans-serif;
}
.section-head p { color: var(--gray); margin-top: 10px; font-size: 18px; }
.section-head p + p { margin-top: 2px; }

/* ===== 사업영역 (빨간 배경, 흰 글씨 — Creativity 배너와 이어짐) ===== */
.biz { background: var(--red); color: #fff; padding: 16px 0 96px; }
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 44px; }
.biz-item h3 {
  font-size: 25px; font-weight: 300; letter-spacing: -0.01em;
  padding-bottom: 14px; margin-bottom: 14px; position: relative;
}
.biz-item h3::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 26px; height: 2px; background: rgba(255, 255, 255, 0.85);
}
.biz-item ul { list-style: none; }
.biz-item ul li { font-size: 15px; line-height: 1.95; color: rgba(255, 255, 255, 0.95); }
.biz-summary {
  text-align: center; margin: 64px auto 0; max-width: 860px;
  font-size: 16px; line-height: 1.85; color: rgba(255, 255, 255, 0.95);
}
.biz-summary .hl-green { color: var(--green); font-weight: 700; }

/* ===== BUSINESS HISTORY (다이어그램) ===== */
.history { background: #fce7e7; padding: 92px 0 104px; }
.history-lead {
  text-align: center; max-width: 1000px; margin: 0 auto 64px; font-family: var(--font-head);
  font-size: 35px; font-weight: 300; line-height: 1.3; color: #5a5a5a; letter-spacing: -0.02em;
}
.history-lead .t-red { color: var(--red); }
.history-lead .t-blue { color: #5e9fd6; }

.diagram { display: flex; flex-direction: column; align-items: center; }

/* 육각형 (CSS clip-path) */
.hex {
  position: relative; width: 222px; height: 250px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 10px 18px rgba(238, 90, 97, 0.28));
}
.hex::before {
  content: ''; position: absolute; inset: 0; background: #fff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.hex::after {
  content: ''; position: absolute; inset: 9px;
  background: linear-gradient(155deg, #f88c90, #ee565d);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.hex-inner { position: relative; z-index: 1; text-align: center; color: #fff; padding: 0 18px; }
.hex-top { display: block; font-size: 20px; line-height: 1.4; }
.hex-em { display: block; font-size: 27px; font-weight: 300; color: var(--green); margin-top: 8px; }

/* 연결선 */
.conn { display: flex; flex-direction: column; align-items: center; }
.conn-stem { width: 3px; height: 36px; background: #9a9a9a; }
.conn-bar { width: 520px; height: 40px; border: 3px solid #9a9a9a; border-bottom: none; border-radius: 18px 18px 0 0; }

/* 두 갈래 (연결선 정렬: conn-bar 폭 = 가지폭 + 간격) */
.branches { display: flex; justify-content: center; gap: 230px; }
.branch { width: 290px; display: flex; flex-direction: column; align-items: center; }
.branch-box {
  background: linear-gradient(180deg, #ffd9b3, #ffc89a); border-radius: 12px;
  padding: 16px 28px; text-align: center; min-width: 188px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.bb-top { display: block; font-size: 17px; color: #7a7a7a; margin-bottom: 6px; }
.bb-title { display: block; font-size: 25px; font-weight: 300; color: var(--red); line-height: 1.25; }
.circles { display: flex; gap: 18px; margin-top: 28px; }
.circle {
  width: 132px; height: 132px; border-radius: 50%; padding: 10px;
  background: linear-gradient(180deg, #ffb878, #ff9b50); color: #fff;
  display: flex; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 8px 16px rgba(255, 140, 80, 0.28);
}
.circle span { font-size: 17px; font-weight: 600; line-height: 1.4; }

/* ===== CHANGE → CHANCE (배경 이미지 위 문구) ===== */
.change {
  background: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.34)), url(../images/history_bg.jpg) center/cover no-repeat;
  min-height: 520px; display: flex; justify-content: center; align-items: center;
  padding: 40px 40px 40px 365px; /* 왼쪽 여백 365px */
}
.change-text { text-align: center; color: #fff; font-weight: 300; max-width: 1000px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); }
.change-text p:last-child { white-space: nowrap; }
.change-text p { font-size: 28px; line-height: 1.6; }
.change-text .c-green { color: var(--green); }
.change-text .c-red { color: var(--red); }

/* ===== 고객사 ===== */
.clients-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.clients-grid .client {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  height: 110px; padding: 22px;
}
/* 추출된 로고가 흰색 버전이라, 진한 회색 실루엣으로 변환해 밝은 배경에서 보이게 */
.clients-grid .client img {
  max-height: 100%; width: auto; object-fit: contain;
  filter: brightness(0); opacity: 0.5;
}

/* ===== 콘텐츠 유형 ===== */
.contents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.content-card {
  border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: transform 0.18s, box-shadow 0.18s;
}
.content-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08); }
.content-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; background: #eee; }
.content-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-card .label { padding: 16px; text-align: center; font-weight: 700; font-size: 16px; }

/* ===== 콘텐츠 상세 페이지 ===== */
.content-detail { padding: 80px 0; }
.content-detail .back { color: var(--gray); font-size: 14px; font-weight: 600; }
.content-detail .back:hover { color: var(--red); }
.content-detail h1 { font-size: 40px; font-weight: 800; color: var(--red); margin: 20px 0 8px; }
.content-detail .lead { font-size: 18px; color: var(--ink); max-width: 720px; margin-bottom: 32px; }
.content-detail .hero-img { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.content-nav { display: flex; justify-content: space-between; margin-top: 48px; gap: 12px; }
.content-nav a { font-size: 14px; font-weight: 600; color: #555; }
.content-nav a:hover { color: var(--red); }

/* ===== 푸터 ===== */
.site-footer { background: #2b2b2b; color: #cfcfcf; padding: 56px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer .brand { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.site-footer .contact { font-size: 14px; line-height: 1.9; }
.site-footer .contact strong { color: #fff; font-weight: 600; }
.site-footer .copy { width: 100%; border-top: 1px solid #444; padding-top: 22px; font-size: 13px; color: #888; }

/* ===== 반응형 ===== */
@media (max-width: 860px) {
  .gnb {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.25s;
  }
  .gnb.open { max-height: 320px; }
  .gnb a { width: 100%; padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 48px; }
  .hero .tagline { font-size: 18px; }
  .creativity-band { font-size: 24px; padding: 40px 20px; }
  .clients-grid, .contents-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-grid { grid-template-columns: 1fr; gap: 36px; }
  .history-lead { font-size: 21px; }
  .branches { flex-direction: column; gap: 44px; align-items: center; }
  .branch { width: auto; }
  .conn-bar { display: none; }
  .change { min-height: 340px; padding: 40px 20px; }
  .change-text p { font-size: 18px; }
  .change-text p:last-child { white-space: normal; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .clients-grid, .contents-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 40px; }
}
