/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BASE ================= */
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #000;
  color: #fff;
}
.section {
  opacity: 0;
  transform: translateY(50px); /* 밑에서 올라오는 느낌 */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= HEADER ================= */
.header {
  height: 80px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  background: rgba(0,0,0,0.6);
}

.logo img {
  height: 55px;     /* 원하는 크기로 조절 */
  width: auto;
  display: block;
}
.header .container {
  max-width: 1200px;
  margin: auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* .header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
} */

.header-buttons {
  display: flex;
  gap: 12px;
}

.btn-header {
  background: #fff;
  color: #000;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #fff;
}

.btn-header:hover {
  background: transparent;
  color: #fff;
}

/* 카카오톡만 살짝 포인트 주고 싶으면 */
.btn-header.kakao {
  border: 1px solid #fff;
}
.logo {
  font-size: 20px;
  font-weight: 800;
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 0 16px;
  font-weight: 500;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 90vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-x: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.85)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}
.hero .edge-glow {
  color: #fff; /* 기본 흰색 */
  text-shadow: 
    0 0 4px rgba(255,255,255,0.6),
    0 0 10px rgba(255,200,120,0.4),
    0 0 16px rgba(255,200,180,0.3),
    0 0 28px rgba(255,180,140,0.2);
  animation: glowPulseHero 3s ease-in-out infinite alternate;
}
/* ================= HERO TITLE ================= */
.title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.company-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
}

/* CNC LINE */
.cnc-line {
  position: absolute;
  left: -20%;
  bottom: -14px;
  width: 120%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.95),
    transparent
  );
  box-shadow:
    0 0 12px rgba(255,255,255,0.6),
    0 0 30px rgba(255,200,120,0.4);
  animation: cncMove 4s ease-in-out infinite;
}

.hero-sub {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-top: 12px;
}

.hero-desc {
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  margin-top: 20px;
  color: #ddd;
  line-height: 1.5;
}

/* ================= SECTION COMMON ================= */
.section {
  padding: 100px 20px;
  background: #fff;
  color: #000;
}


.section.gray { background: #f4f4f4; }
.section.dark { background: #111; color: #fff; }

/* ================= ABOUT ================= */
#about {
  font-size: 1.1875rem;
}

#about h2 { font-size: 2.6rem; }
#about h3 { font-size: 1.6rem; }
#about p  { font-size: 1.15rem; }

.about {
  padding-top: 50px;
}

/* Highlight */
.highlight {
  position: relative;
  font-weight: 800;
  color: #111;
  padding: 0 4px;
  text-shadow: 0 0 6px rgba(255,200,120,0.35);
}

.highlight::after {
  content: "";
  position: absolute;
  inset: auto 0 2px 0;
  height: 40%;
  background: linear-gradient(
    90deg,
    rgba(255,200,120,0.35),
    rgba(255,220,160,0.35)
  );
  z-index: -1;
  border-radius: 2px;
}

/* About Image */
.about-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.5rem;
}

.about-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.4);
  filter: blur(8px);
  transition: 
    opacity 0.6s ease,
    transform 0.8s ease,
    filter 0.8s ease;
}

.about-img.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  z-index: 2;
}

.about-img.suck-out {
  opacity: 0;
  transform: scale(0.3);
  filter: blur(12px);
}

.about-img.expand-in {
  opacity: 1;
  transform: scale(1.6);
  filter: blur(12px);
  animation: expandIn 0.8s ease forwards;
}

/* About Points */
.about-points {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.about-point {
  position: relative;
  padding: 6px 20px 6px 28px;
  background: #f9f9f9;
  border-radius: 14px;
}

.about-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  background: linear-gradient(
    to bottom,
    rgba(255,200,120,0.9),
    rgba(255,180,120,0.9)
  );
}

.point-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.title-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  font-weight: 700;
}
.title-underline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%; /* 글자 폭에 맞춤 */
  max-width: 600px; /* 최대폭 */
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,0,0,0.35),
    transparent
  );
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
  animation: softGlow 3.6s ease-in-out infinite;
}
/* ================= SHOWCASE ================= */
.showcase {
  position: relative;
  overflow: hidden; /* 이미지 잘림 방지용 */
}

