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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* ================================================= */
/* 【最終手段】動画の見切れとスライダーの縦スクロール強制解消 */
/* ================================================= */

/* 1. 動画プレーヤーの見切れ・ズレの解消 (インラインスタイル強制上書き) */
body .entry-content .fanza-iframe-wrap {
    position: relative !important;
    height: 0 !important;
    padding-top: 56.25% !important; /* 16:9比率を強制 */
    overflow: hidden !important;
    margin: 6px 0 !important; 
}

body .entry-content .fanza-iframe-wrap iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* 2. 関連コンテンツスライダーの縦スクロールバー解消 */
/* 記事本文全体 (.entry-content) の高さ制限を強制解除 */
body.single .entry-content {
    overflow-y: visible !important; 
    max-height: none !important;
    height: auto !important;
}

/* 関連ブロック全体 (.rln-related) とスライダーの高さ・縦スクロールを強制解除 */
body .entry-content .rln-related,
body .entry-content .rln-related__slider {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
}

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

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

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