/* キーボードヘルプダイアログのスタイル */

.keyboard-help-dialog {
    background: #2a2a2a;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.keyboard-help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #444;
}

.keyboard-help-header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.keyboard-help-header .close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.keyboard-help-header .close-btn:hover {
    color: #fff;
}

.keyboard-help-content {
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.shortcut-section {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
}

.shortcut-section h4 {
    color: #4a9eff;
    margin: 0 0 15px 0;
    font-size: 16px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-keys {
    background: #333;
    color: #4a9eff;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    white-space: nowrap;
    border: 1px solid #444;
}

.shortcut-desc {
    color: #ccc;
    font-size: 14px;
    text-align: right;
    margin-left: 10px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .keyboard-help-content {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .shortcut-section {
        padding: 12px;
    }
    
    .shortcut-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .shortcut-desc {
        text-align: left;
        margin-left: 0;
    }
}