/* 본문 글꼴: Pretendard (한글용 Inter 계열, 무료 OFL).
   @import는 반드시 스타일 규칙보다 앞에 와야 브라우저가 무시하지 않는다. */
@import url('../cdn.jsdelivr.net/gh/orioncactus/pretendard%40v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FontAwesome 아이콘 라이브러리 임포트 */
@import url('../cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/EcFBMLkOFxhS.css');

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --text-dark: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    max-width: 100%;
    overflow-x: hidden;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0;
    gap: 40px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
}

.logo img {
    height: 72px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.header-contact {
    display: flex;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info img {
    width: 30px;
    height: 30px;
}

.tel {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* 네비게이션 */
.nav {
    border-top: none;
    position: relative;
    flex: 1;
    display: flex;
}

.nav > ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 15px 0;
}

.nav > ul > li {
    margin: 0;
    position: relative;
}

.nav a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
}

.nav > ul > li > a:hover {
    color: var(--secondary-color);
    background-color: var(--light-color);
}

/* 서브메뉴 */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 1001;
    list-style: none;
    padding: 10px 0;
    border-radius: 0 0 5px 5px;
    margin: 0;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    margin: 0;
    padding: 0;
}

.submenu li a {
    padding: 12px 20px;
    white-space: nowrap;
    display: block;
    font-size: 0.95rem;
}

.submenu li a:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}

/* 모바일 메뉴 토글 버튼 (데스크톱에서는 숨김) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--text-dark);
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 모바일 메뉴 안에서 카테고리별 하위메뉴를 펼치는 버튼 (데스크톱에서는 숨김, hover로 이미 보임) */
.main-menu-row { display: flex; align-items: center; justify-content: space-between; }
.submenu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding: 12px 16px;
    cursor: pointer;
    transition: transform 0.2s;
}
.has-submenu.expanded .submenu-toggle { transform: rotate(180deg); }


/* 메인 배너 */
.main-banner {
    color: var(--white);
    text-align: center;
    position: relative;
    min-height: 600px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

.banner-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: fade-in-out 10s infinite;
}

.banner-bg:nth-child(1) {
    opacity: 1;
    animation-delay: 0s;
}

.banner-bg:nth-child(2) {
    animation-delay: 5s;
}

.banner-bg-video {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* 회사소개 섹션 숨김 - 배너 영역에 통합됨 */
.company-section {
    display: none;
}

.banner-text-section {
    position: relative;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f9 100%);
    padding: 70px 0 90px;
}

.banner-text-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.banner-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    padding: 50px 40px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.06);
    margin: 0 auto;
    text-align: center;
}

.banner-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #0a1428;
    font-weight: 700;
}

.banner-title strong {
    font-size: 2.2rem;
    display: block;
    margin-top: 8px;
    color: var(--primary-color);
}

.banner-subtitle {
    font-size: 0.95rem;
    margin-bottom: 50px;
    color: #1a2332;
    font-weight: 500;
}

.banner-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 배너 컨테이너 - 두 박스 나란히 배치 */
.banner-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

/* 회사소개 박스 */
.company-intro-box {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.06);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color)) 1;
    text-align: left;
    position: relative;
}

.company-intro-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #0a1428;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.company-intro-box h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #fcd34d);
    box-shadow: 0 0 0 3px rgba(245,158,11,.18);
}

.company-intro-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #1a2332;
}

.btn-more {
    display: none;
}

.btn {
    display: inline-block;
    padding: 13px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(30,58,138,.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16296b 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30,58,138,.32);
}

.btn-secondary {
    background: #12172a;
    color: var(--white);
    border: 1px solid rgba(245,158,11,.4);
}

