@charset "utf-8";

.histotyWork {
  width: 100%;
  margin: 14.37rem auto 10rem;
  text-align: center;
}
.histotyWork h2 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
}
.histotyWork > p {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 4rem;
}
.histotyWork > figure {
  margin-bottom: 4rem;
}
.scrollArea_m {
  display: none;
}
.scrollArea .inner02 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6.25rem;
}
.fixedArea {
  position: relative;
  width: 33.75rem;
  height: 143.75rem;
  overflow: hidden;
}
.fixedArea .fixedLeft {
  position: fixed;
  top: 0; /* 원하는 고정 위치 */
  opacity: 0;
  overflow: hidden;
}
.fixedArea .fixedLeft.active {
  opacity: 1;
  z-index: 10;
}
.fixedArea .fixedLeft p {
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--deep-gray);
  margin-bottom: 1.56rem;
}
.fixedArea .fixedLeft h3 {
  color: var(--black);
  line-height: 1.4;
}
.scrollArea div .scrollRight {
  width: 53.75rem;
  font-size: 1.31rem;
  color: var(--dark-gray);
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 1.87rem;
}
.scrollArea div .scrollRight > li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.87rem;
  width: 100%;
  padding: 4.37rem 0 1.25rem;
  font-size: 1.31rem;
  font-weight: 600;
  color: var(--dark-gray);
}
.scrollArea div .scrollRight > li:last-child {
  margin-bottom: 16.25rem;
}
.scrollArea div .scrollRight > li::before {
  content: "";
  position: absolute;
  top: 0;
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--light-gray);
}
.scrollArea div .scrollRight > li > ul {
  font-weight: 500;
}
.scrollArea div .scrollRight > li > ul > li {
  display: flex;
  gap: 0.62rem;
  margin-bottom: 1.56rem;
}
.scrollArea div .scrollRight > li > ul > li > img {
  display: inline-block;
  width: 1.5rem;
  vertical-align: -0.31rem;
}
.scrollArea div .scrollRight > li > ul > li span {
  display: inline-block;
  transition: all 0.3s ease;
}

.scrollArea div .scrollRight > li > ul > li span:hover {
  display: inline-block;
  text-decoration: underline;
}

.imgInner {
  position: fixed;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 21.75rem;
  height: 25rem;
  z-index: 10;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.imgInner.active {
  opacity: 1;
}

.imgInner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.imgInner img.show {
  opacity: 1;
}

/* ==========노트북 반응형============= */
@media screen and (max-width: 1023px) {
  .histotyWork {
    margin: 11.87rem auto 7.5rem;
  }
  .histotyWork h2 {
    font-size: 3.5rem;
    margin-bottom: 0.93rem;
  }
  .histotyWork > p {
    font-size: 1.06rem;
  }
  .histotyWork > figure {
    width: 58.93rem;
    height: 47.5rem;
  }
  .histotyWork > figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .scrollArea .inner02 {
    gap: 3.12rem;
  }
  .fixedArea {
    width: 21.43rem;
    height: 140.62rem;
  }
  .fixedArea .fixedLeft p {
    font-size: 1.06rem;
  }
  .fixedArea .fixedLeft h3 {
    font-size: 2.25rem;
  }
  .scrollArea div .scrollRight {
    width: 33.81rem;
    font-size: 1.25rem;
    gap: 1.25rem;
  }
  .scrollArea div .scrollRight > li {
    font-size: 1.25rem;
  }
  .scrollArea div .scrollRight > li:last-child {
    margin-bottom: 7.5rem;
  }
  .scrollArea div .scrollRight > li > ul > li span:hover {
    text-decoration: none;
  }

  .imgInner {
    width: 13.68rem;
    height: 15.75rem;
  }
}

/* ==========태블릿 반응형============= */
@media screen and (max-width: 860px) {
  .histotyWork {
    margin: 11.87rem auto 7rem;
  }
  .histotyWork h2 {
    font-size: 3.93rem;
  }
  .histotyWork > p {
    font-size: 1.25rem;
  }
  .histotyWork > figure {
    width: 49.56rem;
    height: 53.25rem;
  }
  .scrollArea {
    display: none;
  }
  .scrollArea_m {
    display: block;
    margin-bottom: 8.43rem;
  }
  
  .fixedLeft_m > p {
    font-size: 1.25rem;
    color: var(--deep-gray);
    margin: 5rem 0 1.25rem;
  }
  .fixedLeft_m > h3 {
    font-size: 2.56rem;
    line-height: 1.4;
    color: var(--black);
    margin-bottom: 2.5rem;
  }
  .scrollRight_m {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2.25rem 0;
    border-top: 1px solid var(--bg-gray);
  }
  .scrollRight_m h4 {
    font-size: 1.43rem;
    font-weight: 600;
    color: var(--dark-gray);
  }
  .scrollRight_m > ul > li:not(:last-child) {
    margin-bottom: 2.5rem;
  }
  .scrollRight_m > ul > li > span {
    display: block;
    font-size: 1.43rem;
    font-weight: 500;
    padding-bottom: 0.62rem;
  }

  .scrollRight_m > ul > li > img {
    width: 24.37rem;
    height: 28rem;
  }
}

/* ==========모바일 반응형============= */
@media screen and (max-width: 540px) {
  .histotyWork {
    margin: 11.87rem auto 7rem;
  }
  .histotyWork h2 {
    font-size: 4rem;
    margin-bottom: 1.87rem;
  }
  .histotyWork > p {
    width: 25.62rem;
    font-size: 1.43rem;
    line-height: 1.5;
    margin: 0 auto 3.5rem;
  }
  .histotyWork > figure {
    width: 30.31rem;
    height: 53.68rem;
  }
  .scrollArea {
    display: none;
  }
  .scrollArea_m {
    width: 30.31rem;
    margin: 0 auto 8.43rem;
  }
  .fixedLeft_m > p {
    font-size: 1.43rem;
    margin: 6.93rem 0 1.43rem;
  }
  .fixedLeft_m > h3 {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 3.12rem;
  }
  .scrollRight_m {
    padding: 3.12rem 0;
  }
  .scrollRight_m h4 {
    font-size: 1.43rem;
    font-weight: 600;
    color: var(--dark-gray);
  }
  .scrollRight_m > ul > li:not(:last-child) {
    margin-bottom: 2.62rem;
  }
  .scrollRight_m > ul > li > span {
    font-size: 1.56rem;
    padding-bottom: 1.25rem;
  }

  .scrollRight_m > ul > li > img {
    width: 24.62rem;
    height: 28.37rem;
  }
}
