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

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

/* === エロタレスト専用 CSS === */
.main {
  padding-top: 0;
}
.logo-text {
  padding: 0;
}
.erotare-article .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.erotare-nav {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.erotare-nav .erotare-btn {
  display: block;
  text-align: center;
  background-color: #ff4a4a;
  color: #fff !important;
  padding: 15px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.erotare-nav .erotare-btn:hover {
  background-color: #e03e3e;
  transform: translateY(-2px);
}

.erotare-nav .erotare-btn-latest {
  background-color: #333;
}

.erotare-nav .erotare-btn-latest:hover {
  background-color: #222;
}

.erotare-widget-area {
  margin: 30px 0;
}

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

/*834px以下*/
@media screen and (max-width: 834px) {
  main.main,
  div.sidebar {
    padding: 0px 5px;
    margin: 12px 0;
    border-width: 0;
  }
}

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

/* =========================================================
   ビデオアイコンの適用範囲を限定
=========================================================== */

/* 
   .entry-content直下の p 内にある a、
   および .thumb 内にある a のみに限定 
*/
.entry-content > p > a,
.thumb a {
  position: relative;
  display: inline-block;
  line-height: 0;
  overflow: hidden;
}

/* 画像自体の設定 */
.entry-content > p > a img,
.thumb a img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

/* ---------------------------------------------------------
   YouTube風の「赤い背景」（::after）
----------------------------------------------------------- */
.entry-content > p > a::after,
.thumb a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background-color: #f00;
  border-radius: 12px;
  pointer-events: none; /* リンククリックを邪魔しない */
  opacity: 0.9;
  transition: all 0.3s ease;
  z-index: 1;
}

/* ---------------------------------------------------------
   白い三角形（::before）
----------------------------------------------------------- */
.entry-content > p > a::before,
.thumb a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  pointer-events: none; /* リンククリックを邪魔しない */
  z-index: 2;
}

/* ---------------------------------------------------------
   ホバー時：ボタン以外のリンクや広告には影響しない
----------------------------------------------------------- */
.entry-content > p > a:hover::after,
.thumb a:hover::after {
  background-color: #ff1a1a;
  opacity: 1;
}

.entry-content > p > a:hover img,
.thumb a:hover img {
  opacity: 0.8;
}

/* 
タグリスト全体を整える
 */
.entry-tags .tag-list {
  display: flex;
  flex-wrap: wrap; /* 画面端で自動的に折り返す */
  gap: 8px; /* タグ同士の隙間 */
  padding: 0;
  margin: 1em 0;
  list-style: none; /* 箇条書きの「・」を消す */
}

/* タグ（ボタン）のデザイン */
.entry-tags .tag-list a {
  display: inline-block;
  padding: 6px 14px;
  background-color: #f5f5f5; /* 背景色（薄いグレー） */
  color: #333333; /* 文字色（濃いグレー） */
  font-size: 13px; /* 少し小さめの文字 */
  text-decoration: none; /* リンクの下線を消す */
  border-radius: 20px; /* 角を丸くする */
  border: 1px solid #e0e0e0; /* 薄い枠線 */
  transition: all 0.2s ease; /* ふんわり変化させる */
}

/* マウスホバー（タップ）時のデザイン */
.entry-tags .tag-list a:hover {
  background-color: #555555; /* 背景色を濃く */
  color: #ffffff; /* 文字色を白に */
  border-color: #555555;
}
