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

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

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

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

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


.post h2{
color: #565454;
background-color: #cee4ae;
border-left: transparent;
font-weight:bold;
padding-top: 15px;     /* 見出し上の内側余白 */
padding-bottom: 15px;  /* 見出し下の内側余白 */
margin-top: 24px;     /* 見出し上の外側余白 */
margin-bottom: 24px; /* 見出し下の外側余白 */
}

/* cocoonの見出しH3をリセット */
.entry-content h3{
border:none;
background:none;
padding: 0;
}

.post h3 {
  padding: 0.5em 0.5em;/*上下 左右の余白*/
  color: #565454;/*文字色*/
  background: transparent;/*背景透明に*/
  border-left: solid 7px#5c664e;/*左線*/
}

/* h3見出しの上の余白を広げる */
.article h3 {
  margin-top: 2em; 
  margin-bottom: 2em; 
}

/* cocoonの見出しH4をリセット */
.entry-content h4{
border:none;
background:none;
padding: 0;
}

.post h4::before,
h4::after {
  position: absolute;
  margin-top: -5px;
  content: '';
  border-radius: 100%
}

.post h4{
  position: relative;
  padding: 0 .5em .5em 2em;
  color: #565454;/*文字色*/
  /*border-bottom: 1px solid #ccc;*/
}
.post h4::before {
  top: .2em;
  left: .2em;
  z-index: 2;
  width: 22px;
  height: 22px;
  background: #cee4ae;
}
.post h4::after {
  top: .8em;
  left: .8em;
  width: 17px;
  height: 17px;
  background: 5px#5c664e;
}

.post h2::after, .post h3::after{
background:0 none;
}
.post h4{
border-left:0 none;
}


/* cocoonの見出しH5をリセット */
.entry-content h5{
border:none;
background:none;
padding: 0;
}

