@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見出しに下線を引く */
.page .entry-content h2 {
    background: none; 
}

/* 固定ページ内のh3見出しに点線のを引く */
.page .entry-content h3 {
    background: none; 
	border: none;
}

/* 投稿ページのH1見出し */
.single h1 {
  font-size: 28px;
  color: #111;
  border-bottom: 3px solid #000;
}

/* 投稿ページのH2見出し */
.single .entry-content h2 {
  position: relative;
  padding: 1rem 1.5rem;
  background: -webkit-linear-gradient(to right, rgb(255, 124, 111), #f9d423);
  background: linear-gradient(to right, rgb(255, 124, 111), #f9d423);
  color: white;
  font-weight: boldlighter;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.56);
}


/* 投稿ページのH3見出し */
/* CocoonのデフォルトH3スタイルを上書きします */
.single .entry-content h3 {
 /* まず元の線をすべて消す */
  border: none;
  /* 元の余白も一旦リセット */
  padding: 0;
  /* ここから新しいデザインを指定 */
  position: relative;
  padding: 0.8rem .5rem;
}

.single .entry-content h3:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: '';
  background-image: -webkit-gradient(linear, left top, right top, from(#fa709a), to(#fee140));
  background-image: -webkit-linear-gradient(left, #fa709a 0%, #fee140 100%);
  background-image: linear-gradient(to right, #fa709a 0%, #fee140 100%);
}

/* サイドバー見出し */
.sidebar h2{
	background: none;
	position: relative;
  padding: 0.25em 0;
}
.sidebar h2:after{
	content: "";
  display: block;
  height: 2px;
  background: -webkit-linear-gradient(to right, rgb(230, 90, 90), transparent);
  background: linear-gradient(to right, rgb(230, 90, 90), transparent);
}

/* .cta-h2クラスが指定された見出しの装飾を解除します */
.cta-h2 {
  /* h2に設定されている余白をリセット */
  padding: 0;
}

.cta-h2:after {
  /* h2に設定されているグラデーション下線を非表示にする */
  display: none;
}

/* 以下、H4, H5, H6 と必要に応じて追加します */

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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
	
	/* カバーブロックを全幅に*/
.entry-content .wp-block-cover,
.entry-content .wp-block-cover-image {
     width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: 0 calc(50vw - 50%);
} 
}

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