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

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

/* メインカラムの背景色 */
.main {
  background-color: #EEEEEE; /* お好みの色へ */
}

/* サイドバーの背景色 */
.sidebar {
  background-color: #EEEEEE; /* お好みの色へ */
}

/* サイドバー、タイトル間のスペース*/
.sidebar .widget li a {
  padding-top:0;
  padding-bottom:1;
}

/*サイドバーのマウスオーバー時メニューの色を変更*/
.sidebar .widget a:hover{
	color: #000000!important;
	background: #ffffff;
	transition: all 0.5s ease;
}


/* 見出しのデザイン設定 */

/* H3 サイドバー */
.sidebar h3 {
  position: relative;
  padding: 0.7em 0.7em;
  background: linear-gradient(to right, #140556 70%, transparent 100%);
  color: #FFFFFF;
}

/* H2 見出しグラデーションバランス */
.article h2 {
  position: relative;
  padding: 0.7em;
  background: linear-gradient(to bottom, #586284 85%, transparent 100%);
  color: #FFFFFF;
}

/*ブログカードの背景色を変える*/
.blogcard{
	background: #EEEEEE
}

/*ブログカードの背景色をマウスポインタを当てたとき色を変える*/
.blogcard:hover{
	background: #e0dad2
}

/*ブログカードの枠線なし*/
.blogcard{
border:none;
}

/*ブログカードの背景色濃いめのグレー*/
.blogcard-wrap {
background-color: #EEEEEE;
}

/*WordPressの画像ブロックと画像のキャプションのカスタマイズ（全体）*/
/*ここから*/
/* 親要素全体でホバーを判定するように変更 */
.entry-content .wp-block-image:hover figcaption {
    opacity: 0 !important;
    visibility: hidden !important; /* 完全に隠すための念押し */
}

/* キャプション自体の設定（再調整） */
.entry-content .wp-block-image figcaption {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    transition: opacity 0.5s ease, visibility 0.5s !important; /* 消えるアニメーション */
    z-index: 99 !important;
    pointer-events: none !important; /* キャプション自体がマウスの邪魔をしないようにする */
}

/* 親要素の基準設定 */
.entry-content .wp-block-image {
    position: relative !important;
    overflow: hidden; /* 画像からはみ出さないように */
}

.entry-content .wp-block-image figure {
    position: relative !important;
    margin: 0 auto !important;
    display: table !important; /* 中央揃え対策 */
}
/*ここまで*/


/* reCAPTCHAのバッジを非表示にする */
.grecaptcha-badge { 
    visibility: hidden; 
}

/* reCAPTCHAのバッジを非表示にしたら入れないといけないフッター文章の色などの設定 */
.my-recaptcha-text {
    background-color: #140556; /* 背景色（例：薄いグレー） */
    color: #EEEEEE;            /* 文字の色 */
    font-size: 12px;           /* 文字の大きさ */
    padding: 10px;             /* 内側の余白 */
    text-align: center;        /* 中央揃え */
}

/* 上記の設定のリンクの色も変えたい場合 */
.my-recaptcha-text a {
    color: #0073aa;            /* リンクの色 */
    text-decoration: underline; /* 下線を入れる */
}

/* YouTube埋め込みの最大幅を変更 */
.video-container {
    max-width: 800px; /* お好みの幅に変更してください */
    margin-left: auto;
    margin-right: auto;
}

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

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

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