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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* H2～H4の線や影をリセット */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h2:before,
.entry-content h2:after,
.entry-content h3:before,
.entry-content h3:after,
.entry-content h5:before,
.entry-content h5:after,
.entry-content h4:before,
.entry-content h4:after {
    border: none;       /* 枠線を消す */
    box-shadow: none;   /* 影を消す */
    background-image: none; /* 擬似要素の線や背景画像を消す */
}
/* 見出しのカスタマイズ */
.article h2{
  background: #66CCCC	;/*背景色*/
   padding: 0.7em 1em;     /* 上下0.7em、左右1emの余白 */
    margin: 1.5em 0;        /* 見出しの前後の空白 */
	color: #FFFFFF;/* 文字の色 */

}
.article h3 {
    padding: .5em .7em;
    border-left: 5px solid #829fa1;
    border-bottom: 3px solid #b8cecc;
    background-color: #EBFFFB;
    color: #000000;
}

.article h4{
    display: inline-block;
    position: relative;
    padding: .5em 1em;
    border-right: 27px solid #41d2c1;
    background-color: #f5f5f5;
    color: #333333;
}

.article h4:before {
    position: absolute;
    bottom: 2px;
    right: -20px;
    z-index: -1;
    transform: rotate(5deg);
    width: 100%;
    height: 50%;
    background-color: #d0d0d0;
    content: "";
    filter: blur(4px);
}

/* H5見出しの文字下に線を引く */
.article h5 {
    display: flex;
    align-items: center;
    column-gap: 8px;                 /* アイコンと文字の間隔 */
    color: #333333;                   /* 文字色 */
    position: relative;               /* ::after用 */
    padding: 0.25em 0;                /* 上下の余白 */
}

/* 文字下のグラデーションライン */
.article h5::after {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(to right, #A4FFE9, #EBFFFB);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;                      /* 文字幅に合わせる場合は inline-block に調整可能 */
}

/* 左側の飾りアイコン */
.article h5::before {
    content: '';
    width: 0.8em;
    height: 0.4em;
    border-bottom: 4px solid #25d0b4;
    border-left: 4px solid #25d0b4;
    transform: rotate(-45deg) translate(2px, -2px);
    margin-right: 8px;               /* アイコンと文字の間隔 */
}


/* 抜粋文を消す */
.internal-blogcard-snippet{
	display: none;
}

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* 編集画面でも画像を中央に表示 */
.editor-styles-wrapper .wp-block-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

