@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){
  /*必要ならばここにコードを書く*/
}

/*タイトルフォント*/
.site-name-text {
font-family: 'Kiwi Maru', serif;
}
/*グローバルメニュー*/
nav{
      font-family:'Kiwi Maru', serif;
}
/*キャッチフレーズ*/
.tagline {
	font-family:'Kiwi Maru', serif;
}

/* 角丸　影（タイトル）4 */
.kakomi-maru4 {
 position: relative;
 margin: 2em auto;
 padding: 1.2em;
 width: 90%;
 border: 2px solid #fa8072; /* 枠線の太さ・色 */
 color: #555555; /* 文字色 */
 background-color: #fff;
 box-shadow: 2px 2px 1px #c7c7c7;/* 影の色 */
 border-radius: 8px; /* 角の丸み */
}
.title-maru4 {
 position: absolute;
 left: 20px; /*（left）に変更すると左 */
 top: -15px;
 padding: 0 .5em;
 font-weight: bold;
 font-size: 1.1em;
 color: #fa8072; /* タイトル色 */
 background-color: #fff;
}

h1 {
	 font-family:' Note Sans JP', serif;
	padding: 0.5em 0;/*上下の余白*/
  border-top: solid 8px #E2D3D4; /*上線*/
  border-bottom: solid 8px #E2D3D4;/*下線*/
}

