/* 기본 리셋 & 글로벌 스타일 */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Noto Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { color: #44403c; line-height: 1.6; background-color: #fafaf9; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* 헤더 스타일 */
header { background: #ffffff; border-bottom: 1px solid #e7e5e4; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.3rem; font-weight: 700; color: #1c1917; cursor: pointer; }
.nav-menu { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.nav-menu a { font-weight: 500; color: #57534e; transition: color 0.2s; cursor: pointer; }
.nav-menu a:hover, .nav-menu a.active { color: #ea580c; font-weight: 700; }

/* 히어로 섹션 */
.hero { background: url('/photos/imgsv/file_6a8513264a9197.44838844.webp') center / cover no-repeat; color: #ffffff; padding: 140px 0; text-align: center; }
.hero--home { padding: 220px 0; }
.hero h1 { font-size: 3.4rem; font-weight: 800; margin-bottom: 20px; word-break: keep-all; line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero p { font-size: 1.5rem; color: #e7e5e4; max-width: 700px; margin: 0 auto 30px; word-break: keep-all; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-btns .btn { padding: 18px 36px; font-size: 1.2rem; }
.hero--home { text-align: left; }
.hero--home p { margin-left: 0; }
.hero--home .hero-btns { justify-content: flex-start; }
.hero--slider { position: relative; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: heroSlide 20s infinite; }
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }
.hero-slide:nth-child(5) { animation-delay: 16s; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(28,25,23,.55) 0%, rgba(41,37,36,.55) 100%); }
.hero--slider .container { position: relative; z-index: 2; }
@keyframes heroSlide { 0% { opacity: 0; } 4% { opacity: 1; } 20% { opacity: 1; } 24% { opacity: 0; } 100% { opacity: 0; } }
.btn { padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s; border: none; display: inline-block; }
.btn-primary { background-color: #ea580c; color: #ffffff; }
.btn-primary:hover { background-color: #c2410c; }
.btn-secondary { background-color: #ffffff; color: #1c1917; }
.btn-secondary:hover { background-color: #f5f5f4; }

/* 본문 공통 스타일 */
.section { padding: 60px 0; background: #ffffff; margin-bottom: 20px; }
.section-title { font-size: 1.6rem; font-weight: 700; color: #1c1917; margin-bottom: 24px; text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 30px; }
.card { background: #fafaf9; border: 1px solid #e7e5e4; border-radius: 12px; padding: 24px; }
.card h3 { font-size: 1.2rem; color: #292524; margin-bottom: 12px; }

/* 표 스타일 */
.custom-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 20px 0; background: #ffffff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.custom-table th, .custom-table td { padding: 16px; text-align: left; border-bottom: 1px solid #e7e5e4; font-size: 0.95rem; word-break: keep-all; overflow-wrap: break-word; }
.custom-table th { background-color: #f5f5f4; color: #44403c; font-weight: 600; }

@media (max-width: 600px) {
  .custom-table th, .custom-table td { padding: 6px; font-size: 0.7rem; }
}

/* 프로세스 도식화 */
.process-flow { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.process-step { flex: 1; min-width: 200px; background: #ffffff; border: 1px solid #d6d3d1; border-top: 4px solid #ea580c; padding: 20px; border-radius: 8px; position: relative; }
.step-num { font-size: 0.85rem; font-weight: 700; color: #ea580c; margin-bottom: 8px; }
.step-title { font-size: 1.1rem; font-weight: 700; color: #1c1917; margin-bottom: 8px; }

/* 시공사례 갤러리 */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; }
.gallery-grid figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid #e7e5e4; background: #f5f5f4; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.gallery-grid figcaption { font-size: 0.85rem; color: #78716c; text-align: center; padding: 8px 6px; }

/* 시공사례 표 (전/중/후) */
.case-table-wrap { overflow-x: auto; margin-top: 30px; }
.case-table { width: 100%; min-width: 720px; border-collapse: collapse; background: #ffffff; table-layout: fixed; }
.case-table .case-col-label { width: 120px; }
.case-table th, .case-table td { border: 1px solid #e7e5e4; padding: 16px; vertical-align: middle; }
.case-table thead th { background: #f5f5f4; font-weight: 700; font-size: 0.95rem; color: #1c1917; text-align: center; padding: 12px; }
.case-table tbody th { font-weight: 700; font-size: 0.95rem; color: #1c1917; background: #f5f5f4; text-align: center; white-space: nowrap; }
.case-table td { text-align: center; }
.case-table figure { margin: 0; background: #f5f5f4; }
.case-table img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; display: block; margin-bottom: 8px; }
.case-table figcaption { font-size: 0.8rem; color: #78716c; }
@media (max-width: 860px) {
  .case-table th, .case-table td { padding: 10px; font-size: 0.85rem; }
}
@media (max-width: 600px) {
  .case-table-wrap { overflow-x: visible; }
  .case-table { min-width: 0; }
  .case-table .case-col-label { width: 34px; }
  .case-table th, .case-table td { padding: 4px 2px; font-size: 0.65rem; }
  .case-table tbody th { font-size: 0.55rem; white-space: normal; word-break: keep-all; }
  .case-table figcaption { font-size: 0.6rem; }
}

/* 관련 페이지 링크 */
.related-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.related-nav a { padding: 10px 20px; border: 1px solid #e7e5e4; border-radius: 999px; color: #44403c; font-weight: 500; transition: all 0.2s; }
.related-nav a:hover { border-color: #ea580c; color: #ea580c; }

/* CTA 섹션 */
.cta-section { background: #292524; color: #ffffff; padding: 50px 0; text-align: center; }
.cta-section h2 { font-size: 1.8rem; margin-bottom: 16px; }
.cta-section p { color: #d6d3d1; margin-bottom: 24px; }

/* 푸터 스타일 */
footer { background: #1c1917; color: #a8a29e; padding: 18px 0; font-size: 0.85rem; line-height: 1.6; border-top: 1px solid #292524; }
.footer-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.footer-info span:not(:last-child)::after { content: "\00B7"; margin-left: 12px; opacity: .6; }

/* 키워드 캐러셀 */
.keyword-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 24px; margin-top: 30px; }
.keyword-carousel::-webkit-scrollbar { height: 8px; }
.keyword-carousel::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 4px; }
.keyword-card { flex: 0 0 240px; scroll-snap-align: start; border-radius: 12px; overflow: hidden; border: 1px solid #e7e5e4; background: #ffffff; transition: transform 0.2s, box-shadow 0.2s; }
.keyword-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.keyword-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.keyword-card .kc-body { padding: 14px 16px; }
.keyword-card h3 { font-size: 1.05rem; color: #1c1917; margin-bottom: 6px; }
.keyword-card p { font-size: 0.85rem; color: #78716c; }
.keyword-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.keyword-grid .keyword-card { flex: none; }

/* 반응형 모바일 */
@media (max-width: 768px) {
.hero h1 { font-size: 2rem; }
.hero-btns .btn { padding: 14px 26px; font-size: 1.05rem; }
.header-inner { flex-direction: column; height: auto; padding: 15px 0; gap: 10px; }
.process-flow { flex-direction: column; }
.keyword-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
.keyword-grid { grid-template-columns: 1fr; }
}
