@charset 'utf-8';


html {
  font-family: "Noto Sans KR", sans-serif;
  font: 14px;
}

/* 가로 스크롤 안생기게 */
body {
    overflow-x: hidden;
    color: rgb(29,29,31);
    letter-spacing: -0.05em;
    background-color: white;
}

p{
    line-height: 1.6;
}

a {
    color: rgb(29,29,31);
    text-decoration: none; /* 밑줄제거 */
}


/* .first-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    padding: 0 1rem;
} */

.second-nav {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    z-index: 10;
    height: 60px;
    padding: 0 0;
    border-bottom: 1px solid #ddd;
    background: rgba(255,255,255,0.4);
    backdrop-filter: saturate(180%) blur(15px); /* 흐리기 */
}

.second-nav-sticky .second-nav {
    position: fixed;
    top: 0;
    background: rgba(255,255,255,0.4);
    backdrop-filter: saturate(180%) blur(15px); /* 흐리기 */
}


.second-nav-link {
    display: flex;
    align-items: center;
    max-width: 1000px;
    height: 100%;
    margin: 0 auto;  /* 센터정렬 */
}

/* .first-nav-link {
    justify-content: space-between;
} */

.second-nav-link .company-name {
    margin-right: auto;
    font-size: 1.8rem;
    font-weight: bold;
}


.second-nav-link a {
    font-size: 0.7rem;
}

 

.second-nav-link a:not(.company-name) {
    margin-left: 2em;
    
}


.language-switch {
  color: #333;
  margin-left: auto; /* 오른쪽 정렬 시 */
  cursor: pointer;
}

.second-nav-link .company-name {
    position: fixed;
    left: 0;
    margin-left: 4%;
    
}

.second-nav-link .language-switch{
    position: fixed;
    right: 0;
    margin-right: 4%;
    
}


.second-nav-link {
    justify-content: center;
}
/* .stick-canvas {
    top: 0;
    background-color: #ccc;
} */

/* .video {
    position: absolute; 
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0; 
} */

.scroll-section {
    /* border: 3px solid red;*/
    padding-top: 50vh;
}




#scroll-section-0 h1 {
    font-size: 4rem; 
    text-align: center;
    position: relative;
    z-index: 5;
    color: whitesmoke;
    top: -10vh;
}

/* 하단 공백 제거 */
#scroll-section-3 {
  height: auto !important;
  min-height: auto !important;
  padding-bottom: 80px !important;
  
}



.main-message {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 35vh;
    margin: 5px 0;
    height: 3em;
    font-size: 2.5rem;
    /*background: rgba(0,0,0,0.3);*/
    opacity: 0;
    color: whitesmoke;
    
}

.main-message p {
    line-height: 1.2;
    font-weight: bold;
    text-align: center;
}

.main-message small {
    display: block;
    margin-bottom: 0.5em;
    font-size: 1.2rem;
    
}

#scroll-sesction-2 .main-message {
    font-size: 3.5rem;
}


.discription {
    padding: 0 1rem;
    font-size: 1.2rem;
    color: #888; 
    max-width: 1300px;
    margin: 0 auto;
}

.discription strong {
    float: left;
    margin-right: 0.2em;
    font-size: 3rem;
    color: rgb(29,29,31)
}


.desc-message {
    width: 50%;
    font-weight: bold;
    opacity: 0;
}

.pin {
    width: 1px;
    height: 100px;
    background: rgb(29,29,31);


}

#scroll-section-2 .b{
    top: 10%;
    left: 40%;

}


#scroll-section-2 .c{
    top: 15%;
    left: 45%;


}

.mid-message {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 2rem;
    color: #888
}

.mid-message strong {
    color: rgb(29,29,31)
}

.canvas-caption {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 1.2rem;
    color: #888;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 7rem;
    color: white;
    background: #888;

}


.sticky-message {
    display: none;
    position: fixed;
    left: 0;
    width: 100%;

}



/* 스크롤 동작시 보여줄 영역*/

#show-scene-0 #scroll-section-0 .sticky-message,
#show-scene-1 #scroll-section-1 .sticky-message,
#show-scene-2 #scroll-section-2 .sticky-message,
#show-scene-3 #scroll-section-3 .sticky-message {
    display: block;
}

.sticky-message-canvas {
    top: 0;
    height: 100%
}

.sticky-message-canvas canvas {
    position: absolute;
    top: 50%;
    left: 50%;
}


.canvas-caption {
    background-color: #888;
}


#scroll-section-0 {
    /* background-image: url('../imgs/screen.jpg'); */
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  height: 100vh; /* 뷰포트 높이만큼 설정 */
  margin: 0;
  /* background-color: rgb(255, 193, 78); */
}


/* 카드 전체 컨테이너 */
.card-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin: 3rem auto 0 auto;
  max-width: 1400px;  
  padding: 0 1rem;
  margin-bottom: 20vw;
}

/* 카드 기본 스타일 */
.card {
  position: relative;
  width: 95%;
  max-width: 500px;
  height: 220px;
  background-color: #001f3f;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;

}
.card.a {
    background-image: url('../video/002/130.jpg');
    background-size: cover; 
}
.card.b {
    background-image: url('../video/002/250.jpg');
    background-size: cover; 
}
.card.c {
    background-image: url('../video/002/490.jpg');
    background-size: cover; 
}



/* 등장 애니메이션 */
.card.show {
  transform: translateY(0);
  opacity: 1;
}

/* hover 시 텍스트 */
.card::before {
  content: attr(data-title);
  position: absolute;
  bottom: 15px;
  left: 20px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.card::after {
  content: attr(data-desc);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-size: 15px;
  transition: opacity 0.4s ease;
  
}

.card:hover::after {
  opacity: 1;
  
}
.card:hover::before {
  opacity: 0;
}



/* 데스크탑 */

@media (min-width: 1024px) {

.second-nav-link, .discription, .mid-message, .canvas-caption .card-row {
    max-width: 1400px;
}


.second-nav-link a:not(.company-name, .language-switch) {
    margin-right: 3rem;
}

.second-nav-link a {
    font-size: 1rem;
    font-weight: 600;
    
}

#scroll-section-0 h1 {
    font-size: 9vw;
}
.main-message {
    font-size: 4vw;
}
.discription {
    font-size: 2rem;
}

.discription strong {
    font-size: 6rem;
}

#scroll-section-2 .main-message {
    font-size: 6vw;    
}


.main-message small {
    font-size: 1.5vw;
}

.desc-message {
    width: 20%;
}


#scroll-section-2 .b{
    top: 20%;
    left: 53%;

}


#scroll-section-2 .c{
    left: 55%;

}


.mid-message {
    font-size: 3vw;
}
    
  .card-row {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;      /* ✅ 카드가 넘치면 자동 줄바꿈 */
    max-width: 1400px;    /* ✅ mid-message와 정렬 기준 통일 */
    margin-top: 4rem;
  }

  .card {
    flex: 1 1 24.5rem;   
    max-width: 27rem;
    height: 15rem;
  }
}
