/**
 * Product CTA Component Styles
 * 製品詳細セクション内に表示される購入CTAのスタイル
 */

.product-cta-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 40px 0 20px 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* タイトルとメーカー */
.product-cta-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.product-cta-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.product-cta-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-cta-title a:hover {
    color: var(--main-color, #2563eb);
}


.product-cta-makers {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

/* リスト表示設定 */
.product-cta-makers ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none; /* 黒丸を消す */
}

.product-cta-makers li {
    margin: 0;
    padding: 0;
    list-style: none; /* 黒丸を消す */
}

/* メーカーチップのスタイル（既存セールカードと同じ） */
.product-cta-makers .maker-chip {
    background: #eef2ff; /* 薄青背景 */
    color: #312e81;
    padding: 4px 12px;
    font-size: 0.875rem;
    border-radius: 999px;
    display: inline-block;
}

.product-cta-makers .maker-chip a {
    color: #312e81;
    text-decoration: none;
}

.product-cta-makers .maker-chip a:hover {
    text-decoration: underline;
}

/* 画像とリンクの横並びコンテナ */
.product-cta-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 画像リンク */
.product-cta-image-link {
    display: block;
    text-decoration: none;
    flex: 0 0 250px;
    max-width: 250px;
}

.product-cta-image-link:hover .product-cta-image {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


/* 画像 */
.product-cta-image {
    flex: 0 0 250px;
    max-width: 250px;
    aspect-ratio: 1 / 1; /* 正方形を維持 */
    background-color: #f5f5f5; /* 画像がない場合の背景色 */
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 領域いっぱいに表示 */
    display: block;
}

.product-cta-image.no-image {
    background-color: #e0e0e0;
    color: #999;
    font-weight: bold;
    font-size: 1.2rem;
}

/* リンクボタン群 */
.product-cta-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 既存の .product-salepage-btn と .product_taxonomy_marker のスタイルを再利用 */

.no-links-message {
    color: #999;
    font-style: italic;
    margin: 0;
    text-align: center;
    padding: 20px;
}

/* Responsive: モバイルでは縦積み */
@media (max-width: 768px) {
    .product-cta-body {
        flex-direction: column;
    }

    .product-cta-image {
        flex: 0 0 auto;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .product-cta-title {
        font-size: 1.1rem;
    }
}
