/* general */
@font-face {
  font-family: 'Lineal';
  src: url('../files/fonts/LinealVF.woff') format('woff');
}



* {
  top: 0px;
  left: 0px;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  text-decoration: none;
  /* font-family: "Inter", sans-serif;
  font-style: normal; */
  text-align: center;
  /* z-index: 0; */
  max-width: 100vw;
  cursor: none;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}


body {
  background-color: white;
}


#entireMainPage {
  width: 1fr;
  height: 100vh;
  background-color: white;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* padding: auto; */
  /* height: 2000px; */
}


/* header */


header {
  width: 100vw;
  height: 96px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  /* position: fixed; */
  position: relative;
  justify-content: center;
  align-items: center;
  /* left: 50%;
  transform: translateX(-50%); */
  top: 0px;
  z-index: 10;
  /* border: 1px solid rgb(17, 255, 0); */
  /* scale: 0.8; */
}

#headerBox {
  display: flex;
  justify-content: center;
  align-items: center;
  /* position: absolute; */
  /* top: 48px; */
  position: fixed;
  top: 26px;
  left: 50%;
  /* transform: translateX(-50%) translateY(-50%); */
  transform: translateX(-50%);
  width: 300px;
  height: 42px;
  background-color: white;
  border: 1px solid rgba(191, 191, 191, 0.4);
  box-shadow: 0px 14px 26px -7px rgba(15, 147, 255, 0.4);
  border-radius: 30px;

  /* padding: 0px; */
  z-index: 10;
  /* 필요한 경우 z-index 유지 */
  transition: width 0.3s ease-out;
  /* scale: 0.8; */
}

#headerBox.scrolled {
  display: flex;
  justify-content: center;
  width: 95px;
  /* width: 120px; */
  /* 또는 다른 적절한 값 */
  /* padding: 0px 0px 0px 13px; */
  /* margin: 0 auto; */
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
  /* 또는 absolute, 상황에 따라 다름 */
  top: 26px;
}

.topBox.scrolled {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  transition: visibility 0s 0.7s, opacity 0.7s ease, width 0s 0.7s, height 0s 0.7s;
}

#topBoxes.scrolled {
  margin: 10px 0px;
}


#topBoxes {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-around;
  /* margin: 10px 20px 10px 12px; */
  margin: 10px 0px 9.2px 4px;
  width: auto;
  /* border:rgb(255, 0, 0) solid 1px; */
}

.topBox {
  font-size: 14.5px;


  color: #484848;
  flex-grow: 1;
  text-align: center;
  /* margin: 0px 4px 0px 2px; */
  margin: 0px;
  padding: 0px 0px 0px 20px;
  flex: 1;
  opacity: 1;
  transition: opacity 0.5s ease-in 0.1s, transform 0.1s ease-in;
  /* border:rgb(30, 0, 255) solid 1px; */
}

#logo {
  font-size: 16.5px;
  margin-bottom: -0.1px;
  font-weight: 640;
  color: black;
  text-decoration: none;
  text-align: center;
  /* margin: 10px 0px 10px 20px;
  padding: 2px 0px; */
  /* transition: transform 0.8s ease-in 0.4s; */
  /* border:rgb(255, 0, 0) solid 1px; */
}




#topBox2 {
  font-weight: 625;
}


/* ===== Mobile collapsed: show only topBox3 instead of logo ===== */

/* 축소 상태 박스 크기/위치: 네가 준 값 그대로 사용 (변경 없음) */
/* #headerBox.scrolled { width: 105px; top: 26px; ... } 그대로 */

/* 축소 상태에서 로고 숨김 */
#headerBox.scrolled #logo {
  display: none;
}

/* 축소 상태 topBoxes 중앙 정렬 (가로만 정확히 중앙) */
#topBoxes.scrolled {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* 네가 준 기본 마진 스케일 유지: 아래 값과 충돌하지 않게 좌우는 0으로만 정렬 안정화 */
  margin: 11px 0 9.2px 0;
}

/* 축소 상태에서는 항목이 늘어나며 가운데가 밀리지 않도록 flex 확장/패딩 제거 */
#headerBox.scrolled .topBox {
  flex: 0 0 auto;
  padding: 0;
}

/* ✅ topBox3만 표시 + 완전 중앙 */
#headerBox.scrolled #topBox2 {
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  margin: 0 auto;
  text-align: center;
}

/* 나머지 탭은 기존 .topBox.scrolled 규칙으로 숨김 (변경 불필요) */






/* main */

main {
  width: 100vw;
  height: auto;
  display: flex;
  flex-direction: column;
  /* margin: 0px;
  padding: 0px; */
  /* top: 96px; */
  /* flex-wrap: nowrap; */
  position: relative;
  /* z-index: 1; */
  /* border:black solid 2px; */
}