h5 {
  position: relative;
  padding: 0.25em 0;
}
h5:after {
  content: "";
  display: block;
  height: 5px;
  background: -webkit-linear-gradient(to right, #cee4ae, transparent);
  background: linear-gradient(to right, #cee4ae, transparent);
}

/*見出しの文字サイズ*/
.article h2 {
  font-size: 23px; /* 見出し2のサイズ */
}

.article h3 {
  font-size: 22px; /* 見出し3のサイズ */
}

.article h4 {
  font-size: 22px; /* 見出し4のサイズ */
}

.article h5 {
  font-size: 20px; /* 見出し5のサイズ */
}


/*スマホ用記事タイトルの文字サイズ*/
@media screen and (max-width:750px) {
	
/*スマホ用 h5見出し*/
	.post h2 {
		font-size:20px;    /*文字サイズ*/
	}
	.post h3 {
		font-size:18px;    /*文字サイズ*/
	}
	.post h4 {
		font-size:18px;    /*文字サイズ*/
	}
	
	.post h5 {
		font-size:18px;    /*文字サイズ*/
	}
}



/* プロフィール*/
.box11{
    padding: 0.5em 1em;
    margin: 2em 0;
    color: #565454;
    background: white;
    border-top: solid 5px #7b8d42;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
	font-size: 17px;
	line-height: 2.5; 
}
.box11 p {
    margin: 0; 
    padding: 0;
}




/* 過去記事の囲み*/
.box26 {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 2.5px #9cbb1c;
    border-radius: 7px;
}
.box26 .box-title {
    position: absolute;
    display: inline-block;
    top: -13px;
    left: 10px;
    padding: 0 9px;
    line-height: 1;
    font-size: 19px;
    background: #FFF;
    color: #9cbb1c;
    font-weight: bold;
}
.box26 p {
    margin: 0; 
    padding: 0;
}


/* pointの囲み*/
.box27 {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 2px #93ca76;
    border-radius: 2px;
}
.box27 .box-title {
    position: absolute;
    display: inline-block;
    top: -13px;
    left: 10px;
    padding: 0 9px;
    line-height: 1;
    font-size: 19px;
    background: #FFF;
    color: #a2c98d;
    font-weight: bold;
}
.box27 p {
    margin: 0; 
    padding: 0;
}


.kakomi-box28 {
 position: relative;
 margin: 2em auto;
 padding: 2em 1em .2em;
 background-color: #f2ffe6; /* 背景色 */
 color: #555; /* 文字色 */ 
 box-shadow: 0 0 3px 3px #badcad; /* 影 */
}
.title-box28{  
position: absolute;
 left: 10px;
 top: 2px;
 padding: 0 .5em;
 font-weight: bold;
 color: #769164; /* タイトル色 */
 font-size: 17px;
}

/* タイトル付　枠（影）1　*/
.kakomi-box12 {
 position: relative;
 margin: 2em auto;
 padding: 1.2em;
 color: #1a1a1a; /* 文章色 */
 background-color: #fff;
 border: 2.5px solid #cee4ae; /* 枠線の太さ・色 */
 border-radius: 2px;
}
.title-box12 {
 position: absolute;
 padding: 0 .5em;
 left: 20px;
 top: -19px;
 font-weight: bold;
 font-size: 19px;
 background-color: #fff; /* タイトル背景色 */
 color: #93ca76; /* タイトル文字色 */
}

/* 黒板風　2 */
.kokuban-s2 {
 position: relative;
 margin: 2em auto;
 padding: 1em;
 width: 90%; /* ボックス幅 */
 background:#5c664e; /* ボックス背景色 */
 color: #fff; /* 文章色 */
 border: 8px solid #99661a; /* 枠線 */
 border-radius: 3px; /* 角の丸み */
 box-shadow: 0 0 5px #333, 0 0 5px #555 inset;
}
.kokuban-s2::before,
.kokuban-s2::after {
 position: absolute;
 content: '';
 bottom: 0;
} 
.kokuban-s2::before {
 width: 20px; 
 right: 10px;
 border: solid 3px #ffff00; /*チョーク（黄色）*/
 border-radius: 3px 2px 0 2px;
}
.kokuban-s2::after {
 width: 15px; 
 right: 45px;
 border: solid 3px #fff; /*チョーク（白） */
 border-radius: 8px 5px 2px 5px;
}

/* テープ　2 */
.kakomi-tape3 {
 position:relative;
 padding: 35px 20px 15px;
 margin: 2.5em auto;
 color: #202020; /* 文字色 */
 background-color: #cee4ae;
 box-shadow: inset 0 0 40px rgba(204, 186, 136,1), 0 2px 2px #ccc;
}
.title-tape3 {
 position: absolute;
 top: -15px;
 left: 30px;
 padding: 4px 20px;
 color: #555555; /*タイトル色*/
 font-weight: bold;
 background-color: rgba(255,255,255,.4);
 border-left: 2px dotted rgba(0,0,0,.1);
 border-right: 2px dotted rgba(0,0,0,.1);
 box-shadow: 0 0 5px rgba(0,0,0,0.2); 
 transform: rotate(-5deg);
}

/*espacement*/

<style>
p {
line-height: 2.6;
}
</style>


/*記事タイトル*/
.post h1 {color: #333333;}
.post h2 {color: #333333;}
.post h3 {color: #333333;}
.post h4 {color: #333333;}


/*サイトタイトルの下線*/
h1 {
  position: relative;
  padding: 0.25em 0;
}
h1:after {
  content: "";
  display: block;
  height: 5px;
  background: -webkit-linear-gradient(to right, #30785b, transparent);
  background: linear-gradient(to right, #30785b, transparent);
}

/* トップページの新着記事一覧 Recent Posts Widget Extended */
.rpwe-block ul{
	list-style: none ;
	margin-left: 0 ;
	padding-left: 0 ;
}
.rpwe-block li{
	border-bottom: 1px solid #eee;
	margin-bottom: 10px;
	padding-bottom: 10px;
	list-style-type: none;
}
.rpwe-block li:last-child{
	border-bottom: none;
}
.rpwe-block h3{
	background: none ;
	clear: none;
	margin-bottom: 5px;
	margin-top: 0 ;
	font-weight: 400;
	font-size: 12px ;
	line-height: 1.5em;
	border-left:none;
	
}
.rpwe-block a{
	font-weight:700;
	font-size:14px;
	display: inline ;
	text-decoration: none;
	
}
.new-article a{
	font-size: 18px;
}

.rpwe-thumb{
	height: 100px;
        width: 133px;
}



/* トップページのカテゴリー */
.widget-title a{
	text-decoration:none;
	color:#4d4d4d;
}
.widget-title a:focus, a:hover {
	color:#bb5548;
}

/* アンダーバーのマーカー */
.sitasen {
  position: relative;
  padding: 0.25em 0;
}
.sitasen:after {
  content: "";
  display: block;
  height: 7px;
  background: -webkit-linear-gradient(to right, #cee4ae, transparent);
  background: linear-gradient(to right, #9bb36b, transparent);
}

/*サイドバーのカスタマイズ*/
#sidebar h3, #col3 h3, #sidebar h4, #col3 h4 {
	border-left: solid 10px #7b8d42;/* 左の線の太さと色*/
	border-bottom: dotted 3px #7b8d42;/* 下の線の種類と太さと色*/
	font-size: 18px;/* 文字サイズは外観→カスタマイズから*/
	font-size: 1.2rem;
	font-weight: 700;
	color: #4d4d4d;/* 文字の色 */
	margin: 4px 0 10px;/* 上 左右 下*/
	padding: 6px 10px; /* 上下 左右*/
}

/*サイドバーの見出しの背景色*/
.sidebar h3 {
  background-color: #ffffff; /* 好きな背景色に変更 */
  color: #ffffff; /* 文字色（必要に応じて変更） */
  padding: 12px 15px; /* 内側の余白 */
  margin: 0 0 15px 0; /* 外側の余白 */
}

/* サイドバーの新着記事説明文の文字サイズ */
#sidebar .widget-entry-card-title {
  font-size: 13px;
}

/* サイドバーのカテゴリーの文字サイズ */
.widget-sidebar ul li a {
  font-size: 14px;
}

/* 画像上のカテゴリーラベルを消す */
.cat-label {
  display: none;
}

/*メニューのマウスホバー色*/
#navi .navi-in a:hover {
background-color: #d0e6cf;
 transition: all 0.5s ;
color: #000000;
}

/*トップ画像のタイトル文字の位置*/
.header-in {
  padding-top: 0px; /* 上の余白を小さくする */
}
.site-name-text {
  position: relative;
  top: -20px;   /* 上からの距離 */
  left: 0;     /* 左からの距離 */
}

/*トップ画像のタイトル文字の大きさ*/
.site-name-text{
	font-size: 38px;
}

/*スマホのトップ画像のタイトル文字の大きさ*/
@media screen and (max-width: 768px) {
  #header .site-name-text {
    font-size: 24px !important;
  }
}
/*固定ページの投稿日、更新日を非表示にする*/
.page .date-tags {
    display: none;
}

/* 関連記事見出しのスタイル */
.related-entry-heading {
  padding: 10px 14px;
  border-left: 4px solid #3b82f6;
  background-color: #f3f4f6;
  font-size: 1.2rem;
  font-weight: bold;
}


/* 関連記事の各記事タイトルの文字色・サイズ・太さを変更 */
.related-entry-card-title {
  border-left: none !important;
  font-size: 17px;
  font-weight: 300 !important;
}

/* 関連記事のリボンが翻ったような見出し*/

.related-entry-heading {
  position: relative;
  padding: 0.2em 0.8em;
  background: linear-gradient(to right, #d0e6cf 0%, rgba(208, 230, 207, 0) 100%);
  color: #000000;
  border: none; /* スキン側の枠線リセット用 */
}

.related-entry-heading::before {
  position: absolute;
  content: "";
  top: 100%;
  left: 0;
  border: none;
  border-bottom: solid 15px transparent;
  border-right: solid 20px rgb(149, 158, 155);
}

/* 投稿記事本文内のブロック間の縦余白を一括調整 */
.single .entry-content > * {
  margin-top: 0;
  margin-bottom: 16px; /* お好みの数値（例：12px〜16px）に変更 */
}




/* インデックス(最近の投稿)の見出しデザイン */
/* 共通の高さ・はみ出し制限の解除 */
.entry-card-wrap,
.entry-card,
.entry-card-content,
.entry-card-title {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* 画像とテキストの横並び・上端揃え */
.entry-card {
  display: flex !important;
  align-items: flex-start !important;
}

/* 右側テキスト領域 */
.entry-card-content {
  flex: 1 !important;
  min-width: 0 !important;
  margin-left: 0 !important;
}

/* タイトル（リボンデザイン・折り返し設定） */
.entry-card-title {
  position: relative;
  display: block !important;
  -webkit-line-clamp: unset !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin-top: 0 !important;
  padding: 0.2em 0.8em !important;
  font-size: 0.9em;
  color: #000 !important;
  background: linear-gradient(to right, #d0e6cf 0%, rgba(208, 230, 207, 0) 100%) !important;
  border: none !important;
  overflow-wrap: break-word !important;
}

/* リボンの折り返し（三角形） */
.entry-card-title::before {
  content: "" !important;
  position: absolute;
  top: 100% !important;
  left: 0 !important;
  border-bottom: 15px solid transparent !important;
  border-right: 20px solid rgb(149, 158, 155) !important;
  z-index: 2;
}

/* スマホ表示（768px以下） */
@media screen and (max-width: 768px) {
  .entry-card-title {
	font-size: 0.9em !important;
    padding: 0.3em 0.6em !important;
  }
}
