/*サイドバーアーカイブ*/
.side-toplist {
  background: #FFFFFF;
  border: #E9E9E9 1px solid;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0 20px 0;
  display: block;
}
.side-toplist h2 {
  font-size: 14px;
  text-align: center;
  justify-content: center;
  align-items: center;
  color: #444;
}
.side-toplist h2 img {
  width: 25px;
  height: auto;
  margin-right: 5px;
}
.main-dtl-list-side {
  margin: 0 auto 10px;
  display: inline-block;
  border-bottom: #E9E9E9 1px solid;
  padding: 0 0 10px 0;
  transition: transform 0.3s ease;
  overflow: hidden;
}
.main-dtl-list-side img {
  margin-right: 10px;
  margin-bottom: 3px;
  width: 50%;
  float: left;
  height: auto;
  transition: transform 0.3s ease;
}
.main-dtl-list-side:hover img {
  transform: scale(1.1);
}
.main-dtl-list-side h3 {
  color: #444;
  display: block;
  width: 100%;
  font-size: 13px !important;
  font-weight: normal;
  border-bottom: none;
  transition: color 0.3s ease;
}
.main-dtl-list-side h3:hover {
  color: #38bfb9;
}
.main-dtl-list-side h3:after, .main-dtl-list-side h3:before {
  border-bottom: none;
}
/* リスト全体のスタイル */
.side-toplist .category-list {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  list-style-type: none;
  gap: 0;
  margin: 0;
  justify-content: flex-start;
}
.side-toplist .category-list li {
  padding: 3px 5px;
  border: #38bfb9 1px solid;
  border-bottom-right-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  margin-bottom: 0;
}
.side-toplist .category-list li a {
  text-decoration: none;
  color: #38bfb9;
  font-size: 10px;
  transition: color 0.3s ease;
}
.side-toplist .category-list li:hover {
  background-color: #38bfb9;
  color: #EEEEEE;
}
.side-toplist .category-list li a:hover {
  color: white;
}
/*マウスホバー*/
aside .wp-block-image img {
  transition: transform 0.3s ease;
}
aside .wp-block-image img:hover {
  transform: scale(1.05);
}
/* もっと見るボタン */
.side-toplist .btn {
  background: #5FBFC0;
  color: #FFFFFF;
  padding: 8px 20px;
  margin: 0 auto 20px;
  border-radius: 5px;
  font-size: 14px;
  display: block;
  max-width: 220px;
  text-align: center;
  transition: all 0.3s ease;
}
.side-toplist .btn:hover {
  background: #FC5175;
  color: #fff;
}
/*2025.08.05phpから移植*/
.side-toplist .sp-ichiran-column a {
  display: flex;
  align-items: center;
  gap: 10px; /* 画像とタイトルの間隔 */
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #ddd; /* 区切り線 */
}
.image-wrapper {
  position: relative;
  width: 60px; /* 画像サイズ */
  height: 60px;
  flex-shrink: 0;
}
.image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.ranking-number {
  position: absolute;
  top: 0;
  right: 0;
  background: red; /* デフォルト */
  color: white;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  border-radius: 50%;
}
/* ランキングごとの背景色 */
.rank-1 {
  background: #F00B58;
}
.rank-2 {
  background: #fff100;
  color: #333;
}
.rank-3 {
  background: #5fbfc0;
}
.rank-4 {
  background: #5fbfc0;
}
.rank-5 {
  background: #5fbfc0;
}
.title-wrapper {
  flex-grow: 1;
  max-width: calc(100% - 70px);
}
.title-wrapper h3 {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-toplist .sp-ichiran-column a:hover {
  color: #5fbfc0;
}
/*YouTube*/
.side-video-wrapper {
  position: relative;
  width: 60%;
  height: 80px;
  float: left;
  overflow: hidden;
  margin-right: 5px;
  flex-shrink: 0;
}
.side-video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 0;
}
/*================================
ランキング
================================*/
/*コラム全体*/
.side-toplist.ranking-column {
  padding: 20px 18px 22px;
  background: #fff;
  border-radius: 8px;
  box-sizing: border-box;
}
/*見出し*/
.side-toplist.ranking-column .ranking-column__heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
}
.side-toplist.ranking-column .ranking-column__heading img {
  display: block;
  width: 23px;
  height: auto;
}
/* 既存の2列レイアウト解除*/
.side-toplist.ranking-column .ranking-column__list {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  width: 100%;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/*ランキング1件*/
.side-toplist.ranking-column .ranking-item {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box;
}
/* 件目以降に区切り線これだけで線を表示*/
.side-toplist.ranking-column .ranking-item + .ranking-item {
  border-top: 1px solid #e8e8e8 !important;
}
/* リンク 既存CSSのborder-bottomも解除 */
.side-toplist.ranking-column .ranking-column__list .ranking-item > a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 !important;
  padding: 12px 0 !important;
  text-decoration: none;
  color: #333;
  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box;
  transition: color .2s ease;
}
/*hover*/
.side-toplist.ranking-column .ranking-item > a:hover {
  color: #49adaf;
}
.side-toplist.ranking-column .ranking-item > a:hover .ranking-item__image img {
  transform: scale(1.05);
}
/*サムネイル*/
.side-toplist.ranking-column .ranking-item__image {
  position: relative;
  width: 76px;
  height: 58px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #f5f5f5;
}
.side-toplist.ranking-column .ranking-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  transition: transform .25s ease;
}
/* 順位番号*/
.side-toplist.ranking-column .ranking-item__number {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  border-radius: 0 0 7px 0;
}
/* 1位 */
.side-toplist.ranking-column .rank-1 {
  background: #e8b624;
}
/* 2位 */
.side-toplist.ranking-column .rank-2 {
  background: #aeb5bb;
}
/* 3位 */
.side-toplist.ranking-column .rank-3 {
  background: #b97b50;
}
/* 4位・5位 */
.side-toplist.ranking-column .rank-4, .side-toplist.ranking-column .rank-5 {
  background: #5fbfc0;
}
/* テキスト部分*/
.side-toplist.ranking-column .ranking-item__content {
  min-width: 0;
  flex: 1;
}
/* RANK */
.side-toplist.ranking-column .ranking-item__rank-text {
  display: block;
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .05em;
  color: #aaa;
}
/* タイトル */
.side-toplist.ranking-column .ranking-item__content h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: inherit;
  border: 0 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/*最後の記事*/
.side-toplist.ranking-column .ranking-item:last-child > a {
  padding-bottom: 12px !important;
}
/* コラムをもっと見る*/
.side-toplist.ranking-column .ranking-column__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 48px;
  margin-top: 18px;
  padding: 0 15px;
  background: #5fbfc0;
  border: 0 !important;
  border-radius: 6px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  box-sizing: border-box;
  transition: background .2s ease;
}
.side-toplist.ranking-column .ranking-column__more:hover {
  background: #49abad;
  color: #fff !important;
}
.side-toplist.ranking-column .ranking-column__more i {
  font-size: 12px;
}
/* 読み込み・エラー*/
.side-toplist.ranking-column .ranking-loading, .side-toplist.ranking-column .ranking-error {
  padding: 20px 0;
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #999;
}
/*=====================================
SP
=====================================*/
@media screen and (max-width: 560px) {
  .side-toplist.ranking .sp-ichiran-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2カラム */
    gap: 10px; /* カラム間の隙間 */
  }
  .side-toplist .category-list {
    margin-top: 0;
  }
}