#latest {
  background-color: var(--color-bg);
}

.latest__title {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 500;
  color: var(--color-font-dark);
  margin-bottom: 2.1rem;
}

.latest__items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  max-height: 15rem;
  overflow-y: auto;
}

.latest__item {
  width: 30rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 0.8rem 1.6rem 0.8rem 3rem;
  border-radius: 3rem;
  cursor: pointer;
  border: 0.5px solid #323233;
}

.latest__date {
  font-size: 1.3rem;
}

.latest__name {
  font-size: 1.2rem;
  color: var(--color-font-dark);
  margin-bottom: 0.4rem;
}

.latest__item img {
  width: 2.4rem;
  filter: brightness(0);
}

/* モーダル */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.modal--visible {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #fff;
  border-radius: 1.2rem;
  max-width: 34rem;
  width: 90%;
  transition: transform 0.3s ease-in-out;
  padding: 1.6rem;

  img {
    margin: 0 auto;
    width: 100%;
    max-height: 17rem;
  }
}

.modal__body {
  margin-top: 1.2rem;
}

.modal__date {
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.modal--visible .modal__content {
  transform: translate(-50%, -50%) scale(1);
}

.modal__title {
  font-size: 1.6rem;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--color-font-dark);
}

.modal__text {
  line-height: 1.8;
  margin-top: 0.8rem;
}

.modal__close {
  cursor: pointer;
  margin: 1.2rem auto 0 auto;
  display: block;
}
