/* ===== VARIABLES ===== */
:root {
  --full: 1920px;
  --container: 1300px;
  --header-h: 72px;

  /* Palette */
  --text: #212529;
  --white: #fff;
  --green: #03a94d;
  --green-2: #dfece0;
  --green-3: #e9f1e9;
  --muted: #6b7280;
  --line: #e6e6e6;
  --tt-yellow: #ffd400;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HERO ===== */
.hero {
  height: 620px;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-image: url(../img/main.jpg);
  border-bottom: 1px solid var(--line);
  background-size: cover;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1000px;
  text-align: left;
}

.hero-title {
  margin: 0;
  font-weight: 800;
  font-size: 50px;
  line-height: 1.15;
  color: #fff;
}

.p-hero {
  font-size: 24px;
  color: #fff;
}

/* ===== Section Common ===== */
.section {
  padding: 72px 0;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}

.section-head {
  text-align: center;
}

.p-desc {
  text-align: center;
  font-size: 20px;
}

.p-eyebrow {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ===== COMPANY ===== */
.company .greeting-body {
  max-width: 1300px;
  margin: 0 auto;
  text-align: left;
}

.p-body {
  font-size: 20px;
}

/* ===== BUSINESS ===== */
#business .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 !important;
  box-sizing: border-box;
}

#business .section-title,
#business .p-desc {
  margin-top: -20px;
  text-align: center;
}

.tt-emph {
  color: #f5a500;
}
.biz-item:hover {
  transform: translateY(-6px);
}
/* 5칸 이미지 갤러리 */
.business-gallery {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  overflow: hidden;
  box-sizing: border-box;
}

.biz-item {
  flex: 0 0 calc((100% - (4 * 4px)) / 5);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.biz-item img {
  width: 230px;
  height: 355px;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

/* ===== PROGRAM (제품 / 솔루션) ===== */
.program {
  position: relative;
  background: #e6eee6;
  margin-top: 100px;
}

.program .inner {
  padding: 50px 0 181px;
  position: relative;
}

.program .section-title {
  text-align: center;
}

.program .p-desc {
  margin-top: -20px;
  text-align: center;
  color: #000;
}

/* 콘텐츠 박스 */
.program_content > div {
  margin-top: 0;
  padding: 30px 20px;
  background: #e6eee6;
  border-radius: 20px;
}

/* slick slider item 간격 */
.slider > div {
  margin: 0 30px;
}

.slick-slide {
  margin: 0 20px;
}

/* 카드 */
.item {
  width: 370px;
  height: 300px;
  position: relative; /* 🔥 기준점 필요 */
  border-radius: 10px;
  background-color: #fff;
}
.item > img {
  margin-top: 20px;
  width: 100%;
  height: auto; /* 100hv 오타 수정 */
  border-radius: 10px;
}

/* 카드 안 텍스트 영역 */
.item .prod-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 250px;
  height: 45px;
  margin: 0 auto;
  margin-top: -10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* ⭐ 핵심 — 넘치면 ... 처리 */
}

/* 라벨(모델명, 물품식별번호, 가격) */
.prod-label {
  display: inline-block;
  width: 110px;
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

/* 값 */
.prod-value {
  font-size: 20px;
  color: #212529;
  font-weight: 600;
}
.prod-label,
.prod-value {
  white-space: nowrap; /* 줄바꿈 방지 */
  display: inline-block;
}
/* 가격 */
.prod-price {
  font-size: 18px;
  color: #212529;
  font-weight: 600;
}

/* 기존 float 제거(안전용) */
.item > p > span,
.item > p > b {
  float: none;
}

/* slick ARROWS */
.slick-prev {
  width: 30px;
  height: 77px;
  left: -30px;
}

.slick-prev:before {
  content: "";
  background: url(../img/reserve_prev.png) no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  opacity: 1;
}

.slick-next {
  width: 50px;
  height: 77px;
  right: -30px;
}

.slick-next:before {
  content: "";
  background: url(../img/reserve_next.png) no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  opacity: 1;
}

/* slick progress bar (필요 시 JS에서 사용할 수 있으니 유지) */
.progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 100px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f5f5f5;
  background-image: linear-gradient(to right, black, black);
  background-repeat: no-repeat;
  background-size: 0 100%;
  transition: background-size 0.4s ease-in-out;
}

/* PROGRAM_MORE 버튼 */
.program_more {
  background: #03a94d;
  display: block;
  width: 360px;
  height: 58px;
  text-align: center;
  line-height: 58px;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 3px 3px #348413;
  position: absolute;
  bottom: 71px;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
}

.program_more:hover {
  transform: translate(-50%, -5%);
  box-shadow: 5px 5px 13px #818181;
  font-size: 25px;
}

/* ===== CONTACT ===== */
.contact .section-title {
  text-align: center;
}

.contact .contact-block {
  text-align: center;
  margin-top: 10px;
}

.map-embed {
  margin-top: 22px;
}

iframe {
  width: 100%;
  height: 500px;
}

@media all and (max-width: 1300px) {
  .hero {
    padding: 100px 0 0 0;
    background-position: center;
  }
  .hero-inner {
    margin-bottom: 160px;
  }
  .hero-title {
    font-size: 30px;
  }
  .p-hero {
    font-size: 16px;
  }
  .section {
    padding: 48px 0;
  }
  .p-body {
    font-size: 14px;
  }
  .p-body b {
    font-weight: 600;
  }
  .section-title {
    font-size: 24px;
  }
  .p-desc {
    font-size: 16px;
  }
  .business-gallery {
    display: flex;
    gap: 5px;
    padding: 0 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .business-gallery br {
    display: none;
  }
  .biz-item {
    flex: 0 0 calc(33.33% - 3.33px);
    width: calc(33.33% - 3.33px);
  }
  .biz-item:nth-child(4) {
  }
  .biz-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 962/1479;
  }

  .slider > div {
    margin: 0 !important;
  }
  .program_more {
    font-size: 20px;
  }
  .map-embed {
    height: 240px;
  }
  .map-embed iframe {
    height: 100% !important;
  }

  .program_content > div {
    padding: 0;
    margin: 0 -5%;
    width: auto;
  }
  .item .prod-text {
    position: absolute;
    margin: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 10px;
    text-align: center;
    height: auto;
    width: auto;
  }
  .biz-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 962/1479;
  }

  .slider > div {
    margin: 0 !important;
  }
  .program_more {
    font-size: 20px;
  }
  .map-embed {
    height: 240px;
  }
  .map-embed iframe {
    height: 100% !important;
  }

  .program_content > div {
    padding: 0;
    margin: 0 -5%;
    width: auto;
  }
  .item .prod-text {
    position: absolute;
    margin: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 10px;
    text-align: center;
    height: auto;
    width: auto;
  }
  .prod-value {
    font-size: 16px;
  }
  .slick-slide {
    margin: 0 15px;
  }
  .slick-slide .item {
    padding: 10%;
  }
  .slick-prev {
    z-index: 11;
    left: 5%;
    width: 36px;
    height: 36px;
    background: #fff !important;
    border-radius: 50%;
  }
  .slick-prev:before {
    width: 36px;
    height: 36px;
    background-size: cover;
  }
  .slick-next {
    z-index: 11;
    right: 5%;
    width: 36px;
    height: 36px;
    background: #fff !important;
    border-radius: 50%;
  }
  .slick-next:before {
    width: 36px;
    height: 36px;
    background-size: cover;
  }
}
.slider img {
  margin-top: -20px;
}