.boxes {
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  /* 애니메이션 지속 시간과 타입을 조정할 수 있습니다. */
}




/* section1 */

#section1 {
  /* width: 100%; */
  height: auto;
  position: relative;
  /* background-color: rgb(255, 255, 255); */
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  /* border: rgb(255, 0, 0) solid 1px; */
  margin: 0vw 2vw;
}

.boxes {
  position: relative;
  height: 35vw;
  /* border: rgb(0, 0, 255) solid 1px; */
  /* background-color: #fff59d; */
  border-radius: 3vw;
  /* margin: 0px 16px 36px 16px; */
  margin: 0vw 1vw 2vw 1vw;
}



.blackboxes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px;

  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.3s ease-in-out;

  flex-direction: column;
  justify-content: left;

  align-items: start;

  text-align: left;

  border-radius: 3vw;

  display: flex;
}


/* 
.boxes:hover .blackboxes {
  opacity: 1;
} */

.title {

  font-size: 22px;
  color: white;

  text-align: left;

  font-family: "Nunito", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 350;

  line-height: 22px;

  white-space: normal;
  /* 줄바꿈을 정상적으로 처리하도록 설정합니다 */
  word-wrap: break-word;
  width: 80%;
  margin-bottom: 3px;

}

.subtitle {
  /* font-size: 1.1vw; */
  font-size: 12px;
  color: rgb(210, 210, 210);

  font-family: "Nunito", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 300;

  text-align: left;
  line-height: 15px;
}



.bg-video {
  position: absolute;
  top: 0;
  /* 기존 transform을 제거하고 top, left를 조정 */
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ✅ 기존 contain 대신 cover 사용 (잘리지 않게) */
  z-index: 0;
  /* ✅ 텍스트 뒤에서 항상 보이도록 */
  /* background-color: black; */
  opacity: 1;
  /* ✅ 항상 보이게 설정 */
  transition: opacity 0.3s ease-in-out;
  /* ✅ 부드럽게 전환 */
}


#box15 { width: calc(25vw - 5vw);}
#box16 {  width: calc(75vw  - 5vw);}
#box17 { width: calc(50vw  - 5vw); }
#box2  {width: calc(40vw  - 5vw); }
#box3  { width: calc(60vw  - 5vw); }
#box11 { width: calc(50vw  - 5vw); }
#box18 {width: calc(50vw  - 5vw); }
#box13 { width: calc(50vw  - 5vw);}


/* footer */

footer {


  width: 100vw;
  background-color: white;
  border-top: black solid 0.95px;
  position: relative;
  bottom: 0px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  margin: 0px;
  /* border-radius: */
  /* border: rgb(255, 0, 212) solid 1px; */
}

#bottomLogo {
  font-size: 15.3px;
  font-weight: 630;
  font-style: normal;

  text-align: center;
  margin-left: 30px;
  margin-bottom: -1px;
  /* border: rgb(0, 159, 37) solid 1px; */
}

#bottomBoxes {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  font-size: 14.8px;

  font-weight: 350;
  font-style: normal;


  text-align: center;
  align-items: center;
  padding: 0;
  margin-right: 30px;
  margin-bottom: -1px;
  /* border: rgb(0, 76, 207) solid 1px; */
}

.bottomBox {
  /* margin: 0px 10px; */
  margin: 0px 0px 0px 24px;
  /* border: rgb(207, 0, 7) solid 1px; */
  align-items: center;
  width: auto;
}


@media (max-width: 767px) {
  .blackboxes {
    pointer-events: none;
    display: none;
  }
}



/* 마우스 인터렉션 */

#mouse-cursor {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  transform: translate3d(-100%, -100%, 0);
  pointer-events: none;
  z-index: 50;
  color: #000000;
  mix-blend-mode: difference;
}

#mouse-cursor>div {

  position: relative;
  width: 30px;
  height: 30px;
  background-color: #ffffff;
  font-size: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  --cursur-scale: 1;
  transform: scale3d(var(--cursor-scale), var(--cursor-scale), 1);
  will-change: transform;
  transition: transform 150ms ease-in-out,
    background-color 150ms ease-in-out;
}

#mouse-cursor>div::after {
  content: attr(data-name);
  position: absolute;
  /* color: #fff; */
  transform: scale(0.45);
  white-space: nowrap;
}


.topBox:hover {
  transition: scale 0.2s ease-in-out;
  transform: scale(1.06);
  /* font-size: 20px;
  font-weight: 600; */
  /* padding: 5px; */
}

#bottomBoxes li a {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
  /* padding: 2px 0;  */
}

#bottomBoxes li a:hover {
  /* font-size: 18px;
  font-weight: 600;
  padding: 0px 0;  */
  transition: all 0.2s ease-in-out;
  transform: scale(1.3);
  /* 원하는 크기로 조정 */
}


/* 애니메이션 추가 */