/* =============================================================================
   商品規格表組み表示用CSS
   ============================================================================= */

/* 表全体 */
.ec-productRole__spec-table {
    margin: 20px 0;
    overflow-x: auto;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* ヘッダー */
.spec-table__header {
    background: linear-gradient(180deg, #e8f4fc 0%, #d4ebf7 100%);
}

.spec-table__th {
    padding: 10px 8px;
    text-align: center;
    font-weight: bold;
    color: #333;
    border: 1px solid #b8d4e8;
    white-space: nowrap;
}

/* 行 */
.spec-table__row {
    background-color: #f0f8e8;
}

.spec-table__row:nth-child(even) {
    background-color: #fff;
}

.spec-table__row:hover {
    background-color: #fffde7;
}

/* セル */
.spec-table__td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #ddd;
    vertical-align: middle;
}

/* タグ列 */
.spec-table__td--tags {
    min-width: 80px;
}

.spec-table__td--tags .ec-productRole__tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    background-color: #e74c3c;
    color: #fff;
}

/* 価格列 */
.spec-table__td--price {
    white-space: nowrap;
}

/* 価格 - 実際の価格は右寄せ */
.spec-table__td--price .price-value {
    display: block;
    text-align: right;
    font-weight: bold;
    color: #c0392b;
}

/* 価格 - オープンは中央揃え */
.spec-table__td--price .price-open {
    display: block;
    text-align: center;
    color: #666;
}

/* 価格 - ーは中央揃え */
.spec-table__td--price .price-none {
    display: block;
    text-align: center;
    color: #999;
}

/* メディア列 */
.spec-table__td--media {
    min-width: 120px;
}

.media-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 2px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    cursor: default;
}

/* 備考列 */
.spec-table__td--note {
    text-align: left;
    min-width: 100px;
    color: #666;
}

/* 注釈 */
.spec-table__note {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .spec-table {
        font-size: 12px;
    }
    
    .spec-table__th,
    .spec-table__td {
        padding: 6px 4px;
    }
    
    .media-icon {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
}
