@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* サイドバー全体のスタイル */
.sidebar-area {
  padding: 10px;
  font-size: 14px;
  line-height: 1.5;
}

/* バナー画像 */
.sidebar-banner img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.sidebar-banner img:hover {
  transform: scale(1.03);
}

/* ランキング・カテゴリ・レビューの見出し */
.sidebar-ranking h3,
.sidebar-category h3,
.sidebar-latest h3 {
  font-size: 16px;
  margin-bottom: 10px;
  border-left: 4px solid #ff4d6a;
  padding-left: 8px;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* ランキングバッジ（サムネ左上） */
.rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    z-index: 10;
}

/* 金・銀・銅の色分け */
.rank-gold {
    background: linear-gradient(135deg, #FFD700, #E6BE00);
}

.rank-silver {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

.rank-bronze {
    background: linear-gradient(135deg, #CD7F32, #B87333);
}

/* 4位以下（必要なら） */
.rank-normal {
    background: #555;
}

.entry-card-thumb {
    position: relative;
}


.ranking-block {
  margin: 40px 0;
  padding: 20px;
  background: #fafafa;
  border-radius: 8px;
}

.ranking-intro {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
  font-weight: 600;
}

.ranking-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .ranking-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.ranking-card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #eee;
}

.ranking-thumb img {
  width: 100%;
  border-radius: 6px;
}

.ranking-title {
  font-size: 18px;
  margin: 10px 0 5px;
}

.ranking-mini {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.ranking-btn {
  display: inline-block;
  padding: 8px 12px;
  background: #ff4d4d;
  color: #fff;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}
