/* ================================= */
/* カード / サムネイル（共通） */
/* ================================= */

.article-card-list > a.card,
.author-manga-list .manga-list > a.card {
  display: flex;
  flex-direction: column;
  height: fit-content;
  align-self: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  text-decoration: none;
  transition: all 0.4s;
  border: 1px solid transparent;
}
.article-card-list > a.card,
.author-manga-list .manga-list > a.card {
  color: #fff;
}

.article-card-list > a.thumbnail {
  position: relative;
  color: #fff;
}

.article-card-list > a.card:hover,
.author-manga-list .manga-list > a.card:hover {
  border: 2px solid #00a2af;
}

.article-card-list > a.card .category,
.article-card-list > a.thumbnail .category,
.author-manga-list .manga-list > a.card .category {
  position: absolute;
  top: 0;
  left: 0;
  /* background-color: #222222; */
  background-color: #00a2af;
  border-radius: 8px 0 8px 0;
  padding: 5px 10px;
  transition: all 0.4s;
}

.article-card-list > a.card:hover .category,
.article-card-list > a.thumbnail:hover .category,
.author-manga-list .manga-list > a.card:hover .category,
.article-card-list > a.card:focus .category,
.article-card-list > a.thumbnail:focus .category,
.author-manga-list .manga-list > a.card:focus .category {
  /* background-color: #00a2af; */
  background-color: #222222;
  border-radius: 4px 0 4px 0;
}

.article-card-list > a.card .category > a,
.article-card-list > a.thumbnail .category > a,
.author-manga-list .manga-list > a.card .category > a {
  text-decoration: none;
  color: #fff;
}

.article-card-list > a.card .thumb img,
.article-card-list > a.thumbnail .thumb img,
.author-manga-list .manga-list > a.card .thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card-list > a.thumbnail .info {
  position: absolute;
  bottom: 0;
  padding: 16px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 10%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
  border-radius: 0 0 8px 8px;
}
.article-card-list > a.card .info,
.author-manga-list .manga-list > a.card .info {
  position: relative;
  padding: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border-radius: 0 0 8px 8px;
}

.article-card-list > a.thumbnail .info h3 {
  text-decoration: none;
  color: #fff;
}
.article-card-list > a.card .info h3,
.author-manga-list .manga-list > a.card .info h3 {
  text-decoration: none;
  color: #222222;
}

.article-card-list > a.thumbnail .info .ttl {
  color: #fff;
}
.article-card-list > a.card .info .tags,
.author-manga-list .manga-list > a.card .info .tags,
.article-card-list > a.thumbnail .info .tags {
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 4px;
  column-gap: 8px;
  display: flex;
}
.article-card-list > a.thumbnail .info .tags > span {
  font-size: 12px;
}
.article-card-list > a.card .info .tags > span,
.author-manga-list .manga-list > a.card .info .tags > span {
  color: #222222;
  font-size: 12px;
}
.article-card-list > a.card .info .date,
.author-manga-list .manga-list > a.card .info .date {
  color: #c0c0c0;
  font-size: 12px;
}
.article-card-list > a.thumbnail .info .date {
  color: #fff;
  font-size: 12px;
}

.article-card-list > a.card .tags span,
.article-card-list > a.thumbnail .tags span,
.author-manga-list .manga-list > a.card .tags span {
  margin-right: 5px;
  font-size: 0.85rem;
}

.article-card-list > a.card .thumb img,
.article-card-list > a.thumbnail .thumb img,
.author-manga-list .manga-list > a.card .thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ================================= */
/* バナー */
/* ================================= */
.archiveBannerWrapper {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.archiveBannerWrapper .banner {
  transition: all 0.4s;
  cursor: pointer;
}

.archiveBannerWrapper .banner:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .archiveBannerWrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
  }
}

/* ================================= */
/* カテゴリ人気記事 */
/* ================================= */
.category-ranking h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 25px;
  position: relative;
  padding-left: 1.5em;
}

.category-ranking h2::before {
  content: "🔥";
  position: absolute;
  left: 0;
  top: 0;
}

@media (max-width: 768px) {
  .category-ranking > h2 {
    padding-left: 0;
    width: fit-content;
    margin: 0 auto;
  }
  .category-ranking > h2::before {
    left: -32px;
  }
}

/* ================================= */
/* カルーセル記事タイトル */
/* ================================= */
.new-posts-section {
  width: 100% !important;
  position: relative;
}
@media (max-width: 768px) {
  .new-posts-section {
    width: 90% !important;
    margin: auto;
  }
}

