/* 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    /* line-height: 1.6; */
    color: #333;
    margin: 0;
    /* body의 기본 마진 제거 */
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    /* 가로 스크롤 방지 */
}

/* 헤더 스타일 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
}

header .logo {
    height: 30px;
    /* 로고 높이 조정 */
    width: auto;
    /* 가로 비율 자동 유지 */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
    font-size: 1.2rem;
    /* 원하는 크기로 조정 (예: 1.2rem) */
}

nav ul li a:hover {
    color: #164394;
}

/* 현재 페이지 메뉴 강조 스타일 */
nav ul li a.active {
    /* color: #007BFF; */
    border-bottom: 2px solid #164394;
    padding-bottom: 3px;
}

/* 섹션 공통 스타일 제거 */
section {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* 메인 섹션(히어로 영역) 스타일 */
.hero-section {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('/assets/Main-01_최상단.jpg') center/cover no-repeat;
    /* 배경 이미지 추가 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* margin: 0;
    padding: 0; */
}

/* 이미지 위에 덮을 반투명 오버레이는 이미 linear-gradient로 처리되어 있으므로 제거 */
/* .hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
} */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.button-group {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.button-group a {
    padding: 10px 20px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.button-group a:hover {
    background-color: #164394;
    color: #fff;
}

.kmac-footer {
    background-color: #000;
    /* 배경색: 검정 */
    color: #fff;
    /* 글자색: 흰색 */
    font-family: sans-serif;
    /* 폰트 (원하시는 폰트로 변경 가능) */
    font-size: 14px;
    /* 기본 글자 크기 (이미지와 맞춰 조정) */
    line-height: 1.7;
    /* 줄 간격 (필요 시 조정) */
    padding: 40px 60px;
    /* 상하좌우 여백 (이미지 느낌에 맞춰 조정) */
    box-sizing: border-box;
}

/* 푸터 내부를 2열로 배치 */
.footer-container {
    display: flex;
    justify-content: space-between;
    /* 좌측/우측 공간 분배 */
    max-width: 1200px;
    /* 페이지 폭이 너무 넓어지지 않도록 제한 */
    margin: 0 auto;
}

/* 왼쪽 영역 */
.footer-left {
    flex: 1;
    /* 남는 공간을 넓게 차지 */
    min-width: 300px;
    /* 너무 좁아지지 않도록 최소 폭 설정 (필요 시 조정) */
}

/* 오른쪽 영역 */
.footer-right {
    flex: 0.4;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 상단의 Solution과 하단의 아이콘 사이 공간 확보 */
}

/* 왼쪽 영역의 KMAC 로고(텍스트) 스타일 */
.footer-left h1 {
    font-size: 24px;
    /* KMAC 글자 크기 (이미지에 맞춰 조정) */
    margin-bottom: 6px;
}

/* 일반 텍스트 간격 */
.footer-left p {
    margin: 4px 0;
    /* 문단 간격 (필요 시 조정) */
}

/* 오른쪽 영역의 'Solution' 제목 */
.footer-right h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Solution 목록 */
.footer-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-right li {
    margin-bottom: 5px;
}

/* 소셜 아이콘 컨테이너 */
.social-icons {
    display: flex;
    gap: 20px;
    /* 아이콘 사이 간격 */
    margin-top: 30px;
    /* Solution 리스트와의 간격 */
}

.social-icons a {
    display: inline-block;
}

.social-icons img {
    width: 36px;
    /* 아이콘 크기 */
    height: 36px;
    transition: opacity 0.3s;
}

.social-icons img:hover {
    opacity: 0.8;
    /* 호버 효과 */
}


/* ----------------------------------------------
정보 섹션 공통 스타일
---------------------------------------------- */

.info-section {
    /* 위아래 여백 크게 (원하시는 수치로 조정) */
    padding: 100px 40px;
    background-color: #fff;
    /* 필요 시 다른 색상으로 변경 */
}

/* 섹션 사이 간격 */
.info-section+.info-section {
    margin-top: 0px;
    /* 섹션 간 간격 (원하시면 조정) */
}

/* 내부 컨테이너: 이미지와 텍스트를 가로로 배치 */
.info-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    /* 가운데 정렬 */
    gap: 40px;
    /* 이미지와 텍스트 사이 간격 */
}

/* 좌우 반전: .reverse가 붙으면 row-reverse */
.info-section.reverse .info-container {
    flex-direction: row-reverse;
}

/* 이미지 영역 */
.info-image {
    flex: 0 0 50%;
    /* 폭 50% (조정 가능) */
    max-width: 700px;
    /* 최대 너비 제한 */
}

.info-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 텍스트 영역 */
.info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 작은 라벨 (예: "고객경험형 High-Quality 콘텐츠 서비스") */
.info-label {
    font-size: 0.9rem;
    color: #164394 !important;
    margin-bottom: 6px;
}

/* 큰 타이틀 (예: "콘텐츠 마케팅") */
.info-title {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 12px;
}

/* 서브타이틀/작은 제목 (예: "콘텐츠 제작대행") */
.info-subtitle {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 4px;
}

/* 서브타이틀 아래의 작은 설명 (예: "CHEF EXECUTIVE 기반의...") */
.info-subline {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

/* 구분선 (스크린샷처럼 콘텐츠 제작대행 아래에 가로선이 있는 느낌) */
.info-line {
    border: none;
    border-top: 1px solid #ccc;
    margin: 16px 0;
}

/* 본문 텍스트 */
.info-text p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #333;
}

/* "자세히 보기" 버튼 (스크린샷처럼 텍스트+테두리 형태) */
.info-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #192b75;
    text-decoration: none;
    /* border: 1px solid #333; */
    transition: background-color 0.3s, color 0.3s;
}

.info-link:hover {
    background-color: #192b75;
    color: #fff;
}

/* 문의하기 CTA 섹션 스타일 수정 */
.contact-cta {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('Main-contact.jpg') center/cover no-repeat;
    /* 배경 이미지 추가 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
}

.contact-cta-content {
    color: white;
    z-index: 2;
    max-width: 800px;
    /* 내용의 최대 너비 제한 */
    padding: 0 20px;
    /* 좌우 여백 추가 */
}

.contact-cta h2 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #164394;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #192b75;
}

