/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
}
html, body {
  overflow-x: hidden;
}
body {
    line-height: 1.6;
    color: #333;
}

html {
    font-size: 16px;
}

/* 데스크탑 기본: 한 줄 */
.title-heading .mobile-break {
    display: inline;
}

/* 모바일: 줄바꿈 유도 */
@media (max-width: 768px) {
    .title-heading .mobile-break {
        display: block;
    }
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* 로고 주변 여백 */
.logo {
    margin-right: auto;
    padding-right: 1rem;
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    font-size: 1.35rem; /* 🔵 키움 */
    font-weight: 700;   /* 🔵 더 강하게 */
    color: #0164ee;     /* 🔵 맑고 선명한 푸른색 */
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

nav {
    display: flex;
    overflow-x: auto; /* 가로 스크롤 허용 */
    white-space: nowrap; /* 줄바꿈 방지 */
    -webkit-overflow-scrolling: touch; /* iOS 스크롤 부드럽게 */
    gap: 1rem;
    padding: 0.5rem 1rem;
}

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* nav 공통 */
.scroll-nav {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    width: 100%;
}

.scroll-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 700;
}

.nav-arrow {
    background-color: #ffffff;
    border: 1px solid #c0c0c0;
    color: #222;
    visibility: hidden;
    cursor: pointer;
}

.nav-arrow:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.nav-arrow svg {
    stroke: currentColor;
    stroke-width: 2;
    pointer-events: none;
}


/* 태블릿 및 Fold 포함 769px 이상은 전부 데스크탑처럼 우측 정렬 */
@media (min-width: 609px) {
    .scroll-nav {
        justify-content: flex-end !important;
        overflow-x: visible !important;
        white-space: normal !important;
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
        padding: 0.5rem 1rem;
    }

    .scroll-nav a {
        flex: 0 0 auto;
        padding: 0.5rem 0.8rem;
    }

    .arrow-controls {
        display: none !important;
    }
}

@media (min-width: 609px) {
    .scroll-nav {
        justify-content: flex-end !important;
        overflow-x: visible !important;
        white-space: normal !important;
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
        padding: 0.5rem 1rem;
    }

    .scroll-nav a {
        flex: 0 0 auto;
        padding: 0.5rem 0.8rem;
    }

    .arrow-controls {
        display: none !important;
    }
}



/* 애니메이션 */
.fade-opacity {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-opacity.visible {
    opacity: 1;
}

.fade-slide {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-slide.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 헤더 */
header {
    background: #fff;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

nav a {
    margin: 0 0.4rem;  /* 0.4rem으로 줄여서 자리를 확보하세요 */
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

/* Hero 섹션 */
.hero {
    background: #f5f5f5 url('https://images.pexels.com/photos/4107284/pexels-photo-4107284.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=1080') no-repeat center center;
    background-size: cover;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    position: relative;
    color: white;
}

.hero_service {
    height: 60vh;
    background-image: url('https://images.pexels.com/photos/271816/pexels-photo-271816.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero_howto {
    height: 60vh;
    background-image: url('https://images.pexels.com/photos/2343468/pexels-photo-2343468.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.cleaning-chat-section {
    background: #f2fbff;
    padding: 4rem 0; /* 상하 여백만 */
    width: 100%;
}




.cleaning-chat-inner {
    max-width: 960px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.chat-icon {
    font-size: 1.75rem;
}

.chat-header h3 {
    font-size: 1.4rem;
    margin: 0;
    color: #2c3e50;
}

.chat-subtext {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.chat-button {
    background-color: #fae100;
    color: #000;
    font-weight: bold;
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 1rem;
}

.chat-button:hover {
    background-color: #fff15f;
    color: #111;
}

/* 서비스 신청 버튼 */
.apply-button {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    background-color: #0164ee;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.apply-button:hover {
    background-color: #1124f7;
    
}

/* 카카오 버튼 영역 */
.kakao-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.kakao-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fae100;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.2;
    min-width: 240px;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.kakao-button:hover {
    background-color: #fff69b;
    color: #333;
}

.kakao-button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

/* 주요 섹션들 */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 3.5rem 1.25rem;
    background: #fff;
}

.feature {
    flex: 1 1 250px;
    max-width: 300px;
    margin: 1.25rem;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
}

.feature h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.usage-process-section {
    background: #f9fafb;
    padding: 4rem 1.5rem;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
}

.process-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.process-header p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.process-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
  }

  .process-card {
    flex: 1 1 calc(20% - 2rem);
    min-width: 200px;
    max-width: 300px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .process-card:hover {
    transform: translateY(-5px);
    opacity: 0.95;
  }

  .icon-circle {
    width: 40px;
    height: 40px;
    background-color: #444;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin: 0 auto 1rem auto;
  }

.process-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.process-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.demolition-section {
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
    padding: 4rem 1.5rem;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
}

.demolition-content {
    max-width: 960px;
    margin: 0 auto;
}

.demolition-subtitle {
    font-size: 1.125rem;
    color: #444;
    margin: 1rem 0 2.5rem;
}

.demolition-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.channel-section {
    background: #ffffff;
    padding: 4rem 1.5rem;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
}

.channel-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.channel-header p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.channel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
}

/* 기본 카드 스타일 (데스크탑 기준 그대로 유지) */
.channel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f9f9f9;
    border-radius: 0.75rem;
    padding: 1rem;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    width: 120px;
}

.channel-card:hover {
    transform: translateY(-4px);
}

.channel-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

/* ✅ 모바일에서만 2열로 강제 정렬 */
@media (max-width: 768px) {
    .channel-grid {
        justify-content: space-between;
        gap: 0.75rem;
    }

    .channel-card {
        width: calc(50% - 0.75rem); /* 정확히 2개씩 들어가게 */
    }
}


.testimonial-slider-section {
    background: linear-gradient(135deg, #2c3e50, #1e3c72);
    color: #fff;
    padding: 5rem 1.5rem;
    font-family: 'Pretendard', sans-serif;
    overflow: hidden;
}

.testimonial-slider-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-slider-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: fade-in 1s ease-out forwards;
}

.testimonial-slider-header p {
    font-size: 1rem;
    color: #ddd;
    animation: fade-in 1.5s ease-out forwards;
}

.testimonial-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 2rem;
}

.testimonial-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.testimonial-slider:active {
    cursor: grabbing;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-slide {
    flex: 0 0 auto;
    width: 300px;
    background: #f9f9f9;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.testimonial-slide {
    flex: 0 0 auto;
    width: 300px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background: #f9f9f9;
    /* pointer-events 제거 */
}

.testimonial-slide img {
    width: 100%;
    height: 200px;
    object-fit: fill;  /* 🔵 이미지 비율 무시하고 강제 늘리기 */
    display: block;
}

.testimonial-slide-text {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex !important; /* 강제 항상 표시 */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 99;
}

.slider-arrow.left { left: 4px; }
.slider-arrow.right { right: 4px; }

.slider-arrow:hover {
    background: rgba(230,230,230,1);
}

/* 데스크탑만 화살표 표시 */
@media (max-width: 768px) {
    .slider-arrow {
        display: none;
    }
}

/* Animation Keyframes */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-slide-inner {
    will-change: transform;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-slide:hover .testimonial-slide-inner {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.testimonial-slider:active {
    cursor: grabbing;
}

.step-box {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step-box:hover {
    transform: translateY(-5px);
}

.step-box h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}


.step-box p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.cta-box {
    background: #2c3e50;
    color: #fff;
    padding: 2rem;
    border-radius: 1rem;
}

.cta-box p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.consult-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #f7e600;
    color: #000;
    font-weight: bold;
    border-radius: 2rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.consult-button:hover {
    background-color: #ffe400;
}

/* 푸터 */
footer {
    background: #222;
    color: #fff;
    text-align: left;
    padding: 2.5rem 1.25rem;
    font-size: 0.9rem;
}

/* 스크롤 화살표 */
#scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: #666;
    opacity: 0.9;
    cursor: default;
    display: none;
    z-index: 999;
    animation: bounce 1.5s infinite;
}

.demolition_items{
    width: 100%;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 10px);
    }
}

/* Galaxy Fold 펼친 상태 - 강제 우측 정렬 처리 */
@media (max-width: 768px) and (min-width: 600px) and (orientation: landscape) {
    .scroll-nav {
        justify-content: flex-end !important;
        overflow-x: visible !important;
        white-space: normal !important;
        flex-wrap: wrap;
    }

    .arrow-controls {
        display: none !important;
    }

    a.tel-link {
  color: inherit;        /* 부모 요소의 글자색 유지 */
  text-decoration: none; /* 밑줄 제거 */
  font-weight: bold;     /* 원하는 스타일 적용 */
}
}

.introduce-header {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
}

.introduce-header p strong {
    color: red; /* 브랜드 컬러 강조 */
    font-weight: 600;
}

a.tel-link {
  color: inherit;        /* 부모 요소의 글자색 유지 */
  text-decoration: none; /* 밑줄 제거 */
  font-weight: bold;     /* 원하는 스타일 적용 */
}

.side-panel {
  position: fixed;
  top: 0;
  right: -50vw;      /* ❗ 화면 절반만큼 숨김 */
  width: 50vw;        /* ✅ 화면 절반 너비 */
  height: 100vh;
  background: #fff;
  transition: right 0.3s ease;
  z-index: 2000;
  padding: 2vw;       /* ✅ 상대 단위 padding */
  box-shadow: -0.5vw 0 1vw rgba(0, 0, 0, 0.2);
}

.side-panel.open {
  right: 0;
}

/* 우측 탭 버튼 */
.side-tab-button {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 1.2vw 0.8vw;
  border-radius: 1vw 0 0 1vw;
  cursor: pointer;
  z-index: 2001;
  writing-mode: vertical-rl;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .side-panel {
    width: 80vw;
    right: -80vw;
  }
}




.beforeafter-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  margin-top: 4vw;
  box-sizing: border-box;
}

.beforeafter-strip {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
  width: 100%;
  box-sizing: content-box; /* ✅ 핵심: padding 포함 X */
}


.beforeafter-set {
  flex: 0 0 100%;          /* ✅ 정확히 100% 너비 */
  display: flex;
  justify-content: space-between;
  padding: 0 4vw;          /* ✅ 좌우 여백 포함 */
  box-sizing: border-box;
  gap: 2vw;
}

.beforeafter-img {
  width: 48%;
  max-width: 48%;
  object-fit: cover;
  border-radius: 1vw;
  max-height: 40vh;
}

/* 네비게이션 버튼 */
.beforeafter-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 3vw;
  font-size: 5vw;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
}

.beforeafter-nav.prev {
  left: 2vw;
}

.beforeafter-nav.next {
  right: 2vw;
}

/* ✅ 모바일 세로 대응 */
@media (max-width: 600px) {
  .beforeafter-set {
    flex-direction: row;       /* ✅ 가로 방향 유지 */
    gap: 2vw;
    padding: 0 2vw;
  }

  .beforeafter-img {
    width: 48vw;               /* ✅ 화면 절반 */
    max-height: 35vh;
  }
}

.beforeafter-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 1.8rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;

  width: 36px;
  height: 36px;

  display: flex;                  /* ✅ 정중앙 정렬 핵심 */
  justify-content: center;
  align-items: center;
  padding: 0;                     /* ✅ 안쪽 여백 제거 */
  line-height: 1;                 /* ✅ 수직 정렬 보정 */
}

@media (max-width: 600px) {
  .beforeafter-nav {
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    top: 25%;
  }
  .beforeafter-set {
    padding-top: 10vh;
  }
}