.new-posts-section .carouselTitle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  background: none;
  color: #222222;
}

.new-posts-section .carouselTitle .term {
  font-size: 0.7rem;
  font-weight: 400;
  background: #e8f6f6;
  border-radius: 999px;
  padding: 4px 16px;
}

/* ================================= */
/* thumbnail（カルーセル由来の共通部分） */
/* ================================= */

.article-card-list > a.thumbnail .thumb {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.article-card-list > a.thumbnail .thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #00a3af51;
  pointer-events: none;
  transition: all 0.4s;
  opacity: 0;
  z-index: 1;
}

.article-card-list > a.thumbnail:hover .thumb::before {
  opacity: 1;
}

.article-card-list > a.thumbnail .thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: all 0.4s;
}

.article-card-list > a.thumbnail:hover .thumb img {
  transform: scale(1.1);
  filter: blur();
}

.article-card-list > a.thumbnail .category {
  position: absolute;
  top: 0;
  left: 0;
  /* background: #222222; */
  background-color: #00a2af;
  border-radius: 8px 0 8px 0;
  color: #fff;
  padding: 5px 10px;
  font-size: 14px;
  transition: all 0.4s;
}

.article-card-list > a.thumbnail:hover .category {
  background-color: #222222;
}

/* rank-label：旧デザイン */
.article-card-list > a.thumbnail .rank-label {
  position: absolute;
  top: -4px;
  right: 12px;
  background: linear-gradient(180deg, #888888, #585858);
  color: #fff;
  padding: 4px 6px 8px;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  gap: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%);
}

.article-card-list > a.thumbnail .rank-label.top3 {
  background: linear-gradient(180deg, #4bc4c8, #35a7ab);
}

/* rank-new-label：新デザイン */
.article-card-list > a.thumbnail .rank-new-label {
  position: absolute;
  top: -8px;
  right: -8px;
  color: #fff;
  padding: 4px 6px 8px;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  gap: 4px;
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
  width: 40px;
  height: 56px;
}

.article-card-list > a.thumbnail .rank-new-label.top1 {
  background-image: url("https://hr.ababa.co.jp/article/wp-content/uploads/2025/06/rank1.png");
}
.article-card-list > a.thumbnail .rank-new-label.top2 {
  background-image: url("https://hr.ababa.co.jp/article/wp-content/uploads/2025/06/rank2.png");
}
.article-card-list > a.thumbnail .rank-new-label.top3 {
  background-image: url("https://hr.ababa.co.jp/article/wp-content/uploads/2025/06/rank3.png");
}

/* ================================= */
/* 前後の記事 */
/* ================================= */

.adjacent-posts-slider {
  padding: 1em 0;
}

.adjacent-posts-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.adjacent-posts-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.adjacent-post-card {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.adjacent-post-card:hover {
  transform: translateY(-4px);
}

.adjacent-post-thumbnail {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.adjacent-post-thumbnail > img {
  object-fit: cover;
  height: auto;
  width: 100%;
}

.adjacent-post-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #000;
  color: #fff;
  font-size: 0.8em;
  padding: 4px 8px;
  border-radius: 4px;
}

.adjacent-post-meta {
  padding: 1em;
}

.adjacent-post-title-text {
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 0.5em;
}

.adjacent-post-date {
  font-size: 0.9em;
  color: #666;
}

/* ================================= */
/* 新着記事 */
/* ================================= */

.new-articles h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 25px;
  position: relative;
  padding-left: 1.5em;
}

.new-articles h2::before {
  content: "📍";
  position: absolute;
  left: 0;
  top: 0;
}

@media (max-width: 768px) {
  .new-articles > h2 {
    padding-left: 0;
    width: fit-content;
    margin: 0 auto;
  }
  .new-articles > h2::before {
    left: -32px;
  }
}

.article-card-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}
@media (max-width: 768px) {
  .article-card-list {
    padding: 8px;
  }
}
.article-card-list.col-5 > a:nth-child(1),
.article-card-list.col-5 > a:nth-child(2) {
  width: calc(50% - 4px) !important;
}
.article-card-list.col-5 > a:nth-child(n + 3) {
  width: calc(100% / 3 - 6px) !important;
}
.article-card-list.col-3 > a:nth-child(1),
.article-card-list.col-3 > a:nth-child(2),
.article-card-list.col-3 > a:nth-child(3) {
  width: calc(100% / 3 - 6px) !important;
}
@media (max-width: 768px) {
  .article-card-list.col-5 > a:nth-child(1),
  .article-card-list.col-5 > a:nth-child(2),
  .article-card-list.col-5 > a:nth-child(n + 3),
  .article-card-list.col-3 > a:nth-child(1),
  .article-card-list.col-3 > a:nth-child(2),
  .article-card-list.col-3 > a:nth-child(3) {
    width: 100% !important;
  }
}

