@charset "UTF-8";

main{
  margin: 100px 0 ;
}
/* 상단 영역 */
.sub-visual {
  background-image: url('../images/about/building4-top-bg.png');

}


/* map */
.map-area{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0px auto 30px;
}
.map-text{
  margin-left: 7%;
}
.map-img{
  width: 60%;
  aspect-ratio: 16/9;
  background-image: url(../images/about/building4-map.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* 컨텐츠 영역 */
.sticky-container {
  display: flex;
  gap: 80px;
  padding-top: 100px;
  width: 85%;
  margin: 0 auto;
  align-items: flex-start;
}

.sticky-text {
  flex: 1; 
  position: sticky;
  top: 150px;
  height: auto;
}
.sticky-text p{
  margin-top: 8px;
  line-height: 1.5;
}

.scroll-content {
  flex: 1.5; 
}

.building-card {
  margin-bottom: 100px; 
}
.building-card img{
  max-width: 100%;
}
.wrap-card-txt{
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  align-items: end;
}
.wrap-card-txt h3{
  font-size: 30px;
  font-weight: 600;
  color: var(--color-sub-text);
}
.wrap-card-txt p{
  font-size: 20px;
  color: var(--color-secondary);
  margin-top: 15px;
}
.building-view-more span{
  color: var(--color-sub-text);
  font-size: 22px;
  padding-right: 30px;
}
.building-view-more span::after{
  content: "\002B";
  display: inline-block;
  transform-origin: center; 
  margin-left: 5px;
  font-size: 28px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.building-card:hover .building-view-more span::after{
  transform: rotate(90deg) translateX(2px);
  transform-origin: center;
}




/* 1066px 이하 */
@media (max-width: 1066px) {
    
  /* map */
  .map-area{
    width: 85%;
    display: block;
    margin: 50px auto 20px;
  }
  .map-img{
    width: 100%;
    height: 250px;
    background-image: url(../images/about/building4-map.png);
    background-position: center;
    background-repeat: no-repeat;
    margin: 30px auto 0;
    background-size: cover;
  }



/* 컨텐츠 영역 */
  .sticky-container {
    display: block;
    padding-top: 20px;
  }

  .sticky-text {
    position: relative;
    top: 0px;
    margin-bottom: 30px;
  }

    
}

/* 767px 이하 */
@media (max-width: 767px) {
  .sub-visual {
    width: 100%;
    height: 300px;
  }
  .map-text{
    margin-left: 0%;
  }
  .building-card {
    margin-bottom: 50px; 
  }
  .wrap-card-txt{
    display: block;
    justify-content: space-between;
    margin-top: 20px;
    align-items: end;
  }
  .wrap-card-txt h3{
    font-size: 24px;
  }
  .wrap-card-txt p{
    font-size: 16px;
    margin-top: 10px;
  }
  .building-view-more{
    margin-top: 20px;
  }
  .building-view-more span{
    font-size: 16px;
  }
  .building-view-more span::after{
    font-size: 22px;
  }
}