@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.0.8
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* =========================
   春アニメランキング共通
========================= */
.spring-anime-ranking-widget,
.wp-block-group.spring-anime-ranking-widget,
.sidebar .spring-anime-ranking-widget {
  background: #fff7fb;
  border: 1px solid #f4c7d7;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 3px 10px rgba(233, 160, 181, 0.12);
  box-sizing: border-box;
}

/* タイトル */
.spring-anime-ranking-widget .spring-ranking-title,
.spring-anime-ranking-widget h4.spring-ranking-title {
  margin: 0 0 14px 0 !important;
  padding: 10px 14px !important;
  background: linear-gradient(90deg, #f8c8d8 0%, #ffddea 100%) !important;
  color: #c04b78 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  border-radius: 10px !important;
  border-left: 6px solid #e98aa8 !important;
  text-align: center;
  box-sizing: border-box;
}

/* リスト */
.spring-anime-ranking-widget .wpp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: spring-rank;
}

.spring-anime-ranking-widget .wpp-list li {
  position: relative;
  counter-increment: spring-rank;
  margin: 0 0 16px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #f7d7e2;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(233, 160, 181, 0.08);
  box-sizing: border-box;
  overflow: hidden;
}

.spring-anime-ranking-widget .wpp-list li:last-child {
  margin-bottom: 0;
}

/* 順位バッジ */
.spring-anime-ranking-widget .wpp-list li::before {
  content: counter(spring-rank);
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f48fb1 0%, #ec6c9e 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(236, 108, 158, 0.25);
  z-index: 3;
}

/* サムネイル */
.spring-anime-ranking-widget .wpp-thumbnail,
.spring-anime-ranking-widget .wpp-thumbnail a {
  display: block !important;
  width: 100% !important;
  margin: 0 0 10px 0;
}

.spring-anime-ranking-widget .wpp-thumbnail img {
  display: block;
  width: 100% !important;
  max-width: 336px;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #f4cada;
  box-sizing: border-box;
}

/* タイトル */
.spring-anime-ranking-widget .wpp-post-title,
.spring-anime-ranking-widget .wpp-post-title a,
.spring-anime-ranking-widget li a.wpp-post-title {
  display: block;
  margin-top: 4px;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.7;
  color: #7a3551 !important;
  text-decoration: none !important;
  word-break: break-word;
}

.spring-anime-ranking-widget .wpp-post-title:hover,
.spring-anime-ranking-widget .wpp-post-title a:hover,
.spring-anime-ranking-widget li a.wpp-post-title:hover {
  color: #d14b7b !important;
  text-decoration: underline !important;
}

/* ビュー数など非表示 */
.spring-anime-ranking-widget .wpp-post-stats,
.spring-anime-ranking-widget .wpp-meta,
.spring-anime-ranking-widget .wpp-views,
.spring-anime-ranking-widget .wpp-stats {
  display: none !important;
}

/* =========================
   1位だけ大きくする
========================= */
.spring-anime-ranking-widget .wpp-list li:first-child {
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #fff6fa 100%);
  border: 2px solid #f2a9c2;
  box-shadow: 0 6px 18px rgba(233, 160, 181, 0.18);
}

.spring-anime-ranking-widget .wpp-list li:first-child::before {
  content: "1";
  top: 12px;
  left: 12px;
  width: 42px;
  height: 42px;
  font-size: 20px;
  line-height: 42px;
  background: linear-gradient(135deg, #ff8fb3 0%, #e55487 100%);
  box-shadow: 0 3px 10px rgba(229, 84, 135, 0.35);
}

/* 1位の画像を大きく */
.spring-anime-ranking-widget .wpp-list li:first-child .wpp-thumbnail img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #f0bdd0;
}

/* 1位のタイトルを強調 */
.spring-anime-ranking-widget .wpp-list li:first-child .wpp-post-title,
.spring-anime-ranking-widget .wpp-list li:first-child .wpp-post-title a,
.spring-anime-ranking-widget .wpp-list li:first-child a.wpp-post-title {
  font-size: 17px !important;
  line-height: 1.7;
  color: #b63d6a !important;
}

/* 1位ラベル */
.spring-anime-ranking-widget .wpp-list li:first-child .wpp-post-title::before,
.spring-anime-ranking-widget .wpp-list li:first-child a.wpp-post-title::before {
  content: "今週の注目No.1";
  display: inline-block;
  margin: 0 0 8px 0;
  padding: 4px 10px;
  background: #ffe1ec;
  color: #d14b7b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 999px;
}

/* =========================
   2位以下を少しコンパクトに
========================= */
.spring-anime-ranking-widget .wpp-list li:not(:first-child) {
  display: flex;
  flex-direction: column;
}

.spring-anime-ranking-widget .wpp-list li:not(:first-child) .wpp-thumbnail img {
  max-width: 100%;
}

.spring-anime-ranking-widget .wpp-list li:not(:first-child) .wpp-post-title,
.spring-anime-ranking-widget .wpp-list li:not(:first-child) .wpp-post-title a,
.spring-anime-ranking-widget .wpp-list li:not(:first-child) a.wpp-post-title {
  font-size: 14px !important;
  line-height: 1.65;
}

/* =========================
   タブレット
========================= */
@media (max-width: 1024px) {
  .spring-anime-ranking-widget {
    padding: 12px;
  }

  .spring-anime-ranking-widget .wpp-thumbnail img {
    max-width: 100%;
  }
}