/* ================================= */
/* 漫画の作者情報 */
/* ================================= */
.manga-writer-section {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.writer-info-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .writer-info-container {
    width: 95%;
    margin: auto;
    flex-direction: column;
  }
}

.writer-info-head {
  width: 100%;
  background-color: #35a7ab;
  color: #fff;
  padding: 8px 16px;
}

.writer-info-body {
  width: 100%;
  background-color: #fafcfc;
  color: #000;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
@media (max-width: 768px) {
  .writer-info-body {
    flex-direction: column;
    align-items: center;
  }
}

.writer-info-body-left {
  flex: 1;
  width: 100%;
}
@media (max-width: 768px) {
  .writer-info-body-left {
    width: 50%;
    margin: auto;
  }
}
.writer-info-icon-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 50%;
  overflow: hidden;
}
.writer-info-icon-container > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.writer-info-body-right {
  width: 100%;
  flex: 7;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}
.writer-info-body-right .writer-name {
  font-weight: 700;
}
.writer-info-body-right .writer-homepage-url > a {
  color: #35a7ab;
  word-break: break-all;
}
.writer-info-body-right .writer-sns-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}
.writer-info-body-right .writer-sns-links > a {
  text-decoration: none;
  display: flex;
}
.writer-info-body-right .writer-sns-links > a > i {
  font-size: 20px;
  color: #35a7ab;
}
.writer-info-body-right .writer-sns-links > a > img {
  width: 20px;
  height: auto;
  object-fit: contain;
}
.writer-manga-list-btn-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.writer-manga-list-btn-container > a {
  width: fit-content;
  height: auto;
  padding: 16px 24px;
  background-color: #35a7ab;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}
.writer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.writer-nav > a {
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.writer-nav .writer-prev {
  margin-right: auto;
}
.writer-nav .writer-next {
  margin-left: auto;
}

@media (max-width: 768px) {
  .writer-nav > a {
    font-size: 24px;
  }
}

.manga-authors-section {
  position: relative;
}

.manga-author-container {
  background-color: #fff;
  box-shadow: 2px 2px 4px #22222214;
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
}

.manga-author-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eaeaea;
}
.manga-author-info .author-icon {
  width: 100px;
  height: 100px;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid #eaeaea;
  background-color: #fff;
  margin: auto;
}
.manga-author-info .author-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.manga-author-info .author-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.manga-author-info .author-details > h3 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.manga-author-info .author-details > p > a {
  color: #35a7ab;
}
.manga-author-info .author-details .writer-sns-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}
.manga-author-info .author-details .writer-sns-links > a {
  text-decoration: none;
  display: flex;
}
.manga-author-info .author-details .writer-sns-links > a > i {
  font-size: 20px;
  color: #35a7ab;
}
.manga-author-info .author-details .writer-sns-links > a > img {
  width: 18px;
  height: auto;
  object-fit: contain;
}

.manga-author-container .manga-latest {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manga-latest-link {
  position: relative;
  text-decoration: none;
  color: #fff;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
}
.manga-latest-link > img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 424/297;
}

.manga-latest-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 10%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
}
.manga-latest-info > p {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.manga-latest-info > time {
  font-size: 12px;
  color: #fff;
}

.manga-latest .manga-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.manga-latest .manga-btns > a {
  display: flex;
  align-items: center;
  text-decoration: none;
  background-color: #35a7ab;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
}

.movie-description {
  width: 100%;
  height: auto;
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.movie-description .movie-description-head {
  width: 100%;
  background-color: #35a7ab;
  color: #fff;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.movie-description .movie-description-head > i {
  color: #fff;
  font-size: 16px;
}
.movie-description .movie-description-body {
  padding: 8px 16px;
}

/* ================================= */
/* おすすめサービス */
/* ================================= */
.recommended-services.xl {
  width: 90vw;
  margin-top: 32px;
  margin-bottom: 32px;
  margin-left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .recommended-services.xl {
    margin-top: 16px;
    margin-bottom: 16px;
  }
}

.recommended-services > h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 25px;
  position: relative;
}

@media (max-width: 768px) {
  .recommended-services > h2 {
    padding-left: 0;
    width: fit-content;
    margin: 0 auto;
  }
}
