@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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


/* ==============================
   DUGA記事用CSS + ランキング装飾
   ============================== */

/* ページ全体 */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  background: #fafafa;
  margin: 0;
  padding: 0;
}

/* コンテナ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 6px;
}

/* 見出し */
h1, h2, h3 {
  font-weight: bold;
  line-height: 1.4;
  margin: 1.5em 0 0.8em;
}
h1 {
  font-size: 1.8em;
  color: #d32f2f;
  border-bottom: 3px solid #d32f2f;
  padding-bottom: 0.3em;
}
h2 {
  font-size: 1.5em;
  color: #444;
  border-left: 5px solid #d32f2f;
  padding-left: 0.6em;
}
h3 {
  font-size: 1.2em;
  color: #333;
  background: #f7f7f7;
  border-left: 4px solid #d32f2f;
  padding: 0.4em 0.6em;
  position: relative;
  padding-left: 3.2em; /* バッジ分の余白 */
}

/* ランキング順位バッジ */
.rank-badge {
  position: absolute;
  left: 0.6em;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  width: 2.2em;
  height: 2.2em;
  line-height: 2.2em;
  border-radius: 50%;
  background: #d32f2f;
  color: #fff;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  font-size: 0.9em;
}

/* 王冠アイコン */
.rank-badge::before {
  content: "👑";
  position: absolute;
  top: -1.2em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1em;
}

/* 画像 */
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 15px auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* リスト */
ul {
  padding-left: 1.2em;
  margin: 1em 0;
}
ul li {
  margin-bottom: 0.4em;
}

/* テーブル（ランキングまとめ） */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}
table th, table td {
  border: 1px solid #ddd;
  padding: 0.6em;
  text-align: left;
}
table th {
  background: #f2f2f2;
  font-weight: bold;
}
table tr:nth-child(even) {
  background: #fafafa;
}

/* 口コミ */
p strong {
  color: #d32f2f;
}
p.review {
  background: #fff8f8;
  border-left: 4px solid #d32f2f;
  padding: 0.6em 0.8em;
  margin: 1em 0;
  font-size: 0.95em;
}

/* ボタン風リンク（例：登録ボタン） */
.btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 20px 0;
  font-weight: bold;
  text-align: center;
  background: #d32f2f;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.2s;
}
.btn:hover {
  background: #b71c1c;
}


/* CTAボタン設置とジャンルごとの色分け */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  margin: 24px 0;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s;
}

/* ジャンルごとの色分け */
.cta-red { background: #e63946; }   /* 熟女＝赤 */
.cta-blue { background: #457b9d; } /* ごっくん＝青 */
.cta-green { background: #2a9d8f; }  /* 素人＝緑 */
.cta-orange   { background: #f4a261; }  /* その他＝オレンジ */
.cta-pink   { background: #f7bae6; }  /* その他＝ピンク */


.cta-button:hover {
  filter: brightness(0.9);
}