/* 메인 섹션 레이아웃 */
.main-section {
    padding: 60px 20px;
    /* 위아래 60px, 좌우 20px 여백 (조정 가능) */
    background-color: #fff;
}

.main-container {
    display: flex;
    align-items: flex-start;
    /* 상단 정렬 */
    gap: 40px;
    /* 왼·오 간격 */
    max-width: 1200px;
    /* 최대 너비 */
    margin: 0 auto;
    /* 가로 중앙 정렬 */
}

/* 왼쪽, 오른쪽 영역 */
.main-left,
.main-right {
    flex: 1;
}

/* 오른쪽 영역에 박스 느낌을 주고 싶다면 예시 */
.main-right {
    border: 1px solid #ccc;
    /* 얇은 테두리 */
    padding: 20px;
    border-radius: 6px;
    /* 모서리 살짝 둥글게 (선택) */
    background-color: #f9f9f9;
    /* 살짝 연한 배경색 (선택) */
}

/* 섹션 내 제목/문단 스타일 */
.main-left h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.main-left p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.main-right h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.main-right p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
}

/* '자세히 보기' 버튼 */
.more-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    background-color: #164394;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.more-btn:hover {
    background-color: #192b75;
}

/* 개인정보처리방침 링크 스타일 */
.privacy-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    /* 볼드 처리 */
    font-size: 1.1rem;
    /* 글자 크기 증가 */
    transition: opacity 0.3s;
}

.privacy-link:hover {
    opacity: 0.8;
}

/* 부드러운 스크롤 효과 */
html {
    scroll-behavior: smooth;
}

/* 스크롤 시 여백 조정 */
section[id] {
    scroll-margin-top: 0px;
}

.survey-section {
    padding: 0 ;
    max-width: 800px;
    margin: 0 auto;
}
.survey-section h1 {
    text-align: center;
    font-weight:750;
    margin: 30px 0 18px;   /* 필요 없는 상단 여백 축소 */
    font-size:40px;
}
.question {   margin: 0;
    padding: 0;              /* legend 자리로 생기는 상단 패딩 제거 */
    border: 0;               /* 기본 테두리 제거(테이블 테두리만 사용) */
    min-inline-size: 0; }
/*.question legend { display: none }*/
.question ul { list-style: none; padding: 0; }
.question li { margin-bottom: 8px; }
.submit-btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
}

/*기업 일반 현황 표*/
/* 기업 일반 현황 표 */
.company-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d9dbe1;
    margin: 0;
    table-layout: fixed;        /* ✅ 열 너비 재계산 방지 */
}
.company-table th,
.company-table td {
    padding: 12px 16px;
    vertical-align: middle;
    border: 1px solid #e6e7ec;
}
.company-table th {
    width: 140px;
    background: #f6f7f9;
    text-align: left;
    font-weight: 700;
}

/* 체크박스 그리드(산업분야) */
.checks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 10px 16px;
}
.checks-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.checks-grid .note {
    width: 120px;
    padding: 6px 8px;
}

/* 기업 규모 라디오 줄바꿈 보정 */
.size-row label {
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 6px;
}

