/*サイドバーアーカイブ*/
.side-toplist {
  background: #FFFFFF;
  box-shadow: 0 0 8px #CFCFCF;
  border-radius: 5px;
  padding: 10px;
  margin: 10px;
  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; /* 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;
}

/*------------------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;
}
}