@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* アフィボタン ここから */
.afib a {
    display: block;
    border-radius: 40px;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.4;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 16px 24px;
    position: relative;
    background: linear-gradient(90deg, rgba(255,112,30,1) 0%, rgba(255,191,48,1) 50%, rgba(255,77,48,1) 100%);
    background-size: 200% 100%;
    transition: .3s cubic-bezier(0.45, 0, 0.55, 1);
}
.afib a:before {
    content: "";
    display: block;
    position: absolute;
    right: 14px;
    top: 0;
    bottom: 0;
    width: 32px;
    height: 32px;
    border: 1px solid #fff;
    margin: auto;
    border-radius: 50%;
}
.afib a:after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid;
    border-right: 2px solid;
    transform: rotate(45deg);
    display: inline-block;
    position: absolute;
    right: 27px;
    top: 0;
    bottom: 0;
    margin: auto 0;
}
@media (max-width: 428px){
.afib a {
    font-size: 1em;
    padding: 16px 40px 16px 40px;
}
.afib a:before {
    right: 12px;
    width: 24px;
    height: 24px;
}
.afib a:after {
    width: 6px;
    height: 6px;
    border-top: 2px solid;
    border-right: 2px solid;
    right: 22px;
}
.sp-radius {
    border-radius: 40px;
}
}
@media (min-width: 769px){
.afib a:hover {
    background-position: 100% 0;
}
}

/* 引用元デザイン */
p.quote {
    color: #aaaaaa;
    font-size: 0.8em;
    margin-top: -20px;
}

p.quote a {
    color: #aaaaaa;
    text-decoration: none;
}

/* テーブルデザイン */
.wp-block-table tbody {
  background-color: #ffffff;
}

figure.wp-block-table {
    font-size: 0.8em;
}

/* 強調デザイン */
.post_content strong {
	color: #59b993;
}

/* 色付き文字を太字にする */
span.swl-inline-color {
    font-weight: bold;
}

/* インラインボタンを少し大きく */
.swl-inline-btn a {
    padding: .8em 1.5em;
}

/* * Rinker Customize CSS 
 * 公式サイト有無による自動デザイン切り替え・ブランドカラー対応・スマホレスポンシブ
 * 修正：公式サイトなし時のボタン間隔を調整
 * 修正：PC表示時、Yahooの幅を優先的に広く確保して文字折り返しを防止
 * 修正：スマホ表示時、価格と注釈を2行に表示変更
 */

div.yyi-rinker-contents {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    margin: 2em 0;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
}

div.yyi-rinker-box {
    display: flex;
    padding: 24px;
    box-sizing: border-box;
    align-items: flex-start;
}

div.yyi-rinker-image {
    width: 140px;
    margin-right: 28px;
    flex-shrink: 0;
    text-align: center;
}

div.yyi-rinker-image a {
    display: block;
    transition: opacity 0.3s;
}

div.yyi-rinker-image a:hover {
    opacity: 0.8;
}

div.yyi-rinker-image img {
    width: 100%;
    height: auto;
    max-width: 140px;
    max-height: 200px;
    object-fit: contain;
    vertical-align: bottom;
}

div.yyi-rinker-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

div.yyi-rinker-title {
    margin-bottom: 10px;
}

