/* Amazon商品表示の基本スタイル */
.amazon-products {
    margin-top: 20px;
    margin-bottom: 20px;
}

.amazon-products h5 {
    font-size: 1em;
    margin: 10px 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.akp-product {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.akp-image {
    flex-shrink: 0;
    margin-right: 15px;
}

.akp-image img {
    width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    max-width: 120px;
}

.akp-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.akp-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.akp-title a {
    color: #232f3e;
    text-decoration: none;
}

.akp-title a:hover {
    text-decoration: underline;
}

/* レビュー評価のスタイル */
.akp-review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.akp-stars {
    display: flex;
    align-items: center;
}

.akp-star {
    color: #ffa41c;
    font-size: 16px;
    line-height: 1;
}

.akp-star-full {
    color: #ffa41c;
}

.akp-star-half {
    color: #ffa41c;
}

.akp-star-empty {
    color: #ddd;
}

.akp-rating-text {
    color: #565959;
    font-size: 14px;
    font-weight: normal;
}

.akp-release-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.akp-release-date span {
    font-weight: bold;
    color: #232f3e;
}

/* ボタンのスタイル */
.akp-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.akp-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 120px;
}

/* Amazonで見るボタン */
.akp-btn-amazon {
    background-color: #ff9900;
    color: #fff;
    border: 2px solid #ff9900;
}

.akp-btn-amazon:hover {
    background-color: #e68900;
    border-color: #e68900;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
}

/* 類似商品を探すボタン */
.akp-btn-similar {
    background-color: #fff;
    color: #0066c0;
    border: 2px solid #0066c0;
}

.akp-btn-similar:hover {
    background-color: #0066c0;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 192, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .akp-product {
        flex-direction: column;
        gap: 15px;
    }
    
    .akp-image {
        align-self: center;
        margin-right: 0;
    }
    
    .akp-buttons {
        flex-direction: column;
    }
    
    .akp-btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .akp-review-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* 管理画面用スタイル */
.akp-columns::after {
    content: '';
    display: table;
    clear: both;
}

.akp-sortable-box {
    width: 100%;
    margin-bottom: 30px;
    padding: 10px;
    background: #f9f9f9;
    border: 2px solid #ccc;
    border-radius: 6px;
}

.akp-col-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #0073aa;
}

.akp-sortable {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 100px;
}

.akp-sortable li {
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 4px;
    cursor: move;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.akp-sortable li::before {
    content: '\1F4E6'; /* 📦 */
    margin-right: 6px;
}

#akp-selected li::before {
    counter-increment: akp-num;
    content: counter(akp-num) '. ';
    font-weight: bold;
    margin-right: 6px;
    color: #0073aa;
}

#akp-selected {
    counter-reset: akp-num;
    background-color: #eaf7ff;
}

#akp-available {
    background-color: #fefefe;
}

.akp-highlight {
    background: #cce5ff !important;
    border: 2px dashed #0073aa;
    height: 40px;
    margin-bottom: 6px;
}