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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* シンプル 枠（影）1 */
.kakomi-box3 {
 margin: 2em auto;
 padding: 1em;
 width: 90%;
 border: 1px solid #ccc; /* 枠線 */
 background-color: #fff; /* 背景色 */
 box-shadow: 1px 1px 2px #ccc;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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

/* ---------------------------------------------------------
    　　　囲み枠
--------------------------------------------------------- */
.box-d{
	margin:1;
	border:double #CCC;
	padding:10px;
}

.box-d p {
    margin: 1px; 
}

.box-lgray{
	margin:	1 auto;
	padding: 1em;
	background-color: #fafbfc; /* 背景色 */
	border: 1px solid #ccc; /* 枠線 */
}

.box-lgray p {
    margin: 0.5em; 
}


.box-ama1{
 margin: 1em auto;
 padding: 1em;
 width: 95%;
 border: 1px solid #ccc; /* 枠線 */
 /*background-color: #fff;  背景色 */
 box-shadow: 1px 1px 2px #ccc;
}

.box-ama0{
 margin: 1em 1em 2em 1em;
 padding: 0.5em;
 border: 1px solid #ccc; /* 枠線 */
 /*background-color: #fff;  背景色 */
 box-shadow: 1px 1px 2px #ccc;
}

.box-ama2{
 margin: 0 0 2em;
 padding: 1em;
 border: 1px solid #ccc; /* 枠線 */
 box-shadow: 1px 1px 2px #ccc;
}


/* ---------------------------------------------------------
    　　　画像上下の隙間を減らす
--------------------------------------------------------- */
/*img.alignnone{
margin: -16.2px 0 -16.2px 0;
}*/


/* カテゴリーラベル非表示 */
.entry-card .cat-label,
.related-entry-card .cat-label{
display: none;
}

/* ---------------------------------------------------------
    もしもアフィリエイト  かんたんリンク カスタマイズ 
--------------------------------------------------------- */
/* --------- 外枠 --------- */
div.easyLink-box {
	border:3px double #CCC !important; /* ２重線 */
}

div.easyLink-box.easyLink-size-s{
	margin: 5px;
}


/* ---  商品タイトル --- */
p.easyLink-info-name a {
	font-size: 14px !important;
	font-weight:bold;
}

/* --- ボタンサイズ --- */
div.easyLink-box div.easyLink-info p.easyLink-info-btn a{
  padding:1px !important;
}
@media screen and (min-width: 704px) {  div.easyLink-box div.easyLink-info p.easyLink-info-btn a{
  margin-bottom:10px !important;
  }
}

/* --------- ボタン色 --------- */
a.easyLink-info-btn-amazon {
	background: #f6a306 !important; /* 背景色 */
	border: 2px solid #f6a306 !important; /* 外枠 */
	box-shadow: 0px 3px 7px 0px rgba(0,0,0,.25); /* 影 */
}

a.easyLink-info-btn-rakuten {
	background: #bf0000 !important; /* 背景色 */
	border: 2px solid #bf0000 !important; /* 外枠 */
	box-shadow: 0px 3px 7px 0px rgba(0,0,0,.25); /* 影 */
}

a.easyLink-info-btn-yahoo {
	background: #ff0033 !important; /* 背景色 */
	border: 2px solid #ff0033 !important; /* 外枠 */
	box-shadow: 0px 3px 7px 0px rgba(0,0,0,.25); /* 影 */
}
/* --- 狭い画面でボタン下空白を削除 --- */
@media screen and (max-width: 480px) {
	div.easyLink-box{padding:10px;}
	div.easyLink-box div.easyLink-info p.easyLink-info-btn a:last-child {
	margin-bottom: 0 !important;
	}
}


/* --- 画像サイズ --- */
div.easyLink-box div.easyLink-img,
div.easyLink-box div.easyLink-img p.easyLink-img-box,
div.easyLink-box div.easyLink-img p.easyLink-img-box img.easyLink-img-pht{
  max-width: 130px !important;
  max-height: 130px !important;
}

/* --- 文字サイズ変更 --- */
p.easyLink-info-maker,
p.easyLink-info-model{
	font-size: 12px;
}

/* --- メーカー名、記号を非表示 ---*/
p.easyLink-info-maker,
p.easyLink-info-model{
	display:none;
}
/*--------かんたんリンクここまで-------------------*/
/**
 * アフィリエイト広告統合用CSS
 * ワードプレスのstyle.cssに追加してください
 */

.affiliate-ad-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 25px 0;
    max-width: 500px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background-color: #fff;
}

.ad-label {
    text-align: center;
    background-color: #f1f1f1;
    padding: 2px 5px;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    border-radius: 2px;
}

.product-image-container {
    text-align: center;
    margin-bottom: 15px;
}

.product-image-container img {
    max-width: 100%;
    height: auto;
    border: none;
}

.product-image-container a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: inline-block;
}

.store-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.amazon-btn, .rakuten-btn {
    padding: 10px 15px;
    color: white !important;
    text-decoration: none !important;
    text-align: center;
    border-radius: 4px;
    flex: 1;
    min-width: 120px;
    margin: 5px 0;
    font-weight: bold;
    transition: opacity 0.3s;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.amazon-btn:hover, .rakuten-btn:hover {
    opacity: 0.9;
    color: white !important;
    text-decoration: none !important;
}

.amazon-btn {
    background-color: #FF9900;
}

.rakuten-btn {
    background-color: #BF0000;
}

/* 計測用画像の調整 */
.store-buttons img[width="1"][height="1"] {
    display: inline !important;
    position: absolute;
    opacity: 0;
}

/* <br>タグを非表示にする */
    .impression-container br{
     display: none !important;
     content: "" !important;
     margin: 0 !important;
     padding: 0 !important;
     height: 0 !important;
     line-height: 0 !important;
     font-size: 0 !important;
    }

/* 計測用画像コンテナのサイズ（縦）を半分にする*/ 	
	.impression-container{
		font-size:0.5em;
	}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .store-buttons {
        flex-direction: column;
    }
    
    .amazon-btn, .rakuten-btn {
        width: 100%;
    }
    
    .affiliate-ad-container {
        padding: 10px;
    }
	/* <br>タグを非表示にする */
   .store-buttons br{
    display: none !important;
    content: "" !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
   }
	
}

