﻿/*
Plugin Name: BK Product Card
Description: BK Product Card用CSS
Version: 1.3.5
Author: bktoramaru.com
*/

.bk-product-card {
    background: #fff;
    border: 1px solid #dfeaf5;
    border-radius: 22px;
    padding: 28px 32px;
    margin: 24px 0 0;
    box-shadow: 0 10px 26px rgba(0, 60, 120, 0.06);
}

.bk-product-card__head {
    margin-bottom: 18px;
}

.bk-product-card__tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eef7ff;
    color: #0070c9;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.bk-product-card__title {
    margin: 0;
    color: #24384f;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .01em;
}

.bk-product-card__main {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 24px;
    align-items: start;
}

.bk-product-card__image {
    width: 170px;
}

.bk-product-card__image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
    background: #f7fbff;
}

.bk-product-card__image--html a {
    display: block;
    text-align: center;
}

.bk-product-card__image--html img {
    margin: 0 auto !important;
}

.bk-product-card__body {
    min-width: 0;
    padding-top: 8px;
}

.bk-product-card__body--banner {
    padding-top: 0;
    margin-top: 14px;
}

.bk-product-card__desc {
    margin: 0;
    color: #34495e;
    font-size: 16px;
    line-height: 1.9;
}

.bk-product-card__note {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}

.bk-product-card__buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
    width: 100%;
}

.bk-product-card__btn,
.bk-product-card__partner-html,
.bk-product-card__partner-html>a {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    box-sizing: border-box;
}

.bk-product-card__btn,
.bk-product-card__partner-html>a {
    align-items: center;
    justify-content: center;
    padding: 12px 14px 14px;
    border-radius: 10px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity .2s ease, transform .2s ease;
}

.bk-product-card__btn:hover,
.bk-product-card__partner-html>a:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.bk-product-card__btn--rakuten {
    background: #f76956;
}

.bk-product-card__btn--amazon,
.bk-product-card__amazon-html>a {
    background: #232f3e;
}

.bk-product-card__btn--yahoo,
.bk-product-card__yahoo-html>a {
    background: #66a7ff;
}

.bk-product-card__partner-html {
    position: relative;
    align-items: center;
}

.bk-product-card__partner-html img,
.bk-product-card__text-html img {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* banner / generic affiliate */
.bk-product-card--banner {
    text-align: center;
}

.bk-product-card__banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px auto 0;
    max-width: 100%;
}

.bk-product-card__banner a,
.bk-product-card__banner img,
.bk-product-card__banner iframe {
    max-width: 100%;
}

.bk-product-card__banner img {
    height: auto;
    border-radius: 12px;
}

.bk-product-card__text-html {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
}

.bk-product-card__text-html>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 20px 13px;
    border-radius: 10px;
    background: #0A3D62;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
}

.bk-product-card__text-html>a:hover {
    opacity: .88;
}

@media (max-width: 768px) {
    .bk-product-card {
        padding: 22px 18px;
    }

    .bk-product-card__title {
        font-size: 20px;
        line-height: 1.6;
    }

    .bk-product-card__main {
        display: block;
    }

    .bk-product-card__image {
        width: 100%;
        max-width: 220px;
        margin: 0 auto 18px;
    }

    .bk-product-card__body {
        padding-top: 0;
    }

    .bk-product-card__desc {
        font-size: 16px;
        line-height: 1.9;
    }

    .bk-product-card__buttons {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .bk-product-card__btn,
    .bk-product-card__partner-html,
    .bk-product-card__partner-html>a,
    .bk-product-card__text-html,
    .bk-product-card__text-html>a {
        width: 100%;
    }
}

.spike-lp .bk-product-card p.bk-product-card__title {
    margin: 0 !important;
    color: #24384f !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    letter-spacing: .01em !important;
}

.spike-lp .bk-product-card p.bk-product-card__desc {
    margin: 0 !important;
    color: #34495e !important;
    font-size: 16px !important;
    line-height: 1.9 !important;
}

.spike-lp .bk-product-card p.bk-product-card__note {
    margin: 8px 0 0 !important;
    color: #6b7280 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}






