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

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

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

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

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

/* 目次全体デザイン */
.toc{
    background:#FFF; /* 目次全体の背景色を変える場合はここを変更 */
    border:none;
    display:block;
    border-top:5px solid;
    border-top-color:#e7cec7;
    box-shadow: 0 2px 2px rgba(0,0,0,0.2);
    padding: 20px 25px;
}
/* 目次の文字指定 */
.toc-title {
    text-align:left;
    margin: 0 20px 20px -10px;
    padding-left: -20px;
    font-size: 20px;
    font-weight: 700;
    color: #600d1e; /* 目次の文字色を変える場合はここを変更 */
}
/* 目次のアイコン設定 */
.toc-title:before {
    top: 0;
    left: -45px;
    width: 50px;
    height: 50px;
    font-family: "Font Awesome 5 Free";
    content : "\f03a"; /* アイコンを変える場合はここを変更 */
    font-size:20px;
    margin-right:5px;
    color:#FFF; /* アイコンの色を変える場合はここを変更 */
    background-color:#e7cec7; /* アイコンの背景色を変える場合はここを変更 */
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    padding:14px;
}
/* 目次のデザインカスタマイズ */
.toc-content ol {
    padding: 0 0.5em;
    position: relative;
}
.toc-content ol li {
    line-height: 1.5;
    padding: 0.7em 0 0.5em 1.4em;
    border-bottom: dashed 1px silver;
    list-style-type: none!important;
}
/* 目次の各節の先頭にあるアイコンを設定 */
.toc-content ol li:before {
    font-family: "Font Awesome 5 Free";
    content: "\f138"; /* アイコンを変える場合はここを変更 */
    position: absolute;
    left : 0.5em;
    color: #e7cec7; /* 色を変える場合はここを変更 */
    font-weight: bold;
}
.toc-content ol li:last-of-type {
    border-bottom: none;
}
.toc-content .toc-list li {
    font-weight:500; /* h2のみ太文字に */
}
.toc-content .toc-list li li {
    font-weight:normal; /* h3以降の文字サイズを普通に */
}

/* H2見出し */
.article h2 {
    color: #600d1e;
}

/* H3見出し */
.article h3 {
    color: #600d1e;
}

/* H4見出し */
.article h4 {
    color: #600d1e;
}

/* ========================================
   Rinker デザインカスタマイズ
======================================== */

/* 商品リンク全体 */
.yyi-rinker-contents {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 15px;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    box-shadow: none;
}

/* 商品画像と商品情報：PCでは横並び */
.yyi-rinker-contents .yyi-rinker-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

/* 商品画像 */
.yyi-rinker-contents .yyi-rinker-image {
    width: 25%;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.yyi-rinker-contents .yyi-rinker-main-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 商品情報 */
.yyi-rinker-contents .yyi-rinker-info {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 0;
    text-align: left;
}

/* 商品名・価格・商品説明などをグレーに */
.yyi-rinker-contents .yyi-rinker-info,
.yyi-rinker-contents .yyi-rinker-info p,
.yyi-rinker-contents .yyi-rinker-info span,
.yyi-rinker-contents .yyi-rinker-info div,
.yyi-rinker-contents .yyi-rinker-title,
.yyi-rinker-contents .yyi-rinker-title a,
.yyi-rinker-contents .price-box,
.yyi-rinker-contents .price-box *,
.yyi-rinker-contents .credit-box,
.yyi-rinker-contents .credit-box *,
.yyi-rinker-contents .yyi-rinker-detail,
.yyi-rinker-contents .yyi-rinker-detail * {
    color: #3d3d3d !important;
}

/* 商品名 */
.yyi-rinker-contents .yyi-rinker-title a {
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
}

/* 商品詳細 */
.yyi-rinker-contents .yyi-rinker-detail {
    padding-left: 0;
}

/* Amazon・楽天ボタン全体 */
.yyi-rinker-contents ul.yyi-rinker-links {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin: 15px 0 0;
    padding: 0;
}

/* 各ボタンを同じ幅に */
.yyi-rinker-contents ul.yyi-rinker-links li {
    display: block;
    flex: 1 1 0;
    width: 50% !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0;
    border: none;
    border-radius: 4px;
    overflow: hidden;
}

/* ボタン共通：文字を上下左右中央に */
.yyi-rinker-contents ul.yyi-rinker-links li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    height: 100%;
    box-sizing: border-box;
    padding: 12px 4px;
    border-radius: 4px;
    box-shadow: none !important;
    text-align: center;
    line-height: 1.5;
    font-weight: bold;
    white-space: normal;
    text-decoration: none;
}

/* Amazon：やわらかいオレンジ */
.yyi-rinker-contents ul.yyi-rinker-links li.amazonlink a {
    background: #F4B65E !important;
    border-color: #F4B65E !important;
    color: #b09a88 !important;
}

/* 楽天：くすみローズ */
.yyi-rinker-contents ul.yyi-rinker-links li.rakutenlink a {
    background: #D98282 !important;
    border-color: #D98282 !important;
    color: #FFFFFF !important;
}

/* ボタンのホバー */
.yyi-rinker-contents ul.yyi-rinker-links li a:hover {
    opacity: 0.85;
}

/* スマートフォン */
@media screen and (max-width: 600px) {

    .yyi-rinker-contents .yyi-rinker-box {
        display: block;
    }

    .yyi-rinker-contents .yyi-rinker-image {
        width: 100%;
        margin: 0 auto 15px;
    }

    .yyi-rinker-contents .yyi-rinker-main-img {
        max-width: 180px;
        width: auto;
    }

    .yyi-rinker-contents .yyi-rinker-info {
        width: 100%;
    }

    /* スマホでもボタンは横並び */
    .yyi-rinker-contents ul.yyi-rinker-links {
        display: flex !important;
        flex-wrap: nowrap;
    }
}
/* スマートフォン表示の修正 */
@media screen and (max-width: 600px) {

    .yyi-rinker-contents {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px;
    }

    .yyi-rinker-contents .yyi-rinker-box {
        display: block !important;
        width: 100%;
    }

    .yyi-rinker-contents .yyi-rinker-image {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto 15px !important;
        text-align: center;
    }

    .yyi-rinker-contents .yyi-rinker-main-img {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: 220px;
        height: auto;
        margin: 0 auto;
    }

    .yyi-rinker-contents .yyi-rinker-info {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .yyi-rinker-contents ul.yyi-rinker-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .yyi-rinker-contents ul.yyi-rinker-links li {
        float: none !important;
        display: block !important;
        flex: 1 1 0;
        width: 50% !important;
        min-width: 0;
        box-sizing: border-box;
        margin: 0 !important;
    }

    .yyi-rinker-contents ul.yyi-rinker-links li a {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 10px 3
			