.showcase-track {
  display: flex;
  transition: transform 0.5s ease;
}

.showcase-item {
  flex: 0 0 25%;
  padding: 0 10px;
}

.showcase-item img {
  width: 100%;
  height: 260px;
  padding-bottom: 5px;
  border-radius: 12px; /* 모서리 둥글게 */
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: auto;        /* 버튼 크기 고정 제거 */
  height: auto;
  background: none;   /* 배경 제거 */
  border: none;       /* 테두리 제거 */
  font-size: 36px;    /* 화살표 크기 */
  color: #fff;        /* 화살표 색 */
  cursor: pointer;
  padding: 0 8px;     /* 클릭 영역 확보 */
}
.slide-btn.prev { left: 16px; }
.slide-btn.next { right: 16px; }
/* ================= PARTNERS ================= */
.partners-slider {
  overflow: hidden;
}

.partners-track {
  display: flex;
  transition: transform 0.5s ease;
}

.partners-track img {
  padding: 0 20px;
  max-height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.products-section {
background-color: #f0f0f0; /* 밝은 회색 계열 */
  padding: 50px 20px;
  color: #111;
}
.products-section .container {
  text-align: center;   /* container에 text-align:center */
}
.products-section .section-title {

  margin-bottom: 40px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}


.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-item {
  text-align: center;
}

.product-item img {
  width: 100%;
  aspect-ratio: 1 / 1;       /* 정사각형 */
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-name {
  margin-top: 12px;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem); /* 화면 크기에 따라 자동 조절, 기본보다 더 크게 */
  font-weight: 800;                        /* 더 굵게 */
  color: #111;                              /* 검은색 */
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* 밑줄 강조 */
.product-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #222, #555); /* 검은 계열 그라데이션 */
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}


/* hover 효과 */
.product-item:hover .product-name {
  transform: translateY(-3px);  /* 살짝 위로 이동 */
  /* color 변화 제거, 검은색 그대로 */
}

.product-item:hover .product-name::after {
  transform: scaleX(1);         /* 밑줄 나타남 */
}

/* ================= CUTTING SLIDER ================= */

.cutting-slider-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;      /* 옆 이미지 숨김 */
  border-radius: 12px;
}

.cutting-slider-track {
  display: flex;
  width: 400%;           /* 슬라이드 4장 기준 */
  transition: transform 0.6s ease-in-out;
}

.cutting-slide {
  flex: 0 0 25%;         /* 100% ÷ 4장 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.cutting-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;   /* 이미지 비율 유지 */
  border-radius: 12px;
  display: block;
}
/* ================= CUTTING TITLE ================= */
#cutting .section-title {
  margin-top: -40px;      /* 위쪽 공간 확보 */
  margin-bottom: 30px;   /* 밑줄과 글 사이 간격 */
  text-align: center;    /* 가운데 정렬 */
}

/* h2.title-underline에 스타일 적용 */
#cutting .section-title h2.title-underline {
  font-size: 2.6rem;     /* about 섹션과 동일 */
  font-weight: 700;      /* 굵기 맞춤 */
  position: relative;
  display: inline-block;
  padding-bottom: 20px;  /* 밑줄과 글 사이 간격 */
}

.cutting .cutting-title .title-underline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,0,0,0.35),
    transparent
  );
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
  animation: softGlow 3.6s ease-in-out infinite;
}

/* ================= CUTTING TEXT ================= */
.cutting-text p {
  font-size: 1.1875rem;  /* about 섹션과 동일 */
  line-height: 1.6;      /* 줄 간격 맞춤 */
}

.cutting-text .highlight {
  font-weight: 800;       /* 강조 글씨 굵게 */
}


/* ================= MAP / 오시는 길 ================ */
#map {
  background-color: #f0f0f0; /* products-section처럼 회색 */
}

#map .section-title h2.title-underline {
  font-size: 2.6rem;
  font-weight: 700;
  padding-bottom: 20px;
}
.map #naver-map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.btn-gradient {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  color: #fff;
  text-decoration: none;
}

