/* 기본 리셋 및 폰트 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    padding-bottom: 90px; /* 하단 최근실적 위젯 영역 확보 */
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 유틸리티 크기 규격 */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}
.section {
    padding: 60px 0;
}
.bg-light {
    background-color: #f7f9fc;
}
.text-center {
    text-align: center;
}
.text-white {
    color: #fff !important;
}

/* 상단 고정 헤더 */
#header {
    background: #fff;
    border-bottom: 2px solid #024486;
    padding: 15px 0;
}
.header-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.main-logo {
    font-size: 1.7rem;
    font-weight: 900;
    color: #024486;
}
.top-slogan {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}
.header-contact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.contact-item {
    font-size: 0.95rem;
    font-weight: bold;
}
.contact-item .lbl {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    font-size: 0.8rem;
    margin-right: 4px;
}
.contact-item .lbl.sms { background-color: #28a745; }
.contact-item .lbl.tel { background-color: #024486; }
.contact-item .lbl.fax { background-color: #6c757d; }
.contact-item a:hover { text-decoration: underline; color: #024486;}

/* 반응형 내비게이션 바 */
#nav-bar {
    background-color: #024486;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.nav-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}
#mobile-toggle-btn {
    display: none;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
}
#menu-list {
    list-style: none;
    display: flex;
    justify-content: flex-start;
}
#menu-list li a {
    display: block;
    padding: 16px 20px;
    color: #fff;
    font-weight: 500;
    font-size: 1.05rem;
    transition: background 0.2s;
}
#menu-list li a:hover {
    background-color: #012d5a;
}
#menu-list li a.highlight-menu {
    background-color: #d94141;
    font-weight: bold;
}
#menu-list li a.highlight-menu:hover {
    background-color: #b32d2d;
}
#menu-list li a.blog-link {
    color: #2db400;
    font-weight: bold;
}

/* 메인 영웅 배너 */
.hero-section {
    padding: 20px 0;
    background: #f0f4f8;
}
.hero-section img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 공통 타이틀 */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background-color: #024486;
}
.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* 반응형 이미지 격자판 (시공사례 / 장비) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.gallery-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.gallery-card img {
    width: 100%;
    height: 190px;
    object-fit: cover; /* 서로 다른 원본비율 크기를 깔끔히 정비 */
    background-color: #f1f1f1;
}
.gallery-card figcaption {
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    color: #222;
    background: #fff;
    border-top: 1px solid #edf2f7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 누수 원인 구분 디자인 개선 */
.cause-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.cause-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.03);
}
.cause-card h3 {
    font-size: 1.25rem;
    color: #024486;
    margin-bottom: 15px;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
}
.cause-desc {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #475569;
}

/* 서비스 프로세스 바 블루 배너 */
.banner-blue {
    background: linear-gradient(135deg, #024486, #012d5a);
}
.process-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.process-flow .step {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}
.process-flow .arrow {
    color: #cbd5e1;
    font-weight: bold;
}

/* 회사소개 구조 개선 */
.about-lead {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 30px;
    text-align: justify;
}
.sub-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #111;
}
.tech-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}
.tech-list {
    flex: 1;
    min-width: 280px;
    list-style-position: inside;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.tech-list li {
    font-size: 0.95rem;
    color: #475569;
}
.blog-banner {
    width: 220px;
}

/* 오시는 길 지도 래퍼 */
.map-wrapper {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

/* 하단 빠른 견적 폼 영역 */
.estimation-flex {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.estimation-banner {
    flex: 1;
    min-width: 300px;
}
.fallback-est-text {
    background-color: #f1f5f9;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid #024486;
}
.fallback-est-text h3 { color: #024486; margin-bottom: 8px; }

.estimation-form-box {
    flex: 1.3;
    min-width: 300px;
    background: #f8fafc;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.form-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #111;
    border-bottom: 2px solid #024486;
    padding-bottom: 8px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #475569;
}
.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: #fff;
}
.form-group textarea {
    height: 80px;
    resize: none;
}
.tel-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tel-inputs select, .tel-inputs input {
    flex: 1;
    text-align: center;
}
.privacy-group {
    margin-top: 20px;
}
.privacy-box {
    background: #eed;
    border: 1px solid #cbd5e1;
    padding: 10px;
    height: 90px;
    overflow-y: scroll;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 8px;
    border-radius: 4px;
}
.privacy-agree {
    font-size: 0.85rem;
    cursor: pointer;
}
.btn-submit {
    display: block;
    width: 100%;
    background-color: #d94141;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 15px;
}
.btn-submit:hover {
    background-color: #b32d2d;
}

/* 하단 정보 푸터 */
#footer {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 40px 0;
    font-size: 0.9rem;
}
.footer-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-main-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-main-info h3 {
    color: #fff;
    font-size: 1.3rem;
}
.f-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}
.f-sms { color: #4ade80; font-weight: bold; font-size: 1.1rem; }
.f-tel { color: #facc15; font-weight: bold; font-size: 1.4rem; }
.footer-bar {
    border: 0;
    height: 1px;
    background: #334155;
    margin: 20px 0;
}
.footer-address p {
    margin-bottom: 5px;
}
.copyright {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #64748b;
}
.copyright a { color: #cbd5e1; text-decoration: underline;}

/* 최하단 롤링 전광판 위젯 전용 고정 스크립트 대응 CSS */
.jandi-result-widget,
.jandi-result-widget * {
  box-sizing: border-box;
}
.jandi-result-widget {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: sans-serif;
    position: fixed;
    bottom: 0px;
    left: 0;
    z-index: 10000;
    text-align: center;
}
.jandi-result-widget .jrw-label {
  display: inline-block;
  margin-bottom: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #0a7a32;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.jandi-result-widget .jrw-board {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  background: #111;
  border-top: 3px solid #22c55e;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
  overflow: hidden;
}
.jandi-result-widget .jrw-text {
  color: #d9ff7a;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #d9ff7a;
  animation: jrwCursor 0.7s infinite;
}
@keyframes jrwCursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: #d9ff7a; }
}

/* 반응형 스마트폰/태블릿 디바이스 환경 적용 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .header-contact {
        justify-content: center;
    }
    #mobile-toggle-btn {
        display: block;
    }
    #menu-list {
        display: none;
        flex-direction: column;
        background-color: #012d5a;
    }
    #menu-list li a {
        padding: 12px 20px;
        border-bottom: 1px solid #024486;
    }
    .cause-container {
        grid-template-columns: 1fr;
    }
    .tech-list {
        grid-template-columns: 1fr;
    }
    .process-flow {
        flex-direction: column;
    }
    .process-flow .arrow {
        transform: rotate(90deg);
        margin: 2px 0;
    }
    .footer-main-info {
        flex-direction: column;
        text-align: center;
    }
    .f-contact {
        flex-direction: column;
        gap: 5px;
    }
    .jandi-result-widget .jrw-text {
        font-size: 14px;
    }
}