/* general */
* {
  top: 0px;
  left: 0px;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  text-decoration: none;

  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: relative;
  justify-content: center;
  align-items: center;
  top: 0px;
  z-index: 10;
  /* border: 1px solid rgb(0, 204, 255); */
}

#headerBox {
  display: flex;
  justify-content: center;

  align-items: center;

  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;

  height: 44px;

  background-color: white;
  opacity: 96%;
  border: 1px solid rgba(191, 191, 191, 0.4);
  /* box-shadow: 0px 13px 26px -5px rgba(15, 147, 255, 0.4); */
  border-radius: 30px;

  z-index: 10;
  /* 필요한 경우 z-index 유지 */
  transition: width 0.3s ease-out;
  /* 사이즈 조정 애니메이션 유지 */


  box-shadow: 0vw 0.5vw 0.8vw -0.05vw rgba(15, 147, 255, 0.25);
  /* top: 1.5vw;
  width: 23vw; */

}


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

.topBox.scrolled {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  /* Remove the boxes from the normal document flow */
  width: 0;
  /* Eliminate the width */
  height: 0;
  /* Eliminate the height */
  overflow: hidden;
  /* Make sure no content spills out */
  transition: visibility 0s 0.7s, opacity 0.7s ease, width 0s 0.7s, height 0s 0.7s;
  /* Transition for a smooth disappearance */
}

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


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

.topBox {
  font-size: 16.5px;
  font-family: "Nunito", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  font-style: normal;

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

#logo {
  font-size: 21px;
  margin-bottom: -1px;
  /* font-family: "Prompt", sans-serif; */
  font-family: "Nunito", serif;
  font-optical-sizing: auto;

  font-weight: 600;
  font-style: normal;


  color: black;
  text-decoration: none;
  text-align: left;
  transition: transform 0.8s ease-in 0.4s;
  /* border:rgb(0, 255, 128) solid 1px; */
}


#topBox3 {
  font-weight: 625;
}


.boxes { cursor: pointer; }

/* 축소 상태에서는 hover 확대 비활성화 */
#headerBox.scrolled .topBox {
  transform: none !important;
  transition: none !important;   /* 깜빡임 방지 */
}

#headerBox.scrolled .topBox:hover {
  transform: none !important;     /* hover 확대 제거 */
}

#headerBox.scrolled { cursor: pointer; }
/* 안쪽 요소가 커서를 덮어쓰지 않도록 상속 */
#headerBox.scrolled * { cursor: inherit; }





/* 축소 상태 topBoxes를 컨테이너 중앙 정렬 */
#topBoxes.scrolled {
  display: flex;
  justify-content: center;    /* ✅ 수평 중앙 */
  align-items: center;         /* 수직 정렬 안정화 */
  width: 100%;
  margin: 10px 0 8.5px 0;      /* ✅ 좌우 마진 제거해서 딱 중앙 */
}

/* 축소 상태에선 flex 확장 제거 (늘어나며 좌표 밀림 방지) */
#headerBox.scrolled .topBox {
  flex: 0 0 auto;              /* ✅ flex:1 제거 */
  padding: 0;                  /* 패딩이 중앙 위치를 미는 것 방지 */
}

/* topBox3만 표시 + 완전 중앙 */
#headerBox.scrolled #topBox3 {
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  margin: 0 auto;              /* ✅ 요소 자체를 가운데로 */
  text-align: center;          /* 텍스트도 가운데 */
}

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




/* 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: 2.4vw;
  /* font-style: normal; */
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  /* border: rgb(0, 0, 255) solid 1px; */
  /* margin: 0px 16px 36px 16px; */

  display: flex;
  /* flex 컨테이너로 설정 */
  /* flex-wrap: wrap; */
  flex-direction: column;
  justify-content: left;
  /* 가로 방향으로 중앙 정렬 */
  align-items: start;
  /* 세로 방향으로 중앙 정렬 */
  text-align: left;
  /* 텍스트를 중앙으로 정렬 */
  border-radius: 3vw;

  z-index: 1;
  /* ✅ 텍스트 뒤에서 항상 보이도록 */
}


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