div.yyi-rinker-title a {
    color: #1a202c;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

div.yyi-rinker-title a:hover {
    color: #4a5568;
}

div.yyi-rinker-detail {
    font-size: 0.8em;
    color: #718096;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    line-height: 1;
}

div.price-box .price {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.25em;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
}

div.price-box .price::before {
    content: "参考価格";
    display: inline-block;
    font-size: 10px;
    font-weight: normal;
    line-height: 1;
    color: #fff;
    background-color: #a0aec0;
    padding: 3px 6px;
    border-radius: 2px;
    margin-right: 6px;
}

div.price-box .price_at,
.price_at + span {
    font-size: 0.85em;
    color: #a0aec0;
}

div.yyi-rinker-detail .credit-box {
    display: none;
}

ul.yyi-rinker-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

ul.yyi-rinker-links li img {
    display: none !important;
}

ul.yyi-rinker-links li.freelink1 {
    width: 100%;
    flex: 100% 0 auto;
    margin-bottom: 20px !important;
}

ul.yyi-rinker-links li.freelink1 a {
    display: block;
    padding: 12px 0;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    background: #e53e3e;
    color: #fff;
    box-shadow: 0 4px 6px rgba(229, 62, 62, 0.25);
    transition: all 0.3s;
}

ul.yyi-rinker-links li.freelink1 a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(229, 62, 62, 0.3);
}

/* --- ボタン基本設定（Amazon, 楽天など） --- */
ul.yyi-rinker-links li:not(.freelink1) {
    margin: 0 10px 0 0 !important;
    padding: 0;
    flex: 1; /* 基本の幅比率 */
    min-width: 120px;
}

/* --- Yahooのみ幅を広げる設定 --- */
ul.yyi-rinker-links li.yahoolink {
    flex: 1.4 !important; /* 他のボタンの1.6倍の幅を確保 */
    min-width: 170px;
}

ul.yyi-rinker-links li:last-child {
    margin-right: 0 !important;
}

ul.yyi-rinker-links li:not(.freelink1) a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s;
    white-space: nowrap; /* テキストの折り返しを禁止 */
}

ul.yyi-rinker-links li:not(.freelink1) a::before {
    content: "\e921";
    font-family: "icomoon";
    margin-right: 4px;
    font-weight: normal;
}

ul.yyi-rinker-links li:not(.freelink1) a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    opacity: 0.9;
}

/* --- 公式サイトがある場合のテキストリンク化（リセット処理） --- */
ul.yyi-rinker-links li.freelink1 ~ li {
    flex: 0 1 auto !important; /* 幅比率を解除 */
    min-width: auto !important;
    margin-right: 12px !important;
}

ul.yyi-rinker-links li.freelink1 ~ li:last-child {
    margin-right: 0 !important;
}

ul.yyi-rinker-links li.freelink1 ~ li a {
    display: inline-flex;
    justify-content: flex-start;
    padding: 0;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    font-size: 13px;
    margin-right: 10px;
}

ul.yyi-rinker-links li.freelink1 ~ li a:hover {
    transform: none;
    text-decoration: underline;
    box-shadow: none !important;
    opacity: 0.8;
}

/* --- カラー設定 --- */
ul.yyi-rinker-links li.amazonlink a {
    background-color: #d47e00 !important;
    color: #fff !important;
    border-color: #d47e00 !important;
}

ul.yyi-rinker-links li.rakutenlink a {
    background-color: #bf0000 !important;
    color: #fff !important;
    border-color: #bf0000 !important;
}

ul.yyi-rinker-links li.yahoolink a {
    background-color: #004097 !important;
    color: #fff !important;
    border-color: #004097 !important;
}

/* テキストリンク時のカラー設定（背景透明） */
ul.yyi-rinker-links li.freelink1 ~ li.amazonlink a {
    background-color: transparent !important;
    color: #d47e00 !important;
}

ul.yyi-rinker-links li.freelink1 ~ li.rakutenlink a {
    background-color: transparent !important;
    color: #bf0000 !important;
}

ul.yyi-rinker-links li.freelink1 ~ li.yahoolink a {
    background-color: transparent !important;
    color: #004097 !important;
}

