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

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

/* サイドバー見出し */
#sidebar h3{
border-left: 8px solid #5297e5;
border-bottom: 0px;
padding: 5px 0 5px 10px;
margin-bottom: 30px;
}
#sidebar a{
text-decoration: none;
}

/* マウスをホバーして半透明にする */
a:hover img { -ms-filter: “alpha(opacity=70)”; filter: alpha(opacity=70); opacity: .7; }

//コンタクトフォームのスクリプトとかをお問い合わせのみで表示
function dc_dq_style_script() {
 if( ! is_page(232)){
    wp_dequeue_style( 'contact-form-7' );
	wp_dequeue_style( 'google-recaptcha' );
	wp_dequeue_style( 'wpcf7-recaptcha' );
    wp_dequeue_script( 'contact-form-7' );
	wp_dequeue_script( 'wpcf7-recaptcha' );
	wp_dequeue_script( 'google-recaptcha' );
	wp_dequeue_script( 'comment-reply' );
    wp_dequeue_script( 'google-invisible-recaptcha' );
 }
}
add_action( 'wp_enqueue_scripts', 'dc_dq_style_script' );

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

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

/*480px以下*/
@media screen and (max-width: 650px) {
/*必要ならばここにコードを書く*/
.alignleft {
margin: auto;
width: 40%;
}
.alignright {
margin: auto;
width: 40%;
}
.aligncenter {
margin: auto;
width: 100%;
}
}

