/*** font ***/
@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Noto+Sans+KR&family=Orbitron:wght@700&display=swap');


body {
  overflow: hidden;
  font-family:'Noto Sans CJK KR', sans-serif;
  background: linear-gradient(135deg, black, #ff0062);
}

.carousel {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

.carousel-item {
  --items: 13;
  --width: clamp(250px, 40vw, 400px);
  --height: clamp(350px, 50vw, 500px);
  --x: calc(var(--active) * 800%);
  --y: calc(var(--active) * 200%);
  --rot: calc(var(--active) * 120deg);
  --opacity: calc(var(--zIndex) / var(--items) * 3 - 2);
  overflow: hidden;
  position: absolute;
  z-index: var(--zIndex);
  width: var(--width);
  height: var(--height);
  margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5);
  border-radius: 10px;
  top: 50%;
  left: 50%;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  transform-origin: 0% 100%;
  box-shadow: 0 10px 50px 10px rgba(0, 0, 0, 0.5);
  background: black;
  pointer-events: all;
  transform: translate(var(--x), var(--y)) rotate(var(--rot));
  transition: transform 0.8s cubic-bezier(0, 0.02, 0, 1);
}
.carousel-item .carousel-box {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1);
  opacity: var(--opacity);
  font-family:'Noto Sans CJK KR', sans-serif;
}
.carousel-item .carousel-box:before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.5));
}
.carousel-item .title {
  position: absolute;
  z-index: 1;
  color: #fff;
  bottom: 20px;
  left: 20px;
  transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 0.7);
  font-size: clamp(12px, 3vw, 18px);
  font-weight: 300;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
}
.carousel-item .num {
  position: absolute;
  z-index: 1;
  color: #fff;
  top: 10px;
  left: 20px;
  transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1);
  font-size: clamp(12px, 4vw, 24px);
  font-weight: 600;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  pointer-events: none;
}

.layout {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.layout:before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 90px;
  width: 10px;
  height: 100%;
  border: 1px solid #fff;
  border-top: none;
  border-bottom: none;
  opacity: 0.15;
}
.layout .box {
  position: absolute;
  bottom: 0;
  left: 30px;
  color: #fff;
  transform-origin: 0% 10%;
  transform: rotate(-90deg);
  font-size: 16px;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: 0.4;
}

.logo {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 28px;
  width: 330px;
  height: 38px;
  background: rgba(0, 0, 0, 0);
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family:'Noto Sans CJK KR', sans-serif;
  pointer-events: all;
  color: black;
  text-decoration: none;
  font-size: 20px;
  overflow: hidden;
  padding-bottom: 0.1em;
}
.logo1 {
  position: absolute;
  z-index: 2;
  top: 86px;
  right: 28px;
  width: 130px;
  height: 30px;
  background: rgba(0, 0, 0, 0);
  opacity: 1;
  display: flex;
  justify-content: right;
  align-items: center;
  font-family:'Noto Sans CJK KR', sans-serif;
  pointer-events: all;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  overflow: hidden;
  padding-bottom: 0.1em;
}

.logo2 {
  position: absolute;
  z-index: 2;
  top: 124px;
  right: 28px;
  width: 130px;
  height: 30px;
  background: rgba(0, 0, 0, 0);
  opacity: 1;
  display: flex;
  justify-content: right;
  align-items: center;
  font-family:'Noto Sans CJK KR', sans-serif;
  pointer-events: all;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  overflow: hidden;
  padding-bottom: 0.1em;
}

.logo3 {
  position: absolute;
  z-index: 2;
  top: 162px;
  right: 28px;
  width: 130px;
  height: 30px;
  background: rgba(0, 0, 0, 0);
  opacity: 1;
  display: flex;
  justify-content: right;
  align-items: center;
  font-family:'Noto Sans CJK KR', sans-serif;
  pointer-events: all;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  overflow: hidden;
  padding-bottom: 0.1em;
}

.logo4 {
  position: absolute;
  z-index: 2;
  top: 200px;
  right: 28px;
  width: 130px;
  height: 30px;
  background: rgba(0, 0, 0, 0);
  opacity: 1;
  display: flex;
  justify-content: right;
  align-items: center;
  font-family:'Noto Sans CJK KR', sans-serif;
  pointer-events: all;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  overflow: hidden;
  padding-bottom: 0.1em;
}


@media screen and (max-width: 1280px) {
  .logo {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 2;
  margin: 20px;
  left: 10px;
  top: 10px; /* 상단 여백 조절 */ 
  background: rgba(0, 0, 0, 0);
  opacity: 1;    
  }

  .logo1, .logo2, .logo3, .logo4 {  
    margin-top: -70px;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 0.05rem;
    width: 100px;
  }
  .layout .box {
    position: absolute;
    bottom: 0;
    left: 30px;
    color: #fff;
    transform-origin: 0% 10%;
    transform: rotate(-90deg);
    font-size: 0.8rem;
    line-height: none;   
  }
  .layout:before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 90px;
    width: 10px;
    height: 100%;
    border: none;
    border-top: none;
    border-bottom: none;
    opacity: 0;
  }
  
}

@media screen and (max-width: 768px) {
  .logo {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 2;
    margin: 20px;
    left: 10px;
    width: 30%; /* 기존의 40% 크기에서 20%로 조절 */
    height: 30%; /* 기존의 40% 크기에서 20%로 조절 */
    top: -90px; /* 상단 여백 조절 */ 
    background: rgba(0, 0, 0, 0);
    opacity: 1;    
  }

  .logo1, .logo2, .logo3, .logo4 {  
    margin-top: -70px;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 0.01rem;
    width: 100px;
  }
  .layout .box {
    position: absolute;
    bottom: 0;
    left: 30px;
    color: #fff;
    transform-origin: 0% 10%;
    transform: rotate(-90deg);
    font-size: 0.6rem;
    line-height: none;   
  }
}

.logo1::before, .logo2::before, .logo3::before, .logo4::before {
  content: "";
 
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}

.logo1:hover::before,.logo2:hover::before, .logo3:hover::before, .logo4:hover::before {
  
  width: 100%;
  transition: width 0.3s ease;
  animation: underlineAnimation 0.3s forwards;
}

@keyframes underlineAnimation {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}


.cursor {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  --size: 40px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: calc(var(--size) * -0.5) 0 0 calc(var(--size) * -0.5);
  transition: transform 0.85s cubic-bezier(0, 0.02, 0, 1);
  display: none;
  pointer-events: none;
}
@media (pointer: fine) {
  .cursor {
    display: block;
  }
}

.cursor2 {
  --size: 2px;
  transition-duration: 0.7s;
}

