
/* 기본 설정 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
    background: #fbfbfb;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}
* {
    box-sizing: border-box;
}
img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
button {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 상단바 */
.top_bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #fff; /* 투명 없앰 */
    border-top: 4px solid #0066ff; /* 상단 파란색 선 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.top_bar.scrolled {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.top_bar_sub {
    display: flex;
    padding-top: 10px;
    padding-right: 40px;
    padding-bottom: 10px;
    padding-left: 10px; /* ← 좌측만 조절 */        align-items: center;
    justify-content: space-between;
}
.top_logo img {
    height: 50px;
    margin-left: 0; /* 좌측 여백 제거 */
    object-fit: contain;
}
.top_menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}
.top_menu li {
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.top_menu li a {
    padding: 5px 0;
}
.top_menu li:hover {
    color: #0066ff;
}
.top_request_btn button {
    background: #0066ff;
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}
.top_request_btn button:hover {
    background: #004ecc;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 102, 255, 0.4);
}

/* 햄버거 */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #333; /* 항상 검정 계열로 */
    transition: color 0.4s ease;
}

/* 컨테이너1 - 메인 비주얼 */
.container1 {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* .main_banner_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
} */

.container1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.container1_con {
    position: relative;
    z-index: 10;
    color: #fff;
}
.con1_title1 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.con1_title2 {
    font-size: 58px;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}
.color_blue1 {
    color: #fbfbfb;
}

/* 컨테이너2 - 서비스 카드 */
.container2 {
    padding: 120px 40px;
    background: #fbfbfb;
    text-align: center;
}
.con2_title1 {
    font-size: 38px;
    margin-bottom: 60px;
    font-weight: 700;
}
.service_cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.service_card {
    border-radius: 18px;
    padding: 50px 30px;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: left;
}
.service_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.service_card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0066ff;
}
.service_card p {
    font-size: 16px;
    color: #555;
}

/* 이용 절차 (Process) - 화살표 중앙 정렬 수정됨 */
.process_area {
    background: #fff;
    padding: 120px 40px;
    text-align: center;
}
.process_area h2 {
    font-size: 38px;
    margin-bottom: 80px;
    font-weight: 700;
}
.process_cards {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    /* 핵심 수정: 모든 요소를 수직 중앙에 정렬 */
    align-items: center; 
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}
.process_card {
    background: #fff;
    border-radius: 16px;
    padding: 50px 30px;
    flex-shrink: 0;
    width: 30%;
    max-width: 300px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    text-align: left;
}
.process_card:hover {
    border-color: #0066ff;
    transform: translateY(-2px);
}
.process_card div:first-child {
    font-size: 32px;
    font-weight: 700;
    color: #0066ff;
    margin-bottom: 20px;
}
.process_card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}
.process_card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* 화살표 디자인 */
.arrow {
    position: relative;
    width: 100px;
    height: 100%;
    margin: 0 -10px;
    display: flex;
    align-items: center; /* 내부 아이콘 수직 중앙 정렬 */
    justify-content: center;
    font-size: 0;
}
/* 화살표 아이콘 */
.arrow::after {
    content: '→';
    position: relative;
    z-index: 2;
    font-size: 24px;
    color: #fff;
    background: #0066ff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}

/* 리뷰 & 파트너사 */
.review_area {
    background: #fbfbfb;
    padding: 100px 40px;
    text-align: center;
}
.review_area h2 {
    font-size: 38px;
    margin-bottom: 50px;
    font-weight: 700;
}
.reviews {
    display: flex;
    gap: 30px;
    overflow-x: hidden;
    padding-bottom: 20px;
}
.review_card {
    min-width: 320px;
    max-width: 320px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #0066ff;
    flex-shrink: 0;
}
.review_card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}
.review_card .user {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    text-align: right;
}

.image_scroll_area {
    background: #fff;
    padding: 80px 40px;
    text-align: center;
    border-top: 1px solid #eee;
}
.image_scroll_area h2 {
    font-size: 38px;
    margin-bottom: 50px;
    font-weight: 700;
}
.image_scroll {
    display: flex;
    gap: 40px;
    overflow: hidden;
    padding: 20px 0;
}
.image_card {
    width: 280px;
    height: 180px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid #eee;
    padding: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.image_card:hover {
    opacity: 1;
}

/* FAQ */
.qa-section {
    max-width: 900px;
    margin: 100px auto;
    padding: 0 40px;
}
.qa-section h2 {
    font-size: 38px;
    margin-bottom: 50px;
    font-weight: 700;
    text-align: center;
}
.qa-item {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}
.qa-question {
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    transition: color 0.3s ease;
}
.qa-question:hover {
    color: #0066ff;
}
.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-top: 0;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    padding-top: 0;
}
.qa-item.active .qa-answer {
    max-height: 200px;
    padding-top: 15px;
    margin-top: 12px;
}
.qa-arrow {
    transition: transform 0.3s;
    font-size: 20px;
    font-weight: 900;
    color: #999;
}
.qa-arrow.rotated {
    transform: rotate(180deg);
    color: #0066ff;
}

