/* おすすめバッジ（吹き出し）スタイル */
.recommend-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e53935 0%, #ff5252 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 15px;
    margin-left: 12px;
    position: relative;
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.4);
    animation: pulse-badge 2s infinite;
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.recommend-badge::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #e53935 transparent transparent;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(229, 57, 53, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(229, 57, 53, 0.5);
    }
}

/* おすすめ行のスタイル */
.recommend-row {
    background: linear-gradient(90deg, #fff8e1 0%, #ffecb3 100%) !important;
    position: relative;
    transition: all 0.3s ease;
}

.recommend-row:hover {
    background: linear-gradient(90deg, #fff3e0 0%, #ffe0b2 100%) !important;
}

/* .recommend-row td {
    border-top: 2px solid #ffc107 !important;
    border-bottom: 2px solid #ffc107 !important;
}

.recommend-row td:first-child {
    border-left: 5px solid #ff9800 !important;
}

.recommend-row td:last-child {
    border-right: 2px solid #ffc107 !important;
} */

/* コース名セル */
.course-name-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}

/* クリック可能なコース行 */
.course-row {
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
}

.course-row:hover {
    background-color: #e3f2fd !important;
}

.course-row:hover td {
    color: #0068b5;
}

/* 選択されたコース行 */
.selected-course {
    background: linear-gradient(90deg, #e3f2fd 0%, #bbdefb 100%) !important;
    position: relative;
}

/* .selected-course td {
    border-top: 2px solid #0068b5 !important;
    border-bottom: 2px solid #0068b5 !important;
}

.selected-course td:first-child {
    border-left: 5px solid #0068b5 !important;
}

.selected-course td:last-child {
    border-right: 2px solid #0068b5 !important;
} */

/* おすすめ + 選択状態 */
.recommend-row.selected-course {
    background: linear-gradient(90deg, #fff3e0 0%, #ffe0b2 100%) !important;
}

/* .recommend-row.selected-course td {
    border-top: 2px solid #ff9800 !important;
    border-bottom: 2px solid #ff9800 !important;
}

.recommend-row.selected-course td:first-child {
    border-left: 5px solid #e65100 !important;
}

.recommend-row.selected-course td:last-child {
    border-right: 2px solid #ff9800 !important;
} */

/* 選択インジケーター */
.selected-course td:first-child::before {
    content: '▶';
    margin-right: 8px;
    color: #0068b5;
    font-size: 10px;
}

.recommend-row.selected-course td:first-child::before {
    color: #e65100;
}

/* テーブル全体の改善 */
.price-table tbody tr:has(.recommend-badge) {
    position: relative;
}

/* アイコン追加 */
.recommend-badge::after {
    content: '★';
    margin-left: 4px;
    font-size: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .recommend-badge {
        font-size: 10px;
        padding: 3px 8px;
        margin-left: 8px;
    }

    .recommend-badge::before {
        border-width: 5px;
        left: -6px;
    }

    .course-name-cell {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .recommend-badge {
        font-size: 9px;
        padding: 2px 6px;
        margin-left: 5px;
        margin-top: 4px;
        display: block;
        width: fit-content;
    }

    .recommend-badge::before {
        display: none;
    }

    .recommend-badge::after {
        font-size: 8px;
    }

    .course-name-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
