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

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



/* インスタリールサイズ調整 */
.reel-container {
  width: 300px;
  height: 300px;
  overflow: hidden;
  position: relative;
  margin: auto;
}

.reel-container iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100% !important;
  height: 100% !important;
}

/* 固定ページ内のh2見出し装飾カット */
.page .entry-content h2 {
    background: none; 
	margin-top: clamp(1.25rem, 5vw, 2rem);
	margin-bottom: clamp(0.75rem, 3vw, 1rem);
	padding: 0.5rem 0;
}

/* 固定ページ内のh3見出し装飾カット */
.page .entry-content h3 {
    background: none; 
	border: none;
	margin-top: clamp(0.5rem, 2vw, 0.8rem); /* 数値を小さく設定 */
	margin-bottom: clamp(0.5rem, 2vw, 0.75rem);
	padding: 0.25rem 0;
}

/* 投稿ページのH2見出し*/
.single .entry-content h2 {
  position: relative;
  padding: 1rem 1.5rem;
	line-height: 1.2;
  margin-top: 30px;
	margin-bottom: 20px;
  background: -webkit-linear-gradient(to right, #d0bba0, #e8ddd0);
  background: linear-gradient(to right, #d0bba0, #e8ddd0);
  color: #333333;
  font-weight: bold;
  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(#e8ddd0), to(#d0bba0));
  background-image: -webkit-linear-gradient(left, #d0bba0 0%, #e8ddd0 100%);
  background-image: linear-gradient(to right, #d0bba 0%, 0#e8ddd0 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 と必要に応じて追加します */

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/* PC表示（835px以上）の時だけ余白を広げる */
@media screen and (min-width: 835px) {

}

/*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-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}
.page h1 {
    font-size: 20px !important;
  }
	
}

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