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

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

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

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

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

/* AICP が広告表示を拒否した枠と、そのラベル・余白だけを隠す。 */
.ad-area:has(.error) {
  display: none;
}

/* AdSense が未配信と確定した枠だけを、ラベル・余白ごと隠す。 */
.ad-area:has(ins.adsbygoogle[data-ad-status="unfilled"]):not(:has(ins.adsbygoogle:not([data-ad-status="unfilled"]))) {
  display: none;
}

/* common_ad-4 がスクリプト以外を未生成の間だけ、ラベルと余白を消す。 */
:is(#common_ad-4, #common_ad-4 .ad-area):has(script[src*="amazon-adsystem.com/widgets/q"]):not(:has(.ad-responsive > :not(script))) {
  margin-bottom: 0;
}
#common_ad-4:has(script[src*="amazon-adsystem.com/widgets/q"]):not(:has(.ad-responsive > :not(script))) .ad-label {
  display: none;
}