@media (min-width: 1200px) {/* 1200px以上*/
h1 {
font-size: 3.6rem;/* 36px*/
}
@media screen and (max-width: 640px) {/* 640px以下*/
h1{
font-size: 2.4rem;/* 24px*/
}










.entry-card-title {
 font-size: 19px;
	font-family: 'Noto Sans JP', serif;
	color: #555555;
} 



/* 見出しリセット */
/* 見出し2 */
.article h2{
background:none;
padding: 0;
}



/* 見出し4 */
.article h4{
border-top:none;
border-bottom:none;
padding: 0;
}

/* 見出し5 */
.article h5{
border-bottom:none;
padding: 0;
}

/* 見出し6 */
.article h6{
border-bottom:none;
padding: 0;
}


.box19 {
    position: relative;
    padding:0.25em 1em;
}
.box19:before,.box19:after{ 
    content:'';
    width: 20px;
    height: 30px;
    position: absolute;
    display: inline-block;
}
.box19:before{
    border-left: solid 1px #5767bf;
    border-top: solid 1px #5767bf;
    top:0;
    left: 0;
}
.box19:after{
    border-right: solid 1px #5767bf;
    border-bottom: solid 1px #5767bf;
    bottom:0;
    right: 0;
}
.box19 p {
    margin: 0; 
    padding: 0;
}

/*ふせん風*/
.box23 {
margin: 2em auto;
padding:2em;/*内側余白*/
border-left:solid 5px #e9b3a3;/*線の種類・太さ・色*/
background-color:#f5f5f5;/*背景色*/
box-shadow:3px 1px 4px rgba(0, 0, 0, 0.2);
}


.box28 {
    position: relative;
    margin: 2em 0;
    padding: 25px 10px 7px;
    border: solid 2px #FFC107;
}
.box28 .box-title {
    position: absolute;
    display: inline-block;
    top: -2px;
    left: -2px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #FFC107;
    color: #ffffff;
    font-weight: bold;
}
.box28 p {
    margin: 0; 
    padding: 0;
}

.box27 {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 3px #ff7f50;
}
.box27 .box-title {
    position: absolute;
    display: inline-block;
    top: -27px;
    left: -3px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #ff7f50;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}
.box27 p {
    margin: 0; 
    padding: 0;
}


.flame19 {
margin: 2em auto;
padding: 1em;
width: 100%;
border: 3px dashed #000000;
color: #000000;
background-color: #fff;
border-radius: 1px;
}

.box29 {
    margin: 2em 0;
    background:#f1f1f1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}
.box29 .box-title {
    font-size: 1.2em;
    background: #f0735d;
    padding: 4px;
	text-align: center;
    color: #FFF;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.box29 p {
    padding: 15px 20px;
    margin: 0;
}

.box30 {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 3px #30C193;
}
.box30 .box-title {
    position: absolute;
    display: inline-block;
    top: -27px;
    left: -3px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #30C193;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}
.box30 p {
    margin: 0; 
    padding: 0;
}

/* シンプル囲み枠 2*/
.kakomi-box2 {
 margin: 2em auto;
 padding: 1em;
 color: #666; /* 文字色 */
 background-color: #f7f7f7; /* 背景色 */
 border: 1px solid #ccc; /* 枠線 */
}

.box1 {
    padding: 0.5em 1em;
    margin: 2em 0;
    border: solid 3px #000000;
}
.box1 p {
    margin: 0; 
    padding: 0;
}

/* シンプル 枠（影）2 */
.kakomi-box4 {
 padding: 1em;
 width: 90%;
 background-color: #FFF5EE; /* 背景色 */
 box-shadow: 0 0 5px 1px #ccc; /* 影 */
}

/* リストで使える囲み枠④ */
.box18 {
  margin: 1em 0 1.5em 0;
  background: #fff7db; /* 背景色 */
  padding: 1em 1em 0.1em 1em;
}

.box18-title {
  color: #f79476; /* タイトル文字色 */
  font-size: 18px;
  font-weight: bold;
}

.box18-title:before {
  font-family: "Font Awesome 5 Free";
  content: "\f005";
  font-size: 18px;
  margin: 0 3px 0 0;
}

.box18 p {
  margin: 0;
  padding: 0;
}
/*こんなひとにおすすめ*/
ul.cp_list {
	padding:0.5em;
	list-style-type:none;
}
ul.cp_list li {
	position:relative;
	padding: 0em 0.3em 0.3em 1.3em;
}
ul.cp_list li:after,ul.cp_list li:before {
	position:absolute;
	content:'';
	display:block;
	background: #FFC107;
	top: 0.43em;
	left: 0.5em;
	height: 11px;
	width: 4px;
	border-radius: 10px;
	transform: rotate(45deg);
}
ul.cp_list li:before {
	top: 0.6em;
	left: 0.2em;
	height:8px;
	transform:rotate(-45deg);
}

.box3 {
    padding: 0.5em 1em;
    margin: 2em 0;
    color: #2c2c2f;
    background: #fff8e8;/*背景色*/
}
.box3 p {
    margin: 0; 
    padding: 0;
}

.btn.type02{ width: 100%; max-width: 340px; padding: 15px 10px; display: inline-block; text-align: center; letter-spacing: 0.1em; color: #fff; background-color: #ed576c; border-bottom: 4px solid #c5394d; border-radius: 5px; }



#main{
    animation: fadeIn 1s ease-out 0s 1 normal;
}
#sidebar {
    animation: fadeIn 1s ease-out 0s 1 normal;
}

@keyframes fadeIn {
    from {transform: translateY(10%); opacity: 0;}
    100% {transform: translateY(0%); opacity: 1;}
}
#header-container {
    animation: Down 1s ease-out 0s 1 normal;
}

@keyframes Down {
    from {transform: translateY(-10%); opacity: 0;}
    100% {transform: translateY(0%); opacity: 1;}
}

#breadcrumb {
    animation: Right 1s ease-out 0s 1 normal;
}

@keyframes Right {
    from {transform: translateX(10%); opacity: 0;}
    100% {transform: translateX(0%); opacity: 1;}
}

/*Cocoonのcat-label（カテゴリラベル）の位置と文字のカスタマイズ*/
/*ここから*/
.cat-label {
	top: 4%;
	left: 2.5%;
	line-height: 1.8;
	font-size: 0.67em;
	font-weight: 500;
}
/*ここまで*/

/*Cocoonのcat-label（カテゴリラベル）のデザインのカスタマイズ：スケルトン*/
/*ここから*/
.cat-label {
	padding: 1px 10px;
	background-color: rgba(51, 51, 51, 0.5);
	border: 0;
	border-radius: 30px;
}
/*ここまで*/




/*——————-
おすすめカード
———————-*/
div#recommended-in.recommended-in.wrap.cf{
margin-top: 20px;
max-height:220px;
}
@media screen and (min-width: 1024px){
div#recommended-in.recommended-in.wrap.cf{
padding:0 2em;
}}
div#content.content.cf{
margin-top:0;
}
.widget-entry-cards .a-wrap{
transition: all .2s;
}
.widget-entry-cards .a-wrap:hover {
transform: translateY(-1px);
transition: all .2s;
}
figure.navi-entry-card-thumb.widget-entry-card-thumb.card-thumb{
opacity:.8;
}
.recommended.rcs-center-white-title .a-wrap:hover .card-content {
transition: all .1s;
opacity: 1;
}
.widget-entry-cards.large-thumb-on .card-content{
background: rgba(151, 151, 151, 0);
}
a.navi-entry-card-link.widget-entry-card-link.a-wrap{
border-radius:10px!important;
margin:1em .5em;
background-color:#FFFFFF;/*Cocoon設定「全体」の「サイト背景色」に合わせてください*/
}
div.navi-entry-card-title.widget-entry-card-title.card-title{
color:#333333;
font-weight:bold;
font-size:.8em;
background-color: rgba(255, 255, 255, 0.8);
padding: .6em .5em;
border-radius:30px;
}
@media (max-width:834px){
a.navi-entry-card-link.widget-entry-card-link.a-wrap{
margin:.3em 0em;
}
div.navi-entry-card.widget-entry-card.e-card.cf{
border-radius:10px!important;
overflow:hidden;
max-height:100px;
margin:0 .3em 0;
box-shadow: 0px 1px 4px 0 rgba(0,0,0,.1)!important;
}
.widget-entry-cards.large-thumb-on .a-wrap:hover {
box-shadow:none;
}
}
@media (max-width:834px){
div.navi-entry-card-title.widget-entry-card-title.card-title{
font-size:.6em;
padding: .5em;
}
div#recommended-in.recommended-in.wrap.cf{
margin: .7em .2em .3em;
}
.widget-entry-cards.large-thumb-on .card-content{
background: rgba(151, 151, 151, 0.2);
}
}
main#main.main{
margin:0;
}