.map ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.map ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}
.map ul li i {
  font-size: 18px;
  color: var(--accent-color, #4facfe);
  margin-right: 8px;
  flex-shrink: 0;
}
.map ul li span {
  font-weight: 500;
  color: #0a1e50;
  line-height: 1.4;
}

/* ================= NAVER MAP BUTTON ================= */
.btn-naver {
  background: linear-gradient(
    135deg,
    #03c75a 0%,
    #00b84a 100%
  );
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  padding: 14px 34px;
  border: none;
  box-shadow:
    0 6px 18px rgba(3,199,90,0.35);
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* 호버 */
.btn-naver:hover {
  background: linear-gradient(
    135deg,
    #00d65f 0%,
    #00c853 100%
  );
  transform: translateY(-3px);
  box-shadow:
    0 10px 26px rgba(3,199,90,0.45);
  color: #fff;
}

/* 클릭(누를 때) */
.btn-naver:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px rgba(3,199,90,0.35);
  background: linear-gradient(
    135deg,
    #00b84a 0%,
    #009f3f 100%
  );
}

/* 아이콘 강조 */
.btn-naver i {
  font-size: 1.1rem;
}

/* ================= BUSINESS HOURS CARD ================= */
.business-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  height: 100%;
}

/* 타이틀 */
.business-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-left: 14px;
}

.business-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: linear-gradient(
    to bottom,
    #03c75a,
    #00b84a
  );
  border-radius: 2px;
}

/* 영업시간 리스트 */
.business-hours {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.business-hours li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-weight: 500;
  border-bottom: 1px dashed #ddd;
}

.business-hours li:last-child {
  border-bottom: none;
}

/* 요일 / 시간 */
.business-hours .day {
  color: #222;
}

.business-hours .time {
  font-weight: 700;
  color: #111;
}

/* 휴무 (강조 빨간색) */
.business-hours li.closed .day,
.business-hours li.closed .time {
  color: #d32f2f;
  font-weight: 800;
}

/* 하단 정보 */
.business-info {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.business-info p {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #333;
}
#map .card {
  height: 100%;
}

#map #naver-map {
  height: 400px;
}

/* 요일 전체 Bold */
.business-hours .day {
  font-weight: 800;   /* ← 핵심 */
  color: #111;
}

.business-hours li.closed .day,
.business-hours li.closed .time {
  color: #c62828;
  font-weight: 900;   /* 더 강하게 */
}

/* 하단 정보 공통 */
.business-info p {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;      /* 전체 Bold */
  color: #111;
}

/* 아이콘 느낌 강화 */
.business-info p strong {
  font-weight: 800;
  color: #03c75a;        /* 네이버 그린 포인트 */
  margin-right: 6px;
}

/* ================= TODAY HIGHLIGHT ================= */
.business-hours li.today {
  background: linear-gradient(
    90deg,
    rgba(3,199,90,0.12),
    rgba(3,199,90,0.03)
  );
  border-radius: 8px;
  padding-left: 10px;
  position: relative;
}

/* 좌측 포인트 바 */
.business-hours li.today::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: linear-gradient(
    to bottom,
    #03c75a,
    #00b84a
  );
  border-radius: 2px;
}

/* 글자 살짝 강조 */
.business-hours li.today .day,
.business-hours li.today .time {
  font-weight: 900;
}

/* ================= CONTACT CTA ================= */
.contact-cta {
   opacity: 1 !important;
  transform: none !important;
  background: #f8f9fa;
}

.contact-buttons {
  display: flex;
  gap: 16px;
}

.cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* 전화 */
.cta-btn.call {
  background: #03c75a;
  color: #fff;
}

.cta-btn.call:hover {
  background: #02b351;
}

/* 카카오톡 */
.cta-btn.kakao {
  background: #fee500;
  color: #3c1e1e;
}

.cta-btn.kakao:hover {
  background: #f5dc00;
}
/* ================= HERO CTA ================= */
.hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  min-width: 200px;
  height: 56px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.business-info a.contact-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.business-info a.contact-link:hover {
  text-decoration: underline;
}
/* 전화 버튼 */
.hero-btn.call {
  background: linear-gradient(135deg, #03c75a, #00b84a);
  color: #fff;
}

.hero-btn.call:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(3,199,90,0.35);
}

/* 카카오 버튼 */
.hero-btn.kakao {
  background: #fee500;
  color: #3c1e1e;
}

