@charset "UTF-8";

:root {
  --main-navy: #0f2645;
  --text-dark: #222222;
  --text-gray: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --font-main: "りょうゴシック B", "Ryo Gothic B", "Noto Sans JP", sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  padding-top: 90px; /* 고정 헤더 높이 확보 */
}

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

ul, li {
  list-style: none !important; /* 모든 리스트 불릿 제거 */
}

/* ==========================================
   1. 고정 화이트 헤더 & 드롭다운 메뉴
   ========================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: var(--white);
  z-index: 1000;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  box-shadow: none; /* 최상단일 때 그림자 없음 */
}

#header.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 로고 영역 (불필요한 점/불릿 요소 완전 차단) */
.logo,
.logo a {
  display: flex;
  align-items: center;
  list-style: none !important;
  text-decoration: none;
}

.logo::before,
.logo a::before,
.logo::after,
.logo a::after {
  content: none !important;
}

.logo-img {
  height: 45px;
  width: auto;
  display: block;
}

/* PC 화면 기본: 햄버거 버튼 숨기기 (로고 옆 점 원인 해결) */
.hamburger-btn {
  display: none;
}

/* 네비게이션 메뉴 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-menu > ul {
  display: flex;
  gap: 30px;
}

.nav-menu > ul > li {
  position: relative;
  padding: 30px 0;
}

.nav-menu > ul > li > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--main-navy);
  transition: color 0.2s;
}

.nav-menu > ul > li:hover > a {
  color: #1d4d8c;
}

/* 드롭다운 서브메뉴 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  min-width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1100;
  border: 1px solid #eee;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #f0f4f8;
  color: var(--main-navy);
  font-weight: 700;
}

/* 문의하기 버튼 */
.btn-contact {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--white);
  border: 1px solid var(--main-navy);
  color: var(--main-navy) !important;
  font-weight: 600 !important;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background-color: var(--main-navy);
  color: var(--white) !important;
}

/* ==========================================
   2. 슬림 메인 비주얼
   ========================================== */
.main-visual {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 480px;
  max-height: 680px;
  overflow: hidden;
  background-color: #000;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 개별 슬라이드 기본 설정 (좌측 정렬) */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0; /* 기본적으로는 숨김 */
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 좌측 정렬 */
}

/* 🌟 질문하신 부분 1: 글씨 가독성을 위한 은은한 검은색 틴트 레이어 */
.slide::after {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.35); /* 숫자를 0.2~0.5로 조절해 밝기 변경 가능 */
  z-index: 1;
}

/* 🌟 질문하신 부분 2: 활성화된 슬라이드만 화면에 보임 */
.slide.active {
  opacity: 1;
}

/* 메인 비주얼 텍스트 (왼쪽 정렬 및 여백 확보) */
.visual-text {
  position: relative;
  z-index: 2; /* 틴트 레이어(z-index: 1)보다 위에 배치 */
  text-align: left;
  color: var(--white);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.visual-text h2 {
  font-size: 40px;
  letter-spacing: 2px;
  margin-bottom: 24px; /* h2와 p 간격 시원하게 확대 */
  font-weight: 500;
  line-height: 1.3;
}

.visual-text p {
  font-size: 17px;
  letter-spacing: 1px;
  opacity: 0.9;
  line-height: 1.6;
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
  .visual-text {
    padding: 0 20px;
  }
  
  .visual-text h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .visual-text p {
    font-size: 14px;
  }

  /* --- 모바일 다운로드 영역 최적화 (텍스트 상단, 이미지 하단 세로 배치) --- */
  .download-wrapper {
    flex-direction: column; /* 가로 배치를 세로 배치로 변경 */
    gap: 30px; /* 텍스트와 이미지 사이 여백 */
  }

  .download-text {
    width: 100%;
  }

  .download-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* 모바일에서 이미지가 너무 높아지지 않도록 비율 조정 (필요시 3/2로 변경 가능) */
  }
  
}

/* ==========================================
   깔끔한 캡슐 슬라이더 인디케이터 (배경박스/화살표 제거)
   ========================================== */
.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.capsule-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 기본 비활성 캡슐 (작은 상태) */
.capsule {
  display: inline-block;
  width: 10px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

/* 현재 선택되어 활성화된 캡슐 (길어지고 선명해짐) */
.capsule.active {
  width: 32px;
  background-color: var(--white);
}

/* 마우스 올렸을 때 */
.capsule:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .slider-controls {
    bottom: 20px;
  }
  
  .capsule {
    width: 8px;
    height: 3px;
  }
  
  .capsule.active {
    width: 24px;
  }
}

.prev-btn, .next-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  padding: 5px 10px;
  transition: opacity 0.2s;
}

.prev-btn:hover, .next-btn:hover {
  opacity: 0.7;
}

.dots-container {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--white);
  transform: scale(1.2);
}

/* ==========================================
   3. 공통 섹션 레이아웃
   ========================================== */
