.p-ebook {
  padding-top: 0;
  padding-bottom: 0;
}
.p-ebook__section:not(:last-child) {
  margin-bottom: 48px;
}
.p-ebook__slider {
  margin-right: calc((100vw - 1280px) / 2 * -1);
}
.p-ebook__slider .c-cardGrid__listWrap.swiper-wrapper {
  margin-top: 16px;
}
.p-ebook__slider .c-cardGrid__listItem {
  box-shadow: none;
  width: 240px;
}
.p-ebook__slider .swiper-button-next {
  right: 48px !important;
}
/* ID:399 左にコンテンツが無いときは前へ矢印を非表示 */
.p-ebook__slider .swiper-button-prev.swiper-button-disabled {
  display: none !important;
}
.p-ebook__slider[data-slider=series] .c-articleCard__thumb img {
  max-width: 100%;
  max-height: unset;
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  -o-object-fit: cover !important;
     object-fit: cover !important;
}
.p-ebookCard {
  width: 100%;
}
.p-ebookCard a {
  display: block;
  width: 100%;
}
/* ID:563 Safari で aspect-ratio + 親 display:flex + height:max-content
   (.c-thumbTrimmingNg--m) の組み合わせが効かず、画像が枠より大きくなり
   上下がトリミングされる事象を回避するため padding-bottom hack で 1:1 を
   担保する。画像は絶対位置で中央配置。
   ID:551 SP 書影は 92% で表示。 */
.p-ebookCard .c-articleCard__thumb {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  aspect-ratio: auto;
  display: block;
  background: var(--bg-color);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
}
.p-ebookCard .c-articleCard__thumb img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 92%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.p-ebookCard__title {
  line-height: 1.5;
}
.p-ebookCard__title span {
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.3s ease-in-out;
}
.p-ebookCard a:hover .p-ebookCard__title span {
  border-bottom-color: var(--text-color);
}
.p-ebookCategory__tags {
  margin-top: 24px;
  margin-right: min(-5vw, (100vw - 1280px) / 2 * -1);
  margin-bottom: 48px;
}
.p-ebookCategory__tagList {
  display: flex;
  overflow: auto;
  gap: 8px;
}
.p-ebookCategory__tagItem {
  flex-shrink: 0;
}
.p-ebookCategory__tagLink {
  display: block;
  border: 1px solid var(--accent-color-black);
  color: var(--accent-color-black);
  padding: 4px 8px;
  border-radius: 999px;
}
.p-ebookCategory .c-cardGrid__listWrap.swiper-wrapper {
  margin-top: 48px;
}

@media (max-width: 1422px) {
  .p-ebook__slider {
    margin-right: -5vw;
  }
}
@media (max-width: 1024px) {
  .p-articles__content {
    overflow: hidden;
  }
  .p-ebook__slider {
    margin-right: 0;
  }
  .p-ebook__slider .swiper {
    overflow: visible;
  }
  .p-ebook__slider .c-cardGrid__listWrap.swiper-wrapper {
    margin-top: 24px;
  }
  .p-ebook__slider .c-cardGrid__listItem {
    width: 160px;
  }
  .p-ebookCategory .c-articleList--column {
    display: flex;
    flex-wrap: wrap;
  }
  .p-ebookCategory .c-articleList__item {
    width: calc((100% - 24px) / 2);
  }
  .p-ebookCategory .c-articleList__item:not(:last-child)::after {
    content: none;
  }
  .p-ebookCategory .c-articleCard a {
    flex-direction: column;
    gap: 16px;
  }
  /* ID:551 SP 電子書籍カードのサムネ余白を 15→8px に縮小。書影が小さく見える
     原因の一つだった padding を詰め、書影画像 (max 92%) を相対的に大きく表示。 */
  .p-ebookCategory .c-articleCard__thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    gap: 16px;
    padding: 8px;
  }
  .p-ebookCategory .c-articleCard__text {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .p-ebookCategory .c-articleList--column {
    gap: 24px;
  }
}/*# sourceMappingURL=ebook.css.map */
