/*
  banner-slider
 */
.banner-slider {
  padding: 16px 0;
}

@media (min-width: 1280px) {
  .banner-slider {
    display: none;
  }
}

@media screen and (max-width: 699px) {
  .banner-slider {
    margin: 0 -2.5%;
  }
}

.banner-slider--slide a {
  display: block;
  width: 100%;
  height: 100%;
}

/* NOTE: バナーは 5:3(300x180)で表示し、はみ出た部分はトリミング*/
.banner-slider--slide {
  max-width: 300px;
  aspect-ratio: 5 / 3;
  overflow: hidden;
}

.banner-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
  library-post-list
 */
.library-cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 4%;
  margin: 16px 0;
}

.library-card {
  width: 48%;
  padding: 10px;
  background: #fff;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}

.library-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.library-card--status-label {
  position: absolute;
  padding: 2px 25px 2px 8px;
  clip-path: polygon(0% 100%, 0% 0%, 100% 0%, 82.5% 100%);
  background-color: var(--color-yellow);
  font-size: 10px;
}

.library-card--status-label.shift--10 {
  margin-top: -10px;
  margin-left: -10px;
}

.library-card--image {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.library-card--title {
  margin: 10px 5px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.library-card--info {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 10px;
  margin: 6px 5px 0;
  font-size: 14px;
}

.library-card--new {
  color: #ED495D;
  font-weight: 500;
}

.library-card--date {
  color: #C3C3C3;
}

.library-card--tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #C3C3C3;
}

.library-card--tag {
  padding: 4px 6px;
  font-size: 10px;
  color: #095bd6;
  background-color: var(--color-background-gray);
  border-radius: 6px;
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .library-cards {
    gap: 12px;
    margin: 12px 0;
  }

  .library-card--tags {
    gap: 6px;
  }

  .library-card--tag {
    padding: 2px 4px;
  }
}
