@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    0.0.5
*/

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

body {
	color: #111;
}

a {
	color: #00e;
}

.entry-content>*, .demo .entry-content p {
	margin-top: 1em;
	margin-bottom: 1em;
}

.article ul li, .article ol li {
	margin: 0;
}


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

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

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

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

/**
 * user
 */
#navi .menu > li > a {
	padding: 0.6em 0.7em;
	font-size: 0.9em;
}

div.publicity {
	border: 1px solid #ddd;
	border-radius:4px;
	background-color: #fff;
	padding: 10px 30px;
	margin: 10px 0;
}
div.publicity ul.icons,
div.publicity ul.texts {
	list-style: none;
	padding-left: 0;
}

div.publicity ul.icons li {
	display:inline-block;
	vertical-align:top;
	width: 100px;
	font-size: 0.7em;
}
div.publicity ul.icons li a {
	display: block;
	position: relative;
}

div.publicity ul.icons li img {
	margin:0 auto;
	width: 96px;
	height: 96px;
	display:block;
}
div.publicity ul.icons li .app-title {
	position: absolute;
	bottom: 0;
	padding: 3px;
	margin: 0 2px;
	background: #00000099;
	color: #ffffff;
	font-size: 0.7rem;
}

div.publicity ul.texts li {
	display: inline-block;
	vertical-align: top;
	font-size: 0.75em;
	/*margin-right: 5px;*/
	margin-bottom: 5px;
	/*width: 145px;*/
}

div.publicity ul.texts li a {
	display: inline-block;
	padding: 3px 8px;
	background-color: #1D417A;
	color: #fff;
	text-decoration: none;
}

div.publicity ul.texts li a:hover {
	background-color: #1C5DB0;
	color: #fff;
}

div.widget-above-single-content-title-title.main-widget-label {
	padding: 10px;
	font-weight: bold;
}
div.widget-above-single-content-title ul{
	margin: 0;
}

/* captions under image */
.wp-block-image figure figcaption,
figure.wp-block-image figcaption
{
	margin: 0;
	font-size: 0.8rem;
	opacity: 0.8;
	padding: 0 6px;
	text-align: center;
}


img.list-header {
    width: 1024px;
    height: 256px;
    object-fit: cover;
}
.list-title {
	padding: 5px 10px;
	margin: 0;
	font-weight: bold;
}
ul.entry-list, ul.entry-list > ul {
	list-style: none;
	padding-left: 0
}
ul.entry-list li {
	padding: 5px 10px;
}
ul.entry-list li ul li {
	padding: 0 10px;
}
ul.entry-list li a {
	text-decoration: none;
}
ul.entry-list li:nth-child(odd)  { background-color: #f9f9f9; }
ul.entry-list li:nth-child(even) { background-color: #ffffff; }


/*@media screen and (max-width: 480px) {*/
@media screen and (max-width: 740px) {
	div.publicity {
		border-radius:0;
		padding: 10px;
	}
}

/* how to do descriptions */

dl.how-to {
  padding: 0.5rem;
  counter-reset:number; /*数字をリセット*/
  list-style-type: none!important; /*数字を一旦消す*/
  border-left: 5px solid #234777;
}

dl.how-to dt {
  display: list-item;
  list-style-type: none;
  position: relative;
  padding: 0.2rem 0.5rem 0.2rem 2.5rem;
  border-bottom: 3px solid #234777;
  margin: 0 0 0.5rem 0;
  font-weight: bold;
}

dl.how-to dt:not(:first-child) {
  margin-top: 1.5rem;
}

dl.how-to dt:before {
  position: absolute;
  counter-increment: number;
  content: "#" counter(number);
  display:inline-block;
  /*
  background: #234777;
  color: white;
  */
  font-weight: bold;
  left: 0;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

dl.how-to dd {
  margin-left: 2.5rem;
}

/* overwrite theme styles */
.navi-in > ul li { width: auto; }
.navi-in a { padding:0 20px; }
.widget-sidebar .custom-html-widget a{
	border: 0;
}
.widget-sidebar ul.followme li a{
	color: #333;
	text-decoration: none;
	padding: 10px 0;
	display: block;
	padding-right: 4px;
	padding-left: 20px;
}
.widget-sidebar ul.followme a {
	border: 1px solid #ddd;
	border-top: 0;
}

pre.code {
    line-height: 1em;
    white-space: pre-wrap;
}
pre.code p {
    line-height: 1em;
    margin: 0.5em 0;
}

/*--------------------------------------
 *   ヨメレバ・カエレバ（レスポンシブ）
 * http://www.yukihy.com/entry/kaereba-yomereba-custom
 *--------------------------------------*/
.booklink-box, .kaerebalink-box{
	padding:25px;
	margin-bottom: 10px;
	border:double #CCC;
	overflow: hidden;
	font-size:small;
}
.booklink-image, .kaerebalink-image{
	margin:0 15px 0 0;
	float:left;
	min-width: 160px;
	text-align: center;
}
.booklink-image img, .kaerebalink-image img{
	margin:0 auto;
	text-align:center;
}
.booklink-info, .kaerebalink-info{
	margin:0;
	line-height:120%;
	overflow: hidden;
}
.booklink-name, .kaerebalink-name{
	margin-bottom:24px;
	line-height:1.5em;
}
.booklink-powered-date, .kaerebalink-powered-date{
	font-size:8px;
	margin-top:10px;
	font-family:verdana;
	line-height:120%;
}
.booklink-detail, .kaerebalink-detail{font-size: 12px;}
.booklink-powered-date, .kaerebalink-detail{margin-bottom:15px;}
.booklink-link2, .kaerebalink-link1{margin-top:10px;}
.booklink-link2 a,
.kaerebalink-link1 a{
	width:30%;
	-moz-border-radius:5px;
	-webkit-border-radius:5px;
	border-radius:5px;
	display:inline-block;
	margin:5px 2px 0 0;
	padding:10px 1px;
	text-align:center;
	float:left;
	text-decoration:none;
	font-weight:800;
	text-shadow:1px 1px 1px #dcdcdc;
	font-size:12px;
	color: #fff !important;
}
.booklink-link2 a:hover,
.kaerebalink-link1 a:hover{opacity: 0.6;}
.booklink-link2 a:active
.kaerebalink-link1 a:active{
	position:relative;
	top:1px;
}
/*ボタンを変えるときはここから*/
.shoplinkamazon a{background-color:#FF9901 !important;}
.shoplinkrakuten a{background-color:#c20004 !important;}
.shoplinkkindle a{background-color:#007dcd !important;}
.shoplinkkakakucom a{background-color:#314995 !important;}
.shoplinkyahoo a{background-color:#7b0099 !important;}
/*ここまでを変更*/
.shoplinkyahoo img{display:none;}
.shoplinkyahoo a{font-size:10px;}
.booklink-footer{display: none;}

@media screen and (max-width: 680px) {
	.booklink-box, .kaerebalink-box{padding:15px;}
	.booklink-image, .kaerebalink-image{
		width: 100px !important;
		min-width: initial;
	}
	.booklink-name > a, .kaerebalink-name > a{
		font-size: 15px;
		font-weight: bold;
	}
	.booklink-name, .kaerebalink-name{margin-bottom:12px;}
	.booklink-powered-date, .kaerebalink-powered-date{margin-top:5px;}
	.booklink-link2 a,
	.kaerebalink-link1 a{
		width:calc(100% - 4px);
		-moz-border-radius:5px;
		-webkit-border-radius:5px;
		border-radius:5px;
		margin: 2px 0px;
		padding:10px 0px;
	}
}
