/* --- アフィリエイト商材一覧ページ用スタイル --- */

/* パンくずリスト */
#affiliate-list-container > div:first-child {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 15px;
}

#affiliate-list-container > div:first-child a {
    color: #666;
}

/* ページタイトル */
#affiliate-list-container h1 {
    margin-bottom: 20px;
}

/* 説明文 */
#affiliate-list-container > p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* カテゴリフィルター */
.category-filter {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-filter > div:first-child {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.category-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filter-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: normal;
    transition: all 0.2s ease;
}

.category-filter-btn:hover {
    background: #f0f0f0;
}

.category-filter-btn.active {
    background: #e67e22;
    color: #fff;
    font-weight: bold;
    border-color: #e67e22;
}

/* エラーメッセージ */
#affiliate-list-container .error {
    color: #e74c3c;
    padding: 15px;
    background: #fee;
    border-radius: 4px;
}

/* 空のメッセージ */
#affiliate-list-container > p:last-of-type:not(.error) {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* カテゴリセクション */
.service-category-section {
    margin-bottom: 50px;
}

.service-category-section .category-title {
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e67e22;
}

/* サービスリスト */
.service-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* サービスアイテム */
.service-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* サービスリンク */
.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* サービス画像 */
.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* サービス詳細 */
.service-details {
    padding: 20px;
}

.service-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #333;
}

.service-price {
    color: #e67e22;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.service-description {
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-size: 0.9em;
}

/* サービスCTAボタン */
.service-cta {
    display: inline-block;
    padding: 10px 20px;
    background: #e67e22;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    transition: background-color 0.3s ease;
}

.service-link:hover .service-cta {
    background: #d35400;
}

/* PRラベル */
.service-item > p:last-child {
    text-align: right;
    padding: 5px 15px;
    font-size: 0.75em;
    color: #999;
    margin: 0;
}

/* 戻るボタンコンテナ */
#affiliate-list-container > div:last-child {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .service-list {
        grid-template-columns: 1fr !important;
    }
    
    .category-filter-buttons {
        flex-direction: column;
    }
    
    .category-filter-btn {
        width: 100%;
        text-align: center;
    }
}