@media screen and (max-width: 576px) {
    div.yyi-rinker-box {
        flex-direction: column;
        padding: 20px;
    }

    div.yyi-rinker-image {
        margin: 0 auto 16px auto;
        width: 120px;
    }

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

    /* --- 修正箇所：価格と注釈を2行にする設定 --- */
    div.price-box {
        display: flex;
        flex-wrap: wrap; /* 折り返しを有効化 */
    }
    div.price-box .price {
        width: 100%; /* 価格を幅いっぱいに広げて改行させる */
        margin-bottom: 4px; /* 間隔を少し空ける */
    }

    ul.yyi-rinker-links {
        flex-direction: column;
        width: 100%;
    }

    /* スマホ時は全幅・縦積み */
    ul.yyi-rinker-links li:not(.freelink1) {
        width: 100%;
        margin: 0 0 10px 0 !important;
        flex: 1 1 auto !important; /* 幅比率リセット */
        min-width: auto !important;
    }

    ul.yyi-rinker-links li:last-child {
        margin-bottom: 0 !important;
    }

    ul.yyi-rinker-links li:not(.freelink1) a {
        width: 100%;
        padding: 12px 0;
        box-sizing: border-box;
    }

    ul.yyi-rinker-links li.freelink1 ~ li {
        width: 100%;
        margin: 0 0 6px 0 !important;
        text-align: left;
    }
    
    ul.yyi-rinker-links li.freelink1 ~ li:last-child {
        margin-bottom: 0 !important;
    }

    ul.yyi-rinker-links li.freelink1 ~ li a {
        padding: 6px 0;
        font-size: 14px;
        margin-right: 0;
    }
}

/* 全体デザイン修正ここから */
.post_content a {
    color: var(--color_link);
}

a.p-toc__link {
    color: inherit;
    font-size: inherit;
    text-decoration: none;
}


.post_content ul:not(.p-toc__list):not(.p-toc__childList):not([class*="is-style-"]):not(.yyi-rinker-links) {
    list-style-type: disc !important;
}
.post_content ol:not(.p-toc__list):not(.p-toc__childList):not([class*="is-style-"]):not(.yyi-rinker-links) {
    list-style-type: decimal !important;
}
.post_content ul:not(.p-toc__list):not(.p-toc__childList):not(.yyi-rinker-links) li,
.post_content ol:not(.p-toc__list):not(.p-toc__childList):not(.yyi-rinker-links) li {
    list-style-type: inherit !important;
}
.post_content ul[class*="is-style-"]:not(.p-toc__list):not(.yyi-rinker-links),
.post_content ol[class*="is-style-"]:not(.p-toc__list):not(.yyi-rinker-links) {
    list-style-type: none !important;
}
.post_content ul[class*="is-style-"]:not(.p-toc__list):not(.yyi-rinker-links) li,
.post_content ol[class*="is-style-"]:not(.p-toc__list):not(.yyi-rinker-links) li {
    list-style-type: none !important;
}

/* -------------------------------------------
   SWELL本文・リストの文字サイズ修正
------------------------------------------- */

/* 本文、段落、リストのサイズを強制指定
   ※目次(.p-toc...)とRinker(.yyi-rinker-links)は除外 */
.post_content,
.post_content p,
.post_content ul:not(.p-toc__list):not(.p-toc__childList):not(.yyi-rinker-links),
.post_content ol:not(.p-toc__list):not(.p-toc__childList):not(.yyi-rinker-links),
.post_content li {
    font-size: 15px !important;    /* PCの文字サイズ */
    line-height: 1.8 !important;   /* 行間 */
	color: #333;
}

/* スマホ表示の調整 */
@media screen and (max-width: 599px) {
    .post_content,
    .post_content p,
    .post_content ul:not(.p-toc__list):not(.p-toc__childList):not(.yyi-rinker-links),
    .post_content ol:not(.p-toc__list):not(.p-toc__childList):not(.yyi-rinker-links),
    .post_content li {
        font-size: 15px !important; /* スマホの文字サイズ */
    }
}

/* ヘッダーの高さ分、コンテンツを下に下げる */
#body_wrap {
    padding-top: 67px;
}

/* スマホ表示での調整（スマホのヘッダーがPCより低い場合） */
@media screen and (max-width: 767px) {
    #body_wrap {
        padding-top: 50px;
    }
}