* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pretendard', sans-serif;
}

html {
  /* 애니메이션 - 마우스 스크롤 스냅 */
  scroll-behavior: auto;
}

body {
    background: #000;
    color: #fff;
    overflow-y: scroll;
    overflow-x: hidden;
}

/* 헤더 */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

/* 효자정공 로고 이미지 */
.logo img {
  width: 100px;
}

.nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
}

/* 애니메이션 - 마우스 스크롤 스냅 */
section {
  height: 100vh;
  overflow: hidden;
}


/* 애니메이션 - fade section 이미지 줌 효과 */
/* 초기 상태 */
.fade-section .section-text,
.fade-section .location-text {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

/* 이미지 확대 상태 */
.fade-section .section-img {
  transform: scale(1.1);
  transition: transform 1.2s ease;
}

/* 활성화 */
.fade-section.show .section-text,
.fade-section.show .location-text {
  opacity: 1;
  transform: translateY(0);
}

/* 이미지 원래 크기로 */
.fade-section.show .section-img {
  transform: scale(1);
}


/* 애니메이션 - 회사소개 랜딩 시 텍스트 fade */
.intro .intro-text {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease;
}

.intro.show .intro-text {
  opacity: 1;
  transform: translateY(0);
}

/* 애니메이션 - 회사소개 랜딩 시 이미지 줌 효과*/
.intro {
  transform: scale(1.1);
  transition: transform 1.5s ease;
}

.intro.show {
  transform: scale(1);
}


/* 메인 회사소개 */
.intro {
    position: relative;
    height: 100vh;
    background-image: url("../image/홈/메인회사소개.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 80px;
}

/* 어두운 오버레이 */
.intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* 투명도 조절 */
}

.intro-text {
    position: relative;
    z-index: 1;/* 텍스트를 오버레이 위로 */
    color: #fff;
    padding: 0px 80px 80px 80px;
}

.intro-text h1 {
    font-size: 48px;
    line-height: 1.4;
    margin: 20px 0 50px 0;
}

.intro-text .sub {
    font-size: 16px;
    opacity: 0.7;
}

.intro-text .desc {
    width: 500px;
    font-size: 16px;
}

/* 공통 섹션 */
.section {
  position: relative;
  display: flex;
  height: 100vh;
  align-items: center;
}

.section-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* 섹션 이미지 */
.section-line .section-img {
  background-image: url("../image/홈/생산라인.jpg");
}

.section-product .section-img {
  background-image: url("../image/홈/생산품.jpg");
}

.section-machine .section-img {
  background-image: url("../image/홈/보유장비.jpg");
}

/* 섹션 텍스트 */
.section-text {
  position: relative;
  z-index: 2;
  padding: 0px 80px 80px 80px;
  margin-left: 80px;
}

/* reverse일 때 텍스트 오른쪽 정렬 */
.section.reverse .section-text {
  margin-left: auto;
  margin-right: 80px;
  text-align: left;
}

.section-text h2 {
  font-size: 32px;
  line-height: 1.5;
  margin: 20px 0px 80px 0px;
}

.label {
  font-size: 16px;
  opacity: 0.7;
}

.btn {
  margin-top: 20px;
  color: white;
  text-decoration: none;
  border-bottom: 1.6px solid #4b4b4b;
  padding-bottom: 2px;
}

/* 오시는 길 */
.location {
    height: 100vh;
    background-image: url("../image/홈/오시는길.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center; /* 세로 중앙 */
}

.location-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.location-text {
    margin: auto;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 40px;
    border-radius: 8px;
}

.location-text h2 {
  padding-bottom: 10px;
}

/* 푸터 */
.footer {
    text-align: center;
    padding: 80px;
    background: #0E0E0E;
    font-size: 16px;
}

.footer-text {
    padding-bottom: 8px;
} 