.exhibition-page--list {
  overflow: hidden;
}

.exhibition-page--detail {
  min-height: 100vh;
}

.exhibition-filter {
  overflow: hidden;
}

.exhibition-filter__items {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding-left: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  font-size: 12px;
  font-weight: 600;
  line-height: 10px;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.exhibition-filter__items li {
  flex: 0 0 auto;
}

.exhibition-filter__items a {
  color: var(--color-gray);
}

.exhibition-filter__items a.is-active {
  color: var(--color-cyan);
}

.exhibition-entry {
  position: relative;
  display: block;
  width: 100%;
  padding: 20px calc(var(--side-padding) + 150px) 20px var(--side-padding);
  border-top: 1px solid var(--color-line);
  background: var(--color-bg);
}

.exhibition-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--color-bg-blue);
  opacity: 0;
  pointer-events: none;
}

.exhibition-entry > * {
  position: relative;
  z-index: 1;
}

.exhibition-entry[hidden] {
  display: none;
}

.exhibition-entry:first-child {
  border-top: 0;
}

.exhibition-entry.is-first-visible {
  border-top: 0;
}

.exhibition-entry:last-child {
  border-bottom: 1px solid var(--color-line);
}

.exhibition-entry.is-last-visible {
  border-bottom: 1px solid var(--color-line);
}

.exhibition-entry.is-current::before {
  opacity: 0.8;
}

.exhibition-entry.is-current .exhibition-entry__image {
  z-index: 3;
}

.exhibition-entry.is-current .exhibition-entry__image img {
  filter: none;
  opacity: 1;
}

.exhibition-entry__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.exhibition-entry__meta time {
  color: var(--color-cyan);
}

.exhibition-entry__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  padding: 3px;
  border: 1px solid var(--color-gray);
  border-radius: 3px;
  color: var(--color-gray);
  font-size: 10px;
  line-height: 10px;
  letter-spacing: 1px;
}

.exhibition-entry__title {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  margin-top: 16px;
  color: var(--color-gray);
  font-size: 15px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: 1.5px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.exhibition-entry__arrow {
  position: absolute;
  top: 20px;
  right: var(--side-padding);
}

.exhibition-entry__image {
  position: absolute;
  right: var(--side-padding);
  bottom: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
}

.exhibition-entry__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(100%);
  opacity: 0.7;
}

.exhibition-pager {
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 79px 0;
}

.exhibition-pager a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #a3a3a3;
  font-size: 12px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0.36px;
  text-align: center;
}

.exhibition-pager a.is-current {
  border: 1px solid var(--color-text);
  color: var(--color-text);
}

.exhibition-visual {
  background: var(--color-bg-blue);
}

.exhibition-detail {
  padding-bottom: 64px;
}

.exhibition-detail > * + * {
  margin-top: 35px;
}

.exhibition-detail .detail__title + * {
  margin-top: 52px;
}

.exhibition-detail .detail__body + .detail__border {
  margin-top: 18px;
}

.exhibition-detail .detail__border + .detail__body {
  margin-top: 20px;
}

.exhibition-detail .detail__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap:16px;
  margin-top:20px;
}

.exhibition-detail .detail__body p + p {
  margin-top: 0;
}

.exhibition-detail__subnav {
  display: none;
}

@media (hover: hover) {
  .exhibition-pager a:hover {
    border: 1px solid var(--color-text);
    color: var(--color-text);
  }

  .exhibition-entry:hover .exhibition-entry__image {
    z-index: 3;
  }

  .exhibition-entry:hover .exhibition-entry__image img {
    filter: none;
    opacity: 1;
  }
}

@media (min-width: 851px) {
  .exhibition-entry {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .exhibition-filter {
    align-items: stretch;
  }

  .exhibition-filter__items {
    flex: 1 1 auto;
    align-self: stretch;
  }

  .exhibition-filter__back {
    z-index: 3;
  }

  .exhibition-entry__arrow {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin-top: auto;
    transform: none;
  }

  .exhibition-entry__title {
    margin-bottom: 6px;
  }

  .exhibition-entry__image {
    top: 20px;
    bottom: auto;
  }
}

@media (min-width: 851px) and (max-width: 1100px) {
  .exhibition-filter {
    padding-right: 0;
  }

  .exhibition-filter__items {
    gap: 12px 12px;
    justify-content: flex-start;
    margin-left: 41px;
  }
}

@media (max-width: 850px) {
  .exhibition-page--detail {
    min-height: 0;
  }

  .exhibition-page--list {
    overflow: visible;
  }

  .exhibition-page--list .exhibition-visual {
    display: none;
  }

  .exhibition-filter {
    order: 2;
    align-items: center;
    min-height: 60px;
    padding: 0;
  }

  .exhibition-page--list .exhibition-filter__back {
    display: none;
  }

  .exhibition-page--detail .exhibition-filter,
  .exhibition-page--detail .exhibition-list {
    display: none;
  }

  .exhibition-filter__items {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 20px;
    padding-right: 20px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 10px;
    letter-spacing: 1.4px;
  }

  .exhibition-list {
    order: 3;
    flex: 0 0 auto;
    overflow: visible;
  }

  .exhibition-entry {
    min-height: 200px;
    padding: 20px 150px 20px 20px;
  }

  .exhibition-entry__title {
    margin-top: 16px;
  }

  .exhibition-entry__arrow {
    right: 20px;
  }

  .exhibition-entry__image {
    right: 20px;
    bottom: 20px;
  }

  .exhibition-pager {
    padding: 49px 0;
  }

  .exhibition-detail {
    order: 2;
    padding-top: 25px;
    padding-bottom: 64px;
    background: var(--color-bg-blue);
  }

  .exhibition-detail .detail__title {
    text-align: center;
  }

  .exhibition-detail .detail__title + * {
    margin-top: 25px;
  }

  .exhibition-detail .detail__border + .detail__body {
    margin-top: 30px;
  }

  .exhibition-detail .detail__image {
    width: 76%;
  }

  .exhibition-detail__subnav {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 60px;
    padding: 0 20px;
    background: var(--color-bg-white);
  }

  .exhibition-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 19px;
    color: var(--color-cyan);
    font-size: 14px;
    font-weight: 600;
    line-height: 10px;
    letter-spacing: 1.4px;
  }

  .exhibition-detail__back-icon {
    display: block;
    width: 21px;
    height: 20px;
    background: url("../images/common/arrow.svg") center / contain no-repeat;
    transform: rotate(180deg);
  }
}