.title {
  font-size: 2.1vw;
  margin-bottom: -0.08vw;
  color: white;

  /* font-family: "Jura", sans-serif;
  font-weight: 500;
  font-style: normal; */

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

  font-weight: 350;


}

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


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

  font-weight: 300;

}





.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;
  /* ✅ 부드럽게 전환 */
}

#video_box15 {
  scale: 1.25;
}



#box15 {
  position: relative;
  width: calc(50vw - 5vw);
  /* 필요에 따라 높이 조정 */
  overflow: hidden;
  border: rgb(238, 238, 238) solid 2px;
}

#box16 {
  position: relative;
  width: calc(50vw - 5vw);
  /* 필요에 따라 높이 조정 */
  overflow: hidden;
}

#box17 {
  position: relative;
  width: calc(100vw - 8vw);
  /* 필요에 따라 높이 조정 */
  overflow: hidden;

  background-image: url(../files/podscribe/podscribe_hero_1.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  /* background-size: contain; */
  background-size: cover;
}



#box1 {
  /* width: calc(75vw - 5vw); */
  width: calc(100vw - 8vw);
  background-image: url(../files/curva-main.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  /* background-size: contain; */
  background-size: cover;

}

#box2 {
  width: calc(25vw - 5vw);
  background-image: url(../files/with2-main.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  /* background-size: contain; */
  background-size: cover;
}

#box3 {
  width: calc(100vw - 8vw);
  background-image: url(../files/nebula-main.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

#box4 {
  width: calc(50vw - 5vw);
  background-image: url(../files/shinola2-main.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  /* background-size: contain; */
  background-size: cover;
}

#box5 {
  width: calc(50vw - 5vw);
  background-image: url(../files/bauhaus-main.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  /* background-size: contain; */
  background-size: cover;
}

#box14 {
  width: calc(100vw - 8vw);
  background-image: url(../files/Kineticpose/KineticPose_main000.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

#box10 {
  width: calc(50vw - 5vw);
  background-image: url(../files/bodega/bodega1.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  /* background-size: cover; */
  background-size: 180%; 
}

/* #box11 {
  width: calc(75vw - 5vw);
  background-image: url(../files/type/type-main-ss.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
} */

#box12 {
  width: calc(50vw - 5vw);
  background-image: url(../files/AltiAir/AltiAir-main2.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  /* background-size: contain; */
  background-size: cover;
}

/* #box13 {
  width: calc(50vw - 5vw);
  background-image: url(../files/heesoo-main.jpg);
  background-repeat: no-repeat;
  background-position: center center;

  background-size: 130%;
} */

#box6 {
  width: calc(25vw - 5vw);
  background-image: url(../files/AL-main.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  /* background-size: contain; */
  background-size: cover;
}

#box7 {
  width: calc(75vw - 5vw);
  background-image: url(../files/beam-main.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  /* background-size: contain; */
  background-size: cover;
}

#box8 {
  width: calc(50vw - 5vw);
  background-image: url(../files/Flower2-main.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  /* background-size: contain; */
  background-size: cover;
}

#box9 {
  width: calc(50vw - 5vw);
  background-image: url(../files/hangitall1-main.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  /* background-size: contain; */
  background-size: cover;
}



/* footer */

footer {
  font-family: "Nunito", serif;
  font-optical-sizing: auto;


  font-style: normal;

  width: 100vw;
  background-color: white;
  border-top: black solid 1.4px;
  height: 64px;
  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: 17.5px;
  font-weight: 600;
  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: 17px;
  font-weight: 370;
  font-style: normal;

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

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


@media only screen and (min-device-width: 768px) and (max-device-width: 1200px) {
  footer {
    border-top: black solid 1px;
  }
}

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

  .boxes:hover .blackboxes {
    opacity: 0;
  }
}


/* 마우스 인터렉션 */

#mouse-cursor {
  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);
  /* 원하는 크기로 조정 */
}


/* 애니메이션 추가 */