/* 하단 */
.bottom_bar {
    background: #1e1e1e;
    color: #bbb;
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 2;
}
.bottom_bar strong {
    color: #fff;
}
.bottom_bar a {
    color: #0066ff;
}

/* ============================================================== */
/* 서비스 소개 슬라이더 (새로 추가된 섹션) */
/* ============================================================== */

.service-intro-section {
    display: flex;
    max-width: 1400px;
    margin: 80px auto;
    background: #fff;
    padding: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

/* 1. 왼쪽 고정 소개 영역 */
.intro-text-area {
    flex-shrink: 0;
    width: 350px;
    padding: 40px;
    border-right: 1px solid #eee;
    position: relative;
}

.intro-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.intro-subtitle {
    font-size: 16px;
    color: #555;
    margin: 20px 0 40px;
}

/* 페이지네이션 및 네비게이션 */
.intro-navigation {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
}
.page-indicator {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-align: center;
    margin-bottom: 10px;
}
.nav-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-arrows span {
    font-size: 24px;
    cursor: pointer;
    color: #0066ff;
    transition: color 0.2s;
}
.nav-line {
    flex-grow: 1;
    height: 2px;
    background: #eee;
    margin: 0 15px;
    position: relative;
}

.nav-line .nav-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 20%; /* 초기 1/5 */
    height: 100%;
    background: #0066ff;
    transition: width 0.3s ease;
}



/* 2. 오른쪽 스크롤 카드 영역 */
.service-cards-scroll {
    margin-left: 40px;
    flex-grow: 1;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 40px 0;
    padding-right: 40px;
    scrollbar-width: none;
    display: flex;
    scroll-snap-type: x mandatory; /* 스크롤 스냅 적용 */
}
.service-cards-scroll::-webkit-scrollbar {
    display: none;
}

.service-card-slider {
    display: inline-block;
    width: calc((100% - 60px)/3); /* 3개씩 보여주기, gap 30px 기준 */
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-left: 30px;
    position: relative;
    vertical-align: top;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    color: #fff;
    flex-shrink: 0;
    scroll-snap-align: start; /* 스냅 정렬 */
}

.service-card-slider:first-child {
    margin-left: 50px; /* 기존 0에서 40px로 변경 */
}

.service-card-slider .card-content h3 {
margin: 0;
font-size: 1.2rem;
line-height: 1.4;
color: #fff;
}

/* 카드 내용 스타일 */
.card-content {
    padding: 30px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px;
}

.card-content p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 20px;
}

.card-content .divider {
    width: 40px;
    height: 3px;
    background: #00cc66;
    margin-bottom: 15px;
}

/* FAB 컨테이너 */
.fab-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  z-index: 9999;
}