/* 표 안 인풋 공통 */
.company-table input[type="text"],
.company-table input[type="email"],
.company-table input[type="tel"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.radios-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 10px 16px;
}
.radios-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* 동의서 공통 */
.consent-top-title{
    margin-top:48px; margin-bottom:18px; text-align:center;
    font-size:28px; line-height:1.35; font-weight:700;
}
.consent-section{ border:1px solid #e2e5ea; padding:18px; margin:18px 0 28px; background:#fff; }
.consent-h3{ font-size:22px; font-weight:800; background:#f5f6f8; padding:10px 12px; margin:-18px -18px 16px; }
.consent-bullets{ margin:6px 0 14px 0; padding-left:0; list-style:none; line-height:1.7; }
.consent-para{ margin:6px 0 14px 0; line-height:1.7; }
.consent-table{ width:100%; border-collapse:collapse; margin:8px 0 10px; table-layout:fixed; }
.consent-table th, .consent-table td{ border:1px solid #cfd6e4; padding:10px; vertical-align:top; line-height:1.6; }
.consent-table thead th{ background:#eef2f7; text-align:center; font-weight:700; }
.consent-table .center{ text-align:center; }
.date-link{ color:#1976d2; text-decoration:underline; font-weight:700; cursor:default; }
.consent-notes{ font-size:0.95rem; color:#444; line-height:1.7; margin:8px 0 12px; }
.consent-question{ margin:14px 0 8px; font-weight:700; }
.consent-radios label{ margin-right:24px; }
.consent-rights{ line-height:1.7; }
.consent-rights ul{ margin:8px 0 12px 0; padding-left:0; list-style:none; }
.consent-actions-row{
    display: flex;            /* 이미 있음 */
    justify-content: center;  /* 가운데 정렬 */
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: center;
}
.consent-footer-org{ text-align:center; font-weight:800; font-size:20px; margin:14px 0; }
.consent-submit{margin: 0 0 60px;}

/* 입력칸 에러 테두리 */
.is-invalid {
    border: 2px solid #e74c3c !important;
    outline: none;
}

/* 테이블 셀에 에러 말풍선 배치하려면 상대 위치 필요 */
.company-table td { position: relative; }

/* 인라인 에러 말풍선 */
.error-msg {
    margin-top: 6px;
    background: #e74c3c;
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.4;
    display: block;
    max-width: 100%;
    position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
}

/* 말풍선 꼬리 */
.error-msg::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 16px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #e74c3c transparent;
}

/* 라디오 그룹(산업분야/기업규모/동의) 셀에도 좌표 기준 주기 */
.radios-grid, .size-row, .consent-radios { position: relative; }

/* 셀 안에서 '직위/성명', 'HP/유선', '소재지/산업단지'를 2행으로 배치 */
.two-rows { display: flex; flex-direction: column; gap: 8px; }
.two-rows__row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.mini-head {
    background: #f1f3f6;
    border: 1px solid #e1e4ea;
    padding: 6px 8px;
    text-align: center;
    font-weight: 700;
    border-radius: 2px;
}

.page-h2{
    font-size:40px; font-weight:750;
    margin:6px 0 12px;
}

/* 얇은 고지문 박스 */
.intro-notice{
    border:1px solid #cfd6e4;
    background:#fafbfd;
    padding:10px 12px;
    line-height:1.7;
    margin:8px 0 14px;
    font-size:15px;
    color:#333;
}

/* 얇은 고지문 박스 중앙 정렬 */
.intro-notice-center{
    border:1px solid #cfd6e4;
    background:#fafbfd;
    padding:10px 12px;
    line-height:1.7;
    margin:8px 0 14px;
    font-size:15px;
    color:#333;
    text-align: center;
}

/* 표지 편지 박스 */
.cover-letter{
    border:1px solid #cfd6e4;
    padding:16px 14px;
    background:#fff;
    line-height:1.8;
    color:#222;
}
.cover-letter p{ margin:8px 0; }

/* 대시 목록(이미지처럼 앞에 '-' 출력) */
.dash-list{
    list-style:none; padding:0; margin:10px 0 12px;
}
.dash-list li{
    position:relative; padding-left:14px; margin:4px 0;
}
.dash-list li::before{
    content:"-"; position:absolute; left:0; top:0;
}

/* 하단 날짜/문의/로고 */
.letter-footer-date{ text-align:center; margin-top:10px; }
.letter-contact{ text-align:right; margin:4px 0 6px; }

.letter-logos{
    display:flex; justify-content:flex-end; align-items:center; gap:14px;
    margin-top:8px;
}
.letter-logos img{ height:32px; width:auto; }

/* 모바일 보정 */
@media (max-width:640px){
    .letter-logos{ justify-content:center; }
}