/* Affiliate Plus - カードスタイル */

.ap-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin: 24px 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: sans-serif;
}

.ap-image {
    flex-shrink: 0;
    width: 120px;
}

.ap-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.ap-info {
    flex: 1;
    min-width: 0;
}

.ap-title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.5;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ap-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ap-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.ap-btn:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

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

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

.ap-yahoo {
    background-color: #6B3FA0;
}

/* モバイル：縦並び */
@media (max-width: 540px) {
    .ap-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .ap-image {
        width: 100%;
        max-width: 160px;
        margin: 0 auto;
    }

    .ap-info {
        width: 100%;
    }

    .ap-buttons {
        flex-direction: column;
    }

    .ap-btn {
        justify-content: center;
        width: 100%;
    }
}
