/* post thumbnail */
2
	.post_image { text-align:center; margin:0 0 30px 0; }
3
	.post_image img { margin:0; width:40%; height:auto; }

@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon
Version:    1.1.2
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.entry-title {
font-size: 20px;
}
.sidebar h3{
	font-size:16px;
}
  background-color:#f6e5cc;
  color:#6b3f31;/*文字の色を変える*/
  padding:14px 10px;
  margin:16px 0;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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

/************************************
** ■ウィジェット[c]プロフィールカスタマイズ
************************************/
.nwa .author-box .author-description { /*プロフィール情報*/
  font-size: 14px; /*フォントサイズ*/
}

<a href="https://twitter.com/fujikko_marly?ref_src=twsrc%5Etfw" class="twitter-follow-button" data-size="large" data-show-screen-name="false" data-lang="ja" data-show-count="false">Follow @fujikko_marly</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
}
	
/*--------------------------------------------------
カエレバ・ヨメレバ・トマレバ（Blogger調整版）
---------------------------------------------------*/
.cstmreba {
width: 98%;
height:auto;
margin:30px 0;
font-family:'Lucida Grande','Hiragino Kaku Gothic ProN',Helvetica, Meiryo, sans-serif;
line-height: 1.5;
word-wrap: break-word;
box-sizing: border-box;
display: block;
}
.cstmreba a {
transition: 0.8s ;
color:#454545; /* テキストリンクカラー */
}
.cstmreba a:hover {
color:#737373; /* テキストリンクカラー(マウスオーバー時) */
}
.cstmreba .booklink-box,.cstmreba .kaerebalink-box,.cstmreba .tomarebalink-box {
width: 100%;
background-color: #fff; /* 全体の背景カラー */
overflow: hidden;
border:double #d2d7e6;
border-radius: 5px;
box-sizing: border-box;
padding: 12px 8px;
}
/* サムネイル画像ボックス */
.cstmreba .booklink-image,
.cstmreba .kaerebalink-image,
.cstmreba .tomarebalink-image {
width:200px;
float:left;
margin:20px 10px 0 0;
text-align: center;
}
.cstmreba .booklink-image a,
.cstmreba .kaerebalink-image a,
.cstmreba .tomarebalink-image a {
width:100%;
display:block;
}
/* サムネイル画像 */
.cstmreba .booklink-image a img,.cstmreba .kaerebalink-image a img,.cstmreba .tomarebalink-image a img {
margin:0 ;
padding: 0;
text-align:center;
}
.cstmreba .booklink-info,.cstmreba .kaerebalink-info,.cstmreba .tomarebalink-info {
overflow:hidden;
line-height:170%;
color: #333;
}
/* infoボックス内リンク下線非表示 */
.cstmreba .booklink-info a,
.cstmreba .kaerebalink-info a,
.cstmreba .tomarebalink-info a {
text-decoration: none;
}
/* 作品・商品・ホテル名 リンク */
.cstmreba .booklink-name>a,
.cstmreba .kaerebalink-name>a,
.cstmreba .tomarebalink-name>a {
font-size:16px;
color:#454545 !important; /* リンク色変更 */
}
/* powered by */
.cstmreba .booklink-powered-date,
.cstmreba .kaerebalink-powered-date,
.cstmreba .tomarebalink-powered-date {
font-size:10px;
line-height:150%;
margin-top:8px;
}
.cstmreba .booklink-powered-date a,
.cstmreba .kaerebalink-powered-date a,
.cstmreba .tomarebalink-powered-date a {
border-bottom: none ;
}
.cstmreba .booklink-powered-date a:hover,
.cstmreba .kaerebalink-powered-date a:hover,
.cstmreba .tomarebalink-powered-date a:hover {
color:#333;
}
/* 著者・住所 */
.cstmreba .booklink-detail,.cstmreba .kaerebalink-detail,.cstmreba .tomarebalink-address {
font-size:12px;
}
.cstmreba .kaerebalink-link1 img,.cstmreba .booklink-link2 img,.cstmreba .tomarebalink-link1 img {
display:none !important;
}
.cstmreba .kaerebalink-link1,.cstmreba .booklink-link2,.cstmreba .tomarebalink-link1 {
display: inline-block;
width: 100%;
margin-top: 20px;
}
.cstmreba .booklink-link2>div,
.cstmreba .kaerebalink-link1>div,
.cstmreba .tomarebalink-link1>div {
float:left;
width:31%;
min-width:125px;
margin:0.5% 1%;
}
/***** ボタンデザインここから ******/
.cstmreba .booklink-link2 a,
.cstmreba .kaerebalink-link1 a,
.cstmreba .tomarebalink-link1 a {
width: 100%;
display: inline-block;
text-align: center;
box-sizing: border-box;
font-size: 13px;
font-weight: bold;
line-height: 180%;
padding: 3% 1%;
margin: 1px 0;
border-radius: 4px;
box-shadow: 0 2px 1px #ccc;
background: -moz-linear-gradient(top,#fafafa,#EEE);
background: -webkit-gradient(linear, left top, left bottom, from(#fafafa), to(#eee));
}
.cstmreba .booklink-link2 a:hover,
.cstmreba .kaerebalink-link1 a:hover,
.cstmreba .tomarebalink-link1 a:hover {
text-decoration: underline;
}
/* トマレバ */
.cstmreba .tomarebalink-link1 .shoplinkrakuten a { color: #76ae25 !important; }/* 楽天トラベル */
.cstmreba .tomarebalink-link1 .shoplinkjalan a { color: #ff7a15 !important; }/* じゃらん */
.cstmreba .tomarebalink-link1 .shoplinkjtb a { color: #c81528 !important; }/* JTB */
.cstmreba .tomarebalink-link1 .shoplinkknt a { color: #0b499d !important; }/* KNT */
.cstmreba .tomarebalink-link1 .shoplinkikyu a { color: #bf9500 !important; }/* 一休 */
.cstmreba .tomarebalink-link1 .shoplinkrurubu a { color: #000066 !important; }/* るるぶ */
.cstmreba .tomarebalink-link1 .shoplinkyahoo a { color: #ff0033 !important; }/* Yahoo!トラベル */
/* カエレバ */
.cstmreba .kaerebalink-link1 .shoplinkyahoo a {color:#333399 !important; letter-spacing:normal;} /* Yahoo!ショッピング */
.cstmreba .kaerebalink-link1 .shoplinkbellemaison a { color:#84be24 !important; } /* ベルメゾン */
.cstmreba .kaerebalink-link1 .shoplinkcecile a { color:#8d124b !important; } /* セシール */
.cstmreba .kaerebalink-link1 .shoplinkkakakucom a {color:#314995 !important;} /* 価格コム */
/* ヨメレバ */
.booklink-link2 .shoplinkkindle a { color:#007dcd !important;} /* Kindle */
.booklink-link2 .shoplinkrakukobo a{ color:#d50000 !important; } /* 楽天kobo */
.booklink-link2 .shoplinkbk1 a { color:#0085cd !important; } /* honto */
.booklink-link2 .shoplinkehon a { color:#2a2c6d !important; } /* ehon */
.booklink-link2 .shoplinkkino a { color:#003e92 !important; } /* 紀伊國屋書店 */
.booklink-link2 .shoplinkebj a { color:#f8485e !important; } /* ebookjapan */
.booklink-link2 .shoplinktoshokan a { color:#333333 !important; } /* 図書館 */
/* カエレバ・ヨメレバ共通 */
.cstmreba .kaerebalink-link1 .shoplinkamazon a,
.cstmreba .booklink-link2 .shoplinkamazon a { color:#FF9901 !important; } /* Amazon */
.cstmreba .kaerebalink-link1 .shoplinkrakuten a ,
.cstmreba .booklink-link2 .shoplinkrakuten a { color: #c20004 !important; } /* 楽天 */
.cstmreba .kaerebalink-link1 .shoplinkseven a,
.cstmreba .booklink-link2 .shoplinkseven a { color:#225496 !important;} /* 7net */
/***** ボタンデザインここまで ******/
.cstmreba .booklink-footer {
clear:both;
}
/*** 解像度480px以下のスタイル ***/
@media screen and (max-width:480px){
.cstmreba .booklink-image,
.cstmreba .kaerebalink-image,
.cstmreba .tomarebalink-image {
width:100%;
float:none;
}
.cstmreba .booklink-link2>div,
.cstmreba .kaerebalink-link1>div,
.cstmreba .tomarebalink-link1>div {
width: 95%;
margin: 0 auto 8px auto;
float:none;
}
.cstmreba .booklink-info,
.cstmreba .kaerebalink-info,
.cstmreba .tomarebalink-info {
text-align:center;
padding-bottom: 1px;
}
} 
function category_link_custom( $query = array()) {
 
	// 子カテゴリーの404を回避
	if (isset($query['category_name']) && strpos($query['category_name'], '/') === false && isset($query['name'])) {
		$parent_category = get_category_by_slug($query['category_name']);
		$kabu_categories = get_categories('kabu_of='.$parent_category->term_id);	
		foreach ($kabu_categories as $kabu_category) {
			if ($query['name'] === $kabu_category->category_nicename) {
				$query['category_name'] = $query['category_name'].'/'.$query['name'];
				unset($query['name']);
			}
		}
	}
	
	// カテゴリーのページ送りを修正して404を回避
	if(isset($query['name']) && $query['name'] === 'page' && isset($query['page'])) {
		$paged = $query['page'];
		if(is_numeric($paged)) {
			$query['paged'] = (int) $paged;
			unset($query['name']);
			unset($query['page']);
		}
	}
	
	return $query;
}
add_filter('request', 'category_link_custom');
function category_link_custom( $query = array()) {
 
	// 子カテゴリーの404を回避
	if (isset($query['category_postname']) && strpos($query['category_postname'], '/') === false && isset($query['postname'])) {
		$parent_category = get_category_by_slug($query['category_postname']);
		$kabu_categories = get_categories('kabu_of='.$parent_category->term_id);	
		foreach ($kabu_categories as $kabu_category) {
			if ($query['postname'] === $kabu_category->category_nicepostname) {
				$query['category_postname'] = $query['category_postname'].'/'.$query['postname'];
				unset($query['postname']);
			}
		}
	}
	
	// カテゴリーのページ送りを修正して404を回避
	if(isset($query['postname']) && $query['postname'] === 'page' && isset($query['page'])) {
		$paged = $query['page'];
		if(is_numeric($paged)) {
			$query['paged'] = (int) $paged;
			unset($query['postname']);
			unset($query['page']);
		}
	}
	
	return $query;
}
add_filter('request', 'category_link_custom');