.works-contents {
  max-width: 920px;
  margin: 0 auto;
  height: auto;
  padding: 40px 14px 100px 14px;
}

.works-contents .work .year {
  font-weight: bold;
  font-size: 18px;
}

.works-contents .work ul {
  list-style: none;
  display: grid;
  gap: 110px;
  grid-template-columns: repeat(auto-fit, 140px);
  grid-template-rows: repeat(auto-fit, 300px);
  justify-content: center;
  padding: 20px 0 80px 0;
}

.works-contents .work ul li {
  height: 300px;
}

.works-contents .image {
  height: 240px;
}

.works-contents .image img {
  height: 240px;
  width: 140px;
  object-fit: contain;
}

.works-contents .caption {
  height: 60px;
  text-align: center;
  line-height: 16px;
  padding-top: 8px;
  font-size: 10px;
}

.carousel {
  overflow: hidden;
  position: absolute;
  top: 0;
  background: rgb(250, 250, 250);
  height: 100%;
  z-index: 3;
  font-size: 1.6rem;
  width: 100%;
  min-width: 300px;
  display: none;
}

.carousel ul {
  display: flex;
  margin: 0;
  padding: 0;
  text-align: center;
}

.carousel-header {
  position: sticky;
  height: 60px;
  top: 0;
  justify-content: space-between;
  align-items: center;
}

.carousel-header .year {
  font-size: 1.8rem;
  font-weight: 400;
  padding: 0 0 0 40px;
}

.carousel-header .close {
  width: 60px;
  height: 60px;
  padding: 25px 15px 25px 15px;
  box-sizing: border-box;
}

.carousel-header .close div {
  height: 100%;
  width: 100%;
  position: relative;
  cursor: pointer;
}

.carousel-header .close span {
  width: 100%;
  border-bottom: solid 1px #525252;
  display: inline-block;
  position: absolute;
  border-radius: 2px;
  left: 0;
}

.carousel-header .close span:nth-of-type(1) {
  top: 4px;
  transform: rotate(45deg);
}

.carousel-header .close span:nth-of-type(2) {
  bottom: 5px;
  transform: rotate(-45deg);
}

.carousel-main {
  position: relative;
  flex-wrap: nowrap;
  height: calc(100% - 120px);
}

.carousel-main .image {
  height: calc(100% - 60px);
}

.carousel img {
  width: 100%;
  height: 100%;
  padding: 60px 48px;
  box-sizing: border-box;
  object-fit: contain;
}

.carousel-main .caption {
  font-size: 1.4rem;
  height: 60px;
  line-height: 20px;
}

.carousel-footer {
  position: sticky;
  height: 80px;
  line-height: 60px;
  bottom: 0;
  justify-content: center;
  align-items: center;
  padding-bottom: 40px;
}

.carousel-footer .count {
  width: 240px;
}

.carousel-footer .prev,
.carousel-footer .next {
  position: relative;
  height: 60px;
  cursor: pointer;
}

.carousel-footer .arrows {
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  position: absolute;
  top: 50%;
}

.carousel-footer .prev .arrows {
  border-bottom: solid 1px #333333;
  border-left: solid 1px #333333;
}

.carousel-footer .next .arrows {
  border-top: solid 1px #333333;
  border-right: solid 1px #333333;
}

@media screen and (max-width: 920px) {
  .carousel-header .close {
    display: none;
  }

  .carousel-header .year {
    padding: 0 0 0 14px;
  }
}