/* ランクプログレスバー - 横型 */
.grade-progress-wrapper {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.grade-progress-bar {
    position: relative;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 20px 0 15px 0;
}

.progress-indicator {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    z-index: 1;
}

.grade-milestone {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    cursor: pointer;
}

.grade-milestone .grade-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.grade-milestone .grade-icon img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.grade-milestone.active .grade-icon {
    border-color: #667eea;
    box-shadow: 0 3px 6px rgba(102, 126, 234, 0.3);
}

.grade-milestone.current .grade-icon {
    width: 36px;
    height: 36px;
    border-width: 3px;
    border-color: #ffd700;
    animation: pulse 2s infinite;
}

.grade-milestone.current .grade-icon img {
    width: 30px;
    height: 30px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
}

/* ホバー時のポップアップ情報 */
.grade-milestone .grade-info {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.98);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

/* 吹き出しの三角形 */
.grade-milestone .grade-info::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.98);
}

.grade-milestone:hover .grade-info,
.grade-milestone.show-info .grade-info {
    opacity: 1;
    visibility: visible;
}

.grade-milestone .grade-name {
    display: block;
    font-weight: bold;
    font-size: 11px;
    color: #333;
    margin-bottom: 3px;
}

.grade-milestone .grade-amount {
    display: block;
    font-size: 10px;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 2px;
}

.grade-milestone .grade-rate {
    display: block;
    font-size: 9px;
    color: #666;
}
