/* ── Fonts ────────────────────────────────────────────── */
@font-face {
  font-family: 'GmarketSans';
  font-weight: 300;
  src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansLight.woff2') format('woff2');
}
@font-face {
  font-family: 'GmarketSans';
  font-weight: 500;
  src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansMedium.woff2') format('woff2');
}
@font-face {
  font-family: 'GmarketSans';
  font-weight: 700;
  src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansBold.woff2') format('woff2');
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: 'GmarketSans', sans-serif;
  background: #fff;
  overflow-x: hidden; /* prevent horizontal scroll on wide screens */
}
a { text-decoration: none; color: inherit; }
button { font-family: 'GmarketSans', sans-serif; cursor: pointer; border: none; background: none; }

/* ════════════════════════════════════════════════════
   NAVBAR
   - 항상 화면 100% 꽉 참 (fixed, left:0 right:0)
   - 내부 콘텐츠는 max-width:1280px 중앙 정렬
   - 1280px 이상에서도 배경은 화면 전체
════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: 90px;
  background-color: rgb(240, 243, 250);
  /* 배경이 항상 화면 전체 */
}
.navbar-inner {
  /* 콘텐츠 영역은 1280px 고정, 가운데 정렬 */
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  height: 90px;
}
.nav-logo-wrap {
  position: absolute;
  left: 100px; top: 15px;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.nav-logo {
  width: 60px; height: 60px;
  object-fit: contain;
  display: block;
}
/* SVG fallback logo shown when image fails */
.nav-logo-svg {
  display: none;
  width: 60px; height: 60px;
}
.nav-item {
  position: absolute;
  top: 34px;
  font-size: 20px; font-weight: 500;
  color: rgb(0, 0, 0);
  line-height: 23px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.nav-item:hover { color: rgb(26, 86, 196); }
.nav-item.active { color: rgb(26, 86, 196); border-bottom-color: rgb(26, 86, 196); }
.nav-item[data-p="intro"]       { left: 480px; }
.nav-item[data-p="product"]     { left: 602px; }
.nav-item[data-p="transaction"] { left: 724px; }
.nav-item[data-p="contact"]     { left: 846px; }
.nav-yt {
  position: absolute;
  left: 1090px; top: 22px;
  display: flex; align-items: center;
}

/* ════════════════════════════════════════════════════
   PAGE CANVAS
   - 1280px 고정폭, 가운데 정렬
   - padding-top=90px (navbar)
   - 내부 absolute 요소들은 Figma 좌표 그대로
════════════════════════════════════════════════════ */
.canvas {
  width: 1280px;
  margin: 0 auto;
  padding-top: 90px;
  position: relative;
  background: #fff;
}

/* ════════════════════════════════════════════════════
   FULL-WIDTH HELPER
   .fw-block: 화면 100vw로 늘리는 블록 (navbar/footer/hero/home-hero)
   canvas 안에 있어도 화면 전체 꽉 채움
════════════════════════════════════════════════════ */
.fw-block {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  /* 자식 콘텐츠는 별도로 1280px 중앙 정렬 */
}

/* ════════════════════════════════════════════════════
   HERO (inner pages)
   - 배경 이미지: 화면 100vw 꽉 참
   - 제목: 1280px 기준 left:516px
   - height: 509px
════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 509px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
/* 제목은 1280px 기준 중앙 정렬 박스 안에서 left:516 */
.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
}
.hero-content {
  width: 1280px;
  margin: 0 auto;
  position: relative;
  flex-shrink: 0;
}
.hero-title {
  position: absolute;
  left: 516px; top: 218px;
  font-size: 64px; font-weight: 500;
  color: #fff;
  line-height: 73.6px;
  text-shadow: 4px 4px 4px rgba(0,0,0,0.25);
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════
   FOOTER
   - 배경: 화면 100vw 꽉 참 rgb(96,96,96)
   - 텍스트: 가운데 정렬
════════════════════════════════════════════════════ */
.footer {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 39px;
  background-color: rgb(96, 96, 96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer span {
  font-size: 12px; font-weight: 500;
  color: rgb(255, 255, 255);
  line-height: 13.8px;
}

/* ════════════════════════════════════════════════════
   HOME  (1280 × 1659)
════════════════════════════════════════════════════ */
.home-canvas { min-height: 1659px; }

/* 홈 히어로 이미지: 화면 100vw 꽉 참, height=671px */
.home-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 671px;
  background-size: cover;
  background-position: center;
}

/* 이하 모든 텍스트 요소: Figma 절대좌표 그대로 */
.home-heading {
  position: absolute;
  left: 670px; top: 830px;
  width: 429px;
  font-size: 48px; font-weight: 700;
  color: rgb(0,0,0); line-height: 55.2px;
  white-space: pre-line;
}
.home-body {
  position: absolute;
  left: 679px; top: 1002px;
  width: 496px;
  font-size: 20px; font-weight: 500;
  color: rgb(0,0,0); line-height: 40px;
}
.home-ceo {
  position: absolute;
  left: 952px; top: 1340px;
  font-size: 20px; font-weight: 700;
  color: rgb(0,0,0); line-height: 23px;
}
.home-footer { position: absolute; left: 0; top: 1620px; width: 100%; }

.popup-overlay{
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.6);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.popup-box{
  width:400px;
  background:white;
  padding:30px;
  border-radius:10px;
  text-align:center;
  box-shadow:0 10px 30px rgba(0,0,0,0.3);
}

.popup-box h2{
  margin-bottom:15px;
}

.popup-box button{
  margin-top:20px;
  padding:10px 25px;
  border:none;
  background:#2d6cdf;
  color:white;
  border-radius:5px;
  cursor:pointer;
}

.popup-box button:hover{
  background:#1e4fb8;
}

/* ════════════════════════════════════════════════════
   INTRO  (1280 × 3150)
════════════════════════════════════════════════════ */
.intro-canvas { min-height: 3150px; }

.intro-photo1 {
  position: absolute;
  left: 113px; top: 680px;
  width: 525px; height: 430px;
  background-size: cover; background-position: center;
  background-color: #e0e0e0;
}
.intro-company-name {
  position: absolute;
  left: 750px; top: 749px;
  font-size: 32px; font-weight: 500;
  color: rgb(0,0,0); line-height: 36.8px;
}
.intro-addr {
  position: absolute;
  left: 750px; top: 846px;
  font-size: 20px; font-weight: 500;
  color: rgb(0,0,0); line-height: 23px;
}
.intro-phone {
  position: absolute;
  left: 751px; top: 899px;
  font-size: 20px; font-weight: 500;
  color: rgb(0,0,0); line-height: 23px;
}
/* Line3/4: 화면 전체 너비 */
.intro-line {
  position: absolute;
  /* 1280px canvas 기준으로 화면 전체 덮기 */
  left: 50%; transform: translateX(-50%);
  width: 100vw; height: 4px;
  background: #000;
}
.intro-line1 { top: 1280px; }
.intro-line2 { top: 2192px; }

.intro-photo2 {
  position: absolute;
  left: 27px; top: 1538px;
  width: 580px; height: 400px;
  background-size: cover; background-position: center;
  background-color: #e0e0e0;
}
.intro-gaeyoo {
  position: absolute;
  left: 675px; top: 1674px;
  font-size: 32px; font-weight: 700;
  color: rgb(0,0,0); line-height: 36.8px;
}
.intro-info {
  position: absolute;
  left: 675px; top: 1738px;
  width: 577px; height: 200px;
  font-size: 20px; font-weight: 500;
  color: rgb(0,0,0); line-height: 40px;
  white-space: pre;
}
.intro-jojikdo {
  position: absolute;
  left: 570px; top: 2294px;
  font-size: 48px; font-weight: 700;
  color: rgb(0,0,0); line-height: 55.2px;
}
.intro-orgchart {
  position: absolute;
  left: 161px; top: 2411px;
  width: 957px; height: 543px;
  background-size: contain; background-repeat: no-repeat;
  background-color: #f0f0f0;
}
.intro-footer { position: absolute; left: 0; top: 3111px; width: 100%; }

/* ════════════════════════════════════════════════════
   PRODUCT  (1280 × 1700)
════════════════════════════════════════════════════ */
.product-canvas { min-height: 1700px; }

.product-tabs {
  position: absolute;
  left: 240px; top: 637px;
  width: 800px; height: 80px;
}
.tab-row { display: flex; }
.tab {
  width: 160px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #ddd;
  font-size: 14px; font-weight: 500; color: rgb(0,0,0);
  background: #fff;
  cursor: pointer; text-align: center; padding: 0 6px;
  user-select: none; transition: background .12s;
}
.tab.small { font-size: 10px; }
.tab.active { background-color: rgb(138, 174, 224); }
.tab:not(.active):hover { background: #ecf2fb; }

.product-content {
  position: absolute;
  left: 0; top: 767px;
  width: 1280px; height: 750px;
  border-top: 1px solid #ccc;
}
.product-vline {
  position: absolute;
  left: 640px; top: 0; bottom: 0;
  width: 1px; background: #ccc;
}
.product-spec {
  position: absolute;
  left: 80px; top: 195px;
  width: 505px;
  font-size: 20px; font-weight: 500;
  color: rgb(0,0,0); line-height: 23px;
  white-space: pre-line;
}
.product-imgbox {
  position: absolute;
  left: 680px; top: 60px;
  width: 540px; height: 640px;
  background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #bbb;
}
.product-footer { position: absolute; left: 0; top: 1661px; width: 100%; }

/* ════════════════════════════════════════════════════
   TRANSACTION  (1280 × 2410)
════════════════════════════════════════════════════ */
.transaction-canvas { min-height: 2410px; }

.tx-title {
  position: absolute;
  left: 522px; top: 650px;
  font-size: 48px; font-weight: 700;
  color: rgb(0,0,0); line-height: 55.2px;
  white-space: nowrap;
}
.tx-subtitle {
  position: absolute;
  left: 499px; top: 705px;
  font-size: 15px; font-weight: 300;
  color: rgb(0,0,0); line-height: 17.2px;
  white-space: nowrap;
}
.tx-logo {
  position: absolute;
  width: 330px; height: 200px;
  background-size: contain; background-repeat: no-repeat;
  background-position: center; background-color: #f5f5f5;
  border: 1px solid #e8e8e8;
  display: block; transition: opacity .15s;
}
.tx-logo:hover { opacity: 0.8; }
.tx-overseas {
  position: absolute;
  width: 330px; height: 50px;
  background-color: rgb(217, 217, 217);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 500;
  color: rgb(0,0,0); line-height: 20.7px;
}
.tx-footer { position: absolute; left: 0; top: 2371px; width: 100%; }

/* ════════════════════════════════════════════════════
   CONTACT  (1280 × 1659)
════════════════════════════════════════════════════ */
.contact-canvas { min-height: 1659px; }

.contact-body {
  position: absolute;
  left: 0; top: 509px;
  width: 1280px; padding: 80px 120px;
}
.contact-grid { display: flex; gap: 80px; }
.contact-col { flex: 1; }
.contact-section-title {
  font-size: 32px; font-weight: 700;
  margin-bottom: 32px; padding-bottom: 12px;
  border-bottom: 2px solid #000;
}
.contact-row {
  display: flex; padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.contact-row-label {
  width: 100px; flex-shrink: 0;
  font-size: 16px; font-weight: 700;
}
.contact-row-val { font-size: 16px; color: #333; }
.contact-field { margin-bottom: 14px; }
.contact-field-label { font-size: 13px; margin-bottom: 5px; color: #555; }
.contact-input,
.contact-textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid #ccc; border-radius: 2px;
  font-family: 'GmarketSans', sans-serif;
  font-size: 14px; outline: none; color: #000;
}
.contact-textarea { resize: vertical; }
.contact-textarea-wrap { margin-bottom: 20px; }
.contact-submit {
  width: 100%; padding: 14px;
  background-color: rgb(138, 174, 224);
  border-radius: 2px;
  font-size: 16px; font-weight: 700; color: #fff;
  transition: background .18s;
}
.contact-submit:hover { background-color: rgb(100, 145, 200); }
.contact-footer { position: absolute; left: 0; top: 1620px; width: 100%; }