<?php
  if (is_single() && has_post_thumbnail($post_object->ID)) {
    $thumbnail_id = get_post_thumbnail_id($post_object->ID);
    $image = wp_get_attachment_image_src( $thumbnail_id, 'full' );
    $thumbnail_image = $image[0];
  } else {
    $thumbnail_image = get_template_directory_uri().'/images/thumbnail.png';
  }
?>
<meta name="thumbnail" content="<?php echo $thumbnail_image; ?>">




/************************************
**モバイル表示　ヘッダーメニュー・検索アイコン
************************************/
.mobile-menu-buttons{
height:50px;
box-shadow: none;
}
.mobile-menu-buttons > li {
padding-top:0;
}
.menu-button{
margin: auto;
}
.mobile-menu-buttons .menu-button:hover{
background-color:white;
}
span.fas.fa-search::before{
color:#90C31F;/*検索マーク色変更はこちら*/
margin-left:1em;
}
span.fas.fa-bars::before{
color:#90C31F;/*ハンバーガーメニュー色変更はこちら*/
margin-right:1em;
}
.navi-menu-caption.menu-caption,.home-menu-caption.menu-caption,.search-menu-caption.menu-caption,.top-menu-caption.menu-caption,.sidebar-menu-caption.menu-caption{
display:none;
}

.sidebar h3 {
  border-bottom:2px solid #eba38f;/*下線の太さ、種類、色*/
  background:transparent;/*背景を透明に*/
  text-align:center;
  padding:10px 0 5px 3px;
}

/* ①ボックス部分 */
.search-edit, .search-box input[type="text"] {
	color: #4d4435;
	border-radius: 50px;
	outline: none;
	padding-left: 20px;
}

/* ②検索ボタン */
[type=submit].search-submit {
	top: 0;
	right: 0;
	height: 100%;
	padding: 8px 15px;
	background: #d98030; 
	color: #fff; 
	font-size: 16px;
	font-weight: bold;
	border: none;
	border-radius: 0 50px 50px 0;
	transition:0.3s;
}

/* ③検索ボタン(hover) */
@media screen and (min-width: 980px) {
	[type=submit].search-submit:hover {
		color: #fff;
		background: #e7b07e;
	}
}

/************************************
****　おすすめカード触ると大きくなるのと背景白いのが入らないように
************************************/

#recommended .navi-entry-card-thumb {
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
}

#recommended .navi-entry-card-thumb:hover {
	transform:scale(1.1);
	transition:0.3s;
}

#recommended a.navi-entry-card-link.widget-entry-card-link.a-wrap{
background-color:#efedea;/*Cocoon設定「全体」の「サイト背景色」に合わせてください*/
}

/************************************
****　ブログガードの続きを読む
************************************/
.internal-blogcard-footer{
	display: none
}

.blogcard{
	position: relative
}

.internal-blogcard:after{
	position: absolute;
	bottom: 10px;
	right: 20px;
	font-family: 'Font Awesome 5 free';
	content: '記事を読む >>';
	font-size: 90%;
	font-weight: bold;
	background-color: #e8903e;
	color: #FFF; 
	padding: 0.2em 2em;
	border-radius: 2px
}

@media screen and (max-width: 480px) 
{.internal-blogcard:after{
	position: absolute;
	bottom: 7px;
	right: 17px;
	font-family: 'Font Awesome 5 free';
	content: '記事を読む >>';
	font-size: 80%;
	font-weight: bold;
	background-color: #e8903e;
	color: #FFF; 
	padding: 0.2em 2em;
	border-radius: 2px
}
	
/************************************
** ●ブログカード アイキャッチ画像カスタマイズ
************************************/
.blogcard .blogcard-thumbnail img {
  border-radius: 3px; /*角丸コーナー*/
  box-shadow: 3px 3px 2px 0 rgba(0,0,0,0.3); /*シャドー（影）*/
}
	

