/* reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;   /* 내용 부족 시 빈 공간 채우기 */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background: #f4f7fb;
  color: #111827;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER (공통 네비게이션) */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 32px;        /* 로고 높이 조절 (너가 원하는 크기로 수정 가능) */
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  font-size: 14px;
}

nav a {
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  color: #4b5563;
  transition: 0.2s;
}
nav a:hover {
  color: #111827;
  border-bottom-color: #2563eb;
}

/* 현재 페이지 표시용 */
nav a.active {
  color: #111827;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

/* PAGE LAYOUT */
main {
  padding: 64px 0 80px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 32px;
}

/* 박스 / 카드 */
.card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 20px 20px 18px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}

/* 리스트용 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-2, .grid-3 {
    grid-template-columns: minmax(0,1fr);
  }
  nav ul { gap: 12px; font-size: 13px; }
}

/* 버튼 */
.btn-primary {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.btn-primary:hover {
  background: #1d4ed8;
}

/* FOOTER */
footer {
  background: #020617;
  color: #6b7280;
  font-size: 11px;
  padding: 16px 0 18px;
  text-align: center; 
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* 문의 폼 */
.form-row {
  margin-bottom: 16px;
}
.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  outline: none;
}
.form-row textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row small {
  font-size: 11px;
  color: #9ca3af;
}
/* 개인정보 동의 영역 */
.agree-title {
  font-size: 13px;
  margin-bottom: 4px;
}

.agreement-box {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f9fafb;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.7;
  max-height: 180px;      /* 글이 길어질 때 대비 */
  overflow-y: auto;       /* 넘치면 안에서만 스크롤 */
  white-space: pre-line;  /* 줄바꿈(\n) 유지 */
}

.agreement-check label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.agreement-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.agree-check label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

.agree-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
/* 솔루션(제품군) 카드 레이아웃 */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.vendor-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 20px 22px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vendor-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vendor-logo img {
  height: 32px;   /* 로고 크기 여기서 통일 */
  width: auto;
  display: block;
}

.vendor-name {
  font-size: 16px;
  font-weight: 600;
}

.vendor-desc {
  font-size: 13px;
  color: #6b7280;
}

.vendor-actions {
  margin-top: 6px;
  text-align: right;
}

.vendor-actions .btn-primary {
  font-size: 13px;
  padding: 7px 16px;
}

@media (max-width: 900px) {
  .vendor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.vendor-top{
  display:flex;
  align-items:flex-start;
  gap:14px;
}

.vendor-brand{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  height:40px;            /* 상단 라인 높이 고정 */
}

.vendor-brand img{
  height:28px;            /* 로고는 작게, 깔끔하게 */
  width:auto;
}

.vendor-titles{
  min-width:0;
}

.vendor-product{
  font-size:18px;         /* 제품명은 확실히 크게 */
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.2;
}

.vendor-byline{
  font-size:12px;
  color:#9ca3af;
  margin-top:4px;
}

.vendor-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.chip{
  font-size:12px;
  color:#374151;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  padding:6px 10px;
  border-radius:999px;
}

.vendor-desc{
  margin-top:6px;
  font-size:13px;
  color:#6b7280;
}

/* 버튼을 더 “정돈된” 위치로: 카드 하단에 붙이기 */
.vendor-card{
  position:relative;
  padding:20px 22px 18px;
}

.vendor-actions{
  margin-top:auto;        /* 내용이 짧아도 버튼이 아래로 */
  padding-top:10px;
  text-align:right;
}
.vendor-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:18px;
  box-shadow:0 8px 18px rgba(15,23,42,0.06);

  display:flex;
  flex-direction:column;
}
.vendor-actions{ margin-top:auto; }

.vendor-chips.left {
  margin-left: 42px; /* 로고 폭만큼 들여쓰기 */
  margin-top: 6px;
}

/* ===== Home Hero Layout ===== */
.home-hero{
  min-height: calc(100vh - 64px); /* header 높이 */
  display: grid;
  grid-template-columns: 1fr 1fr; /* 정확히 반반 */
}

/* 왼쪽 텍스트 영역 */
.home-hero__left{
  background: #f4f7fb; /* 기존 페이지 배경과 통일 */
  display: flex;
  align-items: center;
}

/* ❗텍스트를 화면 중앙 쪽으로 끌어오는 핵심 */
.home-hero__inner{
  width: 100%;
  max-width: 560px;
  margin-left: auto;      /* ← 이게 포인트 */
  padding: 0 48px;
}

/* 타이틀 */
.home-hero__title{
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

/* 설명 */
.home-hero__desc{
  font-size: 14px;
  line-height: 1.9;
  color: #374151;
  margin-bottom: 28px;
}

/* 버튼 */
.home-hero__cta{
  display: flex;
  gap: 12px;
}

.btn-outline{
  background: transparent;
  border: 1px solid #2563eb;
  color: #2563eb;
}
.btn-outline:hover{
  background: rgba(37,99,235,0.08);
}

/* 오른쪽 이미지 영역 */
.home-hero__right{
  background-image: url("../images/homeimage.jpg"); /* ← 네가 올린 사진 */
  background-size: cover;
  background-position: center;
  position: relative;
}

/* 텍스트와 자연스럽게 이어지는 그라데이션 */
.home-hero__right::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(244,247,251,1) 0%,
    rgba(244,247,251,0.65) 12%,
    rgba(0,0,0,0) 35%
  );
}

/* 반응형 */
@media (max-width: 900px){
  .home-hero{
    grid-template-columns: 1fr;
  }
  .home-hero__right{
    height: 42vh;
  }
  .home-hero__inner{
    margin: 0 auto;
    padding: 40px 20px;
  }
  .home-hero__title{
    font-size: 34px;
  }
  .home-hero__right::before{
    pointer-events: none;
  }
}

.directions-card { padding: 18px; }

.section-title { font-size: 16px; margin-bottom: 12px; }

.directions-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start; /* center 말고 start */
}

.directions-map{
  width: 100%;
  height: 220px;          /* 여기서 높이 고정 */
  border-radius: 12px;
  overflow: hidden;
}

.directions-info p{
  margin: 0;
  line-height: 1.6;
}
.directions-card{
  width: 100%;
  max-width: 1090px;   /* ← 여기 숫자 바꾸면 바로 변함 */
  margin: 0 auto;
  justify-self: center; /* ✅ grid의 stretch 해제 */
  margin-top: 30px;
}
/* 주요고객 네트워크 이미지 */
.partners-visual {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.partners-visual img {
  width: 100%;
  max-width: 900px;   /* ← 크기 조절 포인트 */
  height: auto;
}

.page-title {
  text-align: center;
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-subtitle {
  text-align: center;
  font-size: 20px;
  color: #888;
  margin-bottom: 50px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.client-card {
  background: #f5f5f5;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* 반응형 */
@media (max-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}