.btn-secondary:hover {
    background: #1b2340;
    border-color: rgba(245,158,11,.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.btn-tertiary {
    background: linear-gradient(135deg, var(--accent-color), #fcd34d);
    color: #3d2a04;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(245,158,11,.3);
}

.btn-tertiary:hover {
    background: linear-gradient(135deg, #d97706, var(--accent-color));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245,158,11,.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

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

@keyframes fade-in-out {
    0% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    90% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 섹션 공통 */
.section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

/* 회사소개 섹션 */
.company-section {
    background: var(--light-color);
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.company-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.company-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

.company-text strong {
    color: var(--primary-color);
}

.company-text .highlight {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 25px;
}

.btn-more {
    margin-top: 20px;
    background: var(--primary-color);
    color: var(--white);
}

.btn-more:hover {
    background: var(--secondary-color);
}

/* 서비스 섹션 */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.service-card > p:first-of-type {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

.service-card > p:nth-of-type(2) {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-dark);
}

.service-links {
    list-style: none;
    margin-top: 20px;
}

.service-links li {
    margin-bottom: 10px;
}

.service-links a {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.service-links a:before {
    content: "→";
    margin-right: 8px;
    font-weight: 700;
}

.service-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 인포 카드 섹션 공통 */
.info-section {
    background: var(--light-color);
}

.knowledge-section,
.transfer-section,
.merger-section {
    background: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.info-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.info-card, .panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover, .panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.info-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-card h3, .panel h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.info-card p, .panel p {
    margin-bottom: 14px;
    color: var(--text-dark);
}

.check-list,
.mini-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.check-list li,
.mini-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.check-list li:before,
.mini-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.tag-list,
.pill-list,
.pill-cloud {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-cloud span,
.tag-list li,
.pill-list li {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.text-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    color: var(--primary-color);
}

.ghost {
    border: 1px solid currentColor;
    background: transparent !important;
    color: var(--primary-color);
}

.btn-secondary.ghost {
    color: var(--secondary-color);
}

.cta-stack {
    display: grid;
    gap: 10px;
    align-items: start;
}

/* 타임라인 */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.timeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.04);
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.transfer-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.panel .note {
    color: var(--text-light);
    margin: 8px 0 12px;
    font-size: 0.95rem;
}

/* 상담신청 섹션 */
.consulting-section {
    background: var(--light-color);
}

.consulting-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.checkbox-group a {
    color: var(--secondary-color);
    margin-left: 5px;
}

.form-submit {
    text-align: center;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 60px;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 푸터 */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 20px 20px 10px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 20px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-info p {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-details {
    list-style: none;
}

.footer-details li {
    margin-bottom: 5px;
    color: #d1d5db;
}

.footer-links h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 4px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 10px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Top 버튼 */
.top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 999;
}

.top-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.top-btn.show {
    display: flex;
}

.since-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border: 1px solid var(--accent-color, rgba(255,255,255,0.4));
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* 고정 연락처 위젯 - 스크롤해도 항상 눈에 보이도록 좌측에 고정 */
.quick-contact {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
    z-index: 998;
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 16px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.quick-contact-name {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
}

.quick-contact-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    padding: 6px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.2s;
}

.quick-contact-line:hover {
    background: rgba(255, 255, 255, 0.12);
}

.quick-contact-label {
    font-size: 0.65rem;
    opacity: 0.8;
    letter-spacing: 1px;
    white-space: nowrap;   /* '건설법인' 같은 4글자 표시가 줄바꿈되지 않게 */
}

.quick-contact-number {
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

/* 접기/펼치기 버튼 - 접으면 위젯이 화면 밖으로 밀려나고 이 버튼만 남아 다시 펼 수 있음 */
.quick-contact-toggle {
    position: absolute;
    top: 50%;
    right: -22px;
    transform: translateY(-50%);
    width: 22px;
    height: 44px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.quick-contact.collapsed {
    transform: translateY(-50%) translateX(-100%);
}

/* 폰에서는 화면 한가운데에 두면 본문을 덮어버린다.
   그래서 왼쪽 '아래'로 내리고 크기를 줄여, 읽는 데 걸리지 않으면서도 늘 보이게 한다.
   (오른쪽 아래는 상담·카톡·맨위로 버튼이 쓰고 있어 왼쪽에 둔다) */
@media (max-width: 768px) {
    .quick-contact {
        top: auto;
        bottom: 18px;
        transform: none;
        padding: 8px 10px;
        border-radius: 0 10px 10px 0;
    }

    .quick-contact.collapsed {
        transform: translateX(-100%);
    }

    .quick-contact-name {
        display: none;
    }

    .quick-contact-line {
        padding: 4px 2px;
    }

    /* 이름 줄이 빠지면서 맨 윗줄이 되므로 윗선을 지운다 */
    .quick-contact-line:first-of-type {
        border-top: none;
    }

    .quick-contact-label {
        font-size: 0.54rem;
        letter-spacing: 0.5px;
    }

    .quick-contact-number {
        font-size: 0.78rem;
    }

    /* 접혀 있을 때 이 단추만 화면에 남는다.
       손님이 전화 거는 통로이므로 누르기 좋을 만큼은 커야 한다. */
    .quick-contact-toggle {
        right: -30px;
        width: 30px;
        height: 52px;
        font-size: 1.05rem;
        box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header-top {
        justify-content: space-between;
        gap: 15px;
    }

    .logo img {
        height: 48px;
    }

    .nav-toggle {
        display: flex;
    }

    /* 헤더 안쪽이 flex인데 줄바꿈이 없어서, 메뉴를 열면 nav가 로고와 같은 줄에 끼어
       폭이 200px로 눌리고 메뉴 글자가 한 글자씩 세로로 쪼개졌다.
       줄바꿈을 허용하고 로고 줄이 한 줄을 다 쓰게 해서 nav가 아래로 내려오도록 한다. */
    .header > .container {
        flex-wrap: wrap;
    }

    .header-top {
        width: 100%;
        justify-content: space-between;
    }

    .nav {
        display: none;
        width: 100%;
        border-top: 1px solid var(--border-color);
    }

    .nav.open {
        display: flex;
    }

    .nav > ul {
        flex-direction: column;
        padding: 8px 0;
    }

    .nav a {
        padding: 12px 20px;
    }

    .banner-title {
        font-size: 1.8rem;
    }

    .banner-title strong {
        font-size: 2.2rem;
    }

    .banner-buttons {
        flex-direction: column;
    }

    .company-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .consulting-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    /* 모바일에서는 hover 대신 화살표 버튼으로 하위메뉴를 펼침 */
    .submenu-toggle {
        display: block;
    }
    .main-menu {
        flex: 1;
    }
    .submenu {
        display: none;
        position: static;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.02);
    }
    .has-submenu.expanded .submenu {
        display: block;
    }
    .submenu li a {
        padding-left: 40px;
        font-size: 0.88rem;
    }

    /* 섹션 서브메뉴 바(subnav-bar) - 좁은 화면에서 줄바꿈으로 찌그러지지 않도록 가로 스크롤 */
    .subnav-bar ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    .subnav-bar li {
        flex: 0 0 auto;
    }
    .subnav-bar a {
        padding: 0.65rem 0.9rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
}


/* ===== 메인 상단 물건 티커 2줄 (우 -> 좌) ===== */
.tk-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.tk-line {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-top: 1px solid #eef1f6;
}

/* 두 줄을 바탕색으로 구분: 건설=여린 파랑, 일반=여린 노랑.
   배경이 색을 갖게 되므로 글자색은 대비가 충분한 진한 톤으로 함께 조정한다. */
.tk-line-con { background: #eff5ff; border-top-color: #dbe7fb; }
.tk-line-gen { background: #fff8e6; border-top-color: #f5e6bf; }

.tk-line:first-child { border-top: none; }

.tk-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--white);
    white-space: nowrap;
}

/* 두 줄을 색으로 구분: 건설=네이비, 일반=골드 */
.tk-label-con { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.tk-label-gen { background: linear-gradient(135deg, var(--accent-color), #fcd34d); color: #7c4a03; }

.tk-viewport {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    padding: 9px 0;
}

/* 양 끝을 흐리게 처리해 잘린 항목이 자연스럽게 사라지도록 */
.tk-viewport::before,
.tk-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}
/* 양 끝 페이드는 각 줄의 바탕색과 같아야 자연스럽다 */
.tk-line-con .tk-viewport::before { left: 0; background: linear-gradient(to right, #eff5ff, rgba(239,245,255,0)); }
.tk-line-con .tk-viewport::after { right: 0; background: linear-gradient(to left, #eff5ff, rgba(239,245,255,0)); }
.tk-line-gen .tk-viewport::before { left: 0; background: linear-gradient(to right, #fff8e6, rgba(255,248,230,0)); }
.tk-line-gen .tk-viewport::after { right: 0; background: linear-gradient(to left, #fff8e6, rgba(255,248,230,0)); }

.tk-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    will-change: transform;
}

.tk-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.84rem;
    /* 색 바탕 위라 기존 회색(#6b7280)은 흐려 보여서 한 단계 진하게 */
    color: #4b5563;
    transition: color 0.2s;
}

.tk-item:hover { color: var(--primary-color); }
.tk-item .tk-star { color: #b45309; font-size: 0.78rem; }
.tk-item .tk-main { font-weight: 700; color: #111827; }
.tk-item .tk-sep { color: #9ca3af; }
.tk-item .tk-sub { font-size: 0.82rem; color: #4b5563; }

/* 줄별 강조색: 파랑 바탕엔 진한 남색, 노랑 바탕엔 진한 갈색 */
.tk-line-con .tk-item .tk-price { color: #1e3a8a; }
.tk-line-gen .tk-item .tk-price { color: #92400e; }
.tk-line-gen .tk-item .tk-star { color: #a16207; }
.tk-line-con .tk-item:hover { color: #1e3a8a; }
.tk-line-gen .tk-item:hover { color: #92400e; }
.tk-item .tk-price {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .tk-label { padding: 0 10px; font-size: 0.66rem; }
    .tk-track { gap: 22px; }
    .tk-item { font-size: 0.78rem; }
    .tk-item .tk-sub { font-size: 0.76rem; }
    .tk-viewport::before,
    .tk-viewport::after { width: 22px; }
}
