@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 === */
.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){
  /*必要ならばここにコードを書く*/
}

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

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