/* =========================
   スマホ
========================= */
@media (max-width: 767px) {
  .spring-anime-ranking-widget {
    padding: 10px;
    border-radius: 12px;
  }

  .spring-anime-ranking-widget .spring-ranking-title,
  .spring-anime-ranking-widget h4.spring-ranking-title {
    margin-bottom: 12px !important;
    padding: 9px 10px !important;
    font-size: 16px !important;
    line-height: 1.4;
    border-left-width: 5px !important;
  }

  .spring-anime-ranking-widget .wpp-list li {
    margin-bottom: 14px;
    padding: 10px;
    border-radius: 10px;
  }

  .spring-anime-ranking-widget .wpp-list li::before {
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    font-size: 14px;
    line-height: 30px;
  }

  .spring-anime-ranking-widget .wpp-list li:first-child {
    padding: 10px;
  }

  .spring-anime-ranking-widget .wpp-list li:first-child::before {
    top: 8px;
    left: 8px;
    width: 34px;
    height: 34px;
    font-size: 16px;
    line-height: 34px;
  }

  .spring-anime-ranking-widget .wpp-thumbnail,
  .spring-anime-ranking-widget .wpp-thumbnail a {
    margin-bottom: 8px;
  }

  .spring-anime-ranking-widget .wpp-thumbnail img {
    width: 100% !important;
    max-width: 100%;
    border-radius: 8px;
  }

  .spring-anime-ranking-widget .wpp-list li:first-child .wpp-post-title,
  .spring-anime-ranking-widget .wpp-list li:first-child .wpp-post-title a,
  .spring-anime-ranking-widget .wpp-list li:first-child a.wpp-post-title {
    font-size: 15px !important;
    line-height: 1.6;
  }

  .spring-anime-ranking-widget .wpp-post-title,
  .spring-anime-ranking-widget .wpp-post-title a,
  .spring-anime-ranking-widget li a.wpp-post-title {
    font-size: 13.5px !important;
    line-height: 1.6;
    margin-top: 2px;
  }
}

/* =========================
   小さいスマホ
========================= */
@media (max-width: 480px) {
  .spring-anime-ranking-widget {
    padding: 8px;
  }

  .spring-anime-ranking-widget .spring-ranking-title,
  .spring-anime-ranking-widget h4.spring-ranking-title {
    font-size: 15px !important;
    padding: 8px 10px !important;
  }

  .spring-anime-ranking-widget .wpp-list li {
    padding: 8px;
  }

  .spring-anime-ranking-widget .wpp-list li::before {
    width: 28px;
    height: 28px;
    font-size: 13px;
    line-height: 28px;
  }

  .spring-anime-ranking-widget .wpp-list li:first-child::before {
    width: 30px;
    height: 30px;
    font-size: 14px;
    line-height: 30px;
  }

  .spring-anime-ranking-widget .wpp-list li:first-child .wpp-post-title::before,
  .spring-anime-ranking-widget .wpp-list li:first-child a.wpp-post-title::before {
    font-size: 11px;
    padding: 3px 8px;
  }
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1240px以下*/
@media screen and (max-width: 1240px){
  /*必要ならばここにコードを書く*/
}

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

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

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

.season-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.season-tag-cloud .season-tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff4fa;
  border: 1px solid #f3cfe1;
  color: #c94f8a;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.season-tag-cloud .season-tag:hover {
  background: #fbe3ef;
  border-color: #e7aeca;
  color: #b83d79;
  text-decoration: none;
}

@media (max-width: 767px) {
  .season-tag-cloud {
    gap: 8px;
  }

  .season-tag-cloud .season-tag {
    font-size: 13px;
    padding: 7px 12px;
  }
}



.anichara-anime-terms {
    margin: 1em 0;
    padding: .6em .8em;
    background: #f6f7f9;
    border-left: 4px solid #4a90e2;
    border-radius: 4px;
    font-size: .95em;
}
.anichara-anime-terms-label { font-weight: bold; margin-right: .4em; }
.anichara-anime-terms-list {
    display: inline; list-style: none; margin: 0; padding: 0;
}
.anichara-anime-terms-list li {
    display: inline-block; margin: 0 .3em .3em 0;
}
.anichara-anime-terms-list a {
    display: inline-block;
    padding: .15em .7em;
    background: #fff;
    border: 1px solid #cfd7e3;
    border-radius: 999px;
    text-decoration: none;
}
.anichara-anime-terms-list a:hover { background: #eaf2fc; }

/* 作品（anime）タクソノミー 記事上下表示 */
.anichara-anime-terms {
    margin: 1.2em 0;
    padding: .7em 1em;
    background: #fdeeee;                 /* うすピンクの背景 */
    border: 1px solid #f2c7c7;
    border-left: 5px solid #e88a8a;      /* 目次バーと同系の差し色 */
    border-radius: 6px;
    font-size: .95em;
    color: #5a3a3a;
}

.anichara-anime-terms-label {
    font-weight: bold;
    margin-right: .5em;
    color: #c96a6a;                      /* ラベル文字は少し濃いめのピンク */
}

.anichara-anime-terms-list {
    display: inline;
    list-style: none;
    margin: 0;
    padding: 0;
}

.anichara-anime-terms-list li {
    display: inline-block;
    margin: 0 .35em .35em 0;
}

/* ピル型リンク：画像の「春アニメランキング」ボタンに寄せた淡ピンク */
.anichara-anime-terms-list a {
    display: inline-block;
    padding: .25em .9em;
    background: #fce3e3;                 /* 淡ピンク（ボタン地） */
    border: 1px solid #f2b5b5;
    border-radius: 999px;
    color: #7a3a3a;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.anichara-anime-terms-list a:hover {
    background: #e88a8a;                 /* ホバーで濃ピンクに */
    border-color: #d96f6f;
    color: #fff;
    text-decoration: none;
}



/* H3 の先頭にキャラクターアイコンを表示 */
.article h3::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
    border: 2px solid #ff99cc;
    background-image: url('https://ani-chara.net/wp-content/uploads/2026/02/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E3%83%BC_test01-3-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    vertical-align: middle;
}