.bg-wrapper::before {
  display: block;
  content: "";
  position: absolute;
  top: -320px;
  left: 0;
  width: 100%;
  height: 320px;
  background-image: linear-gradient(
    0deg,
    rgb(235, 242, 238),
    rgba(235, 242, 238, 0.7) 126px,
    rgba(235, 242, 238, 0)
  );
  z-index: 1;
}

.container {
  padding-top: 320px;
}

.bg-wrapper {
  padding-bottom: 200px;
}

.artworks-list-section {
  width: 100%;
  position: relative;
  z-index: 1;
}

.artworks-list-section__inner {
  position: relative;
  margin-left: 12.5vw;
  width: 67.5vw;
}

.artworks-list-section__headline {
  margin-bottom: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.artworks-list-headline__left {
  color: #353c3e;
  font-family: "Leida", serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.artworks-list-headline__right {
  color: #2d4751;
  font-family: "Zen Old Mincho", serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.64px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.3s;
}

.artworks-list-headline__right:link,
.artworks-list-headline__right:visited {
  text-decoration: none;
  color: #2d4751;
}

.artworks-list-headline__right-arrow {
  display: block;
  flex-shrink: 0;
}

.artworks-list-headline__right-arrow img {
  display: block;
  width: 17px;
  height: 18px;
}

.artworks-list-headline__right:hover {
  opacity: 0.6;
}

.artworks-list-search {
  margin-bottom: 8px;
}

.artworks-list-search form {
  position: relative;
}

.artworks-list-search input {
  width: 100%;
  height: 64px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  padding: 0 56px 0 24px;
  color: #353c3e;
  font-family: "Zen Old Mincho", serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 200%;
  letter-spacing: 0.84px;
}

.artworks-search__button {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  background-image: url("../img/common/icon_search_artworks.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
  transform: translateY(-50%) scaleX(-1);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.artworks-search__button:hover,
.artworks-search__button:focus-visible {
  transform: translateY(-50%) scaleX(-1) scale(1.08);
  opacity: 0.65;
}

.artworks-list-search input::placeholder {
  color: #7fa0ad;
}

.artworks-list-search input:focus {
  outline: none;
}

.artworks-list-section__inner.is-search-loading #artworks-grid,
.artworks-list-section__inner.is-search-loading #artworks-empty-search {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.artworks-list-section__inner.is-search-loading #artworks-search-form,
.artworks-list-section__inner.is-search-loading #artworks-load-more {
  pointer-events: none;
}

.artworks-list-search input[type="search"]::-webkit-search-decoration,
.artworks-list-search input[type="search"]::-webkit-search-results-button,
.artworks-list-search input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.artworks-list-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.artworks-list-count {
  color: #353c3e;
  font-family: "Zen Old Mincho", serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 200%;
  letter-spacing: 0.84px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.artworks-list-count.is-hidden {
  display: none !important;
}

.artworks-list-count__number {
  font-size: 14px;
  letter-spacing: 0.84px;
}

.artworks-list-count__unit {
  font-size: 12px;
  letter-spacing: 0.24px;
}

.artworks-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 40px;
}

.artworks-list .artwork-item {
  box-sizing: border-box;
}

.artworks-list .artwork-item a,
.artworks-list .artwork-item__inner {
  display: block;
  text-decoration: none;
}

.artwork-item__image {
  margin-bottom: 8px;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 24px;
  position: relative;
}

.artwork-item__image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.artwork-item__image p {
  color: #fff;
  font-family: Leida, serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 110%;
  letter-spacing: 0.24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  text-align: center;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.artwork-item__image p::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background: url("../img/common/icon_arrow_r_white.svg") center center
    no-repeat;
  background-size: cover;
}

.artwork-item__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(164, 177, 184, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}

.artwork-item a:hover .artwork-item__image::before {
  opacity: 1;
}

.artwork-item a:hover .artwork-item__image p {
  opacity: 1;
}

.artwork-item__header {
  margin-bottom: 8px;
}

.artwork-item__author {
  color: #353c3e;
  font-family: "Zen Old Mincho", serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 200%;
  letter-spacing: 0.24px;
  display: inline-block;
  position: relative;
}

.artwork-item__author::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #353c3e;
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.artwork-item a:hover .artwork-item__author {
  color: #65a4b6;
}

.artwork-item a:hover .artwork-item__author::after {
  transform: scaleX(1);
  transform-origin: left center;
  background-color: #65a4b6;
}

.artwork-item__body {
  margin-bottom: 8px;
}

.artwork-item__title {
  color: #6c6e6f;
  font-family: "Zen Old Mincho", serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 200%;
  letter-spacing: 0.24px;
}

.artwork-item__gallery-meta {
  border-top: 1px solid #bdd1d9;
  padding-top: 8px;
}

.artwork-item__room {
  color: #7fa0ad;
  font-family: Leida, serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: 0.24px;
  margin-bottom: 4px;
}

.artwork-item__gallery-name {
  color: #7fa0ad;
  font-family: "Zen Old Mincho", serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 200%;
  letter-spacing: 0.24px;
}

.artworks-list__empty {
  padding: 40px 0;
  color: #6c6e6f;
  font-family: "Zen Old Mincho", serif;
  font-size: 14px;
  line-height: 200%;
  letter-spacing: 0.84px;
}

.artworks-list__empty-search p {
  color: #353e3f;
  text-align: center;
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 200%;
  letter-spacing: 0.25px;
}

.artworks-list-section__footer {
  margin-top: 40px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.artworks-list-section__footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -200px;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(235, 242, 238, 0) 0%,
    rgba(235, 242, 238, 0.72) 58%,
    #ebf2ee 100%
  );
  pointer-events: none;
  z-index: 0;
}

.artworks-list-section__footer > * {
  position: relative;
  z-index: 1;
}

.artworks-pagination {
  margin-top: 48px;
}

.artworks-pagination .page-numbers {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.artworks-pagination .page-numbers a,
.artworks-pagination .page-numbers span {
  color: #7fa0ad;
  font-family: Leida, serif;
  font-size: 14px;
  line-height: 110%;
  letter-spacing: 0.48px;
  text-decoration: none;
}

.artworks-pagination .page-numbers .current {
  color: #353c3e;
}

body.js-enabled .artworks-pagination {
  display: none;
}

.artworks-list__load-more {
  border: none;
  background: none;
  color: #7fa0ad;
  font-family: Leida, serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: 0.64px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.artworks-list__load-more::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 1px solid #7fa0ad;
  border-bottom: 1px solid #7fa0ad;
  transform: rotate(45deg) translateY(-2px);
}

.artworks-list__load-more:hover {
  opacity: 0.6;
}

.artworks-list__soon {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 40px 0;
}

.artworks-list__soon .soon--text {
  color: #6c787a;
  font-family: "Leida", serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 110%;
  margin-left: 48px;
}

@media screen and (max-width: 768px) {
  .container {
    padding-top: 43vw;
  }

  .bg-wrapper {
    padding-bottom: 42.6666666667vw;
  }

  .bg-wrapper::before {
    top: -53.84615385vw;
    height: 53.84615385vw;
    background-image: linear-gradient(
      0deg,
      rgb(235, 242, 238),
      rgba(235, 242, 238, 0.7) 6.41025641vw,
      rgba(235, 242, 238, 0)
    );
  }

  .artworks-list-section__inner {
    margin-left: 6.9230769231vw;
    width: 86.1538461538vw;
  }

  .artworks-list-section__headline {
    margin-bottom: 10.25641026vw;
    align-items: flex-end;
  }

  .artworks-list-headline__left {
    font-size: 4.1025641vw;
    line-height: 110%;
    letter-spacing: 0.64px;
  }

  .artworks-list-headline__right {
    font-size: 3.07692308vw;
    letter-spacing: 0.24px;
    gap: 2.05128205vw;
  }

  .artworks-list-headline__right-arrow img {
    width: 3.07692308vw;
    height: 3.07692308vw;
  }

  .artworks-list-search {
    margin-bottom: 2.05128205vw;
  }

  .artworks-list-search input {
    height: 12.30769231vw;
    padding: 0 4.1025641vw;
    font-size: 3.07692308vw;
    letter-spacing: 0.24px;
  }

  .artworks-list-search input[type="search"]::-webkit-search-cancel-button {
    display: none;
  }

  .artworks-list-count {
    font-size: 3.58974359vw;
    letter-spacing: 0.21538462vw;
    gap: 0.51282051vw;
  }

  .artworks-list-count__number {
    font-size: 3.58974359vw;
    letter-spacing: 0.21538462vw;
  }

  .artworks-list-count__unit {
    font-size: 3.07692308vw;
    letter-spacing: 0.06153846vw;
  }

  .artworks-search__button {
    right: 4.1025641vw;
    width: 4.1025641vw;
    height: 4.1025641vw;
    background-size: 2.30769231vw 2.30769231vw;
  }

  .artworks-list {
    margin-top: 8.20512821vw;
    grid-template-columns: repeat(2, 1fr);
    gap: 10.25641026vw 4.1025641vw;
  }

  .artwork-item__image {
    margin-bottom: 4.1025641vw;
    padding: 3.07692308vw;
  }

  .artwork-item__header {
    margin-bottom: 2.05128205vw;
  }

  .artwork-item__author,
  .artwork-item__title,
  .artwork-item__gallery-name {
    font-size: 3.07692308vw;
    line-height: 200%;
    letter-spacing: 0.24px;
  }

  .artwork-item__room {
    font-size: 2.82051282vw;
  }

  .artworks-list-section__footer {
    margin-top: 40px;
  }

  .artworks-list-section__footer::before {
    top: -200px;
  }

  .artworks-list__load-more {
    font-size: 3.58974359vw;
    letter-spacing: 0.84px;
  }

  .artworks-pagination {
    margin-top: 8.20512821vw;
  }

  .artworks-pagination .page-numbers {
    gap: 3.07692308vw;
  }

  .artworks-pagination .page-numbers a,
  .artworks-pagination .page-numbers span {
    font-size: 3.07692308vw;
  }

  .artworks-list__soon {
    padding: 6.4vw 0;
  }

  .artworks-list__soon .soon--text {
    font-size: 3.7333333333vw;
    margin-left: 6.4vw;
  }

  .artworks-list__empty-search p {
    font-size: 3.58974359vw;
    letter-spacing: 0.06410256vw;
  }
}

@media screen and (min-width: 1280px) {
  .artworks-list-section__inner {
    width: 864px;
    margin: 0 auto;
  }
}
