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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/************************************
** h1 img の調整
************************************/
.article-header h1 {
	color: #ffffff;
}
.eye-catch {
	background: #000000;
}
.eye-catch img {
	object-fit: cover;
}

/************************************
** カエレバ風デザイン (GAS自動投稿用)
************************************/
.cstm-kaereba {
  border: 1px solid #ddd;
  padding: 20px;
  margin: 30px 0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.cstm-kaereba-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.cstm-kaereba-img {
  width: 150px;
  min-width: 150px;
  align-self: flex-start;
}
.cstm-kaereba-img img {
  width: 100%;
  height: auto;
  display: block;
}
.cstm-kaereba-info {
  flex: 1;
}
.cstm-kaereba-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 15px;
  line-height: 1.4;
}
.cstm-kaereba-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cstm-kaereba-btn {
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
  color: #fff !important;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  flex: 1;
  min-width: 120px;
}
.cstm-btn-rakuten { background: #bf0000; }
.cstm-btn-amazon  { background: #ff9900; }
.cstm-btn-yahoo   { background: #51a7e8; }
.cstm-btn-mercari { background: #ea352d; } /* メルカリ色 */
.cstm-kaereba-btn:hover { opacity: 0.8; transform: translateY(1px); }

/* スマホ対応 */
@media (max-width: 600px) {
  .cstm-kaereba-flex { display: block; }
  .cstm-kaereba-img { margin: 0 auto 15px; }
  .cstm-kaereba-title { text-align: center; }
}

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

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

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