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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* 問い合わせフォーム用 */
.custom-contact-form {
  max-width: 600px;
  margin: 2em auto;
  padding: 2em;
  background-color: #fdfdfd;
  border: 2px solid #001f3f; /* ネイビー */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.custom-contact-form .form-group {
  margin-bottom: 1.5em;
}

.custom-contact-form label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #001f3f; /* ネイビー */
}

.custom-contact-form input,
.custom-contact-form textarea {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}

.custom-contact-form button {
  background-color: #001f3f; /* ネイビー */
  color: #ffd700; /* 金 */
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-contact-form button:hover {
  background-color: #003366;
}

/*アフィリエイト商品カード用 */
.showcase-box {
	padding: 22px 25px;
	width: 100%;
	margin: 1.6em auto;
	border: 3px solid #dfdfdf; /* 外枠の枠線 */
	box-sizing: border-box;
	position: relative;
}
.showcase-image {
	width: auto;
	min-width: 160px;
	margin: 0 auto 1em !important;
	float: none !important;
	text-align: center;
}
.showcase-image * {
	display: block;
}
.showcase-image > a > img {
	margin: 0 auto;
}
.showcase-info {
	line-height: 125%;
	width: 100%;
}
.showcase-detail {
	color: #333;
	font-size: 12px;
	margin: 0 0 10px;
}
.showcase-link > * {
	 background: none !important;
	 padding: 0 !important;
	 display: block !important;
}
.showcase-link img {
	display: none;
}
.showcase-link a {
	width: 100%;
	display: block;
	margin: 0px auto 8px;
	padding: 10px 0;
	text-decoration: none;
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	border-radius: 3px; /* ボタンの角の丸み */
	color: #ffffff; /* ボタンの文字色 */
}
.showcase-link a:hover {
	opacity: 0.6;
}
.showcase-amazon a {
	background: #f79901;; /* Amazonのボタンの色 */
}
.showcase-kindle a {
	background: #0074c1; /* Kindleのボタンの色 */
}
.showcase-rakuten a {
	background: #bf0000; /* 楽天市場のボタンの色 */
	color: #ffffff !important; /* テキストカラーをホワイトに変更 */
}

.shop-meta {
  width: 100%;
  margin: 0 0 10px;
  font-size: 16px;
  box-sizing: border-box;
  color: #333;
}
.shop-meta .price {
  font-weight: bold;
  margin-bottom: 0.25em;
}
.shop-meta .price .label {
  display: inline-block;
  background: #eee;
  color: #333;
  border-radius: 2px;
  padding: 0.1em 0.4em;
  margin-right: 0.4em;
  font-weight: normal;
}
.shop-meta .rating {
  margin-bottom: 0.35em;
}
.shop-meta .rating .value { font-weight: bold; }
.shop-meta .cons {
  font-size: 14px;
}
.shop-meta .pros {
  font-size: 14px;
}
.showcase-note {
  margin-top: 8px;
  font-size: 12px !important;
  color: #666;
}


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

/*834px以下*/
@media screen and (max-width: 834px){
  /* アフィリエイト商品カード用 */
	.showcase-box {
		padding: 10px 10px 24px;
		display: block;
	}
	.showcase-image {
		width: 120px;
		min-width: 120px;
		margin-right: 3% !important;
		float: left !important;
		height: 100% !important;
	}
	.showcase-link {
		flex-wrap: wrap;

	}
	.showcase-link > * {
		width: auto;
		margin: 0 .5% !important;
		flex: 1 1 auto;
	}
	.showcase-link > * > a {
		width: auto;
		font-size: 11px;
		padding: 6px 0;
		border-radius: 3px; 
		color: #ffffff
	}
}

/*769px以下*/
@media screen and (min-width: 769px) {
	.showcase-box {
		text-align: left;
		display: flex;
		font-size: inherit !important;
	}
	.showcase-image {
		vertical-align: top;
		box-sizing: border-box;
		min-width: auto !important;
	}
	.showcase-info {
		line-height: 125%;
		vertical-align: top;
		box-sizing: border-box;
		padding-left: 25px;
		width: 100%;
	}
	.showcase-detail {
		margin: 0 0 14px;
	}
	.showcase-link {
		display: block;
		flex-wrap: wrap;
	}
	.showcase-link a {
		width: 100%;
		text-align: center;
	}
	.showcase-link a img {
		position: absolute;
		bottom: 0;
		right: 0;
	}
	.showcase-link > * {
		width: auto;
		margin: 0.5%;
		box-sizing: border-box;
	}
}

/*480px以下*/
@media screen and (max-width: 480px){
  /* アフィリエイト商品カード用 */
	.showcase-image {
		width: 80px;
		min-width: 80px;
	}
	.showcase-info {
		width: auto !important;
		overflow: visible !important;
		text-align: center !important;
		padding: 0 !important;
	}
	.showcase-link > * {
		width: 49%;
		margin: 0 .5% !important;
	}
}