.hero-btn.kakao:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(254,229,0,0.45);
}
/* ================= PC ================= */
@media (min-width: 769px) {
  .partners-track {
    justify-content: center;
    gap: 48px;
  }

  .partners-track img {
    height: clamp(32px, 3.2vw, 56px);
    max-width: clamp(90px, 12vw, 160px);
    filter: grayscale(100%);
    opacity: 0.65;
    transition: 0.3s;
  }

  .partners-track img:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
  }
   .partners-track img:hover,
  .partners-track img.auto-hover {  /* ✅ auto-hover 추가 */
    filter: none;
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .nav { display: none; }

  .company-name { font-size: 2.4rem; }
  .hero-sub { font-size: 1.4rem; }
  .hero-desc { font-size: 0.95rem; }

  .showcase-item { flex: 0 0 100%; }

  .partners-track img {
    flex: 0 0 100%;
    height: 32px;
  }

  .about-image-wrapper {
    aspect-ratio: 4 / 3;
  }

  .about-img {
    object-fit: contain;
  }
    #about h2 {
    font-size: 1.8rem; /* 화면 작아지면 줄임 */
  }


  #about h3 {
    font-size: 1.4rem;
  }

  #about p {
    font-size: 0.95rem;
  }

  .about-point .point-title {
    font-size: 0.9rem; /* 포인트 제목 줄임 */
  }
  .product-item img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .product-item .product-name::after {
    transform: scaleX(0); /* 기본은 숨김 */
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  /* auto-hover 클래스 적용 시 */
  .product-item.auto-hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }

  .product-item.auto-hover .product-name::after {
    transform: scaleX(1);
  }
   #products .section-title.title-underline {
    font-size: 1.4rem !important;  /* 필요하면 더 줄이기 가능 */
    padding-bottom: 16px;          /* 밑줄과 글 사이 간격 */
    white-space: nowrap;            /* 한 줄로 유지 */
    overflow: hidden;               /* 넘치는 글 숨김 */
    text-overflow: ellipsis;        /* 글이 잘리면 ... 표시 */
  }
  #cutting .section-title h2.title-underline {
    font-size: 1.4rem !important;   /* 필요에 따라 더 작게 조절 */
    padding-bottom: 16px;           /* 밑줄과 글 사이 간격 */
    white-space: nowrap;             /* 한 줄로 유지 */
    overflow: hidden;                /* 넘치는 글 숨김 */
    text-overflow: ellipsis;         /* 필요시 ... 표시 */
  }
 #map .section-title h2.title-underline {
    font-size: 1.4rem;
    padding-bottom: 16px;
  }
  .contact-buttons {
    flex-direction: column;
  }
  
}
/* ================= 반응형 ================= */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
    .cutting-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .cutting-image {
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
/* ================= EFFECTS ================= */
.edge-glow {
  animation: glowPulse 4.5s ease-in-out infinite;
}

/* ================= KEYFRAMES ================= */
@keyframes cncMove {
  0% { transform: translateX(-120%); opacity: 0; }
  15% { opacity: 1; }
  45% { transform: translateX(120%); }
  65% { opacity: 0; }
  100% { transform: translateX(-120%); opacity: 0; }
}

@keyframes expandIn {
  to {
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes glowPulse {
  0%,100% {
    text-shadow: 0 0 6px rgba(255,255,255,0.3);
  }
  50% {
    text-shadow: 0 0 26px rgba(255,200,140,0.45);
  }
}
@keyframes glowPulseHero {
  0% {
    text-shadow: 
      0 0 4px rgba(255,255,255,0.6),
      0 0 10px rgba(255,200,120,0.4),
      0 0 16px rgba(255,200,180,0.3),
      0 0 28px rgba(255,180,140,0.2);
  }
  50% {
    text-shadow: 
      0 0 6px rgba(255,255,255,0.8),
      0 0 14px rgba(255,220,140,0.5),
      0 0 22px rgba(255,220,180,0.4),
      0 0 36px rgba(255,200,160,0.3);
  }
  100% {
    text-shadow: 
      0 0 4px rgba(255,255,255,0.6),
      0 0 10px rgba(255,200,120,0.4),
      0 0 16px rgba(255,200,180,0.3),
      0 0 28px rgba(255,180,140,0.2);
  }
}
