
/* 기본 세팅 */

html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  line-height: 1.6;
  background-color: #f0f6fc;
  color:
}


h2{color:#003366;}
p{
  font-size : 25px;
}
/* 전체 레이아웃 감싸기 */
.container {
  max-width: 640px;    /* PC에서는 640px로 고정 */
  margin: 0 auto;      /* 가운데 정렬 */

  box-sizing: border-box;
  background: #f0f6fc; /* 페이지 배경색 */
}

/* 메인 히어로 */
.main-hero {
  text-align: center;
  background: #013dfd;
  padding:0;
  border-radius: 20px;
  
}
.hero-img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 640px; /* PC 제한 */
  height: auto;
  border-radius: 0;
}
.cta {
  display: block;
  text-align: center;
  background: #ff3333; /* 확 튀는 빨강 (필요시 블루로 변경) */
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 0;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);

  /* ✨ 반짝 효과 애니메이션 */
  animation: blink 1s infinite alternate;
}
.cta a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 28px;
  padding: 18px 32px;
  display: inline-block
}

/* 시공사례 */
.cases {
 
  text-align: center;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.case-item img {
  width: 100%;

  border: 2px solid #ccd9e8;
}
.case-item p {
  margin-top: 8px;
  font-size: 15px;
  font-weight: bold;
  color: #003366;
}

/* 서비스 항목 */
.services {
  padding: 10px 20px;
  text-align: center;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.service-item {
  background: #fff;
  border: 2px solid #ccd9e8;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: 0.3s;
  
}
.service-item:hover {
  border-color: #0056a3;
  background: #f5f9ff;
   transform: scale(1.03);
  border-color: #0056a3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  
}
.service-item img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.service-item p {
  font-weight: bold;
  color: #003366;
  margin-bottom: 10px;
}
.service-item .detail {
  display: none;
  font-size: 14px;
  color: #333;
  text-align: left;
  margin-top: 10px;
}
.detail {
  display: none;            /* 기본 숨김 */
  margin-top: 15px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2열 */
  gap: 10px;
}

.detail-gallery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #ddd;
}
/* 시공사진 슬라이드 */
.gallery {
  padding: 60px 20px;
  text-align: center;
}
.slider {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
}
.slides img {
  width: 100%;
  display: none;
  border-radius: 10px;
}
.slides img.active {
  display: block;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,51,102,0.7);
  color: #fff;
  border: none;
  font-size: 20px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
}
.prev { left: 10px; }
.next { right: 10px; }

/* 푸터 */
footer {
  background: #002244;
  color: #fff;
  text-align: center;
  padding: 30px 20px 30px 20px;
  font-size: 14px;
}


./* 푸터 위 CTA (페이지 레이아웃 안) */
.fixed-cta {
  max-width: 640px;
  margin: 40px auto;        /* 푸터랑 간격 */
  text-align: center;
}

.fixed-cta a {
  display: block;
  background: #ff3333;      /* 빨강 CTA */
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  padding: 14px 0;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);

  /* 반짝 효과 (빨강 전용) */
  animation: blink-red 1s infinite alternate;
}

@keyframes blink-red {
  0% {
    background: #ff3333;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    transform: scale(1);
  }
  100% {
    background: #ff6666;
    box-shadow: 0 0 25px rgba(255, 100, 100, 0.9);
    transform: scale(1.05);
  }
}

/* 떠다니는 CTA (항상 화면 하단 중앙 고정) */
.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  z-index: 10000;
}

.floating-cta a {
  display: block;
  text-align: center;
  background: #0056a3;      /* 파랑 CTA */
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  padding: 20px 0;
  border-radius:20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);

  /* 반짝 효과 (파랑 전용) */
  animation: blink-blue 1.2s infinite alternate;
}

@keyframes blink-blue {
  0% {
    background: #0056a3;
    box-shadow: 0 0 10px rgba(0, 86, 163, 0.5);
    transform: scale(1);
  }
  100% {
    background: #007bff;
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.9);
    transform: scale(1.08);
  }
}


/* 반응형 */
@media (max-width: 768px) {
  .hero-img {
    max-width: 100%; /* 모바일에서는 화면 가득 */
    height: auto;
  }
  .cta a {
    max-width: 640;
    font-size: 28px;
    padding: 20px 36px;
  }
  .fixed-cta a {
    font-size: 18px;
    padding: 12px 0;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .service-list {
    grid-template-columns: 1fr ; /* 모바일에서는 1개씩 */
  }
   .floating-cta {
    max-width: 100%;   /* 모바일은 화면 가득 */
  }
  .floating-cta a {
    font-size: 26px;   /* 🔥 모바일에서 더 큼 */
    padding: 22px 0;
  }
}
