/* page-memory */

.memory-page .site-main {
  background: url(../../images/memory/memory-bg.webp) no-repeat center center / cover;
}

.l-archive-news {
  padding-block: 0;
}

.l-archive-news-inner {
  max-width: calc(840 / 1440 * 100cqi);
  margin-inline: auto;
  padding-inline: calc(20 / 1440 * 100cqi);
}

/* リストアイテム */
.l-news-list-item {
  margin-bottom: 5px;
}


.l-news-list-item-link {
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 20px;
  text-decoration: none;
  transition: background-color 0.5s ease, color 0.5s ease;

  @media (any-hover: hover) {
    &:hover {
      background-color: var(--umi-color-accent);
      color: #000;

      .l-news-list-item-link__date {
        color: #000;
      }
    }
  }
}

.l-news-list-item-link__thumb {
  flex-shrink: 0;
  width: calc(160 / 1440 * 100cqi);
  aspect-ratio: 16 / 11;
  overflow: hidden;

  img {
    width: 100%;
  }
}

.l-news-list-item-link__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.l-news-list-item-link__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--umi-color-surface, rgba(255 255 255 / 0.05));
}

.l-news-list-item-link__body {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.l-news-list-item-link__date {
  font-size: 13px;
  color: var(--umi-color-accent-soft);
  transition: color 0.5s ease;
}

.l-news-list-item-link__text {
  margin-top: 10px;
  font-size: 16px;
  display: block;
}

/* BACKボタン */
.l-memory-backbtn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: calc(100 / 1440 * 100cqi);
  margin-top: calc(60 / 1440 * 100cqi);

  @media (max-width: 767px) {
    padding-bottom: 60px;
    margin-top: 40px;
  }
}

/* ペジネーション */
.l-archive-news-pagination {
  margin-top: calc(30 / 1440 * 100cqi);
  gap: 5px;
}

/* SP */
@media (max-width: 767px) {
  .l-archive-news {
    padding-block: 0;
  }

  .l-archive-news-inner {
    max-width: 100%;
    padding-inline: calc(20 / 390 * 100cqi);
  }

  .l-archive-news-pagination {
    margin-top: calc(40 / 390 * 100cqi);
  }

  .l-news-list-item-link {
    gap: 30px;
    padding-block: 20px;
    flex-direction: column;
  }

  .l-news-list-item-link__thumb {
    width: 74.2857142857%;
    text-align: center;
    margin-inline: auto;

    img {
      /* width: 100%; */
      /* height: auto; */
      margin-inline: auto;
    }
  }
}