.section-padding {
  padding: 100px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .en-title {
  display: block;
  font-size: 13px;
  color: var(--text-gray);
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.section-title h2 {
  font-size: 28px;
  color: var(--main-navy);
  font-weight: 700;
}

/* ==========================================
   4. 제품 안내 (Products Grid - PC)
   ========================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--white);
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.product-card .img-box {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: #f0f0f0;
}

.product-card .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .img-box img {
  transform: scale(1.05);
}

.product-card h3 {
  padding: 20px;
  font-size: 17px;
  color: var(--main-navy);
  text-align: center;
}

.card-contact {
  background-color: var(--main-navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
}

.contact-card-inner {
  padding: 30px;
}

.contact-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 3px 10px;
  margin-bottom: 15px;
}

.card-contact h3 {
  color: var(--white);
  padding: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.card-contact .phone {
  font-size: 16px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.card-contact .btn-more {
  font-size: 13px;
  text-decoration: underline;
  opacity: 0.8;
}

/* ==========================================
   5. 施工事例 & 会社概要
   ========================================== */
.sec-works {
  background-color: var(--bg-light);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.work-card .img-box {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 15px;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-cat {
  font-size: 12px;
  color: var(--text-gray);
}

.work-title {
  font-size: 16px;
  color: var(--main-navy);
}

.btn-center {
  text-align: center;
}

.btn-outline {
  display: inline-block;
  padding: 12px 35px;
  border: 1px solid var(--main-navy);
  color: var(--main-navy);
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--main-navy);
  color: var(--white);
}

.download-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}

.download-text {
  flex: 1;
}

.download-text h2 {
  font-size: 26px;
  color: var(--main-navy);
  margin-bottom: 20px;
}

.download-text .desc {
  color: var(--text-gray);
  margin-bottom: 30px;
}

.download-img {
  flex: 1;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.download-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 다운로드 영역의 영문 서브 타이틀을 다른 섹션(.section-title .en-title)과 완벽히 동일한 폼으로 맞춤 */
.download-text .en-title {
  display: block;
  font-size: 13px;
  color: var(--text-gray);
  letter-spacing: 2px;
  margin-bottom: 5px;
}

/* ==========================================
   6. 푸터 & 사이트맵 (Footer & Sitemap - PC)
   ========================================== */
footer {
  background-color: var(--main-navy);
  color: var(--white);
  padding: 70px 0 25px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

/* 좌측 기업 정보 */
.footer-brand {
  flex: 0 0 320px;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 12px;
}

.footer-company-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.footer-company-en {
  font-size: 13px;
  color: #a0aec0;
  margin-bottom: 20px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact-info .small-text {
  font-size: 13px;
  color: #cbd5e0;
  line-height: 1.6;
}

.footer-contact-info .small-text a {
  color: #cbd5e0;
  text-decoration: underline;
}

.footer-contact-info .small-text a:hover {
  color: var(--white);
}

/* 우측 사이트맵 */
.footer-sitemap {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.sitemap-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.sitemap-title a:hover {
  color: #63b3ed;
}

.sitemap-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sitemap-col ul li a {
  font-size: 13px;
  color: #a0aec0;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.sitemap-col ul li a:hover {
  color: var(--white);
}

/* 하단 카피라이트 */
.footer-bottom {
  max-width: 1300px;
  margin: 50px auto 0;
  padding: 20px 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 11px;
  color: #a0aec0;
}

/* ==========================================
   7. 모바일 반응형 스타일 (768px 이하)
   ========================================== */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  /* --- 헤더 & 햄버거 메뉴 --- */
  #header {
    height: 70px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .logo-img {
    height: 35px;
  }

  /* 모바일 화면에서만 햄버거 버튼 노출 */
  .hamburger-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
  }

  .hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--main-navy);
    transition: all 0.3s ease;
  }

  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* 모바일 네비게이션 드로어 */
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 30px 20px;
    gap: 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu > ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu > ul > li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    padding: 0;
    margin-top: 10px;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .has-dropdown.open .dropdown-menu {
    max-height: 500px;
    padding: 10px 0;
  }

  .btn-contact {
    text-align: center;
    margin-top: 10px;
  }

  /* --- 메인 비주얼 슬라이더 --- */
  .main-visual {
    height: 45vh;
    min-height: 320px;
  }

  .visual-text h2 {
    font-size: 24px;
  }

  .visual-text p {
    font-size: 13px;
  }

  /* --- 모바일 그리드 2열 수정 (11개 제품 스크롤 부담 절반 감소) --- */
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-card h3 {
    padding: 12px 8px !important;
    font-size: 13px !important;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .company-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  /* --- 모바일 푸터 최적화 (사이트맵 숨김 & 글자 크기 업) --- */
  footer {
    padding: 40px 0 25px;
  }

  .footer-inner {
    flex-direction: column;
    padding: 0 20px;
    gap: 20px;
    text-align: center;
    align-items: center;
  }

  .footer-brand {
    flex: none;
    width: 100%;
  }

  /* 모바일 사이트맵 안 보이게 완전히 숨김 */
  .footer-sitemap {
    display: none !important;
  }

  .footer-company-name {
    font-size: 19px;
  }

  .footer-company-en {
    font-size: 13px;
    margin-bottom: 15px;
  }

  /* 푸터 텍스트 글자 크기 14px로 상향 & 행간 확보 */
  .footer-contact-info .small-text {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }

  .footer-bottom {
    margin-top: 25px;
    padding: 15px 20px 0;
    font-size: 12px !important;
  }
}