/* 기본 플로팅 버튼 스타일 */
.floating-pay-btn {
  width: 120px;
  height: 50px;
  padding: 0;
  background: linear-gradient(135deg, #0066ff, #3399ff);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

/* hover 효과 */
.floating-pay-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #3399ff, #0066ff);
}

/* 서브 버튼 컨테이너 */
.fab-sub-buttons {
  display: flex;
  flex-direction: column;   /* 세로 배치 */
  align-items: flex-end;
  gap: 1px;
  margin-bottom: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* 활성화 */
.fab-container.open .fab-sub-buttons {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* 서브 버튼 공통 스타일 */
.fab-sub-buttons .fab-sub {
  width: 120px;
  height: 50px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5); /* 은은한 실선 */
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  background: none !important; /* 기존 gradient 제거 */
  background-color: rgba(0, 102, 255, 0.7) !important; /* 반투명 적용 */
  color: #fff;

  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

/* hover */
.fab-sub-buttons .fab-sub:hover {
  background-color: rgba(0, 102, 255, 0.85) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* stagger 애니메이션 */
.fab-container.open .fab-sub-buttons .fab-sub:nth-child(1) { transition-delay: 0s; }
.fab-container.open .fab-sub-buttons .fab-sub:nth-child(2) { transition-delay: 0.05s; }
.fab-container.open .fab-sub-buttons .fab-sub:nth-child(3) { transition-delay: 0.1s; }

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* 약간 더 진한 배경 */
  backdrop-filter: blur(4px); /* 배경 흐림 효과로 고급스러움 */
  transition: opacity 0.3s ease;
}

.modal-content {
  background: #fff;
  margin: 60px auto;        /* 위쪽에 여백만 주고 */
  padding: 30px 25px;
  border-radius: 12px;
  max-width: 480px;
  max-height: 90vh;        /* 화면 높이의 80%를 넘지 않도록 제한 */
  overflow-y: auto;        /* 내용이 길면 내부 스크롤 */
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

@keyframes modalFade {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-btn {
  float: right;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}
.close-btn:hover {
  color: #ff3b30;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
  outline: none;
}

.modal-content button[type="submit"] {
  width: 100%; /* 버튼 가로 꽉 차게 */
  background: linear-gradient(90deg, #0066ff, #3399ff);
  color: #fff;
  border: none;
  padding: 14px 0;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}
.modal-content button[type="submit"]:hover {
  background: linear-gradient(90deg, #0052cc, #007fff);
  transform: translateY(-2px);
}

.type-buttons {
  display: flex;
  gap: 10px;
}

.type-buttons button {
  flex: 1;              /* 버튼을 동일 너비로 균등 배치 */
  padding: 10px 0;      /* 세로 패딩으로 높이 통일 */
  border: 2px solid #007bff;
  background-color: #fff;
  color: #007bff;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.type-buttons button.selected {
  background-color: #007bff;
  color: #fff;
  transform: scale(1.05);
}

#serviceModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  overflow-y: auto;         /* 긴 폼이면 스크롤 */
  z-index: 9999;
}

#serviceModal:target {
  display: block;           /* flex 대신 block */
}

.fab-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

/* 반응형 */
@media (max-width: 1200px) {
    .service_cards {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
    .container2, .process_area, .review_area, .image_scroll_area, .qa-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .service-card-slider {
    width: calc((100% - 30px)/2); /* 2개씩 보이도록 */
    }
}

@media (max-width: 992px) {
    .service-intro-section {
        flex-direction: column;
        padding: 0;
        margin: 40px 20px;
    }

    .intro-text-area {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 80px;
    }

    .intro-navigation {
        bottom: 20px;
    }

    .service-cards-scroll {
        padding: 40px 0;
        padding-left: 20px; /* 왼쪽 여백 추가 */
    }
    .service-card-slider {
        margin-left: 20px;
    }
    .service-card-slider:first-child {
        margin-left: 0; /* 첫 번째 카드는 왼쪽에서 시작 */
    }
}

@media (max-width: 900px) {
    .process_cards {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .process_card {
        width: 100%;
        max-width: 400px;
    }
    /* 모바일: 세로 화살표 디자인 */
    .arrow {
        width: 100%;
        height: 80px;
        margin: 0;
        justify-content: center;
        align-items: center; /* 아이콘 수직 중앙 정렬 보장 */
        font-size: 0;
    }
    .arrow::before {
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    .arrow::after {
        position: absolute; /* 선 위에 오도록 absolute로 변경 (z-index: 2는 그대로 유지됨) */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* 정확한 중앙 정렬 */
        content: '↓'; /* 모바일 화살표는 아래를 향하도록 함 */
    }
    .process_cards .arrow:last-of-type {
        display: none;
    }
}

@media (max-width: 768px) {
    .top_bar_sub {
    padding-left: 10px;  /* 모바일에서만 좌측 여백 줄임 */
    padding-right: 20px; /* 모바일에서 우측도 조금 줄일 수 있음 */        
    }
    .top_menu ul {
        display: none;
        flex-direction: column;
        gap: 15px;
        background: #fff;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 15px 25px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        width: 180px;
        align-items: flex-start;
    }
    .top_menu ul.show {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    
    .container1 {
        height: 60vh;
    }
    .con1_title2 {
        font-size: 32px;
    }
    .con1_title1 {
        font-size: 16px;
    }
    
    .con2_title1, .process_area h2, .review_area h2, .image_scroll_area h2, .qa-section h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .container2 {
        padding: 80px 20px;
    }
    .service_cards {
        grid-template-columns: 1fr;
    }
    .service_card {
        padding: 40px 25px;
    }
    .service_card h3 {
        font-size: 20px;
    }

    .review_card {
        min-width: 90%;
        margin: 0 5%;
    }
    .service-card-slider {
        width: 90%; /* 모바일: 1개씩 보이도록 */
        margin-left: 20px;
        margin-right: 20px;
    }
    .floating-pay-btn {
        padding: 10px 20px;
        font-size: 14px;
        bottom: 15px;
        right: 15px;
    }

     .modal-content {
        margin: 40px 15px;
        padding: 20px 15px;
        max-width: 95%;
    }
    .modal-content button[type="submit"] {
        padding: 12px 0;
        font-size: 15px;
    }
}
