/* ========================================
   공통 CSS (모든 페이지)
   기본 스타일 + Container + Footer
======================================== */

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    min-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ========================================
   푸터
======================================== */
.main-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
}

.footer-left h3,
.footer-right h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.company-info p {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 5px;
}

.footer-links {
    margin: 15px 0;
    font-size: 14px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
}

.footer-links a.important {
    font-weight: bold;
    color: #3498db;
}

.footer-links span {
    margin: 0 10px;
}

.copyright {
    margin-top: 20px;
    font-size: 13px;
    color: #95a5a6;
}

.cs-tel {
    font-size: 28px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.cs-time {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.cs-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-cs {
    padding: 10px 20px;
    background: #34495e;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-cs:hover {
    background: #3498db;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ecf0f1;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #3498db;
}

/* ========================================
   스크롤 버튼 (오른쪽 하단)
======================================== */
.scroll-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(52, 73, 94, 0.9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-btn:hover {
    background: rgba(52, 73, 94, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-btn:active {
    transform: translateY(-1px);
}

.scroll-btn svg {
    pointer-events: none;
}

/* 위로 버튼 애니메이션 */
.scroll-top:hover svg {
    animation: bounceUp 0.6s ease infinite;
}

@keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 아래로 버튼 애니메이션 */
.scroll-bottom:hover svg {
    animation: bounceDown 0.6s ease infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* 모바일 */
@media (max-width: 768px) {
    .scroll-buttons {
        right: 20px;
        bottom: 20px;
        gap: 8px;
    }
    
    .scroll-btn {
        width: 45px;
        height: 45px;
    }
}